/* jev-trader dashboard — direction A, "Control room".
   Lifted from docs/ui-spec.md §1 (which quotes design/jev-dashboard-designs.html).
   External stylesheet only: the page ships a strict CSP (style-src 'self'), so there is
   no inline <style> and no style="" attribute anywhere. Bar widths are set from JS
   through the CSSOM, from clamped numbers. */

/* ---------- fonts (ui-spec §5) ---------- */
@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}

/* ---------- tokens: dark is the designed default, light is the swap ---------- */
:root{
  color-scheme:dark;
  --bg:#131313;
  --surface:#1D1D1D;
  --surface-2:#232221;
  --text:#F2F2F0;
  --text-2:rgba(242,242,240,0.74);
  --muted:#8F8F8A;
  --hairline:rgba(242,242,240,0.14);
  --copper:#B87333;
  --copper-hi:#CB8F58;
  --copper-text:#CB8F58;
  --copper-line:rgba(184,115,51,0.30);
  --copper-line-2:rgba(184,115,51,0.55);
  --copper-wash:rgba(184,115,51,0.05);
  --copper-wash-2:rgba(184,115,51,0.13);
  --ghost:rgba(184,115,51,0.24);
  --success:#4F7F5A;
  --success-text:#7BAA87;
  --danger:#A94A3F;
  --danger-text:#D08478;
  --shadow:0 1px 1px rgba(0,0,0,0.32), 0 16px 38px -26px rgba(0,0,0,0.7);
  --ease:cubic-bezier(0.22,0.61,0.36,1);
  --r-card:16px;
  --r-inner:10px;
  --r-pill:999px;
  --ui:Satoshi,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --bg:#F3F3F3;
    --surface:#E7E7E7;
    --surface-2:#DEDEDD;
    --text:#161616;
    --text-2:rgba(22,22,22,0.72);
    /* ui-spec §1.2 quotes #7F7E7A from the mockup; it measures 3.29:1 on --surface and
       fails WCAG AA for the 10.5–12.5px secondary copy that carries every "why" on this
       page. Darkened to 5.27:1 on --surface, 4.92:1 over the copper wash. */
    --muted:#5F5E57;
    --hairline:rgba(22,22,22,0.14);
    --copper:#B87333;
    --copper-hi:#A0642E;
    --copper-text:#8A5527;
    --copper-line:rgba(184,115,51,0.38);
    --copper-line-2:rgba(184,115,51,0.62);
    --copper-wash:rgba(184,115,51,0.07);
    --copper-wash-2:rgba(184,115,51,0.16);
    --ghost:rgba(184,115,51,0.26);
    --success:#4F7F5A;
    --success-text:#3B6446;
    --danger:#A94A3F;
    --danger-text:#8B372D;
    --shadow:0 1px 1px rgba(22,22,22,0.07), 0 16px 38px -26px rgba(22,22,22,0.4);
  }
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F3F3F3;
  --surface:#E7E7E7;
  --surface-2:#DEDEDD;
  --text:#161616;
  --text-2:rgba(22,22,22,0.72);
  --muted:#5F5E57;   /* AA on --surface; see the note in the media-query block above */
  --hairline:rgba(22,22,22,0.14);
  --copper:#B87333;
  --copper-hi:#A0642E;
  --copper-text:#8A5527;
  --copper-line:rgba(184,115,51,0.38);
  --copper-line-2:rgba(184,115,51,0.62);
  --copper-wash:rgba(184,115,51,0.07);
  --copper-wash-2:rgba(184,115,51,0.16);
  --ghost:rgba(184,115,51,0.26);
  --success:#4F7F5A;
  --success-text:#3B6446;
  --danger:#A94A3F;
  --danger-text:#8B372D;
  --shadow:0 1px 1px rgba(22,22,22,0.07), 0 16px 38px -26px rgba(22,22,22,0.4);
}

/* ---------- base ---------- */
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--ui);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5{font-weight:300;margin:0;text-wrap:balance;letter-spacing:-0.01em}
p{margin:0}
em{font-style:italic}
a{color:var(--copper-text)}
:focus-visible{outline:2px solid var(--copper);outline-offset:2px;border-radius:4px}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:400}
.wrap{max-width:1240px;margin-inline:auto;padding-inline:16px;padding-block:0 72px}
[hidden]{display:none !important}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- header ---------- */
.bar{
  position:sticky;
  top:env(safe-area-inset-top, 0px);
  z-index:40;
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hairline);
}
.bar-in{
  max-width:1240px;margin-inline:auto;padding-inline:16px;
  padding-block:10px;
  display:flex;align-items:center;gap:12px 14px;flex-wrap:wrap;
}
.brandlock{display:flex;align-items:center;gap:11px;min-width:0}
.wordmark{color:var(--text);display:block;height:15px;width:auto}
.wordmark svg{display:block;height:100%;width:auto}
.lockrule{width:1px;height:18px;background:var(--hairline)}
.product{font-family:var(--mono);font-size:12.5px;color:var(--text-2);letter-spacing:0.01em;white-space:nowrap}
.spacer{flex:1 1 auto;min-width:0}

.paperbadge{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--copper);color:#131313;
  border-radius:var(--r-pill);
  padding:4px 12px 4px 10px;
  font-size:11.5px;font-weight:500;letter-spacing:0.09em;text-transform:uppercase;
  white-space:nowrap;
}
.paperbadge svg{display:block;flex:none}
.paperbadge.live{background:transparent;border:1px solid var(--danger);color:var(--danger-text)}
.paperbadge.live svg circle,.paperbadge.live svg path{stroke:currentColor}
.paperbadge.live svg circle[fill]{fill:currentColor}

.ghostbtn{
  font-family:var(--ui);font-size:12.5px;color:var(--text-2);
  background:transparent;border:1px solid var(--hairline);border-radius:var(--r-pill);
  padding:5px 13px;cursor:pointer;transition:border-color .18s var(--ease), color .18s var(--ease);
  white-space:nowrap;
}
.ghostbtn:hover{border-color:var(--copper-line-2);color:var(--text)}
.logout{display:inline-flex;margin:0}

/* the three views (owner request, 2026-09-22). Same pill grammar as .ghostbtn and the
   report tabs; the open one is marked the way the report tabs mark theirs, so the page
   has one vocabulary for "this is the one you are looking at". */
.viewtabs{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.viewtab[aria-selected="true"]{
  border-color:var(--copper);color:var(--copper-text);background:var(--copper-wash);
}

/* mode banners */
.modebar{
  border-bottom:1px solid var(--copper-line);
  background:var(--copper-wash);
}
.modebar-in{
  max-width:1240px;margin-inline:auto;padding-inline:16px;padding-block:9px;
  display:flex;gap:10px;align-items:flex-start;
  font-size:12.5px;color:var(--text-2);
}
.modebar-in strong{color:var(--copper-text);font-weight:500}
.modebar svg{flex:none;margin-top:2px}
/* "Catching up…" (2026-09-23): the page was asleep, not the bot. Neutral on purpose — no
   copper wash, no danger edge — because it says nothing about the bot either way. */
.modebar.modebar-quiet{border-bottom-color:var(--hairline);background:transparent}
.modebar-quiet .modebar-in strong{color:var(--text-2)}
.modebar-quiet svg{color:var(--muted)}

/* ---------- intro ---------- */
.intro{padding-block:44px 22px;max-width:660px}
.intro h1{font-size:clamp(28px,5vw,40px);line-height:1.15}
.intro p{margin-top:14px;color:var(--text-2);font-size:15.5px}
.switchrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:26px}
.switchhint{font-size:12.5px;color:var(--muted)}
.intro .switchhint{margin-top:10px;font-size:12.5px}
/* the one line that names the ETH price every dollar figure uses (2026-09-23) */
.intro .usdline{
  margin-top:8px;font-size:12.5px;color:var(--muted);
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
}
.usdcredit{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;color:var(--text-2);border:1px solid var(--hairline);
  border-radius:var(--r-pill);padding:2px 9px;white-space:nowrap;
}
.usdcredit::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--copper);flex:none}

