/* LCNode shared presentation standard — XRP reference, v1
   Keep this filename and existing stylesheet link on all node pages.
   IDs, data attributes, navigation, API routes and chart data belong to HTML/JS.
   Component classes below can be shared by XRP, BTC, ETH, USDT, USDC and LINK.
   Sections: 01 tokens; 02 page/navigation; 03 cards/text; 04 status/price;
   05 tables/search; 06 volume chart; 07 wallets; 08 controls; 09 settings;
   10 help dialog; 11 extracted markup styles; 12 responsive/accessibility.
   Change theme tokens first. Avoid asset-specific selectors or new !important rules. */

/* 01 — Theme tokens. Near-black slate background, off-white text, muted slate
   secondary text, teal links, blue feature cards and amber wallet searches.
   Chart/candle tokens are shared hooks: the supplied price chart remains a line.
   Future candlestick renderers should read --candle-up / --candle-down. */
:root {
  color-scheme:dark;
  --bg:#12151b; --bg-grad1:#1b2029; --bg-grad2:#0e1116;
  --card:#181c24; --border:rgba(255,255,255,.12);
  --fg:#eef1f6; --muted:#a5afc0;
  --accent:#4fd8c4; --accent-dim:rgba(79,216,196,.14);
  --amber:#e8b04b; --ok:#3ed598; --bad:#ff6b6b; --warn:var(--amber);
  --btnBlue:#39415e; --btnBlueHover:#454f74; --btnText:#fff;
  --feature-muted:#d5dbea; --table-head:rgba(0,0,0,.16);
  --table-hover:rgba(255,255,255,.045); --dividerBg:rgba(255,255,255,.065);
  --chart-price:var(--accent); --chart-price-fill:rgba(79,216,196,.12);
  --chart-normal:#22c55e; --chart-elevated:#60a5fa;
  --chart-large:#f59e0b; --chart-extreme:#ef4444; --chart-peak:#ff7a45;
  --chart-average-band:rgba(34,197,94,.12);
  --candle-up:var(--ok); --candle-down:var(--bad);
  --bar:var(--accent); --barHover:#7ee9da; --grid:rgba(255,255,255,.08);
  /* Orange tone and transparency: RGB controls the tone; alpha controls opacity. */
  --search-orange-rgb:255,153,0;
  --search-bg:rgba(var(--search-orange-rgb),.16);
  --search-input-bg:rgba(var(--search-orange-rgb),.10);
  --search-border:rgba(var(--search-orange-rgb),.48);
  --search-pulse-duration:5s;
  --wallet-card-radius:12px;
  --search-text:#fff4de; --search-muted:#ffcf95; --search-placeholder:#ffc87a;
  --intel-exch-panel:rgba(92,125,146,.13);
  --intel-whale-panel:rgba(84,96,146,.13);
  --intel-flag-panel:rgba(120,86,110,.13);
  --intel-exch-top:#5b7388; --intel-whale-top:#556191; --intel-flag-top:#76566a;
  --intel-exch-bottom:rgba(91,115,136,.18);
  --intel-whale-bottom:rgba(85,97,145,.18);
  --intel-flag-bottom:rgba(118,86,106,.18);
  --intel-exch-button:var(--intel-exch-top);
  --intel-whale-button:var(--intel-whale-top);
  --intel-flag-button:var(--intel-flag-top);
  --font-display:'Space Grotesk','Segoe UI',Roboto,Arial,sans-serif;
  --font-body:'Inter','Segoe UI',Roboto,Arial,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;
  --text-body:clamp(.875rem,.83rem + .15vw,.9375rem);
  --text-small:.8125rem; --text-table:.8125rem;
  --card-padding:clamp(12px,1.3vw,18px); --card-radius:14px; --layout-gap:14px;
  --content-width:1200px; --app-header-height:0px; --app-nav-height:0px;
  --section-nav-height:58px; --pulse-height:22px;
}

/* 02 — Page and section navigation. One centred 1200px content column.
   Sticky four-tab navigation sits below the fixed 22px live activity strip.
   Standalone sections stay visible; asset/footer variants still use .active. */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:96px; }
body { margin:0; min-height:100dvh; background:var(--bg); color:var(--fg);
  font:var(--text-body)/1.55 var(--font-body); -webkit-font-smoothing:antialiased; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
button,input,select,textarea { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
[hidden] { display:none !important; }
main { max-width:var(--content-width); margin:18px auto; padding:0 16px; display:grid; gap:var(--layout-gap); }
main.app-content { max-width:none; width:100%; margin:0; padding:28px max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left)); }
.app-screen,.app-screen.active { display:grid; gap:var(--layout-gap); width:100%; max-width:var(--content-width); margin:0 auto 28px; min-width:0; }
.asset-view { display:none; min-width:0; }
.asset-view.active { display:grid; gap:var(--layout-gap); }
.footer-view { display:none; }
.footer-view.active { display:inline; }
.screen-heading { padding:2px; }
.screen-heading h2 { margin:0; font-size:clamp(1.35rem,1rem + 1.2vw,1.875rem); line-height:1.2; }
.screen-heading p { margin:6px 0 0; color:var(--muted); font-size:var(--text-small); max-width:80ch; }
.top-section-nav { position:sticky; top:calc(var(--pulse-height) + env(safe-area-inset-top)); z-index:1998;
  width:min(760px,calc(100% - 24px)); margin:calc(var(--pulse-height) + env(safe-area-inset-top) + 12px) auto 0;
  padding:7px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px;
  background:rgba(18,21,27,.96); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.28); backdrop-filter:blur(14px); }
.section-nav-link { display:flex; align-items:center; justify-content:center; min-width:0; min-height:42px;
  padding:.55rem .45rem; border:1px solid var(--border); border-radius:9px;
  background:var(--btnBlue); color:var(--btnText); font:700 .9375rem var(--font-display); text-align:center;
  transition:background .15s ease,transform .06s ease; }
