/* TCC Wallet Watch — editorial layer (copied from TRUMP Dinner Watch) over styles.css (the Birdeye dark design language, unchanged).
   Type follows the editorial system approved on GTA VI Coin Watch:
     · numbers: Archivo 800, tight tracking (-0.045em), line-height ~0.92; "$" and K/M/B units step back in amber
     · labels: Archivo 600, 10.5–11.5px, uppercase, 0.18em tracking, white at ~56%
     · components: flat cells split by 1px hairlines, square corners, outlined uppercase buttons with ↗
   Colour stays Birdeye: green is the live/primary accent, amber (#F5B445, already in the palette) marks units.
   Chart series reuse --series-a #1baf7a and --series-b #3987e5, validated with the dataviz
   validate_palette script on #15181A / #090B0C (dark mode) in SAFU Watch. Logos are untouched. */

:root {
  --hair: rgba(255, 255, 255, .1);
  --font-display: "Archivo", "Geist", system-ui, sans-serif;
  --r-panel: 2px; --r-card: 2px; --r-widget: 4px; --r-btn: 2px; --r-chip: 2px;
  --gain: #61D38A; --loss: #FF8A80;
}

/* one label voice: small, uppercase, widely tracked */
.kicker, .kpi > span, th, .live-pill, .btn, .seg button, .pager > span, .chip, .tag, .ca-btn, .link-pill, .kicker-pill, .panel-bar h3, .panel-title, .legend {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.legend { font-size: 10.5px; color: var(--text-3); }
.panel-bar h3, .panel-title { font-size: 11px; color: var(--text-2); }
th { font-size: 10px; letter-spacing: .16em; }
.chip { font-size: 10.5px; border-radius: 2px; background: transparent; border-color: var(--hair); }
.kicker-pill { border-radius: 2px; font-size: 11px; }
.btn { font-size: 12px; }

/* ── hero ── */
.hero { padding: 88px 0 48px; }
.hero h1 { max-width: 1000px; font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.hero h1 .info-wrap { vertical-align: .6em; }
.lede { max-width: 760px; font-size: 16.5px; color: var(--text-2); }
.lede b { color: var(--text); }
.hero-meta .chip b { color: var(--text); font-weight: 700; letter-spacing: .06em; }

/* ── KPI row: flat cells split by hairlines, the number leads ── */
.kpi-grid { gap: 1px; padding: 1px; }
.kpi { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; background: rgba(255, 255, 255, .012); border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--hair); }
.kpi-idx { position: absolute; top: 14px; right: 16px; color: var(--text-4); font-family: var(--font-display); font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .12em; }
.kpi > span { order: 2; margin-top: 12px; color: var(--text-3); font-size: 10.5px; line-height: 1.4; }
.kpi strong { order: 1; display: flex; align-items: baseline; margin: 4px 0 0; color: #FFFFFF; font-family: var(--font-display); font-size: clamp(34px, 3.3vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.kpi strong.accent { color: #FFFFFF; }
.kpi small { order: 3; margin-top: 6px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; white-space: normal; }
.kpi small b { color: var(--text); font-weight: 600; }
.u { color: var(--amber); font-size: .58em; font-style: normal; font-weight: 700; letter-spacing: -.01em; }
.u:first-child { margin-right: .05em; }
.u:not(:first-child) { margin-left: .04em; }

/* ── section heads: a numbered label over a tight sentence-case heading ── */
main { counter-reset: sec; }
.section { padding-top: 104px; counter-increment: sec; }
.kicker { gap: 12px; color: var(--amber); font-size: 11px; }
.kicker::before { content: counter(sec, decimal-leading-zero); color: var(--text-4); font-variant-numeric: tabular-nums; }
.kicker i { width: 28px; height: 1px; border-radius: 0; background: var(--line-strong); }
.section-head h2 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: .96; }
.section-head h2 .info-wrap { vertical-align: .5em; }
.section-head p { max-width: 680px; margin-top: 14px; color: var(--text-3); }
.section-head p b { color: var(--text); font-weight: 600; }
.info { font-family: var(--font-display); }

/* ── cells ── */
.panel { background: rgba(255, 255, 255, .012); border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--hair); }
.two-col { gap: 1px; }
td { border-bottom-color: var(--line); }
td b { font-weight: 600; }