/* ---------- shared card grammar ---------- */
.card{
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:var(--r-card);
  box-shadow:var(--shadow);
  padding:16px;
  min-width:0;
}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.card-h h3{font-size:14.5px;font-weight:500;letter-spacing:0}
.card-h h4{font-size:13px;font-weight:500;letter-spacing:0}
.card-h .aside{font-size:12px;color:var(--muted)}
.hint{font-size:12.5px;color:var(--muted);line-height:1.45}
.hint + .hint{margin-top:7px}
.microlabel{font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);font-weight:500}

/* a copper-outlined chip is this page's "needs attention" — never a yellow fill */
.chip{
  display:inline-flex;align-items:center;gap:6px;
  border-radius:var(--r-pill);padding:2px 10px;
  font-size:11.5px;line-height:1.7;white-space:nowrap;
}
.chip-ok{background:transparent;border:1px solid var(--hairline);color:var(--text-2)}
.chip-watch{background:var(--copper-wash);border:1px solid var(--copper-line-2);color:var(--copper-text)}
.chip-bad{background:transparent;border:1px solid var(--danger);color:var(--danger-text)}
.dot{width:7px;height:7px;border-radius:50%;flex:none;display:inline-block}
.dot-ok{background:var(--success)}
.dot-idle{background:var(--muted)}
.dot-bad{background:var(--danger)}

/* ---------- direction A ---------- */
.board{display:flex;flex-direction:column;gap:14px}
/* one view panel = one column of cards, in the order index.html writes them. The two
   panels that are not open carry the `hidden` attribute, so they are out of the reading
   order and the tab order and not merely moved off the screen (PLAN §9.9(i)). */
.view{display:flex;flex-direction:column;gap:14px;min-width:0}

/* cold start: the server is still reading the backlog (PLAN §9 D5) */
.catchnote{
  border:1px solid var(--copper-line-2);border-radius:var(--r-inner);
  background:var(--copper-wash);padding:10px 13px;
  font-size:12.5px;line-height:1.45;color:var(--text-2);
}
.catchnote b{color:var(--copper-text);font-weight:500}
.withheld{color:var(--muted)}

/* the slim "is it alive" line on Today. Three readings, each label in its own node and
   each value in its own node, so nothing on this line is two sentences joined. */
.healthline{display:flex;flex-wrap:wrap;gap:6px 26px;align-items:baseline}
.healthbit{display:flex;align-items:baseline;gap:9px;min-width:0}
.healthbit .microlabel{flex:none}
.healthval{
  font-family:var(--mono);font-size:16px;font-weight:500;
  letter-spacing:-0.01em;line-height:1.25;overflow-wrap:anywhere;
}
.healthval.tone-watch{color:var(--copper-text)}
.healthval.tone-bad{color:var(--danger-text)}
.healthmore{flex:none}

/* health readout strip */
.stripbox{display:flex;flex-direction:column;min-width:0;margin-top:13px}
/* the disclosure only exists on a phone, where the strip is collapsed by default */
.stripmore{display:none}
.strip{
  background:var(--surface);border:1px solid var(--hairline);border-radius:var(--r-card);
  box-shadow:var(--shadow);
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
}
/* the strip lives inside the Today health card now, so it drops the card chrome it used
   to need as a board-level block: a card drawn inside a card reads as a mistake */
.stripbox .strip{background:var(--surface-2);box-shadow:none;border-radius:var(--r-inner)}
.strip-cell{padding:13px 15px;border-left:1px solid var(--hairline);min-width:0}
.strip-cell:first-child{border-left:0}
.strip-cell .microlabel{display:block;margin-bottom:5px}
.readout{font-family:var(--mono);font-size:19px;font-weight:500;letter-spacing:-0.01em;line-height:1.2;display:flex;align-items:center;gap:7px}
.readout .unit{font-size:12px;font-weight:400;color:var(--muted)}
.readout.word{font-size:16px}
.readout.tone-watch{color:var(--copper-text)}
.readout.tone-bad{color:var(--danger-text)}
.strip-cell .sub{font-size:11.5px;color:var(--muted);margin-top:4px;line-height:1.35}
.sparkwrap{margin-top:5px;height:22px}
.sparkwrap svg{display:block;width:100%;height:22px}
.sparkwrap .serie{stroke-width:1.5}
.sparkwrap .endpt{stroke-width:1.5}
.meter{height:4px;border-radius:var(--r-pill);background:var(--hairline);margin-top:8px;overflow:hidden}
.meter i{display:block;height:100%;border-radius:var(--r-pill);background:var(--copper)}

.cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:start}
.col{display:flex;flex-direction:column;gap:14px;min-width:0}

/* money tiles */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--hairline);border:1px solid var(--hairline);border-radius:var(--r-inner);overflow:hidden}
.tile{background:var(--surface);padding:12px 13px;min-width:0}
.tile .microlabel{display:block;margin-bottom:6px}
.tile .big{font-family:var(--mono);font-size:22px;font-weight:500;line-height:1.1;letter-spacing:-0.015em}
/* the server hands the tiles finished sentences ("0.000 ETH committed"); they are never
   re-worded or re-rounded here, so a long value steps down a size instead of wrapping to
   three lines. */
.tile .big.sentence{font-size:16px;line-height:1.3;letter-spacing:-0.005em}
.tile .cap{font-size:11.5px;color:var(--muted);margin-top:5px}
.pos{color:var(--success-text)}
.neg{color:var(--danger-text)}

/* ---------- dollars beside ETH (owner request, 2026-09-23) ----------
   ETH is the figure; the dollar amount is its muted reading aid. The figures' own mono
   face, one step down, and never a colour of its own — not copper, not gold, not green or
   red: the sign belongs to the ETH figure it sits beside, which already carries it. */
.usd{
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:400;
  color:var(--muted);letter-spacing:0;text-transform:none;
  /* "≈ $265.90" is one figure: the "≈" never wraps onto a line of its own */
  white-space:nowrap;
}
/* under a big figure: its own line, so a phone never has to fit both on one */
.tile .usd,.lanetile .usd{display:block;font-size:12px;line-height:1.3;margin-top:3px}
/* under a table figure, the way the P&L percentage already rides under the ETH */
.ltable td .usd,.ptable td .usd{display:block;font-size:11px;line-height:1.35;margin-top:1px}
.sizetable th.sizearm .usd{display:block;font-size:11px;margin-top:2px}
/* after a sentence: inline, a small gap, no brackets */
.hint .usd,.emptybox p .usd,.card-h .aside .usd,.lanetile .cap .usd{display:inline;font-size:inherit;margin:0 0 0 .6ch}

/* preserveAspectRatio is "none", so an unbounded chart in a full-width card stretches to
   a quarter of the screen high. The cap is the width the chart had in the old 1.5fr
   column, so nothing about the drawing changed — only the box it is allowed to fill. */
.chartbox{margin-top:14px;max-width:820px}
.chartbox svg{display:block;width:100%;height:auto}
.chartbox.narrow{max-width:620px}
.chart-cap{font-size:12.5px;color:var(--muted);margin-top:9px;max-width:62ch}
.flatnote{
  margin-top:10px;border:1px dashed var(--copper-line-2);border-radius:var(--r-inner);
  background:var(--copper-wash);padding:10px 12px;font-size:13px;color:var(--text-2);
}