.section-nav-link:hover,.section-nav-link.active { background:var(--btnBlueHover); text-decoration:none; }
.section-nav-link:active { transform:translateY(1px); }
.nav-short { display:none; }
.ledger-pulse { position:fixed; top:0; left:0; right:0; z-index:1999;
  height:calc(var(--pulse-height) + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 8px 0;
  display:flex; align-items:flex-end; gap:2px; background:rgba(18,21,27,.96); border-bottom:1px solid var(--border); overflow:hidden; }
.ledger-pulse .bar { flex:1; min-width:2px; background:var(--accent); opacity:.55; border-radius:2px 2px 0 0; transition:height .5s ease,opacity .5s ease; }
.ledger-pulse .bar.hot { background:var(--amber); opacity:.9; }
.ledger-pulse .bar.now { background:var(--fg); opacity:1; }
footer { padding:0 16px calc(20px + env(safe-area-inset-bottom)); margin:12px auto 0; max-width:var(--content-width); color:var(--muted); text-align:center; font-size:var(--text-small); }
.banner { background:linear-gradient(135deg,var(--bg-grad1),var(--bg-grad2)); padding:26px 18px; border-bottom:1px solid var(--border); text-align:center; }
.banner h1 { margin:0 0 6px; font-size:1.5rem; }

/* 03 — Shared cards and text. Display font for titles; body font for prose;
   monospaced, tabular figures for money, timestamps and addresses. Feature
   cards (AI and largest-wallet table) share the original blue background. */
h1,h2,h3,h4,.hl-price,.tab .label { font-family:var(--font-display); }
code,.wallet-address,.hl-price,.intel-stat .v,.volume-stat strong,.metric .value { font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
code { color:var(--fg); }
.muted { color:var(--muted); }
.status { font-weight:700; }
.ok { color:var(--ok); } .bad { color:var(--bad); } .warn { color:var(--warn); }
.wrap,.hash { overflow-wrap:anywhere; word-break:normal; }
.card { width:100%; min-width:0; margin:0; padding:var(--card-padding); border:1px solid var(--border); border-radius:var(--card-radius); background:var(--card); box-shadow:0 8px 18px rgba(0,0,0,.2); }
.card h3 { margin:0 0 10px; font-size:clamp(.98rem,.91rem + .22vw,1.125rem); font-weight:700; line-height:1.35; }
.section-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
.section-head h3 { margin:0; }
.section-head .right { margin-left:auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.pill { display:inline-block; max-width:100%; padding:3px 8px; border-radius:999px; border:1px solid var(--border); background:rgba(0,0,0,.15); font-size:var(--text-small); overflow-wrap:anywhere; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; cursor:pointer; background:transparent; border:1px solid var(--accent); color:var(--fg); padding:.45rem .85rem; border-radius:8px; font-weight:600; }
.button:hover { background:var(--accent-dim); text-decoration:none; }
.button.small { font-size:var(--text-small); padding:.32rem .65rem; }
.top-card,.ai-answer-card { background:var(--btnBlue); border-color:rgba(255,255,255,.18); }
.top-card .muted,.top-card td::before,.ai-answer-card .muted { color:var(--feature-muted); }
.ai-answer-card > .section-head { margin-bottom:12px; }
.ai-answer-box.ai-commentary-text { margin:0; padding:0; min-height:0; border:0; background:transparent; color:var(--fg); white-space:pre-wrap; text-align:left; font-family:var(--font-body); line-height:1.65; overflow-wrap:anywhere; tab-size:2; }
.wallet-top7-wrap,.flow-stack { display:grid; gap:var(--layout-gap); min-width:0; }
.equal-520 { display:flex; flex-direction:column; }
.scroll-body { overflow:auto; min-height:0; }
.pie-and-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--layout-gap); }
.pie-wrap { height:360px; position:relative; }
.chart-canvas { display:block; max-width:420px; margin:auto; }

/* 04 — Status ticker and price summary. Blue centred status tab; neutral
   price tiles, coral low and green high. Both charts use fixed responsive
   container heights so canvas/SVG drawing dimensions stay predictable. */
.tabs { display:grid; grid-template-columns:minmax(0,720px); justify-content:center; gap:8px; min-width:0; }
.tab { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; min-width:0; min-height:110px; padding:12px; border-radius:10px; background:var(--btnBlue); color:var(--btnText); text-align:center; overflow:hidden; }
.tab .label { font-weight:700; }
.tab .val { width:100%; min-width:0; margin-top:6px; font-size:.875rem; overflow:hidden; }
.ledger-window { position:relative; width:100%; min-width:0; max-width:100%; padding:4px 8px; border:1px solid var(--border); border-radius:6px; background:rgba(0,0,0,.15); overflow:hidden; contain:paint; }
.ledger-track { display:inline-block; white-space:nowrap; animation:ledger-marquee 45s linear infinite; }
.ledger-track.btc-ticker-track { animation-duration:24s; }
.ledger-track,.ledger-track code { color:var(--btnText); }
.ledger-window:hover .ledger-track { animation-play-state:paused; }
.ledger-meta,.ledger-server-state { margin-top:4px; font-size:.75rem; }
.ticker-status-ok,.ticker-status-bad,.ticker-status-warn { color:var(--btnText); font-weight:700; }
@keyframes ledger-marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.price-summary-panel { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); gap:12px; margin:14px 0; padding:12px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.03); }
.price-range-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.price-metric,.hl-tab { min-width:0; min-height:96px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px; border:1px solid var(--border); border-radius:12px; background:rgba(0,0,0,.1); text-align:center; }
.hl-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.hl-title { font-size:.75rem; color:var(--muted); letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.hl-price { font-size:clamp(1.125rem,1rem + .5vw,1.55rem); font-weight:700; line-height:1.2; overflow-wrap:anywhere; }
.price-metric-primary .hl-price { font-size:clamp(1.5rem,1.2rem + .8vw,1.85rem); }
.hl-sub { margin-top:6px; font-size:var(--text-small); color:var(--muted); overflow-wrap:anywhere; }
.hl-green { color:var(--ok); } .hl-red { color:var(--bad); }
.chart-block { border:1px solid var(--border); border-radius:12px; padding:12px; margin:14px 0 4px; background:rgba(255,255,255,.03); }
.chart-wrapper { position:relative; height:300px; width:100%; min-width:0; }
.chart-wrap { position:relative; height:360px; width:100%; overflow:hidden; }
.chart-wrap svg { display:block; width:100%; height:100%; }
.chart-note,.plain-note { margin:8px 0 10px; color:var(--muted); font-size:var(--text-small); line-height:1.5; }
.chart-card h3 { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.chart-summary-row { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }

/* 05 — Flow and largest-wallet tables. Flow uses dark slate; largest-wallet
   uses feature blue. Both use identical widths, two-line cells and mono values.
   Desktop: left-aligned descriptions, right-aligned money, wrapped addresses.
   At 700px: both become labelled stacked rows with full readable addresses. */
.table-wrap { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; }
table { width:100%; border-collapse:collapse; font-size:var(--text-table); }
.node-table { table-layout:fixed; }
thead th { background:var(--table-head); text-align:left; font:600 var(--text-small)/1.4 var(--font-body); }
th,td { padding:12px 10px; border-top:1px solid var(--border); vertical-align:top; overflow-wrap:anywhere; }
tbody tr:hover td { background:var(--table-hover); }
.node-table td { font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.node-table th:nth-child(4),.node-table th:nth-child(5),.node-table td:nth-child(4),.node-table td:nth-child(5) { text-align:right; }
.cell-2l > div { line-height:1.4; }
.cell-caption { color:var(--muted); font-family:var(--font-body); font-size:.75rem; }
.top-card .cell-caption { color:var(--feature-muted); }
.cell-2l > div + div { margin-top:4px; color:var(--muted); font-size:.75rem; }
.top-card .cell-2l > div + div { color:var(--feature-muted); }
.cell-2l > .addr-row { color:var(--fg); }
.top-card code,.node-table code { white-space:normal; overflow-wrap:anywhere; }
.node-table .addr-row { display:flex; align-items:flex-start; gap:4px; }
.node-table .addr-row code { flex:1; min-width:0; }
.node-table .copy-btn { margin-left:0; }
.hot-ledger a { color:var(--bad); font-weight:700; }
tr.divider td { background:var(--dividerBg); border-bottom:1px solid var(--border); font:700 .75rem/1.4 var(--font-body); color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.top-card thead th { background:rgba(255,255,255,.1); }
.col-time { width:13%; } .col-address { width:20%; } .col-amount { width:11%; } .col-ledger { width:17%; } .col-type { width:8%; }
.table-filter { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.table-filter input { width:100%; min-width:0; background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:8px; padding:12px; color:var(--fg); font:inherit; font-size:.875rem; }
/* Wallets and Flow: translucent orange Search / Self-check panel with a slow glow.
   Change --search-bg in section 01 to change the orange tone everywhere. */
.table-filter-spotlight { display:grid; gap:8px; padding:12px; border:1px solid var(--search-border); border-radius:10px; background:var(--search-bg); color:var(--search-text); animation:searchGlow var(--search-pulse-duration) ease-in-out infinite; }
.search-callout-label { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--search-text); font-weight:700; }
.pill-mini { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; background:rgba(var(--search-orange-rgb),.18); border:1px solid var(--search-border); color:var(--search-placeholder); font-size:.75rem; }
.search-callout-help { color:var(--search-muted); font-size:var(--text-small); line-height:1.45; }
.table-filter .search-highlight { min-height:52px; border-color:var(--search-border); background:var(--search-input-bg); box-shadow:none; font-weight:600; color:var(--search-text); }
.search-highlight::placeholder { color:var(--search-placeholder); opacity:1; }
.search-highlight:focus-visible { border-color:rgba(var(--search-orange-rgb),.9); outline-color:var(--search-placeholder); }
/* Pulse only the orange border/glow, keeping the text fully opaque and stable. */
@keyframes searchGlow {
  0%,100% { box-shadow:0 0 0 0 rgba(var(--search-orange-rgb),0); border-color:var(--search-border); }
  50% { box-shadow:0 0 18px 2px rgba(var(--search-orange-rgb),.18); border-color:rgba(var(--search-orange-rgb),.75); }
}
tr.tx-flash td { animation:txFlash 1.1s ease-out; }
@keyframes txFlash { from { background:rgba(79,216,196,.22); } to { background:transparent; } }

/* 06 — Volume chart. Green = normal, blue = elevated, amber = large,
   red = extreme. Reference lines use these same shared chart tokens. */
    .chart-axis{stroke:var(--muted);stroke-width:1;shape-rendering:crispEdges}
    .chart-grid{stroke:var(--grid);stroke-width:1;shape-rendering:crispEdges}
    .chart-label{fill:var(--muted);font-size:12px}
    .bar{fill:var(--bar);opacity:.9}
    .bar:hover{fill:var(--barHover);opacity:1}
    .avg-line{stroke:var(--chart-normal);stroke-width:2;stroke-dasharray:6 4}
    .median-line{stroke:var(--chart-large);stroke-width:2;stroke-dasharray:5 4}
    .peak-line{stroke:var(--chart-peak);stroke-width:2;stroke-dasharray:3 3}
    .chart-ref-label{
      fill:#fff;
      font-size:11px;
      font-weight:700;
      paint-order:stroke;
      stroke:rgba(15,19,26,.92);
      stroke-width:4px;
      stroke-linejoin:round;
    }
    .avg-band{fill:var(--chart-average-band)}
    .bar-normal{fill:var(--chart-normal)}
    .bar-elevated{fill:var(--chart-elevated)}
    .bar-large{fill:var(--chart-large)}
    .bar-extreme{fill:var(--chart-extreme)}
    .bar-current{
      filter:drop-shadow(0 0 5px rgba(108,195,255,.95));
      stroke:#fff;
      stroke-width:1;
    }
    .whale-marker{
      font-size:13px;
      text-anchor:middle;
      pointer-events:none;
    }
    .volume-summary{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:8px;
      margin:4px 0 10px;
    }
    .volume-stat{
      min-width:0;
      padding:10px 11px;
      border:1px solid var(--border);
      border-radius:11px;
      background:rgba(255,255,255,.035);
      display:flex;
      flex-direction:column;
      gap:2px;
    }
    .volume-stat-label{
      color:var(--muted);
      font-size:.72rem;
      text-transform:uppercase;
      letter-spacing:.07em;
    }
    .volume-stat strong{
      font-size:1.03rem;
      line-height:1.15;
      overflow-wrap:anywhere;
    }
    .volume-stat small{
      color:var(--muted);
      font-size:.72rem;
      line-height:1.2;
    }
    .volume-stat-current{
      border-color:rgba(108,195,255,.34);
      background:rgba(108,195,255,.08);
    }


    .tooltip{display:none;z-index:5;max-width:calc(100% - 16px);position:absolute;pointer-events:none;background:#0f131a;border:1px solid var(--border);color:var(--fg);padding:6px 8px;border-radius:8px;font-size:12px;white-space:nowrap;transform:translate(-50%,-120%)}


/* 07 — Wallet intelligence. Exchange: slate blue; whale: indigo; flagged: mauve.
   Each card has a brighter address header and a tinted two-column metric body. */
    .intel-stat{
      border:1px solid var(--border);
      border-radius:12px;
      padding:var(--card-padding);
      background:rgba(255,255,255,0.03);
      min-height:92px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      gap:4px;
    }
    .intel-stat .k{
      color:var(--muted);
      font-size:.86rem;
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .intel-stat .v{
      font-size:1.35rem;
      font-weight:800;
      line-height:1.1;
    }
    .intel-stat .s{
      color:var(--muted);
      font-size:.85rem;
    }

    .intel-top-note{
      color:var(--muted);
      font-size:.92rem;
      margin:8px 0 14px 0;
    }

    .intel-panel-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap:16px;
      align-items:stretch;
    }
    @media (max-width: 1180px){
      .intel-panel-grid{ grid-template-columns: 1fr; }
    }

    .intel-panel{
      display:flex;
      flex-direction:column;
      min-height:0;
      min-width:0;
      padding:12px;
      width:100%;
      border:1px solid rgba(255,255,255,0.14);
      box-shadow:0 8px 18px rgba(0,0,0,.20);
      overflow:hidden;
      backdrop-filter: blur(2px);
    }

    .intel-panel-exchanges{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
        var(--intel-exch-panel);
    }
    .intel-panel-whales{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
        var(--intel-whale-panel);
    }
    .intel-panel-flagged{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
        var(--intel-flag-panel);
    }

    .section-mini-note{
      color:var(--muted);
      font-size:.86rem;
      margin-top:12px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
    }
    .section-head{
      display:flex;align-items:center;gap:10px;flex-wrap:wrap
    }
    .section-head .right{
      margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap
    }

    .intel-stack{
      display:grid;
      gap:10px;
      margin-top:8px;
    }
    .intel-item-card{
      border:1px solid rgba(255,255,255,0.14);
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 8px 18px rgba(0,0,0,.14);
      background:rgba(255,255,255,0.03);
    }
    .intel-item-top{
      padding:10px 12px;
      border-bottom:1px solid rgba(255,255,255,0.10);
    }
    .intel-item-bottom{
      padding:10px 12px;
    }
    .intel-item-title{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
      margin-bottom:8px;
    }
    .intel-rank{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:36px;
      height:28px;
      padding:0 10px;
      border-radius:999px;
      font-size:.82rem;
      font-weight:800;
      letter-spacing:.03em;
      border:1px solid rgba(255,255,255,0.18);
      background:rgba(0,0,0,.14);
      color:#fff;
    }
    .intel-item-label{
      font-size:.78rem;
      text-transform:uppercase;
      letter-spacing:.06em;
      opacity:.92;
      margin-bottom:4px;
    }
    .wallet-address{
      color:#eaf2ff;
      font-family:var(--font-mono);
      font-size:.92rem;
      word-break:break-all;
      line-height:1.35;
    }

    .intel-panel-exchanges .intel-item-top{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00)),
        var(--intel-exch-top);
    }
    .intel-panel-exchanges .intel-item-bottom{
      background:var(--intel-exch-bottom);
    }

    .intel-panel-whales .intel-item-top{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00)),
        var(--intel-whale-top);
    }
    .intel-panel-whales .intel-item-bottom{
      background:var(--intel-whale-bottom);
    }

    .intel-panel-flagged .feed-card-top{
      background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00)),
        var(--intel-flag-top);
    }
    .intel-panel-flagged .feed-card-bottom{
      background:var(--intel-flag-bottom);
    }

    .metric-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap:10px 14px;
    }
    .metric{
      min-width:0;
    }
    .metric .label{
      color:var(--muted);
      font-size:.78rem;
      text-transform:uppercase;
      letter-spacing:.05em;
      margin-bottom:2px;
    }
    .metric .value{
      font-size:.97rem;
      font-weight:700;
      word-break:break-word;
    }

    .feed-item{
      padding:0;
      border-top:1px solid var(--border);
    }
    .feed-item:first-child{ border-top:0; }
    .feed-label{
      display:inline-block;
      padding:2px 8px;
      border-radius:999px;
      border:1px solid var(--border);
      background:rgba(0,0,0,.16);
      font-size:.85rem;
    }

    @keyframes glowPulseExchange{
      0%,100%{
        filter:brightness(1);
        box-shadow:
          0 8px 18px rgba(0,0,0,.14),
          0 0 0 rgba(140,220,255,0);
      }
      50%{
        filter:brightness(1.22);
        box-shadow:
          0 12px 24px rgba(0,0,0,.22),
          0 0 22px rgba(140,220,255,0.34);
      }
    }
    @keyframes glowPulseWhale{
      0%,100%{
        filter:brightness(1);
        box-shadow:
          0 8px 18px rgba(0,0,0,.14),
          0 0 0 rgba(145,165,255,0);
      }
      50%{
        filter:brightness(1.24);
        box-shadow:
          0 12px 24px rgba(0,0,0,.22),
          0 0 22px rgba(145,165,255,0.34);
      }
    }
    @keyframes glowPulseFlagged{
      0%,100%{
        filter:brightness(1);
        box-shadow:
          0 8px 18px rgba(0,0,0,.14),
          0 0 0 rgba(255,145,185,0);
      }
      50%{
        filter:brightness(1.20);
        box-shadow:
          0 12px 24px rgba(0,0,0,.22),
          0 0 22px rgba(255,145,185,0.28);
      }
    }

    .pulse-exchange{ animation:glowPulseExchange 1.55s ease-in-out infinite; }
    .pulse-whale{ animation:glowPulseWhale 1.55s ease-in-out infinite; }
    .pulse-flagged{ animation:glowPulseFlagged 1.55s ease-in-out infinite; }

    .full-list-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:.68rem 1.15rem;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.18);
      color:#fff;
      text-decoration:none;
      font-weight:800;
      letter-spacing:.02em;
      box-shadow:0 10px 20px rgba(0,0,0,.18);
      transition:transform .12s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
      min-height:42px;
      text-align:center;
      line-height:1.2;
    }
    .full-list-btn:hover{
      transform:translateY(-1px);
      box-shadow:0 14px 24px rgba(0,0,0,.22);
      filter:brightness(1.08);
    }

    .full-list-btn.exchange-btn{
      background:var(--intel-exch-button);
      border-color:rgba(210,235,255,.16);
    }
    .full-list-btn.whale-btn{
      background:var(--intel-whale-button);
      border-color:rgba(210,220,255,.16);
    }
    .full-list-btn.flagged-btn{
      background:var(--intel-flag-button);
      border-color:rgba(244,214,229,.16);
    }