/* ── table ── */
#lbTable { min-width: 1240px; }
#lbTable tbody tr { cursor: pointer; }
#lbTable tbody tr:hover td { background: rgba(255, 255, 255, .025); }
#lbTable tbody tr.on td { background: rgba(0, 255, 163, .05); }
#lbTable[aria-busy="true"] tbody { opacity: .55; }
#lbTable tbody tr.fresh td { animation: fresh 2.4s ease-out; }
.user { display: block; margin-top: 3px; color: var(--text); font-size: 12.5px; font-weight: 600; }
.lbl { display: block; margin-top: 3px; color: var(--text-3); font-size: 11px; }
.grp { display: block; color: var(--text-2); font-size: 12px; }
.grp small { display: block; color: var(--text-3); font-size: 11px; }
.num-dim { color: var(--text-3); }
.delta { font-weight: 600; }
.delta small { display: block; color: var(--text-3); font-size: 11px; font-weight: 400; }
.when b { font-family: var(--font); font-size: 12.5px; }
.lb-bar { gap: 12px; }

/* status pills: always a label, never colour alone */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 2px; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
.st-holding::before { background: var(--series-a); }
.st-added::before { background: var(--green); }
.st-below::before { background: var(--amber); }
.st-half::before, .st-exited::before { background: var(--loss); }
.st-half, .st-exited { color: #FFD6D2; border-color: rgba(255, 138, 128, .35); }

/* ── lookup ── */
.lookup-row { margin-top: 16px; }
.lookup { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.lookup .panel-title { grid-column: 1 / -1; margin: 0; }
.wallet-card { min-width: 0; }
.wallet-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallet-metrics b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ev-list { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.ev b { color: var(--text); font-weight: 600; }
.ev a { color: var(--green-soft); }

/* ── charts ── */
.key-a { background: var(--series-a); }
.key-b { background: var(--series-b); }
.chart-sm { min-height: 200px; }
.chart-svg .line-a { fill: none; stroke: var(--series-a); stroke-width: 2; stroke-linejoin: round; }
.chart-svg .area-a { fill: var(--series-a); opacity: .12; }
.chart-svg .line-b { fill: none; stroke: var(--series-b); stroke-width: 2; stroke-linejoin: round; }
.chart-svg .mark { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-svg .mark-label { fill: var(--text-2); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.chart-svg .panel-label { fill: var(--text-3); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.chart-svg .tick { font-family: var(--font); font-size: 10.5px; }
.chart-svg .cross { stroke: var(--text-3); stroke-width: 1; }
.chart-svg .dot-a { fill: var(--series-a); stroke: var(--panel); stroke-width: 2; }
.chart-svg .dot-b { fill: var(--series-b); stroke: var(--panel); stroke-width: 2; }
.chart-svg .bar-b { fill: var(--series-b); }
.chart-svg .bar-b.hl { fill: var(--series-a); }
.chart-svg .value-label { fill: var(--text-2); font-family: var(--font); font-size: 10.5px; }
.tooltip { width: 230px; border-radius: 2px; }
.tip-row b { min-width: 72px; font-family: var(--font); }

/* ── money flow + super bowl ── */
#mfTable { min-width: 560px; }
.sb-box { padding: 16px 20px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; line-height: 1.55; font-family: var(--font-body); }
.sb-box b { color: var(--text); font-weight: 600; }
.sb-box h4 { margin: 0 0 6px; color: var(--text-2); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sb-list { display: grid; gap: 4px; margin-top: 10px; }
.sb-list div { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font); font-size: 12.5px; color: var(--text-2); }

#holdTable { min-width: 760px; }

@media (max-width: 1120px) {
  .lookup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding: 52px 0 32px; }
  .kpi { padding: 16px; }
  .kpi strong { font-size: 32px; }
  .section { padding-top: 72px; }
  .wallet-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev { grid-template-columns: minmax(0, 1fr) auto; }
  .ev span:first-child { grid-column: 1 / -1; }
}