/* ---------- the practice run (simulated) ----------
   It used to sit under the real money tiles behind a dashed rule. It is its own card in
   the Experiments view now, so the dashed edge moved to the card: every card of real
   figures on this page is outlined in a solid hairline, and this one is not, because
   nothing in it ever happened. */
.practicecard{border-style:dashed;border-color:var(--copper-line-2)}
.whatif .card-h{margin-bottom:8px}
.whatif .tiles{margin-top:2px}
.whatif .chartbox{margin-top:13px}
.segrow{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0 13px}
.seg{
  display:inline-flex;gap:2px;padding:2px;min-width:0;
  border:1px solid var(--hairline);border-radius:var(--r-pill);background:var(--surface-2);
}
.segbtn{
  font-family:var(--ui);font-size:12px;line-height:1.2;color:var(--text-2);
  background:transparent;border:0;border-radius:var(--r-pill);
  padding:8px 14px;min-height:34px;cursor:pointer;white-space:nowrap;
}
.segbtn:hover{color:var(--text)}
.segbtn[aria-pressed="true"]{
  background:var(--copper-wash-2);color:var(--copper-text);
  box-shadow:inset 0 0 0 1px var(--copper-line-2);
}
.segbtn:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.whatif-disclaim{
  margin-top:9px;border-left:2px solid var(--copper-line-2);padding-left:10px;
  color:var(--text-2);max-width:74ch;
}

/* the gate ladder — the signature */
.ladder{display:flex;flex-direction:column;gap:2px}
.rung{padding:9px 0;border-bottom:1px solid var(--hairline)}
.rung:last-child{border-bottom:0}
.rung-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.rung-name{font-size:13.5px;color:var(--text)}
.rung-n{font-family:var(--mono);font-size:15px;font-weight:500;white-space:nowrap}
.rung-n .share{font-size:11px;color:var(--muted);font-weight:400;margin-left:7px}
.track{
  position:relative;height:12px;margin-top:7px;
  border-radius:3px;background:var(--surface-2);
  border:1px solid var(--hairline);overflow:hidden;
}
.track .ghost{position:absolute;inset:0 auto 0 0;background:var(--ghost)}
.track .fill{position:absolute;inset:0 auto 0 0;background:var(--copper);border-radius:0 3px 3px 0;min-width:2px}
.track-zero{border-style:dashed;border-color:var(--copper-line-2)}
.rung-lost{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.45;max-width:72ch}
.rung-lost b{color:var(--text-2);font-weight:500}
.ladder-legend{font-size:11.5px;color:var(--muted);margin-top:12px;padding-top:11px;border-top:1px solid var(--hairline)}

/* reason bars */
.reasons{display:flex;flex-direction:column;gap:9px}
.reason{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:center}
.reason-l{min-width:0}
.reason-name{font-size:12.5px;color:var(--text-2);line-height:1.3}
.rbar{height:6px;border-radius:3px;background:var(--surface-2);margin-top:5px;overflow:hidden}
.rbar i{display:block;height:100%;background:var(--copper);border-radius:0 3px 3px 0;min-width:2px}
.reason-n{font-family:var(--mono);font-size:13px;text-align:right;color:var(--text)}

/* jev verdict */
.verdict{border:1px solid var(--copper-line-2);background:var(--copper-wash);border-radius:var(--r-inner);padding:14px}
.verdict h4{font-size:17px;font-weight:300;line-height:1.3}
.verdict p{font-size:13px;color:var(--text-2);margin-top:7px}
.ticks{display:flex;gap:2px;margin-top:13px;height:18px}
.ticks i{flex:1 1 0;background:var(--hairline);border-radius:1px}
.ticks i.on{background:var(--copper)}
.ticks-cap{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--muted);margin-top:6px}

.splitbar{display:flex;gap:2px;height:14px;margin-top:4px}
.splitbar i{border-radius:2px;min-width:3px}
.s-1{background:var(--copper)}
.s-2{background:var(--copper-line-2)}
.s-3{background:var(--copper-wash-2);border:1px solid var(--copper-line)}
.s-4{background:transparent;border:1px dashed var(--muted)}
.s-5{background:transparent;border:1px dashed var(--copper-line-2)}
.s-6{background:transparent;border:1px solid var(--danger)}
.keys{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:11px}
.key{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-2)}
.key span.sw{width:10px;height:10px;border-radius:2px;flex:none}
.key b{font-family:var(--mono);font-weight:500;color:var(--text)}
.subblock{margin-top:16px;padding-top:14px;border-top:1px solid var(--hairline)}

/* skipped-return horizons: one block per horizon, each carrying its own n (PLAN §9 D6) */
.skiphz{display:flex;flex-direction:column;gap:10px}
.skiphz .hz{min-width:0}
.skiphz .hz-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.skiphz .hz-h h5{font-size:12px;font-weight:500;color:var(--text-2);letter-spacing:0}
.skiphz .hz-n{font-size:11.5px;color:var(--muted);white-space:nowrap}
.skiphz .hz-t{font-size:12.5px;color:var(--text-2);line-height:1.45;margin-top:3px}
.skiphz .hz-note{font-size:11.5px;color:var(--muted);line-height:1.45;margin-top:3px}

/* decision feed */
.feed{display:flex;flex-direction:column}
.fr{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:11px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--hairline)}
.fr:last-child{border-bottom:0}
.fr .t{font-family:var(--mono);font-size:12px;color:var(--muted)}
.fr .what{font-size:13px;color:var(--text);min-width:0;line-height:1.4}
.fr .what em{font-style:italic;color:var(--copper-text)}
/* the secondary remark sits under the headline, never repeating it */
.fr .what .remark{display:block;font-size:12px;color:var(--text-2);line-height:1.4;margin-top:2px}
.fr .what .remark:empty{display:none}
.fr .what .pool{font-family:var(--mono);font-size:11.5px;color:var(--copper-text);display:block;margin-top:2px}
.fr .why{font-size:12px;color:var(--muted)}

/* positions */
.emptybox{
  border:1px dashed var(--hairline);border-radius:var(--r-inner);
  padding:20px 16px;text-align:center;
}
.emptybox .big{font-family:var(--mono);font-size:19px;color:var(--text-2)}
.emptybox p{font-size:12.5px;color:var(--muted);margin-top:6px}
.ptable{width:100%;border-collapse:collapse;font-size:12.5px}
.ptable th{text-align:left;font-weight:500;font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);padding:0 8px 7px 0;border-bottom:1px solid var(--hairline)}
.ptable td{padding:8px 8px 8px 0;border-bottom:1px solid var(--hairline);font-family:var(--mono);font-variant-numeric:tabular-nums}
.ptable td:first-child{font-family:var(--ui)}
.ptable tr:last-child td{border-bottom:0}
.tablescroll{overflow-x:auto}

/* ================= the two lanes (owner request, 2026-09-22) =================
   "Very clearly what are the NEW PAIRS we are sniping and what are the actual trades we are
   doing for TRENDING coins." The two boxes therefore have to be told apart at a glance and
   before a word is read, so each one carries a 3px spine in its own weight: solid copper for
   a lane that is trading, a ghosted copper for a lane that is only being watched, and the
   neutral rule for anything the page could not file. Copper and the hairline only: the gold
   accent the brand reserves for warnings is deliberately not used anywhere in this block. */
/* `align-items:start` so a lane that is only watching does not inherit the height of a lane
   with five trades in it and print half a card of empty surface under its last sentence */
.lanegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;align-items:start}
.lanebox{
  border:1px solid var(--hairline);border-left:3px solid var(--copper);
  border-radius:var(--r-inner);background:var(--surface-2);padding:14px;min-width:0;
}
.lanebox[data-lane="trending"]{border-left-color:var(--copper-line-2)}
.lanebox[data-lane="trending"][data-trading="yes"]{border-left-color:var(--copper)}
.lanebox[data-lane="other"]{border-left-color:var(--muted)}
.lanebox[data-trading="no"]{background:transparent}
.lane-h{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lane-h h4{font-size:15px;font-weight:500;letter-spacing:-0.005em}
.lane-sub{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.45}
.lanepill{
  display:inline-flex;align-items:center;gap:6px;flex:none;
  font-size:11px;padding:3px 10px;border-radius:var(--r-pill);white-space:nowrap;
  border:1px solid var(--copper-line-2);color:var(--copper-text);background:var(--copper-wash);
}
.lanepill.watch{border-style:dashed;background:transparent;color:var(--muted);border-color:var(--hairline)}
.lanepill .sw{width:7px;height:7px;border-radius:50%;background:var(--copper);flex:none}
.lanepill.watch .sw{background:var(--muted)}
/* a small inline lane label for the panels that only cover ONE lane */
.lanetag{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;padding:2px 9px;border-radius:var(--r-pill);white-space:nowrap;
  border:1px solid var(--copper-line);color:var(--copper-text);background:var(--copper-wash);
}
.lanetag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--copper);flex:none}
.lanetag.all{border-color:var(--hairline);color:var(--text-2);background:transparent}
.lanetag.all::before{background:var(--muted)}
/* the same idea inside a table cell: which lane one holding belongs to */
.lanechip{
  display:inline-block;margin-left:7px;font-family:var(--ui);font-size:10.5px;
  padding:1px 7px;border-radius:var(--r-pill);white-space:nowrap;
  border:1px solid var(--copper-line);color:var(--copper-text);
}
.lanechip.lane-other{border-color:var(--hairline);color:var(--muted)}
/* auto-fit at a 128px floor: four tiles across while a lane box is wide, two when a third
   lane appears beside it or the viewport is a phone. A hard `repeat(4,...)` clipped
   "-0.0115 ETH" the moment the Other lane showed up; a 150px floor left a dangling fourth
   tile on its own row in the two-lane layout. 128 + a 16px readout fits both. */