/* 08 — Copy controls and price direction badges. Green up / coral down. */
    /* ---------- Copy-address buttons ---------- */
    .copy-btn{
      display:inline-flex;align-items:center;justify-content:center;
      width:22px;height:22px;flex:0 0 auto;
      border:1px solid rgba(255,255,255,.18);
      border-radius:6px;background:rgba(255,255,255,.05);
      color:var(--fg);cursor:pointer;font-size:11px;line-height:1;
      margin-left:6px;vertical-align:middle;
      transition:background .12s ease, transform .12s ease;
    }
    .copy-btn:hover{background:rgba(255,255,255,.12)}
    .copy-btn:active{transform:scale(.92)}
    .copy-btn.copied{background:var(--accent);color:#0e1116;border-color:var(--accent)}
    .addr-row{display:inline-flex;align-items:center;max-width:100%}
    .addr-row .wallet-address{flex:1 1 auto;min-width:0}

    /* ---------- Price change badge ---------- */
    .price-change-badge{
      display:inline-flex;align-items:center;gap:4px;
      padding:2px 9px;border-radius:999px;
      font-size:.82rem;font-weight:700;font-family:var(--font-mono);
      border:1px solid transparent;
    }
    .price-change-badge.up{ color:var(--ok); background:rgba(62,213,152,.12); border-color:rgba(62,213,152,.3) }
    .price-change-badge.down{ color:var(--bad); background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.3) }
    .price-change-badge.flat{ color:var(--muted); background:rgba(255,255,255,.06); border-color:var(--border) }