.lanetiles{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:1px;margin-top:12px;
  background:var(--hairline);border:1px solid var(--hairline);border-radius:var(--r-inner);overflow:hidden;
}
.lanetile{background:var(--surface);padding:10px 11px;min-width:0}
.lanebox[data-trading="no"] .lanetile{background:var(--surface)}
.lanetile .microlabel{display:block;margin-bottom:5px}
.lanetile .big{
  font-family:var(--mono);font-size:16px;font-weight:500;line-height:1.2;
  letter-spacing:-0.015em;overflow-wrap:anywhere;
}
.lanetile .cap{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.35}
.lanesec{margin-top:13px}
.lanesec > h5{
  font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);
  font-weight:500;margin:0 0 7px;
}
.ltable{width:100%;border-collapse:collapse;font-size:12px}
.ltable th{
  text-align:left;font-weight:500;font-size:10px;letter-spacing:0.09em;text-transform:uppercase;
  color:var(--muted);padding:0 8px 6px 0;border-bottom:1px solid var(--hairline);white-space:nowrap;
}
.ltable td{
  padding:7px 7px 7px 0;border-bottom:1px solid var(--hairline);
  font-family:var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap;
}
/* the cells that are sentences, not measurements, are the only ones allowed to wrap */
.ltable td:first-child,.ltable td.word{font-family:var(--ui)}
.ltable td.word{white-space:normal;min-width:11ch}
.ltable th:last-child,.ltable td:last-child{padding-right:0}
.ltable td.pnl{text-align:right;padding-right:11px}
.ltable td.pnl + td.word{padding-left:2px}
.ltable .pnlpct{display:block;font-size:11px;opacity:.75;font-family:var(--mono)}
.ltable tbody tr:last-child td{border-bottom:0}
.ltable .tokcell{max-width:15ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ltable tfoot td{border-top:1px solid var(--copper-line);border-bottom:0;padding-top:8px;font-weight:500}
.ltable tfoot td:first-child{font-family:var(--ui)}
.ltable .rest td{color:var(--muted);border-bottom:0}
.lane-empty{
  border:1px dashed var(--hairline);border-radius:var(--r-inner);
  padding:14px;font-size:12.5px;color:var(--muted);line-height:1.5;
}
.stuckbox{
  margin-top:12px;border:1px solid var(--danger);border-radius:var(--r-inner);
  padding:11px 12px;font-size:12.5px;color:var(--text-2);line-height:1.5;
}
.stuckbox.clear{border-color:var(--hairline);color:var(--muted)}
.stuckbox b{color:var(--danger-text);font-weight:500;display:block;margin-bottom:4px}
.stuckbox.clear b{color:var(--text-2)}
.stuckbox ul{list-style:none;margin:7px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.stuckbox li{font-size:12px;color:var(--muted)}
.stuckbox li b{display:inline;color:var(--text-2);font-family:var(--ui)}
/* the radar state machine: shown only while the trending lane has no trades of its own */
.radarbox{margin-top:13px;border-top:1px dashed var(--copper-line-2);padding-top:12px}
.radarbox .dl{margin-top:9px}
.radarcredit{
  display:inline-flex;align-items:center;gap:6px;margin-top:10px;
  font-size:11px;color:var(--text-2);border:1px solid var(--hairline);
  border-radius:var(--r-pill);padding:3px 10px;
}
.radarcredit .sw{width:7px;height:7px;border-radius:50%;background:var(--copper);flex:none}
/* the per-lane money split under the Money tiles */
.lanesplit{margin-top:16px;padding-top:14px;border-top:1px solid var(--hairline)}
.lanesplit .card-h{margin-bottom:9px}
.lanesplit .card-h h4{font-size:13px;font-weight:500;color:var(--text)}

/* ================= the size test (owner direction, 2026-09-22) =================
   Four stakes as four columns, the six things worth knowing as six rows. It borrows the
   lane tables' grammar wholesale — same .ltable, same copper, same "only a sentence is
   allowed to wrap" rule — so a reader who has learned one table has learned this one.
   Copper is the only accent; green and red appear on the two money rows and nowhere
   else, and never on a cell whose figure is missing. */
.sizetable{margin-top:2px}
/* A data cell is a figure, in the same mono register as the Money tiles, so four columns
   can be compared at a glance. The server's whole sentence about that figure is the
   cell's title=, and the sentence about the ROW is printed once under the row's name —
   it used to be the cell text, four times across, saying the same thing about four
   different numbers. */
.sizetable td{white-space:normal;text-align:left;min-width:8ch;padding-right:14px}
.sizetable td .big{
  font-family:var(--mono);font-size:15px;font-weight:500;line-height:1.2;
  letter-spacing:-0.01em;white-space:nowrap;
}
.sizetable th.sizearm{vertical-align:bottom;white-space:normal;min-width:8ch}
.sizetable th.sizearm .armlabel{display:block;font-family:var(--ui);font-size:12px;color:var(--text-2);text-transform:none;letter-spacing:0}
/* the control arm is the size the bot trades today, so it is the column to read against */
.sizetable th.sizearm.control .armlabel{color:var(--copper-text)}
.sizetable th.sizearm .microlabel{display:block;margin-top:3px}
.sizetable td.sizecorner{border-bottom:1px solid var(--hairline);padding:0 8px 6px 0}
.sizetable th.sizerow{
  text-align:left;font-family:var(--ui);font-weight:400;font-size:12px;color:var(--text-2);
  text-transform:none;letter-spacing:0;white-space:normal;min-width:18ch;max-width:34ch;
  padding:7px 14px 7px 0;border-bottom:1px solid var(--hairline);vertical-align:top;
}
.sizetable .rowname{font-size:12.5px;color:var(--text-2)}
/* the one sentence that explains the row, printed once and never per cell */
.sizetable .rownote{font-size:11px;color:var(--muted);line-height:1.45;margin-top:3px}
.sizetable tbody tr:last-child th,.sizetable tbody tr:last-child td{border-bottom:0}
.sizetable td{vertical-align:top}
.sizetable .meter{margin-top:6px;max-width:14ch}
/* the self-check is a whole sentence, not a one-word pill: it keeps the chip's outline
   and its register, and gives up the chip's no-wrap so it cannot run off a phone */
.sizecheck{margin-top:12px}
.sizecheck .chip{white-space:normal}
.sizemeta{margin-top:8px;line-height:1.5}
.sizemeta:empty{display:none}
/* the trending size test (2026-09-24): the same table; its coverage box sits ABOVE it, one
   paragraph per fact, because what could not be measured is read before any figure */
.trendcov p + p{margin-top:6px}
#trendcard .tablescroll{margin-top:10px}
/* words, not figures ("not enough data"), may wrap on a phone; figures keep their no-wrap */
#trendcard .sizetable td.wordy .big{white-space:normal}
/* the one line under the trending lane that points at it, and the button that opens the view */
.lanept{margin-top:12px;padding-top:10px;border-top:1px dashed var(--hairline)}
.lanelink{
  font-family:var(--ui);font-size:12px;line-height:1.2;color:var(--copper-text);
  background:transparent;border:1px solid var(--copper-line-2);border-radius:var(--r-pill);
  padding:5px 12px;min-height:30px;cursor:pointer;white-space:nowrap;margin-top:4px;
}
.lanelink:hover{border-color:var(--copper)}
.lanelink:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
#sizes-verdict{margin-top:12px}
#sizes-verdict p + p{margin-top:6px}
#sizes-empty{margin-bottom:12px}

/* ================= market today (PLAN §9.15, 2026-09-24) =================
   One slim line above everything else in Today: a reading aid, so a hairline card with less
   padding than the others. Up and down are the page's own money colours; nothing else is tinted. */
.marketstrip{padding:11px 16px}
.marketstrip > .microlabel{display:block;margin-bottom:5px}
.mk-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px}
.mk-eth{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.mk-eth b{font-weight:500}
.mk-price,.mk-change{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:15px}
.mk-na,.mk-btc{color:var(--muted);font-size:13px}
.mk-jev{font-size:13.5px;color:var(--text-2)}
.marketstrip .hint{margin-top:6px}
.mk-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}

/* ================= real money (PLAN §9.12, the first real-money test, 2026-09-24) =================
   The one card on the page that is not paper, and it has to be told apart before a word is read:
   a solid outline and a 3px spine in the danger colour the header's LIVE MONEY badge already
   uses, where every paper card has a hairline and the practice run a dashed copper one. Green and
   red still mean only money up and money down; "needs attention" is still copper, never gold. */
.realcard{border-color:var(--danger);border-left-width:3px}
.realcard .card-h{align-items:center}
.realchip{font-weight:500;letter-spacing:0.12em}
.realrun{font-size:13.5px;color:var(--text-2);margin-bottom:6px;line-height:1.5}
.realrun.tone-bad{color:var(--danger-text)}
.realtiles{margin-top:12px}
.realtiles + .hint{margin-top:9px}
.tile .big.tone-bad{color:var(--danger-text)}
#real-attention .stuckbox li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
#real-attention .stuckbox li .chip{font-size:10.5px;line-height:1.6;padding:0 8px}
#real-attention .stuckbox li .rp-att{flex-basis:100%}
.realpos{
  border:1px solid var(--hairline);border-radius:var(--r-inner);background:var(--surface-2);
  padding:11px 12px;min-width:0;
}
.realpos + .realpos{margin-top:9px}
.realpos.tone-bad{border-color:var(--danger)}
.realpos.tone-watch{border-color:var(--copper-line-2)}
.rp-h{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px}
.rp-coin{font-weight:500;font-size:14px;overflow-wrap:anywhere}
.realpos .tokflag{color:var(--muted);font-style:italic}
.rp-h .chip{margin-left:auto}
.rp-figs{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px 14px;margin-top:9px;
}
.rp-fig .microlabel{display:block;margin-bottom:3px}
.rp-val{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.rp-fig .usd{display:block;font-size:11px;line-height:1.35;margin-top:1px}
.rp-note{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.35}
.rp-explain,.rp-verified{font-size:12.5px;color:var(--text-2);margin-top:8px;line-height:1.5}
.realpos.tone-bad .rp-explain{color:var(--danger-text)}
.rp-verified{color:var(--muted)}
.rp-verified.tone-watch,.txver.tone-watch{color:var(--copper-text)}
.txlist{list-style:none;margin:9px 0 0;padding:8px 0 0;border-top:1px dashed var(--hairline);display:flex;flex-direction:column;gap:5px}
.txlist li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0;font-size:12px;color:var(--muted)}
/* the separators are drawn here, so the page never writes a word of its own between the server's */
.txlist li > span + span::before,.txlist li > span + a::before,.txlist li > span + .txid::before{content:"\00B7";margin:0 7px;color:var(--muted)}
.txkind{color:var(--text-2);font-weight:500}
.txlink,.txid{font-family:var(--mono);font-size:11.5px;overflow-wrap:anywhere}
.txlink{color:var(--copper-text);text-decoration:underline;text-underline-offset:2px}
.txlink::after{content:" \2197"}
.txid{color:var(--muted)}

/* ================= flip60 (research/53, ui-spec §2.17, 2026-09-29) =================
   A hairline card like every paper card, under Real money. The answer is the headline box at the
   top (its sentence, a dot and a 3px spine in its tone); the lights below are chips, each with its
   word in it, so colour is never the only signal. Tones: OK green (--success; on this card, and
   only in the lights, green means "this rule holds" — owner-approved design 2026-09-29), STOP red
   (--danger), "not yet" / stale copper (the page's amber — never the gold), no data grey. A light
   this page cannot judge is a DASHED grey chip with "checked on the PC only" beside it: it can
   never be read as a pass. The money tiles keep the page's own money colours. */
/* Contrast (review C, L5; measured in headless Chromium, both themes). The copper words on this card
   are --copper-text, one step darker in light: there the inner boxes are --surface-2, and plain
   --copper-text on the copper wash measured 4.29:1 at 10.5 px. The dots and the speed bar take their
   tone's text colour (3:1 or better against what they sit on), and the keyboard ring is
   --copper-text too (plain --copper is 2.82:1 on --surface-2 in light). */
.flip60card{--f60-watch-ink:var(--copper-text)}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]) .flip60card{--f60-watch-ink:color-mix(in srgb, var(--copper-text) 85%, var(--text))}
}
:root[data-theme="light"] .flip60card{--f60-watch-ink:color-mix(in srgb, var(--copper-text) 85%, var(--text))}
.flip60card :focus-visible{outline-color:var(--copper-text)}
.flip60card .dot-ok{background:var(--success-text)}
.flip60card .dot-watch{background:var(--copper-text)}
.flip60card .dot-bad{background:var(--danger-text)}
.flip60card .card-h{align-items:baseline}
/* waiting: the header and the waiting sentence only, so no gap is left under them */
.flip60card[data-state="waiting"] .card-h{margin-bottom:0}
.f60-intro{margin-top:-4px;max-width:96ch}
.f60head{
  display:flex;align-items:flex-start;gap:11px;margin-top:12px;
  border:1px solid var(--hairline);border-left-width:3px;border-radius:var(--r-inner);
  background:var(--surface-2);padding:11px 14px;
}
.f60head .dot{width:9px;height:9px;margin-top:8px}
.f60head p{font-size:16.5px;line-height:1.45;font-weight:500;color:var(--text);min-width:0;overflow-wrap:anywhere}
.f60head.tone-ok{border-color:var(--success)}
.f60head.tone-watch{border-color:var(--copper-line-2);background:var(--copper-wash)}
.f60head.tone-bad{border-color:var(--danger)}
.f60head.tone-bad p{color:var(--danger-text)}
.dot-watch{background:var(--copper)}
/* the reading state: neutral while still reading, copper when stale or incomplete */
.f60banner{
  margin-top:8px;border:1px solid var(--hairline);border-radius:var(--r-inner);
  padding:8px 12px;font-size:12.5px;line-height:1.45;color:var(--text-2);
}
.f60banner.tone-watch{border-color:var(--copper-line-2);background:var(--copper-wash);color:var(--f60-watch-ink)}
.f60banner.tone-bad{border-color:var(--danger);color:var(--danger-text)}
.f60pcline{
  margin-top:9px;font-size:12.5px;line-height:1.45;color:var(--text-2);overflow-wrap:anywhere;
  border-left:2px solid var(--hairline);padding-left:10px;
}
.f60-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:2px 0}
/* the separator is drawn here, so the page writes no word between the server's two sentences */
.f60-meta span:not([hidden]) + span:not([hidden])::before{content:"\00B7";margin:0 8px;color:var(--muted)}

/* min(…,100%): on a 320 px phone the card is ~250 px inside, narrower than a 320 / 300 px track,
   so the track shrinks to the card instead of pushing the section out of it (review C, L4) */
.f60grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:12px;margin-top:12px;align-items:start}
.f60lights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:12px;margin-top:12px;align-items:start}
.f60grid > .f60sec,.f60group{
  border:1px solid var(--hairline);border-radius:var(--r-inner);background:var(--surface-2);
  padding:12px 14px;min-width:0;
}
.f60sec > h4,.f60group > h4{
  font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);
  font-weight:500;margin:0 0 8px;
}
/* full --muted, no opacity: 4.5:1 or better on --surface-2 in both themes (review C, L5) */
.f60range{margin-left:5px;font-family:var(--mono);letter-spacing:0.02em;color:var(--muted)}
.f60lead{font-size:14px;color:var(--text);line-height:1.45}
.f60list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--text-2);line-height:1.45}
.f60list:not(.f60facts) > li{padding-left:13px;position:relative}
.f60list:not(.f60facts) > li::before{content:"";position:absolute;left:2px;top:.78em;width:5px;height:1px;background:var(--muted)}
.f60facts{margin-top:10px;padding-top:9px;border-top:1px dashed var(--hairline);gap:6px}
/* one sentence with its tone dot in front */
.f60fact{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.45;color:var(--text-2)}
.f60fact > .dot{margin-top:6px}
.f60fact > span:last-child{min-width:0;overflow-wrap:anywhere}
.f60fact.tone-watch{color:var(--f60-watch-ink)}
.f60fact.tone-bad{color:var(--danger-text)}

/* speed: a bar from 0 to twice the 5 s target, the target mark in the middle */
.f60bar{position:relative;margin-top:11px;padding-bottom:17px;max-width:460px}
.f60track{position:relative;height:8px;border-radius:var(--r-pill);background:var(--hairline)}
.f60track i{display:block;height:100%;border-radius:var(--r-pill);background:var(--muted);min-width:2px}
.f60track i.tone-ok{background:var(--success-text)}
.f60track i.tone-watch{background:var(--copper-text)}
.f60track i.tone-bad{background:var(--danger-text)}
.f60mark{position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;margin-left:-1px;border-radius:1px;background:var(--text-2)}
.f60marklabel{
  position:absolute;left:50%;top:13px;transform:translateX(-50%);
  font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);white-space:nowrap;
}
.f60bar + .hint{margin-top:4px}
.f60stages{margin-top:9px}
.f60stages summary{
  cursor:pointer;display:inline-flex;align-items:center;gap:7px;min-height:30px;
  font-size:12.5px;color:var(--copper-text);list-style:none;
}
.f60stages summary::-webkit-details-marker{display:none}
/* the disclosure's own triangle, drawn here because an inline-flex summary drops the native one */
.f60stages summary::before{
  content:"";width:0;height:0;border-style:solid;border-width:4px 0 4px 6px;
  border-color:transparent transparent transparent currentColor;transition:transform .15s var(--ease);
}
.f60stages[open] > summary::before{transform:rotate(90deg)}
.f60stages ol{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column}
.f60stages li{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:1px 14px;
  padding:5px 0;border-top:1px dashed var(--hairline);font-size:12.5px;
}
.f60stage{color:var(--text-2)}
.f60stagetext{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11.5px;color:var(--muted)}

/* the lights: one row per rule — id, label, the chip with its word, then the reason */
.f60verdict{margin-bottom:6px}
.f60rules{list-style:none;margin:0;padding:0}
.f60rule{padding:8px 0;border-top:1px solid var(--hairline)}
.f60rule-h{display:flex;align-items:flex-start;gap:4px 8px}
.f60id{flex:none;width:22px;padding-top:2px;font-family:var(--mono);font-size:11px;color:var(--muted)}
.f60label{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.4;color:var(--text)}
.f60chip{flex:none;margin-left:auto;font-size:10.5px;font-weight:500;letter-spacing:0.05em;line-height:1.75;padding:0 9px}
.f60chip.tone-ok{border:1px solid var(--success);color:var(--success-text);background:transparent}
.f60chip.tone-bad{border:1px solid var(--danger);color:var(--danger-text);background:color-mix(in srgb, var(--danger) 14%, transparent)}
.f60chip.tone-watch{border:1px solid var(--copper-line-2);color:var(--f60-watch-ink);background:var(--copper-wash)}
.f60chip.tone-idle{border:1px solid var(--hairline);color:var(--muted);background:transparent}
.f60chip.tone-pc{border:1px dashed var(--muted);color:var(--muted);background:transparent}
.f60pctag,.f60reason{display:block;margin:3px 0 0 30px}
.f60pctag{font-size:11px;font-style:italic;color:var(--muted)}
.f60reason{font-size:12px;line-height:1.45;color:var(--muted)}
.f60rule.tone-bad .f60reason{color:var(--danger-text)}
.f60rule.tone-watch .f60reason{color:var(--f60-watch-ink)}
.f60brake{margin-top:8px;padding-top:9px;border-top:1px dashed var(--hairline);font-size:12.5px}