/* 09 — Existing settings controls. These classes remain available to sibling pages. */
    /* ---------- Settings panel ---------- */
    .settings-overlay{
      position:fixed; inset:0; z-index:3000;
      background:rgba(8,10,14,.6);
      display:none;
      align-items:flex-start;
      justify-content:center;
      padding:calc(var(--app-header-height) + env(safe-area-inset-top) + 14px) 14px 14px;
      backdrop-filter:blur(2px);
    }
    .settings-overlay.open{display:flex}
    .settings-panel{
      width:min(420px, 100%);
      background:var(--card);
      border:1px solid var(--border);
      border-radius:16px;
      box-shadow:0 24px 60px rgba(0,0,0,.5);
      padding:16px;
      display:grid;
      gap:14px;
    }
    .settings-panel h3{margin:0;font-size:16px}
    .settings-row{
      display:flex;align-items:center;justify-content:space-between;gap:12px;
      padding:10px 0;border-top:1px solid var(--border);
    }
    .settings-row:first-of-type{border-top:0}
    .settings-row .lbl{font-weight:600;font-size:.94rem}
    .settings-row .desc{color:var(--muted);font-size:.78rem;margin-top:2px}
    .switch{
      position:relative;width:42px;height:24px;flex:0 0 auto;
      border-radius:999px;background:rgba(255,255,255,.14);
      border:1px solid var(--border);cursor:pointer;
      transition:background .15s ease;
    }
    .switch.on{background:var(--accent)}
    .switch .knob{
      position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
      background:#fff;transition:transform .15s ease;
    }
    .switch.on .knob{transform:translateX(18px)}
    .settings-select{
      background:rgba(255,255,255,.06);border:1px solid var(--border);color:var(--fg);
      border-radius:8px;padding:6px 8px;font:inherit;font-size:.86rem;
    }
    .settings-close{
      margin-top:2px;width:100%;padding:.6rem;border-radius:10px;border:1px solid var(--border);
      background:var(--btnBlue);color:#fff;font-weight:700;cursor:pointer;
    }