/* money: the day at the live caps first, ETH and its dollar reading side by side */
.f60money,.f60days{margin-top:16px;padding-top:14px;border-top:1px solid var(--hairline)}
.f60money > h4,.f60days > h4{margin-bottom:6px}
.f60money .hint + .f60tiles{margin-top:10px}
.f60tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:8px}
.f60tile{border:1px solid var(--hairline);border-radius:var(--r-inner)}
.f60tile[data-key="capped"]{border-color:var(--copper-line-2)}
.f60fig{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.f60tile .big{font-size:18px}
.f60tile .f60fig .usd{display:inline;font-size:12px;margin:0}
.f60tile .cap{line-height:1.4}
.f60tiles + .hint{margin-top:10px}
.f60daylist{list-style:none;margin:0;padding:0}
.f60daylist li{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 14px;
  padding:7px 0;border-top:1px solid var(--hairline);font-size:12.5px;line-height:1.45;color:var(--text-2);
}
.f60daylist li:first-child{border-top:0}
.f60daytext{min-width:0;flex:1 1 30ch}
.f60daylist .usd{font-size:12px}
.f60-reach{margin-top:12px}
@media (max-width:720px){
  /* a phone reads the rules line and the window line as two lines, never a stray separator */
  .f60-meta{flex-direction:column;gap:3px}
  .f60-meta span:not([hidden]) + span:not([hidden])::before{content:none}
  .f60head{padding:10px 12px}
  .f60head p{font-size:15.5px}
  .f60grid > .f60sec,.f60group{padding:11px 12px}
}

/* report */
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:13px}
.tabs button{
  font-family:var(--ui);font-size:12px;color:var(--text-2);
  background:transparent;border:1px solid var(--hairline);border-radius:var(--r-pill);
  padding:4px 12px;cursor:pointer;transition:border-color .18s var(--ease),color .18s var(--ease);
}
.tabs button:hover{border-color:var(--copper-line-2)}
.tabs button[aria-selected="true"]{border-color:var(--copper);color:var(--copper-text);background:var(--copper-wash)}
.rep p{font-size:13.5px;color:var(--text-2);max-width:72ch}
.rep p + p{margin-top:9px}
.rep .num{color:var(--text)}
.dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin-top:11px;font-size:13px}
.dl dt{color:var(--muted)}
.dl dd{margin:0;font-family:var(--mono);font-variant-numeric:tabular-nums}
.dl dd.plain{font-family:var(--ui);color:var(--text-2)}

/* the report is rendered as plain text in a <pre>: no markdown renderer in v1 */
.reppre{
  font-family:var(--mono);font-size:11.5px;line-height:1.55;color:var(--text-2);
  white-space:pre;margin:0;max-height:420px;overflow:auto;overscroll-behavior:contain;
  background:var(--surface-2);border:1px solid var(--hairline);border-radius:var(--r-inner);
  padding:12px;scrollbar-gutter:stable;
}

/* ---------- svg chart text ---------- */
.ax{font-family:var(--mono);font-size:9px;fill:var(--muted)}
.ax-r{text-anchor:end}
.grid{stroke:var(--hairline);stroke-width:1}
.zero{stroke:var(--hairline);stroke-width:1;stroke-dasharray:3 3}
.serie{fill:none;stroke:var(--copper);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.serie-area{fill:var(--copper-wash-2);stroke:none}
.endpt{fill:var(--copper);stroke:var(--surface);stroke-width:2}
.lbl{font-family:var(--mono);font-size:10px;fill:var(--text)}

/* ---------- live feed: expandable rows, scroller, staleness ---------- */
.feedwrap{max-height:520px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.fr{cursor:pointer}
.fr:hover{background:var(--copper-wash)}
.fr[aria-expanded="true"]{background:var(--copper-wash)}
.fr .caret{font-family:var(--mono);font-size:11px;color:var(--muted);margin-left:8px}
.fr .why{display:inline-flex;align-items:baseline;white-space:nowrap}
.why-watch .whytext{color:var(--copper-text)}
.why-bad .whytext{color:var(--danger-text)}
.fr .tokflag{color:var(--muted);font-family:var(--ui);font-style:italic;margin-left:7px}
.frx{grid-column:1/-1;padding:4px 0 10px;display:grid;gap:12px}
.frx section{border-left:2px solid var(--copper-line);padding-left:11px}
.frx h5{font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);font-weight:500;margin:0 0 6px}
.frx h6{font-size:12px;font-weight:500;margin:10px 0 5px;color:var(--text-2)}
.frx .kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 12px;font-size:12.5px}
.frx .kv dt{color:var(--muted)}
.frx .kv dd{margin:0;color:var(--text-2)}
.frx .kv dd.dim{color:var(--muted);font-style:italic}
.frx .gates{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:7px}
.frx .gate{font-family:var(--mono);font-size:10.5px;padding:1px 7px;border-radius:var(--r-pill);border:1px solid var(--hairline);color:var(--muted)}
.frx .gate.pass{border-color:var(--copper-line);color:var(--copper-text)}
/* the one gate that stopped this candidate — solid danger outline, filled, never grey */
.frx .gate.fail{border-color:var(--danger);color:var(--danger-text);background:var(--copper-wash);font-weight:500}
.frx .gate.skip{border-style:dashed}
/* "we were not told" is not the same as "never reached" */
.frx .gate.unknown{border-style:dotted}
.frx .gatelegend{font-size:11px;color:var(--muted);margin-top:2px;margin-bottom:7px;line-height:1.45}
/* D3: printed only when no rung could be marked as the one that stopped the candidate,
   so a row of grey chips is never left to be read as "nothing went wrong". */
.frx .gatenote{font-size:12px;color:var(--text-2);line-height:1.45}
.frx p{font-size:12.5px;color:var(--text-2);line-height:1.45}
.frx p + p{margin-top:6px}
/* R-S4: a detail whose refresh failed keeps what it had and says so, once, above it.
   Calm copper — this is an honesty note, not an alarm, and nothing below it is hidden.
   The 0.07 wash, not the 0.13 one: --copper-text measures 4.64:1 over this and 4.37:1
   over the darker wash, and this note is 12px. */
.frx .staleflag{font-size:12px;color:var(--copper-text);line-height:1.45;background:var(--copper-wash);border:1px solid var(--copper-line);border-radius:var(--r-inner);padding:7px 10px}
.frx .steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
/* child combinator: the nested ul.lines inside a step must NOT inherit the 58px
   time column, or every detail sentence renders one word per line (UX-4) */