/* 10 — Help buttons and explanation dialog. Dark surface; teal focus/hover. */
    /* ---------- Info / glossary buttons + modal ---------- */
    .info-btn{
      display:inline-flex;align-items:center;justify-content:center;
      width:20px;height:20px;flex:0 0 auto;border-radius:50%;
      border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.06);
      color:var(--muted);font-size:12px;font-weight:700;font-style:italic;
      cursor:pointer;line-height:1;
    }
    .info-btn:hover{color:var(--fg);border-color:var(--accent);background:var(--accent-dim)}
    .plain-note{
      color:var(--muted);font-size:.86rem;line-height:1.5;margin:2px 0 10px;
    }
    .info-overlay{
      position:fixed; inset:0; z-index:3100;
      background:rgba(8,10,14,.65);
      display:none;align-items:flex-end;justify-content:center;
      padding:0;backdrop-filter:blur(2px);
    }
    .info-overlay.open{display:flex}
    .info-sheet{
      width:100%;max-width:560px;
      background:var(--card);border:1px solid var(--border);
      border-radius:16px 16px 0 0;
      box-shadow:0 -20px 60px rgba(0,0,0,.5);
      padding:18px 18px calc(18px + env(safe-area-inset-bottom));
      display:grid;gap:10px;
      max-height:78vh;overflow:auto;
    }
    @media (min-width:640px){
      .info-overlay{align-items:center}
      .info-sheet{border-radius:16px}
    }
    .info-sheet h4{margin:0;font-size:17px;font-family:var(--font-display)}
    .info-sheet p{margin:0;line-height:1.6;color:var(--fg)}
    .info-sheet-close{
      margin-top:4px;padding:.55rem;border-radius:10px;border:1px solid var(--border);
      background:var(--btnBlue);color:#fff;font-weight:700;cursor:pointer;
    }