.frx .steps > li{font-size:12.5px;color:var(--text-2);display:grid;grid-template-columns:58px minmax(0,1fr);gap:11px}
.frx .steps > li > .when{font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.frx .steps .term{color:var(--copper-text)}
.frx .lines{margin:4px 0 0;padding-left:16px;font-size:12.5px;color:var(--muted)}
.frx .callhead{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:11.5px;color:var(--muted);margin-bottom:6px}
.frx .callhead b{font-family:var(--ui);font-weight:500;color:var(--text-2)}
.probbar{display:flex;gap:2px;height:10px;margin-top:5px}
.probbar i{border-radius:2px;min-width:2px}
.untrusted{font-size:11.5px;color:var(--muted);font-style:italic;margin-top:5px}
.newmark{box-shadow:inset 2px 0 0 var(--copper)}
.answerline{font-size:13px;color:var(--text);margin-bottom:2px}
.answerline em{color:var(--copper-text)}

/* staleness */
.stale .readout,.stale .big,.stale .rung-n{opacity:.5}
.modebar-bad{border-bottom-color:var(--danger);background:transparent}
.modebar-bad .modebar-in strong{color:var(--danger-text)}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .cols{grid-template-columns:1fr}
  .strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .strip-cell:nth-child(3n+1){border-left:0}
  .strip-cell:nth-child(n+4){border-top:1px solid var(--hairline)}
}
@media (max-width:720px){
  body{font-size:14.5px}
  /* No `order:` here any more. The owner asked for one priority — strip, Money, Jev,
     the rest, "What just happened", "What this page can see" — and the DOM is written
     in exactly that order, so the single column already reads that way. `order:` only
     moves boxes: it never moves the tab order or what a screen reader narrates, so the
     old feed-first phone rule had the page read in one order and tab in another. */
  .intro{padding-block:16px 12px}
  .intro h1{font-size:26px}
  .intro p{margin-top:7px;font-size:13px}
  .intro .switchhint{margin-top:6px;font-size:12px}
  /* the health strip collapses to its readouts; the sub-text is one tap away and
     nothing is thrown out (D10) */
  .stripmore{
    display:block;width:100%;margin-top:7px;min-height:40px;
    font-family:var(--ui);font-size:12.5px;color:var(--text-2);text-align:left;
    background:transparent;border:1px solid var(--hairline);border-radius:var(--r-pill);
    padding:10px 15px;cursor:pointer;
  }
  .stripmore:hover{border-color:var(--copper-line-2)}
  .strip.compact .strip-cell{padding:9px 12px}
  .strip.compact .strip-cell .sub,
  .strip.compact .sparkwrap,
  .strip.compact .meter{display:none}
  .strip.compact .readout{font-size:17px}
  .strip.compact .readout.word{font-size:14.5px}
  /* comfortable tap targets: the report tabs are the only way to change the card (UX-14) */
  .ghostbtn{padding:10px 15px;min-height:40px}
  .tabs button{padding:10px 15px;min-height:40px}
  /* the three views take a row of their own rather than fighting the wordmark for it,
     and share it evenly; a long name wraps inside its button and keeps the 40px box */
  .viewtabs{flex:1 1 100%;gap:7px}
  .viewtab{flex:1 1 0;padding:10px 8px;white-space:normal;text-align:center}
  .healthline{gap:6px 16px}
  .healthval{font-size:15px}
  /* the size table is six rows of six words against four columns of figures: the row
     names give up their floor first, exactly as the lane tables' sentence column does */
  /* all four sizes have to be on screen at once or the table stops being a comparison,
     so on a phone every column gives up what it can: the row names take a narrower
     measure and the one long cell — the progress sentence — steps down a size rather
     than forcing a column wide enough for the word "finished" in the readout face */
  .sizetable{font-size:11.5px}
  .sizetable th.sizerow{min-width:9ch;max-width:12ch;overflow-wrap:anywhere;padding-right:9px}
  .sizetable th.sizearm{min-width:0}
  .sizetable td{min-width:0;padding-right:8px}
  .sizetable td .big{font-size:13.5px}
  .sizetable .progtext{font-size:11px}
  .sizetable .rownote{font-size:10.5px}
  .segbtn{padding:11px 14px;min-height:40px;font-size:12.5px}
  .segrow{gap:7px}
  .seg{flex:1 1 100%}
  .segbtn{flex:1 1 0;white-space:normal}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* the two lanes stack, and each one's four tiles become two rows of two — the same rule
     the Money tiles follow, so the whole page keeps one grammar at phone width */
  .lanegrid{grid-template-columns:1fr}
  .lanetiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lanebox{padding:13px}
  .lane-h h4{font-size:14.5px}
  /* a phone is ~300px of usable table: the sentence column gives up its floor so the P&L
     column — the one figure the owner opens the page for — is never the one cut off */
  .ltable{font-size:11.5px}
  .ltable td.word{min-width:0;overflow-wrap:anywhere}
  .ltable .tokcell{max-width:9ch}
  .ltable td.pnl{padding-right:8px}
  .fr{grid-template-columns:52px minmax(0,1fr);row-gap:3px}
  .fr .why{grid-column:2;justify-self:start}
  /* SVG type is in user units, so it shrinks with the drawing — bump it back up */
  .chartbox .ax{font-size:14px}
  .chartbox .lbl{font-size:15px}
  .chartbox .serie{stroke-width:3.5}
  .chartbox .grid,.chartbox .zero{stroke-width:1.8}
  .chartbox .endpt{r:6px;stroke-width:3px}
  /* phone: the feed keeps its own height so "What this page can see" below it stays
     reachable by scrolling the page, not by scrolling past an endless list. The newest
     line is the first one inside the scroller, so the cap never hides it. */
  .feedwrap{max-height:58vh}
  .frx .kv{grid-template-columns:1fr}
  .frx .kv dt{margin-top:5px}
  .frx .steps > li{grid-template-columns:1fr;gap:1px}
}
@media (max-width:560px){
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .strip-cell:nth-child(n){border-left:1px solid var(--hairline);border-top:1px solid var(--hairline)}
  .strip-cell:nth-child(2n+1){border-left:0}
  .strip-cell:nth-child(1),.strip-cell:nth-child(2){border-top:0}
  .card{padding:14px}
  .bar-in{padding-block:8px;gap:9px 10px}
  /* still a 40px box: only the horizontal padding tightens (UX-14) */
  #themebtn{padding:10px 12px;font-size:12px;min-height:40px}
  .product,.lockrule{display:none}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:0.001ms !important;transition-duration:0.001ms !important}
}

/* ===========================================================================
   Sign-in page (public/login.html, <body class="login">).
   api-contract §3.2 lists exactly eleven static entries and no /login.css, so
   the login page shares this stylesheet. Everything below is scoped to .login
   so it cannot reach the dashboard; the tokens, @font-face, base rules and the
   brand lock above are shared as-is.
   =========================================================================== */

.login .page{
  min-height:100dvh;
  display:flex;align-items:center;justify-content:center;
  padding:32px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.login .card{
  width:100%;max-width:420px;
  padding:30px 26px 26px;
}
.login .lockrule{flex:none}
.login .product{overflow:hidden;text-overflow:ellipsis}

.login h1{font-size:clamp(26px,7vw,32px);line-height:1.15;margin-top:26px}
.login .lede{margin-top:10px;color:var(--text-2);font-size:14.5px;max-width:34ch}

/* copper outline for "wait", danger outline for "wrong". No gold. */
.login .msg{margin-top:18px;border-radius:var(--r-inner);padding:10px 12px;font-size:13.5px;line-height:1.45}
.login .msg-bad{border:1px solid var(--danger);background:transparent;color:var(--danger-text)}
.login .msg-watch{border:1px solid var(--copper-line-2);background:var(--copper-wash);color:var(--copper-text)}

.login .vh{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
  clip-path:inset(50%);overflow:hidden;white-space:nowrap;
}

.login .form{margin-top:22px;display:flex;flex-direction:column;gap:8px}
.login .label{font-size:10.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);font-weight:500}
.login .field{
  font-family:var(--ui);
  font-size:16px; /* 16px keeps iOS from zooming the page on focus */
  color:var(--text);background:var(--surface-2);
  border:1px solid var(--hairline);border-radius:var(--r-inner);
  padding:12px 13px;width:100%;
  transition:border-color .18s var(--ease);
}
.login .field:hover{border-color:var(--copper-line)}
.login .field:focus{outline:none;border-color:var(--copper-line-2)}
.login .field:focus-visible{outline:2px solid var(--copper);outline-offset:2px}

.login .primary{
  margin-top:8px;
  font-family:var(--ui);
  font-size:13px;font-weight:500;letter-spacing:0.09em;text-transform:uppercase;
  background:var(--copper);color:#131313;
  border:1px solid var(--copper);border-radius:var(--r-pill);
  padding:11px 18px;cursor:pointer;
  transition:background-color .18s var(--ease), border-color .18s var(--ease);
}
.login .primary:hover{background:var(--copper-hi);border-color:var(--copper-hi)}
.login .primary:active{background:var(--copper)}

.login .foot{
  margin-top:20px;padding-top:16px;
  border-top:1px solid var(--hairline);
  font-size:12px;color:var(--muted);line-height:1.5;
}

/* the dashboard hides the product label on narrow screens; the login card has room */
@media (max-width:560px){
  .login .product,.login .lockrule{display:block}
  .login .card{padding:26px 20px 22px}
}
@media (max-width:420px){
  .login .card{padding:24px 18px 20px;border-radius:14px}
  .login .lede{font-size:14px}
}