/* 10B — Optional app header, bottom navigation and asset switch controls.
   Existing sibling-page hooks are retained for gradual migration. */
    .bottom-nav{
      position:fixed;
      left:0;
      right:0;
      bottom:0;
      z-index:2000;
      min-height:var(--app-nav-height);
      display:flex;
      gap:3px;
      padding:
        6px
        5px
        max(6px, env(safe-area-inset-bottom));
      background:rgba(26,29,35,.98);
      border-top:1px solid var(--border);
      box-shadow:0 -8px 24px rgba(0,0,0,.24);
      backdrop-filter:blur(14px);
    }

    .nav-button{
      flex:1 1 0;
      min-width:0;
      min-height:56px;
      padding:5px 2px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:3px;
      border:0;
      border-radius:11px;
      background:transparent;
      color:var(--muted);
      font:inherit;
      font-size:9px;
      line-height:1.1;
      cursor:pointer;
    }

    .nav-button.active{
      background:rgba(108,195,255,.13);
      color:var(--accent);
    }

    .nav-icon{
      min-height:24px;
      display:grid;
      place-items:center;
      font-size:17px;
      font-weight:800;
    }

    .nav-letter{
      font-size:24px;
      line-height:1;
      letter-spacing:.02em;
    }

    .asset-chip{
      display:flex;
      align-items:center;
      gap:9px;
      flex:0 0 auto;
      order:1;
      height:40px;
      padding:0 14px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.16);
      background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 60%);
      box-shadow:0 4px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.25);
      color:var(--fg);
      font:inherit;
      font-size:12px;
      font-weight:600;
      cursor:pointer;
      white-space:nowrap;
      transition:transform 90ms ease, box-shadow 90ms ease;
    }
    .asset-chip:hover{filter:brightness(1.08)}
    .asset-chip:active{
      transform:translateY(1px) scale(.98);
      box-shadow:0 1px 3px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.2);
    }
    .asset-chip-arrow{
      order:3;
      font-size:22px;
      font-weight:700;
      color:var(--muted);
      display:inline-flex;
      align-items:center;
      transition:transform 340ms cubic-bezier(.22,1,.36,1);
    }
    .asset-chip-arrow-inner{
      display:inline-block;
      animation:chipArrowNudge 1.4s ease-in-out infinite;
    }
    .asset-chip-arrow-inner svg{
      display:block;
    }
    .asset-chip-text{
      order:2;
    }
    .asset-chip-dot{
      order:1;
      width:14px;height:14px;border-radius:50%;
      background:#f7931a;
      flex:0 0 auto;
      box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.35);
      animation:chipDotPulse 1.6s ease-in-out infinite;
    }
    @keyframes chipDotPulse{
      0%,100%{ box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.35), 0 0 0 0 rgba(247,147,26,.55) }
      50%{ box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.35), 0 0 0 7px rgba(247,147,26,0) }
    }
    @keyframes chipArrowNudge{
      0%,100%{ transform:translateX(0) }
      50%{ transform:translateX(4px) }
    }

    .settings-link{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      padding:2px 0 12px;
      border-bottom:1px solid var(--border);
      color:var(--fg);
      text-decoration:none;
      font-size:.94rem;
      font-weight:600;
    }
    .settings-link:hover{color:var(--accent);text-decoration:none}
    .settings-link span[aria-hidden]{font-size:14px;color:var(--muted)}

    /* ---------- Nav notification dots ---------- */
    .nav-button{position:relative}
    .nav-dot{
      position:absolute;
      top:6px;
      right:calc(50% - 20px);
      width:8px;height:8px;border-radius:50%;
      background:var(--amber);
      box-shadow:0 0 0 2px rgba(26,29,35,.98);
      display:none;
    }
    .nav-dot.show{display:block}


/* 11 — Classes extracted from HTML and dynamically generated wallet markup.
   These replace fixed inline style attributes; dynamic tooltip positions and
   live pulse heights remain in JS because they depend on measured/live data. */
.status-label { display:flex; align-items:center; gap:6px; justify-content:center; }
.status-value { display:flex; flex-direction:column; align-items:center; gap:4px; }
.card .heading-inline { margin:0; }
.push-right { margin-left:auto; }
.heading-with-info { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pill-row { display:flex; gap:10px; flex-wrap:wrap; }
.initially-hidden { display:none; }
.note-spaced { margin-top:8px; }
.section-head-spaced { margin-bottom:10px; }
.panels-spaced { margin-top:16px; }
.panel-padding { padding:12px; }
.flow-note { margin:.35rem 0; font-size:var(--text-small); }
.text-danger { color:var(--bad); font-weight:700; }
/* All three wallet categories share the same rounded card shell.
   Flagged events have an extra animated wrapper; round that wrapper too so
   its glow follows the card corners rather than drawing a square outline. */
.intel-item-card,.feed-event-card {
  margin:0; border:1px solid rgba(255,255,255,.14);
  border-radius:var(--wallet-card-radius); overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.14); background:rgba(255,255,255,.03);
}
.intel-panel-flagged .feed-item { border:0; border-radius:var(--wallet-card-radius); }
.intel-item-top,.feed-card-top { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.10); }
.intel-item-bottom,.feed-card-bottom { padding:10px 12px; }
.feed-card-padding { padding:10px 12px; }
.feed-event-heading { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:flex-start; }
.feed-event-badges { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.feed-event-score { margin-top:6px; }
.feed-address-label { font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:#f2dfeb; margin:8px 0 4px; }
.clipboard-helper { position:fixed; opacity:0; pointer-events:none; }
.intel-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.intel-panel,.intel-item-card,.feed-event-card,.metric { min-width:0; }
.wallet-address,.metric .value { overflow-wrap:anywhere; }
.intel-item-label { color:var(--fg); }
.metric .label { color:var(--feature-muted); }

/* 12 — Responsive standard. 980px: two summary columns; 700px: stacked
   price layout and labelled tables; 420px: shorter charts and compact nav;
   320px: single price/metric column. Text remains readable and browser zoom
   stays enabled. Reduced motion disables pulses and marquee movement. */
@media (max-width:1180px) {
  .intel-panel-grid { grid-template-columns:1fr; }
}
@media (max-width:980px) {
  .intel-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  :root { --layout-gap:12px; --card-padding:12px; }
  main.app-content { padding-top:20px; }
  .price-summary-panel { grid-template-columns:1fr; padding:9px; gap:9px; }
  .price-range-row { gap:9px; }
  .price-metric { min-height:88px; padding:11px 8px; }
  .tabs .tab { min-height:104px; }
  .chart-wrapper { height:265px; }
  .chart-wrap { height:290px; }
  .pie-and-side { grid-template-columns:1fr; }
  .volume-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-answer-card .push-right { margin-left:0; }
  .table-wrap { overflow:visible; }
  .node-table,.node-table tbody,.node-table tr,.node-table td { display:block; width:100%; }
  .node-table thead,.node-table .cell-caption { display:none; }
  .node-table tr { padding:10px 0; border-top:1px solid var(--border); }
  .node-table td,.node-table td:nth-child(4),.node-table td:nth-child(5) { padding:6px 0; border:0; text-align:left; }
  .node-table td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font:600 .75rem/1.4 var(--font-body); text-transform:uppercase; letter-spacing:.04em; }
  .top-card .node-table td::before { color:var(--feature-muted); }
  .node-table td[colspan]::before,.node-table .divider td::before { display:none; }
  .node-table tr.divider { padding:0; }
  .node-table tr.divider td { padding:10px; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .intel-summary-grid { grid-template-columns:1fr; }
  .section-head .right { margin-left:0; width:100%; }
  .top-section-nav { width:calc(100% - 16px); padding:5px; gap:5px; }
  .section-nav-link { font-size:.8125rem; padding:.5rem .2rem; }
  .section-mini-note { flex-direction:column; align-items:flex-start; }
  .full-list-btn { width:100%; min-height:42px; }
}
@media (max-width:420px) {
  .nav-full { display:none; } .nav-short { display:inline; }
  .chart-wrapper { height:235px; }
  .chart-wrap { height:265px; }
  .chart-block { padding:8px; }
  .metric-grid { grid-template-columns:1fr; }
  .section-head .push-right { margin-left:0; }
  .feed-event-heading { flex-direction:column; }
  .volume-stat { padding:9px; }
  .volume-stat-label,.volume-stat small { font-size:.7rem; }
  .wallet-address { font-size:.8125rem; }
}
@media (max-width:320px) {
  .price-range-row,.hl-tabs { grid-template-columns:1fr; }
  .top-section-nav { gap:3px; }
  .section-head { gap:7px; }
  .volume-stat strong { font-size:.875rem; }
}
body.compact-tables th,body.compact-tables td { padding:6px 8px; }
body.compact-tables .intel-item-top,body.compact-tables .intel-item-bottom { padding:7px 9px; }
@media (max-width:700px) {
  body.compact-tables .node-table td { padding:4px 0; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none !important; transition:none !important; }
  .ledger-track { white-space:normal; overflow-wrap:anywhere; }
}

/* AI commentary wallet controls: compact COPY buttons and wrapping addresses. */
.ai-wallet-mention {
  overflow-wrap:anywhere;
}
.ai-wallet-address {
  font-family:var(--font-mono);
  font-size:.92em;
  color:var(--fg);
  overflow-wrap:anywhere;
}
.ai-copy-btn {
  width:auto;
  min-height:24px;
  height:auto;
  padding:3px 6px;
  margin-left:5px;
  font:600 .625rem/1.2 var(--font-body);
  letter-spacing:.03em;
  vertical-align:baseline;
  white-space:nowrap;
}
.clipboard-helper {
  position:fixed;
  opacity:0;
  pointer-events:none;
}

/* BTC tables: shared XRP typography, colours and responsive layout.
   BTC includes transaction-type and fee columns.
   Only amounts, balances and fees align right on desktop. */
.node-table.btc-node-table th,
.node-table.btc-node-table td { text-align:left; }
.node-table.btc-node-table .numeric-cell { text-align:right; }

.btc-node-table .col-time { width:12%; }
.btc-node-table .col-address { width:18%; }
.btc-node-table .col-amount,
.btc-node-table .col-wallet { width:11%; }
.btc-node-table .col-type { width:10%; }
.btc-node-table .col-ledger { width:14%; }
.btc-node-table .col-feerate { width:6%; }

.btc-node-table--flow .col-address { width:20%; }
.btc-node-table--flow .col-amount { width:13%; }
.btc-node-table--flow .col-ledger { width:17%; }
.btc-node-table--flow .col-feerate { width:8%; }

@media (max-width:700px) {
  .node-table.btc-node-table .numeric-cell { text-align:left; }
}

/* Ethereum-specific widgets.
   Shared cards, typography, orange search pulse and mobile table rows
   remain controlled by the existing shared component sections. */
.eth-node-page { --chart-empty:rgba(165,175,192,.35); }
.eth-node-page .hidden { display:none!important; }
.eth-node-page .mono { font-family:var(--font-mono); }
.eth-node-page .runtime-error-card {
  border-color:rgba(255,107,107,.45);
}

/* Native SVG charts use the same palette as XRP and BTC. */
.eth-node-page .price-chart,
.eth-node-page .svg-chart {
  width:100%;
  height:100%;
  position:relative;
}
.eth-node-page .price-chart svg,
.eth-node-page .svg-chart svg {
  display:block;
  width:100%;
  height:100%;
}
.eth-node-page .price-grid {
  stroke:var(--grid);
  stroke-width:1;
}
.eth-node-page .price-axis {
  fill:var(--muted);
  font:11px var(--font-body);
}
.eth-node-page .price-line {
  fill:none;
  stroke:var(--chart-price);
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.eth-node-page .price-area { fill:var(--chart-price-fill); }
.eth-node-page .price-dot {
  fill:var(--fg);
  stroke:var(--chart-price);
  stroke-width:2;
}
.eth-node-page .svg-chart .empty {
  fill:var(--muted);
  font:12px var(--font-body);
}
.eth-node-page .chart-empty {
  height:100%;
  display:grid;
  place-items:center;
  color:var(--muted);
}
.eth-node-page .bar-empty { fill:var(--chart-empty); }

/* Network summary: neutral tiles with monospaced values. */
.eth-node-page .node-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.eth-node-page .node-mini {
  min-width:0;
  border:1px solid var(--border);
  border-radius:11px;
  padding:10px 11px;
  background:rgba(255,255,255,.035);
}
.eth-node-page .node-mini .k {
  margin-bottom:4px;
  color:var(--muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.eth-node-page .node-mini .v {
  font:600 1.03rem/1.15 var(--font-mono);
  overflow-wrap:anywhere;
}
.eth-node-page .status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--warn);
  margin-right:5px;
}
.eth-node-page .status-dot.ok { background:var(--ok); }
.eth-node-page .status-dot.bad { background:var(--bad); }

/* Wallet links retain their destinations and wrap beside COPY buttons. */
.eth-node-page .eth-address-link {
  color:inherit;
  text-decoration:none;
  flex:1;
  min-width:0;
}
.eth-node-page .eth-address-link:hover {
  text-decoration:underline;
}

/* ETH tables: descriptions left, numeric values right on desktop.
   Shared mobile rules stack the same eight fields into labelled rows. */
.node-table.eth-node-table th,
.node-table.eth-node-table td { text-align:left; }
.node-table.eth-node-table .numeric-cell { text-align:right; }
.eth-node-table .col-time { width:10%; }
.eth-node-table .col-address { width:17%; }
.eth-node-table .col-amount { width:10%; }
.eth-node-table .col-intercurrency { width:17%; }
.eth-node-table .col-wallet { width:11%; }
.eth-node-table .col-ledger { width:12%; }
.eth-node-table .col-gas { width:6%; }

@media (max-width:900px) {
  .eth-node-page .node-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px) {
  .node-table.eth-node-table .numeric-cell { text-align:left; }
  .eth-node-page #runtime-error.runtime-mobile-hide {
    display:none!important;
  }
}
@media (max-width:520px) {
  .eth-node-page .svg-chart .chart-ref-label { font-size:9px; }
  .eth-node-page .svg-chart .chart-label { font-size:10px; }
}

/* 15 — ETH presentation repair, v2.
   Price chart: shared teal line, muted labels and slate grid.
   Colours belong in CSS; chart data remains in JavaScript. */
#ethPrice24h { width:100%; height:100%; position:relative; }
#ethPrice24h svg { display:block; width:100%; height:100%; }
#ethPrice24h .price-line {
  fill:none; stroke:var(--chart-price,#4fd8c4);
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
#ethPrice24h .price-area {
  fill:var(--chart-price-fill,rgba(79,216,196,.12));
}
#ethPrice24h .price-grid {
  stroke:var(--grid,rgba(255,255,255,.08)); stroke-width:1;
}
#ethPrice24h .price-axis {
  fill:var(--muted,#a5afc0); font:12px var(--font-body);
}
#ethPrice24h .price-dot {
  fill:var(--fg); stroke:var(--chart-price); stroke-width:2;
}

/* Empty diagnostic banner stays hidden; actual errors still appear. */
.eth-node-page .hidden { display:none!important; }

/* Node status: compact rounded tiles.
   Desktop: five columns. Smaller screens: two, then one.
   Labels use body type; values use the shared monospace font. */
#network-status-card .network-grid {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px; margin-top:12px;
}
#network-status-card .node-mini {
  min-width:0; padding:12px;
  background:rgba(255,255,255,.045);
  border:1px solid var(--border); border-radius:12px;
}
#network-status-card .node-mini .k {
  color:var(--muted); font:.8125rem/1.4 var(--font-body);
  margin-bottom:6px;
}
#network-status-card .node-mini .v {
  font:600 1rem/1.4 var(--font-mono); overflow-wrap:anywhere;
}

/* Wallets and Flow: larger text and more space.
   Main text: 15px. Addresses and secondary text: 14px.
   Desktop tables scroll horizontally instead of squeezing columns.
   Mobile retains the existing labelled stacked rows. */
.eth-node-table { font-size:.9375rem; line-height:1.55; }
.eth-node-table th {
  font:600 .875rem/1.45 var(--font-body); overflow-wrap:normal;
}
.eth-node-table td { padding:12px 10px; }
.eth-node-table code { font-size:.875rem; line-height:1.6; }
.eth-node-table .cell-2l > div + div,
.eth-node-table .cell-caption {
  font-size:.875rem; line-height:1.5;
}
.eth-node-page .table-wrap { overflow-x:auto; }
.eth-node-page .whale-threshold-note {
  color:var(--fg); font-size:.9375rem;
}
@media (min-width:701px) {
  .eth-node-table { min-width:1250px; }
}
@media (max-width:1000px) {
  #network-status-card .network-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px) {
  .eth-node-page .table-wrap { overflow:visible; }
  .eth-node-table { min-width:0; }
}
@media (max-width:420px) {
  #network-status-card .network-grid { grid-template-columns:1fr; }
}
/* END ETH presentation repair v2 */
