/* Mapixa Desk v2 — components. Colours, type and density come from tokens.css only.
   Layout: phone (one column) -> desktop (12 columns) -> the 4K wall (#tv or >= 2200 px: 24 columns, one screen, nothing
   scrolls but the calls stream, which scrolls by itself). The root size is fluid; everything else is rem. */

/* ================================================================ base */
html { font-size: 15px; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 760px) { html { font-size: clamp(14px, calc(8px + .4vw), 16px); } }
@media (min-width: 2200px) { html { font-size: min(calc(100vw / 240), calc(100vh / 135)); } }
html.wall { font-size: min(calc(100vw / 240), calc(100vh / 135)); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 400 var(--fs-md)/var(--lh) var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* every figure is tabular (plan §10 P4): a `font` shorthand resets font-variant-numeric, so the rule holds for all */
*, *::before, *::after { font-variant-numeric: tabular-nums !important; }
[hidden] { display: none !important; }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
button, select, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
code, kbd { font-family: var(--mono); }
.lab, .cl, dt { font: 500 var(--fs-2xs)/1.25 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.ic { display: inline-block; }
/* chips centre their dot / icon on the cap height of the word: the words' boxes are trimmed to the cap height
   (text-box), so the flex centre is the optical one in Chrome and Safari; without text-box it is the line box's */
.live b, .live small, .solchip b, .solchip small, .bk > span, .bk em, .bkm > span, .bkdot > span { text-box: trim-both cap alphabetic; }
/* the token icons (index.html #i-sol / #i-usd): one ink per theme, the Solana bars in the text's warm white */
.i-disc { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; }
.i-ink { fill: var(--fg); }
.i-on { fill: var(--bg); }
/* live data: a word longer than its box (a mint, a URL, a creator's symbol) wraps instead of widening the page */
.srow small, .cdet li, .cdet p, .r-why, .m-desk, .oc small, .empty, .tw-table small, .cc-sec li, .cc-sec p, .t-chips em, .pf-facts dd, .cc-id p, .reading { overflow-wrap: anywhere; }

/* ================================================================ header: the badge + the two-tone wordmark, nav, search, LIVE; the
   header is the sky at dawn: the sun below its 1-px horizon lights it from below (--dawn), nothing else glows */
.app { min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; padding: .5rem max(16px, 1.1vw) .55rem; background: var(--dawn), color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--horizon); }  /* the horizon */
/* one row from 1600 px: .bar's and .tools' items are the header's own (the order below); 760-1599: .tools is the
   second row; a phone: .bar alone is the sticky header (<= 120 px) and .tools scrolls with the page */
.top > .bar, .top > .tools { display: contents; }
.brand { order: 1; } .nav { order: 2; } .search { order: 3; } .ctl { order: 4; } .live { order: 5; } .clock { order: 6; }
@media (min-width: 760px) and (max-width: 1599px) {
  .top > .tools { display: flex; order: 7; flex: 1 1 100%; align-items: center; gap: .5rem 1.1rem; min-width: 0; }
  .live { margin-left: auto; }
  html.wall .top > .tools { display: contents; }            /* the wall on a smaller screen: one row all the same */
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; border-radius: var(--r-xs); }
.mark { width: 1.95rem; height: 1.95rem; flex: none; }
.wm { display: inline-flex; align-items: baseline; gap: .42rem; white-space: nowrap; }
/* the wordmark is the logo's own: lowercase «mapixa» (the logo sets Inter 500; Hanken Grotesk is the closest face we
   host), the x in the logo's coral. On the ink the warm-white letters are lit from below (--wordmark: 35 % pale sun
   at the baseline -> warm white at the cap height, oklab); on paper they are flat ink. The line box is Hanken's
   content area (1.3 em), so the gradient's em stops sit on the baseline and the cap height; the negative margin
   gives the row its 1-em line back */
.wm .word { font: 600 1.42rem/1.3 var(--body); letter-spacing: .015em; margin-block: -.15em; color: var(--fg); background: var(--wordmark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm .word i { font-style: normal; color: var(--wm-x); -webkit-text-fill-color: var(--wm-x); }
.wm .prod { font: 500 1.02rem/1 var(--body); letter-spacing: .01em; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 1.3rem; padding: 0 .5rem; border-radius: var(--r-xs); font: 600 var(--fs-2xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.tag.live { color: var(--bg); background: var(--live); box-shadow: none; }
.tag.try { color: var(--brand-b-2); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-b) 55%, transparent); }
.tag.sample { color: var(--fg); box-shadow: inset 0 0 0 1px var(--muted); background: repeating-linear-gradient(135deg, transparent 0 .3rem, color-mix(in oklab, var(--muted) 18%, transparent) .3rem .38rem); }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { display: inline-flex; align-items: center; gap: .38rem; padding: .38rem .6rem; border-radius: var(--r-xs); text-decoration: none; font: 600 var(--fs-sm)/1 var(--body); color: var(--muted); white-space: nowrap; }
.nav a kbd { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); padding: .12rem .28rem; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--brand-b); box-shadow: inset 0 -2px 0 var(--brand-b); border-radius: var(--r-xs) var(--r-xs) 0 0; }
.nav a[aria-current="page"] kbd { color: var(--brand-b); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-b) 60%, transparent); }

.search { position: relative; display: flex; align-items: center; gap: .45rem; flex: 1 1 15rem; max-width: 26rem; min-width: 0; padding: 0 .55rem; height: 2.1rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.search:focus-within { box-shadow: inset 0 0 0 var(--hair) var(--line-2), var(--ring); }
.search .ic-search { width: 1rem; height: 1rem; color: var(--faint); flex: none; }
.search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 var(--fs-sm)/1 var(--body); color: var(--fg); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { flex: none; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); padding: .15rem .35rem; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-2); }
.sugg { position: absolute; z-index: 30; top: calc(100% + .35rem); left: 0; right: 0; max-height: 22rem; overflow: auto; padding: .3rem; border-radius: var(--r); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.sugg li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: var(--r-xs); cursor: pointer; }
.sugg li b { font: 700 var(--fs-sm)/1.1 var(--body); }
.sugg li small { font: 400 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg li:hover, .sugg li[aria-selected="true"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--select); }
.sugg li.cap, .sugg li.none { display: block; cursor: default; font: 500 var(--fs-2xs)/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.sugg li.none { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: var(--fs-xs); color: var(--muted); }
.sugg li.cap:hover, .sugg li.none:hover { background: none; box-shadow: none; }

.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; margin-left: auto; }
.scope { display: inline-flex; align-items: center; gap: .45rem; }
.scope > span:first-child { font: 500 var(--fs-2xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sel { position: relative; display: inline-block; }
.sel select { appearance: none; -webkit-appearance: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .32rem 1.8rem .32rem .75rem; font: 600 var(--fs-xs)/1.1 var(--body); cursor: pointer; }
.sel select:hover { border-color: var(--brand-b); }
.sel::after { content: ""; position: absolute; right: .75rem; top: 50%; width: .36rem; height: .36rem; border-right: var(--hair) solid var(--muted); border-bottom: var(--hair) solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.temp { display: inline-flex; align-items: center; gap: .4rem; font: 500 var(--fs-xs)/1 var(--body); color: var(--muted); white-space: nowrap; }
.temp b { color: var(--fg); font-weight: 600; }
.gauge { position: relative; width: 2.4rem; height: .28rem; border-radius: var(--r-pill); background: var(--line-2); overflow: hidden; }
.gauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--muted); border-radius: inherit; }
.solchip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem .22rem .25rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.solchip:hover { box-shadow: inset 0 0 0 1px var(--brand-b); }
.solchip:focus-visible { box-shadow: var(--ring); }
.solchip .ic { width: 1.2rem; height: 1.2rem; }
.solchip b { font: 600 var(--fs-sm)/1 var(--body); color: var(--fg); }
.solchip small { font: 500 var(--fs-2xs)/1 var(--mono); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }

/* the LIVE pill: the link state + the age of the last event; the dot pulses cyan while the push stream is up */
.live { display: inline-flex; align-items: center; gap: .4rem; height: 1.75rem; padding: 0 .65rem 0 .55rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.live b { font: 700 var(--fs-2xs)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.live small { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--muted); }
.live .dot { position: relative; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--slow); flex: none; }
.live[data-link="live"] { box-shadow: inset 0 0 0 1px var(--line-2); }   /* the word and the dot carry the amber; the pill stays quiet ink */
.live[data-link="live"] b { color: var(--brand-b); }
.live[data-link="live"] .dot { background: var(--chart); }
.live[data-link="live"] .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--chart); animation: pulse 1.8s ease-out infinite; }
.live[data-link="backup"] b { color: var(--slow); }
.live[data-link="down"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stale); }
.live[data-link="down"] b { color: var(--stale); }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.clock { display: grid; justify-items: end; gap: .18rem; min-width: 5rem; }
.clock b { font: 800 1.7rem/.9 var(--display); letter-spacing: .01em; color: var(--fg); }
.clock b small { font-size: .5em; font-weight: 700; color: var(--muted); margin-left: .04em; }
.clock span { font: 500 var(--fs-2xs)/1 var(--mono); letter-spacing: .05em; color: var(--faint); white-space: nowrap; }
@media (max-width: 759px) {
  /* the phone's header is .bar alone: the brand, LIVE and the clock over the nav, the nav's tabs standing on the
     horizon, the dawn wide and flat (--dawn-wide) so it stays a horizon; the search and the controls scroll away */
  .top { display: contents; }
  .top::after { content: none; }
  .top > .bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; padding: .5rem 16px 0; background: var(--dawn-wide), color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .top > .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--horizon); }
  .top > .tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .7rem; padding: .75rem 16px 0; }
  .brand { order: 1; } .live { order: 2; margin-left: auto; } .clock { order: 3; min-width: 0; }
  .mark { width: 1.75rem; height: 1.75rem; }
  .wm .prod { display: none; }
  .wm .word { font-size: 1.3rem; }
  .nav { order: 4; width: 100%; justify-content: space-between; }
  .nav a { padding: .5rem .35rem .55rem; } .nav a kbd { display: none; }
  .search { flex-basis: 100%; max-width: none; }
  .ctl { margin-left: 0; }
  .clock b { font-size: 1.2rem; }
  .clock span { display: none; }
  .live { padding: 0 .5rem 0 .45rem; }
}

.alarm { position: fixed; z-index: 25; top: calc(var(--top-h, 3.4rem) + .6rem); left: 50%; transform: translateX(-50%); width: min(46rem, calc(100% - 32px)); display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; padding: .6rem var(--pad); border-radius: var(--r); box-shadow: inset 0 0 0 var(--hair) var(--stale), var(--shadow); background: color-mix(in oklab, var(--stale) 12%, var(--surface)); font: 600 var(--fs-sm)/1.3 var(--body); color: var(--fg); }
.alarm::before { content: ""; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--stale); }
.alarm small { font: 400 var(--fs-xs)/1.3 var(--mono); color: var(--muted); }

/* ================================================================ cards: a head (title, count, age) and a foot (signature + source) */
#views { padding: var(--gap) max(16px, 1.1vw) 1.4rem; }
.desk-err, .loading { padding: 1.5rem var(--pad); color: var(--muted); }
.desk-err b { display: block; color: var(--fg); }
.card { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.hd { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; padding: .55rem var(--pad) .5rem; border-bottom: 1px solid var(--line); min-width: 0; }
/* card titles: flat muted (plan §10 P5: gradient text is the wordmark's alone); the footer's .sig is the card's one brand touch */
.hd h2, .twd > summary h2, .tl-h { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--fs-xs)/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hd .count, .tl-h .count { font: 500 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); }
.hd .sp, .twd .sp { flex: 1 1 auto; }
.bd { padding: .6rem var(--pad) .7rem; min-width: 0; }
.ft { display: flex; align-items: center; gap: .6rem; padding: .45rem var(--pad) .5rem; border-top: 1px solid var(--line); font: 400 var(--fs-2xs)/1.4 var(--mono); color: var(--faint); min-width: 0; }
.ft > span:last-child { min-width: 0; }
.sig { flex: none; width: 1.5rem; height: .42rem; background: radial-gradient(circle at 50% 100%, var(--sun) 0 .27rem, transparent calc(.27rem + .6px)) top / 100% calc(100% - 1px) no-repeat, linear-gradient(var(--line-2), var(--line-2)) bottom / 100% 1px no-repeat; }   /* the sun on the horizon */
.card.is-stale > .bd, .card.is-stale > .twd > .wrapx { opacity: .45; filter: saturate(.3); }
.empty { padding: .45rem 0; font: 400 var(--fs-sm)/1.45 var(--body); color: var(--muted); }
.empty b { display: block; color: var(--fg); font-weight: 600; }
.empty code { font-size: .9em; color: var(--fg); }
.more { margin-top: .5rem; font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--faint); }
.chev { flex: none; width: .5rem; height: .5rem; border-right: var(--hair) solid var(--muted); border-bottom: var(--hair) solid var(--muted); transform: rotate(45deg); transition: transform var(--t) var(--ease); }
details[open] > summary .chev { transform: rotate(225deg); }
.wrapx { overflow-x: auto; }
/* buttons: quiet ink, never a glow (the solid amber button lives on the login wall alone, the sunrise moment).
   .btn = secondary: ink (surface-2), warm-white text, the plain 1-px line; .primary: the line is amber and brightens
   on hover; .lead: the ONE primary action of a card also sets its text in amber; .danger: a magenta line. Heights by
   density tier: .sm 32 (in a table), 36, .lg 40 (and every button on a phone); one radius (--r-btn). Every state is
   drawn: hover (the line brightens), pressed (the ink sinks a step), focus (the ring), disabled (faint, no fill),
   busy (aria-busy: a 1-px ring turns beside the word) */
.btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: var(--btn-h); padding: 0 1rem; border-radius: var(--r-btn); font: 600 var(--fs-sm)/1 var(--body); letter-spacing: .005em; color: var(--fg); background: var(--btn-bg); box-shadow: inset 0 0 0 var(--hair) var(--btn-line); cursor: pointer; white-space: nowrap; transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn:hover { box-shadow: inset 0 0 0 var(--hair) var(--faint); }
.btn.primary { box-shadow: inset 0 0 0 var(--hair) var(--btn-line-primary); }
.btn.primary:hover { box-shadow: inset 0 0 0 var(--hair) var(--btn-line-hover); }
.btn.lead { color: var(--brand-b); }
.btn.lead:hover { color: var(--brand-b-2); }
.btn.danger { box-shadow: inset 0 0 0 var(--hair) var(--btn-line-danger); }
.btn.danger:hover { color: var(--brand-a-2); box-shadow: inset 0 0 0 var(--hair) var(--brand-a); }
.btn:active { background: var(--btn-bg-down); transition-duration: var(--t-fast); }
.btn:focus-visible { box-shadow: inset 0 0 0 var(--hair) var(--btn-line-hover), var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; color: var(--faint); background: transparent; box-shadow: inset 0 0 0 var(--hair) var(--line); }
.btn[aria-busy="true"] { cursor: progress; color: var(--muted); background: var(--btn-bg); box-shadow: inset 0 0 0 var(--hair) var(--btn-line); }
.btn[aria-busy="true"]::after { content: ""; flex: none; width: .75em; height: .75em; border-radius: 50%; border: var(--hair) solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.btn.sm { height: var(--btn-h-sm); padding: 0 .75rem; font-size: var(--fs-xs); }
.btn.lg { height: var(--btn-h-lg); padding: 0 1.15rem; }
@media (max-width: 759px) { .btn { height: var(--btn-h-lg); } .btn.sm { height: var(--btn-h); } }
.linkish { all: unset; cursor: pointer; color: var(--brand-b); text-decoration: underline; text-underline-offset: .2em; }

/* data age: the one-second rule — dot + words, never colour alone */
/* the age's dot sits in the text's own line, raised so its centre is the cap height's (Martian Mono: cap .8 em): it
   follows the real baseline, never a rounded line box (optical centring, details pass 14.10.) */
.age { display: inline-block; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--muted); white-space: nowrap; -webkit-text-fill-color: currentColor; }
.age::before { content: ""; display: inline-block; width: var(--dot); height: var(--dot); margin-right: .35rem; vertical-align: calc((.8em - var(--dot)) / 2); border-radius: 50%; background: var(--fresh); }
.age[data-state="slow"] { color: var(--slow); }
.age[data-state="slow"]::before { background: var(--slow); }
.age[data-state="stale"] { color: var(--stale); }
.age[data-state="stale"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stale); }

/* ================================================================ amounts and market caps: the value itself is the switch */
.amt { all: unset; cursor: pointer; display: inline-grid; justify-items: start; gap: .22rem; border-radius: var(--r-xs); }
.amt b { display: inline-flex; align-items: center; gap: .14em; white-space: nowrap; font-weight: 700; color: var(--fg); }
.amt b .ic { width: .95em; height: .95em; flex: none; margin-right: .12em; }
.amt b .u { font: 600 .3em/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--muted); margin-left: .3em; align-self: flex-end; padding-bottom: .22em; }
.amt small { font: 500 var(--fs-xs)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.amt.pos b { color: var(--pos); }
.amt.neg b { color: var(--neg); }
.amt:hover small { color: var(--fg); }
.amt:focus-visible, .mc:focus-visible, .mint:focus-visible, .bk:focus-visible, .coin:focus-visible { box-shadow: var(--ring); }
.amt.inline { display: inline-flex; align-items: baseline; gap: .38rem; }
.amt.inline b { font: 600 var(--fs-sm)/1.2 var(--body); }
.amt.inline small { font-size: var(--fs-2xs); }
.amt.na { cursor: default; }
.mc { all: unset; cursor: pointer; border-radius: var(--r-xs); white-space: nowrap; }
.mc .ic { width: .85em; height: .85em; vertical-align: -.1em; margin-right: .14em; }
.mc:hover { color: var(--fg); text-decoration: underline dotted; text-underline-offset: .22em; }
.swapped { animation: swapped .3s ease-out; }
@keyframes swapped { from { background: color-mix(in oklab, var(--sun) 30%, transparent); } to { background: transparent; } }
.mint { all: unset; cursor: copy; font: 400 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); border-radius: var(--r-xs); white-space: nowrap; }
.mint:hover { color: var(--fg); }
/* a live number: a tick flashes it cyan (up) or magenta (down) for 300 ms */
.lp { border-radius: var(--r-xs); transition: color var(--t) var(--ease); }
.tk-up { animation: tkup .3s ease-out; color: var(--tick-up); }
.tk-down { animation: tkdown .3s ease-out; color: var(--tick-down); }
@keyframes tkup { from { background: color-mix(in oklab, var(--tick-up) 38%, transparent); } to { background: transparent; } }
@keyframes tkdown { from { background: color-mix(in oklab, var(--tick-down) 38%, transparent); } to { background: transparent; } }

/* ================================================================ coins: logo (monogram fallback) + symbol; magenta selection bar */
.lg { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--logo-row); height: var(--logo-row); border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg b { font: 700 calc(var(--logo-row) * .42)/1 var(--display); letter-spacing: .02em; color: var(--muted); }
.lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg.ok { background: var(--surface-2); }
.lg.ok b { visibility: hidden; }
.lg.sm { width: 1.3rem; height: 1.3rem; } .lg.sm b { font-size: .55rem; }
.lg.big { width: var(--logo-card); height: var(--logo-card); } .lg.big b { font-size: 1.15rem; }
.coin { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; min-width: 0; border-radius: var(--r-xs); }
.coin .nm { display: grid; gap: .12rem; min-width: 0; }
.coin .nm b { font: 700 var(--fs-md)/1.1 var(--body); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .nm small { font: 400 var(--fs-2xs)/1.1 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin:hover .nm b { color: var(--brand-b-2); }
.prow:hover, .stream > li:hover, .rlist > li:hover, .mlist > li:hover, .ctable tbody tr:hover, .trow:hover, .trow:focus-visible { box-shadow: inset 2px 0 0 var(--select); }

/* sparklines: an amber line over a flat amber area (--area: 7 % on the ink, 10 % on paper), the API's 6-h change,
   magenta ticks = our entries / exits */
.spk { position: relative; display: inline-flex; align-items: center; gap: .4rem; width: 100%; min-width: 0; height: 1.5rem; vertical-align: middle; }
.spk .sv { position: relative; flex: 1 1 auto; min-width: 2.5rem; height: 100%; }
.spk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spk .ar { fill: var(--chart); opacity: var(--area); stroke: none; }
.spk .ln { fill: none; stroke: var(--chart); stroke-width: 1.35; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spk .ev { stroke: var(--brand-a); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .9; }
.spk .now { position: absolute; width: .32rem; height: .32rem; margin: -.16rem 0 0 -.16rem; border-radius: 50%; background: var(--chart); box-shadow: 0 0 0 2px var(--surface); }
.spk .chg { flex: none; min-width: 3.1rem; text-align: right; font: 600 var(--fs-2xs)/1 var(--mono); font-style: normal; color: var(--muted); }
.spk .chg.pos { color: var(--pos); } .spk .chg.neg { color: var(--neg); }
.spk.empty .base, .spk:not([data-filled]) { background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.spk.empty .base { display: block; width: 100%; height: 100%; opacity: .6; }

/* ================================================================ the Desk grid: phone -> desktop -> the 4K wall */
.desk > .col { display: contents; }
.desk { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "books" "day" "pos" "tops" "calls" "twins" "refused" "marks" "src"; }
#books { grid-area: books; } #twins { grid-area: twins; } #day { grid-area: day; } #pos { grid-area: pos; } #tops { grid-area: tops; }
#calls { grid-area: calls; } #refused { grid-area: refused; } #marks { grid-area: marks; } #src { grid-area: src; }
@media (min-width: 760px) {        /* 760-1299: two columns of stacked cards, every list full width */
  .desk { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "books books" "day twins" "pos pos" "tops tops" "calls calls" "refused marks" "src src"; }
}
@media (min-width: 1300px) {
  /* two columns that end together (polish 13.10., the verifier's density nit: a sticky rank panel beside the long calls
     stream left the right column ~2 100 px short at 1920). From 1300 px column A is wide enough (>= 59rem) for the
     calls stream's one-line rows; below it the stacked layout above keeps every list full width (at 1280 the
     three-line rows made the stream twice as tall as the right column). Column A (books, positions, the calls stream) is ONE grid
     item spanning the right column's rows plus a last flexible row; the right column's cards (the day, the rank feed,
     refused, marks) stack at their own heights in auto rows, and the 1fr row takes whatever A is taller (a grid item
     that spans a flexible track never sizes the auto rows). The twins table and the sources run full width below.
     (The 4K wall keeps its own three columns: html.wall below.) */
  html:not(.wall) .desk { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: none;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; }
  html:not(.wall) .desk > .col-a { display: flex; flex-direction: column; gap: var(--gap); grid-column: 1; grid-row: 1 / 6; min-width: 0; }
  html:not(.wall) #day { grid-column: 2; grid-row: 1; }
  html:not(.wall) #tops { grid-column: 2; grid-row: 2; }
  html:not(.wall) #refused { grid-column: 2; grid-row: 3; }
  html:not(.wall) #marks { grid-column: 2; grid-row: 4; }
  html:not(.wall) #twins { grid-column: 1 / -1; grid-row: 6; }
  html:not(.wall) #src { grid-column: 1 / -1; grid-row: 7; }
  html:not(.wall) .desk .books > .book .path { height: 6.4rem; }   /* the hero curve, no longer stretched by the day card */
}

/* ================================================================ books (hero numbers) */
.books { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
@media (min-width: 760px) { .books { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.book { container-type: inline-size; transition: opacity var(--t) var(--ease); }
.book.dim { opacity: .42; }
.book.sel { border-color: var(--hue); }
.bk { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .6rem .22rem .48rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 var(--hair) var(--hue); font: 600 var(--fs-sm)/1 var(--body); color: var(--fg); white-space: nowrap; }
.bk i { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--hue); }
.bk em { font: 500 var(--fs-2xs)/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--muted); }
.state { font: 500 var(--fs-2xs)/1 var(--mono); letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.state.st-day_line { color: var(--slow); }
.state.st-killed { color: var(--neg); } .state.st-off { color: var(--muted); }   /* killed by its money wall = money; off = a state */
.triple { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .4rem 1.6rem; align-items: end; }
.fig { display: grid; gap: .35rem; min-width: 0; }
.fig .amt b { font: 700 clamp(1.2rem, 7cqi, var(--fs-xl))/.88 var(--display); letter-spacing: .005em; }
.fig:is(.in, .now) .amt b:has(> .u) { color: var(--sol); }   /* the brand story: SOL in / SOL now are the sun's numbers */
.fig.diff .amt b { font-size: clamp(1.9rem, 12cqi, var(--fs-hero)); }
.book:not(.hero):not(.big) .fig.diff .amt b { font-size: clamp(1.7rem, 10cqi, var(--fs-big)); }
@container (max-width: 34rem) { .triple { grid-template-columns: auto auto; justify-content: start; column-gap: 1.8rem; } .fig.diff { grid-column: 1 / -1; margin-top: .2rem; } }
.path { position: relative; margin-top: .75rem; height: 2.9rem; }
.path.big { height: 6rem; }
.path svg { display: block; width: 100%; height: 100%; overflow: visible; }
.path .zero, .path .m06 { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.path .past { fill: none; stroke: var(--faint); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.path .today { fill: none; stroke: var(--hue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.path .area { fill: var(--hue); opacity: var(--area); }
.path .hit { fill: transparent; pointer-events: all; }
.path .dot { position: absolute; width: .55rem; height: .55rem; border-radius: 50%; transform: translate(-50%, -50%); background: var(--hue); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.path .cap { position: absolute; bottom: -1.05rem; font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); white-space: nowrap; }
.path .cap.l { left: 0; } .path .cap.m { transform: translateX(-50%); } .path .cap.r { right: 0; }
.stats { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin-top: 1.55rem; }
.stats > div { display: grid; gap: .25rem; }
.stats dd { display: inline-flex; align-items: center; gap: .4rem; font: 600 var(--fs-sm)/1.1 var(--body); white-space: nowrap; }
.stats dd small { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
.slots { display: inline-flex; gap: 3px; }
.slots i { width: .45rem; height: .8rem; border-radius: var(--r-xs); box-shadow: inset 0 0 0 var(--hair) var(--line-2); }
.slots i.on { background: var(--hue); box-shadow: none; }
.life { display: grid; grid-template-columns: auto minmax(4rem, 1fr) auto; align-items: center; gap: .4rem .75rem; margin-top: .8rem; }
.life .trk { position: relative; height: .38rem; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.life .trk i { position: absolute; top: 0; bottom: 0; }
.life .base { left: 0; background: var(--muted); opacity: .55; }
.life .lost { background: var(--neg); opacity: .5; }
.life .over { background: var(--pos); }
.life .one { width: 2px; margin-left: -1px; background: var(--fg); }
.life .val { font: 600 var(--fs-xs)/1.2 var(--body); white-space: nowrap; }
.life .val small { display: block; font: 400 var(--fs-2xs)/1.35 var(--mono); color: var(--faint); }
@container (max-width: 26rem) { .life { grid-template-columns: auto minmax(0, 1fr); } .life .val { grid-column: 1 / -1; } }

/* twins: a compact table, open by default (one click folds it) */
.twins { display: block; }
.twd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; padding: .55rem var(--pad); }
.twd > summary::-webkit-details-marker { display: none; }
.twd .why { font: 400 var(--fs-xs)/1.3 var(--body); color: var(--muted); }
.twd[open] > summary { border-bottom: 1px solid var(--line); }
.tw-table { width: 100%; }
.tw-table th, .tw-table td { padding: .32rem .7rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tw-table thead th { font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.tw-table th[scope="row"], .tw-table thead th:first-child { text-align: left; white-space: normal; padding-left: var(--pad); }
.tw-table th[scope="row"] b { display: inline-flex; align-items: center; gap: .4rem; font: 600 var(--fs-xs)/1.2 var(--mono); }
.tw-table th[scope="row"] b i { width: var(--dot); height: var(--dot); border-radius: 50%; box-shadow: inset 0 0 0 var(--hair) var(--book-twin); }
.tw-table th[scope="row"] small { display: block; font: 400 var(--fs-2xs)/1.3 var(--body); color: var(--muted); margin-top: .1rem; }
.tw-table td { font: 400 var(--fs-xs)/1.2 var(--mono); }
.tw-table tbody tr:last-child > * { border-bottom: 0; }
.prog { display: inline-block; vertical-align: middle; width: 2.8rem; height: .28rem; margin-right: .45rem; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: var(--p); background: var(--muted); }

/* ================================================================ the day */
.day { container-type: inline-size; }
.day .bd { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; align-content: start; }
.dfig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
@container (min-width: 44rem) { .dfig { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dfig > div { display: grid; gap: .28rem; align-content: start; }
.dfig b { font: 800 var(--fs-xl)/.9 var(--display); color: var(--fg); }
.dfig small { font: 400 var(--fs-2xs)/1.35 var(--mono); color: var(--faint); }
.vbar { display: flex; gap: 2px; height: .6rem; border-radius: var(--r-xs); overflow: hidden; margin-top: .3rem; }
.vbar span { min-width: 3px; }
.vbar .vA { background: var(--v-a); } .vbar .vB { background: var(--v-b); } .vbar .vC { background: var(--v-c); } .vbar .vNIE { background: var(--v-nie); }
.vleg { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .4rem; font: 500 var(--fs-2xs)/1.2 var(--mono); color: var(--muted); }
.vleg i { display: inline-block; width: .5rem; height: .5rem; border-radius: var(--r-xs); margin-right: .3rem; vertical-align: -.05em; }
.tape-bars { position: relative; height: 4.2rem; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); margin-top: .4rem; }
.tape-bars .zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); }
.tc { position: relative; min-width: 0; }
.tb { position: absolute; left: 50%; width: min(52%, 1.6rem); min-width: 2px; translate: -50% 0; }   /* a bar per slot, scaled to the card (never a block of saturated colour on the wall) */
.tb.pos { background: var(--pos); border-radius: var(--r-xs) var(--r-xs) 0 0; }
.tb.neg { background: var(--neg); border-radius: 0 0 var(--r-xs) var(--r-xs); }
.tb.open { background: transparent; }
.tb.open.pos { box-shadow: inset 0 0 0 var(--hair) var(--pos); }
.tb.open.neg { box-shadow: inset 0 0 0 var(--hair) var(--neg); }
.tape-cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; font: 400 var(--fs-2xs)/1.35 var(--mono); color: var(--faint); }

/* ================================================================ open positions: logo, 6-h curve, the FOUNDER-65 ladder */
.positions, .kb-sub { container-type: inline-size; }
.prow { display: grid; align-items: start; gap: .4rem .9rem; padding: .65rem .35rem; border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "coin coin x" "spk spk spk" "lad lad lad" "in pnl age" "px px px"; }
.ptable > .prow:nth-child(2) { border-top: 0; }
.prow.head { display: none; }
.c-coin { grid-area: coin; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; min-width: 0; }
.c-in { grid-area: in; } .c-px { grid-area: px; min-width: 0; } .c-x { grid-area: x; justify-self: end; display: grid; justify-items: end; gap: .25rem; } .c-lad { grid-area: lad; min-width: 0; }
.c-spk { grid-area: spk; min-width: 0; align-self: center; }
.c-pnl { grid-area: pnl; } .c-age { grid-area: age; justify-self: end; align-self: start; }
.c-in small, .c-in b { white-space: nowrap; }
.c-in, .c-pnl, .c-px { display: grid; gap: .22rem; align-content: start; }
.bkdot { display: inline-flex; align-items: center; gap: .32rem; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.bkdot i { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--hue); }
.venue { font: 400 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); white-space: nowrap; }
.c-in b { font: 600 var(--fs-sm)/1.2 var(--body); }
.c-in small, .c-pnl small { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); }
.x { font: 800 var(--fs-xl)/.9 var(--display); white-space: nowrap; }
.x.pos { color: var(--pos); } .x.neg { color: var(--neg); }
.px { display: block; font: 400 var(--fs-xs)/1.45 var(--mono); font-stretch: 87.5%; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px em { font-style: normal; color: var(--faint); margin-right: .22rem; }
.px .chase { color: var(--muted); }
.tka { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); white-space: nowrap; }   /* §10 P12: the tick's own age */
.whynot h3 { color: var(--fg); } .whynot.in h3 { color: var(--muted); }                 /* §10 P15 */
.wn-why { margin: .2rem 0; font: 600 var(--fs-sm)/1.35 var(--body); color: var(--fg); }   /* not red: red = money only */
.wn-gate { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0; font: 400 var(--fs-2xs)/1.4 var(--mono); color: var(--muted); }
.a-miss { margin: .45rem 0 0; font: 400 var(--fs-xs)/1.35 var(--body); color: var(--muted); }
.a-miss b { color: var(--fg); font-weight: 700; }
.c-t .rep { margin-left: .3rem; padding: 0 .3rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); font: 500 var(--fs-2xs)/1.35 var(--mono); color: var(--muted); }   /* §10 P14 */
.rep-l { display: flex; flex-wrap: wrap; gap: .2rem .7rem; list-style: none; padding: 0; margin: .25rem 0 0; font: 400 var(--fs-2xs)/1.4 var(--mono); color: var(--muted); }
.lad { position: relative; height: 2.3rem; margin: 0 .4rem; }
.lad .trk { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line-2); border-radius: var(--r-pill); }
.lad .seg { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--r-pill); opacity: .6; }
.lad .seg.pos { background: var(--pos); } .lad .seg.neg { background: var(--neg); }
.lad .tk { position: absolute; top: 50%; width: 2px; height: .85rem; margin: -.425rem 0 0 -1px; background: var(--muted); }
.lad .tk em { position: absolute; left: 50%; transform: translateX(-50%); font: 500 var(--fs-2xs)/1 var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }
.lad .tk.one em, .lad .tk.tp em { bottom: calc(100% + .18rem); }
.lad .tk.stop em, .lad .tk.trail em { top: calc(100% + .18rem); }
.lad .tk.stop { background: var(--neg); }
.lad .tk.trail { background: repeating-linear-gradient(var(--neg) 0 3px, transparent 3px 5px); }
.lad .tk.tp { background: var(--fg); }
.lad .tk.tp.done em { color: var(--pos); }
.lad .hw { position: absolute; top: 50%; width: .52rem; height: .52rem; margin: -.26rem 0 0 -.26rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--muted); }
.lad .now { position: absolute; top: 50%; width: .74rem; height: .74rem; margin: -.37rem 0 0 -.37rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.lad .now.pos { background: var(--pos); } .lad .now.neg { background: var(--neg); }
.ex { display: block; margin-top: .2rem; font: 400 var(--fs-2xs)/1.35 var(--mono); color: var(--muted); }
@container (min-width: 66rem) {
  .prow { align-items: center; grid-template-columns: minmax(8.5rem, 1.1fr) 5.4rem minmax(13.5rem, 1.25fr) 4.4rem minmax(6.5rem, 1fr) minmax(11rem, 1.6fr) 7.4rem 7.6rem;
    grid-template-areas: "coin in px x spk lad pnl age"; padding: .5rem .35rem; gap: .4rem .9rem; }
  .prow.head { display: grid; padding: 0 .35rem .35rem; border-top: 0; }
  .prow.head > span { font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
  .prow .cl { display: none; }
  .c-pnl { grid-template-columns: minmax(0, 1fr); } .c-pnl small { white-space: normal; }   /* a result never runs into the quote's age */
  .c-in small { white-space: normal; }
  .c-x { justify-self: end; justify-items: end; text-align: right; }       /* number columns: right-aligned, tabular */
  .c-pnl { justify-items: end; text-align: right; } .c-pnl .amt { justify-items: end; }
  .c-age { justify-self: end; }
  .prow.head > .r { text-align: right; }
  .c-coin { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; }
  .c-coin .coin { flex: 1 1 100%; }
  .c-coin .mint { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
.closed { margin-top: .35rem; border-top: 1px solid var(--line); }
.closed > summary, .rules > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem; padding: .6rem 0 .25rem; font: 600 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.closed > summary::-webkit-details-marker, .rules > summary::-webkit-details-marker { display: none; }
.closed > summary .chev, .rules > summary .chev { width: .42rem; height: .42rem; }
.closed-none { margin-top: .5rem; font: 400 var(--fs-xs)/1.4 var(--body); color: var(--faint); }
.ctable { width: 100%; }
.ctable th, .ctable td { padding: .3rem .55rem .3rem 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); font: 400 var(--fs-xs)/1.25 var(--mono); vertical-align: middle; }
.ctable thead th { font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ctable td.r, .ctable th.r { text-align: right; }
.ctable td.s { width: 9rem; min-width: 6rem; }
.ctable td.cc .coin .nm b { font-size: var(--fs-sm); }
.ctable small { color: var(--faint); }
.ctable tbody tr:last-child > * { border-bottom: 0; }
/* a narrow card (a phone): every closed trade is a small block, nothing scrolls sideways */
@container (max-width: 40rem) {
  /* three lines per trade: time · coin · result / book · how · exit · max / the 6-h curve (flex line breaks) */
  .ctable, .ctable tbody { display: block; }
  .ctable thead { display: none; }
  .ctable tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; padding: .5rem .1rem; border-bottom: 1px solid var(--line); }
  .ctable tbody tr::before, .ctable tbody tr::after { content: ""; flex-basis: 100%; height: 0; }
  .ctable tbody tr::before { order: 2; } .ctable tbody tr::after { order: 4; }
  .ctable td { display: block; padding: 0; border: 0; white-space: nowrap; }
  .ctable td:nth-child(1) { order: 0; } .ctable td:nth-child(2) { order: 0; flex: 1 1 0; min-width: 0; }
  .ctable td:nth-child(8) { order: 1; }
  .ctable td:nth-child(3), .ctable td:nth-child(4), .ctable td:nth-child(5) { order: 3; }
  .ctable td:nth-child(6) { order: 3; margin-left: auto; white-space: normal; text-align: right; }
  .ctable td:nth-child(7) { order: 5; flex: 1 1 100%; width: auto; }
  .ctable td:nth-child(5)::before { content: "výstup "; color: var(--faint); }
  .ctable td:nth-child(6)::before { content: "max 24 h "; color: var(--faint); }
}

/* ================================================================ calls and verdicts */
.calls { container-type: inline-size; }
.legendrow { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); }
.legendrow span { display: inline-flex; align-items: center; gap: .35rem; }
.v { display: inline-grid; place-items: center; min-width: 2rem; height: 1.3rem; padding: 0 .32rem; border-radius: var(--r-xs); font: 600 var(--fs-2xs)/1 var(--mono); letter-spacing: .05em; -webkit-text-fill-color: currentColor; }
.v-A { background: var(--v-a); color: var(--bg); }
.v-B { box-shadow: inset 0 0 0 1px var(--v-b); color: var(--fg); }
.v-C { box-shadow: inset 0 0 0 1px var(--v-c); color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in oklab, var(--v-c) 40%, transparent) 3px 4px); }
.v-NIE { color: var(--nie); box-shadow: inset 0 0 0 var(--hair) color-mix(in oklab, var(--nie) 70%, transparent); }   /* a refusal: neutral, never the money red */
.crow.shead { display: none; }
.stream > li { border-top: 1px solid var(--line); }
.stream > li:first-child { border-top: 0; }
.crow { list-style: none; cursor: pointer; display: grid; align-items: center; gap: .28rem .7rem; padding: .45rem .3rem; border-radius: var(--r-xs);
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "v sym t" "out out out" "meta meta meta"; }
.crow::-webkit-details-marker { display: none; }
.crow:hover { background: color-mix(in oklab, var(--surface-2) 70%, transparent); }
.c-t { grid-area: t; font: 400 var(--fs-xs)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.c-v { grid-area: v; }
.c-sym { grid-area: sym; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.c-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font: 400 var(--fs-xs)/1.3 var(--mono); color: var(--muted); min-width: 0; }
.c-meta .c-spk { flex: 1 1 8rem; min-width: 6rem; max-width: 12rem; }
.c-names { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-names b { color: var(--fg); font-weight: 600; }
.c-pool, .c-mc { white-space: nowrap; }
.c-out { grid-area: out; min-width: 0; }
.oc { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; font: 500 var(--fs-xs)/1.3 var(--body); color: var(--fg); }
.oc small { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--muted); }
.oc.no, .oc.log { color: var(--muted); }
.oc .x-no { color: var(--nie); font-weight: 600; }
.bkm { display: inline-flex; align-items: center; gap: .28rem; padding: .12rem .42rem .12rem .35rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hue); font: 600 var(--fs-2xs)/1 var(--mono); color: var(--fg); white-space: nowrap; }
.bkm i { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--hue); }
.lights { display: inline-flex; align-items: center; gap: 2px; }
.lights i { width: .32rem; height: .66rem; border-radius: var(--r-xs); background: var(--line-2); }
.lights i.on { background: var(--muted); }
.lights b { margin-left: .35rem; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
.lights i.unk, .cdet ul.lt li.unk i, .cc-sec ul.lt li.unk i { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.cdet { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem 1.3rem; padding: .3rem .3rem .85rem; }
.cdet h3, .cc-sec h3 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.cdet li, .cdet p { font: 400 var(--fs-xs)/1.5 var(--body); }
ul.lt li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font: 400 var(--fs-xs)/1.5 var(--body); }
ul.lt li.on { color: var(--fg); }
ul.lt li i { width: .32rem; height: .6rem; border-radius: var(--r-xs); background: var(--line-2); flex: none; }
ul.lt li.on i { background: var(--muted); }
.cdet .chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.rc { display: inline-block; margin-left: .32rem; font: 500 var(--fs-2xs)/1 var(--mono); padding: .12rem .32rem; border-radius: var(--r-xs); }
.rc.plus { color: var(--pos); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pos) 45%, transparent); }
.rc.minus { color: var(--neg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neg) 45%, transparent); }
/* the wide row: the time column holds «HH:MM:SS» + the repeat pill up to «999×» (plan §10 P14; a longer count widens
   only its own row, never under the verdict chip); the columns' minimums + gaps + paddings need 59rem of card */
@container (min-width: 59rem) {
  .crow { grid-template-columns: minmax(6.8rem, max-content) 2.2rem minmax(7rem, .9fr) minmax(6rem, .9fr) 4.2rem 4.2rem minmax(6rem, .8fr) 5rem minmax(9rem, 1.9fr);
    grid-template-areas: "t v sym names pool mc spk li out"; padding: .32rem .3rem; }
  .crow.shead { display: grid; padding: 0 .3rem .3rem; cursor: default; }
  .shead > span { font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
  .shead:hover { background: none; }
  .c-meta { display: contents; }
  .c-names { grid-area: names; } .c-pool { grid-area: pool; } .c-mc { grid-area: mc; } .c-li { grid-area: li; }
  .c-pool, .c-mc { justify-self: end; text-align: right; }                  /* number columns: right-aligned, tabular */
  .c-meta .c-spk { grid-area: spk; max-width: none; }
  .crow .c-out .oc { flex-wrap: nowrap; overflow: hidden; }
  .crow .c-out .oc small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ================================================================ «Naše top» + «Letí teraz» */
.tops { container-type: inline-size; }
.tlists { display: grid; gap: .8rem; }
.tops.big .tlists { grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr)); gap: 1.4rem; }
.tl-h { margin: .1rem 0 .3rem; }
.toplist > li + li { border-top: 1px solid var(--line); }
.trow { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; align-items: center; gap: .22rem .55rem; padding: .38rem .3rem;
  grid-template-columns: 1.1rem auto minmax(0, 1fr) 4rem 4.1rem; grid-template-areas: "rk lg nm mc ch" "rk lg chips chips chips" "spk spk spk spk spk" "sc sc sc sc sc"; border-radius: var(--r-xs); }
.trow > .lg { grid-area: lg; align-self: start; margin-top: .1rem; }
.t-rk { grid-area: rk; align-self: start; padding-top: .2rem; font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
.t-nm { grid-area: nm; display: grid; gap: .1rem; min-width: 0; }
.t-nm b { font: 700 var(--fs-sm)/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-nm small { font: 400 var(--fs-2xs)/1.1 var(--body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-mc { grid-area: mc; justify-self: end; font: 500 var(--fs-xs)/1 var(--mono); color: var(--muted); }
.t-ch { grid-area: ch; justify-self: end; display: grid; justify-items: end; gap: .12rem; font: 600 var(--fs-xs)/1 var(--mono); color: var(--muted); }
.t-ch small { font: 400 .55rem/1 var(--mono); color: var(--faint); }
.t-ch.pos { color: var(--pos); } .t-ch.neg { color: var(--neg); }
.t-spk { grid-area: spk; min-width: 0; }
.t-spk .spk { height: 1.25rem; }
.t-sc { grid-area: sc; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem; }
.t-sc i { position: relative; display: block; height: .26rem; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.t-sc i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--score); border-radius: inherit; }
.t-sc b { font: 600 var(--fs-2xs)/1 var(--mono); color: var(--fg); min-width: 1.5rem; text-align: right; }
.t-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: .2rem .3rem; min-width: 0; }
.t-chips em { font: 400 var(--fs-2xs)/1.2 var(--body); font-style: normal; color: var(--muted); padding: .05rem .32rem; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-2); }
.t-coach { font: italic 500 var(--fs-2xs)/1.2 var(--body); color: var(--brand-a-2); quotes: "«" "»"; }
@container (min-width: 30rem) {
  .trow { grid-template-columns: 1.1rem auto minmax(5rem, 1fr) 4rem 4rem minmax(5rem, 1.1fr) 5.4rem; grid-template-areas: "rk lg nm mc ch spk sc" "rk lg chips chips chips chips chips"; }
  .movers .trow { grid-template-columns: 1.1rem auto minmax(5rem, 1fr) 4rem 4rem minmax(5rem, 1.6fr); grid-template-areas: "rk lg nm mc ch spk" "rk lg chips chips chips chips"; }
}
.trow.hot { animation: hot 6s ease-out; }
@keyframes hot { 0%, 70% { background: color-mix(in oklab, var(--brand-a) 16%, transparent); box-shadow: inset 2px 0 0 var(--select); } 100% { background: transparent; } }

/* ================================================================ refused that ran + the rule ledger; marks; sources */
.refused, .marks { container-type: inline-size; }
.rlist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sym x" "why bar" "would would"; gap: .28rem .9rem; padding: .5rem .3rem; border-top: 1px solid var(--line); align-items: center; }
.rlist > li:first-child { border-top: 0; }
.r-sym { grid-area: sym; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; min-width: 0; }
.r-sym small { font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
.r-why { grid-area: why; font: 400 var(--fs-xs)/1.35 var(--body); color: var(--muted); min-width: 0; }
.r-why em { font: 600 var(--fs-2xs)/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); margin-right: .3rem; }
.r-why .twt { color: var(--fg); }
.r-x { grid-area: x; justify-self: end; }
.r-x .x { font-size: var(--fs-lg); }
.xbar { grid-area: bar; justify-self: end; position: relative; width: 4.5rem; height: .24rem; border-radius: var(--r-pill); background: var(--line); }
.xbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: var(--pos); }
.xbar::before, .xbar::after { content: ""; position: absolute; top: -.13rem; bottom: -.13rem; width: 1px; background: var(--muted); }
.xbar::before { left: 30.1%; } .xbar::after { left: 69.9%; }
.r-would { grid-area: would; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; min-width: 0; }
.r-would small { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); }
.rules { margin-top: .4rem; border-top: 1px solid var(--line); }
.ledger { width: 100%; }
.ledger th, .ledger td { padding: .3rem .3rem; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; font: 400 var(--fs-xs)/1.25 var(--mono); vertical-align: middle; }
.ledger th:first-child, .ledger td:first-child { text-align: left; white-space: normal; font-family: var(--body); padding-left: 0; }
.ledger thead th { font: 500 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.ledger .grp { display: block; font: 500 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.msum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem 1.4rem; align-items: end; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.msum .fig .amt b { font: 800 var(--fs-big)/.86 var(--display); }
.msum dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; }
.msum dd { font: 500 var(--fs-sm)/1.25 var(--body); color: var(--muted); }
.msum dd b { font: 800 var(--fs-lg)/1 var(--display); color: var(--fg); }
.msum dd small { font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
@container (max-width: 26rem) { .msum { grid-template-columns: minmax(0, 1fr); } }
.mlist > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t sym uz" "t desk spk"; gap: .22rem .8rem; padding: .55rem .3rem; border-top: 1px solid var(--line); }
.mlist > li:first-child { border-top: 0; }
.m-t { grid-area: t; font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--muted); }
.m-sym { grid-area: sym; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; min-width: 0; }
.m-sym q { font: italic 500 var(--fs-sm)/1.2 var(--body); color: var(--fg); quotes: "«" "»"; }
.m-desk { grid-area: desk; font: 400 var(--fs-xs)/1.4 var(--body); color: var(--muted); }
.m-uz { grid-area: uz; display: grid; justify-items: end; gap: .18rem; }
.m-uz small { font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); white-space: nowrap; }
.m-spk { grid-area: spk; width: 8rem; }
@container (max-width: 30rem) {
  .mlist > li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t sym" "t uz" "t desk" "t spk"; }
  .m-uz { justify-items: start; grid-template-columns: auto auto; align-items: baseline; gap: .5rem; }
}
.dia { flex: none; width: .55rem; height: .55rem; transform: rotate(45deg); border-radius: var(--r-xs); background: var(--chart); }
.src .bd { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .45rem; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .55rem; padding: .45rem .6rem; border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.srow b { font: 600 var(--fs-xs)/1.25 var(--body); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow small { grid-column: 1 / -1; font: 400 var(--fs-2xs)/1.4 var(--mono); color: var(--faint); }
.srow small .err { color: var(--slow); }

/* ================================================================ the 4K wall: one screen, 24 columns, nothing scrolls by hand */
html.wall body { height: 100vh; overflow: hidden; }
html.wall .app { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
html.wall .search { display: none; }
html.wall #views { min-height: 0; padding: .55rem 1rem .7rem; }
/* three real columns: money + the stream | the day, twins, rules, marks, sources | the rank feed. The long lists fill
   what is left (the calls stream scrolls by itself); the short cards keep their own height. */
html.wall .desk { height: 100%; grid-template-columns: minmax(0, 10fr) minmax(0, 7fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: none; }
html.wall .desk > .col { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; min-width: 0; }
html.wall .desk > .col > * { flex: 0 0 auto; min-height: 0; align-self: stretch; }
html.wall #day, html.wall #tops { align-self: stretch; }    /* beats the desktop grid's own #day / #tops alignment */
html.wall #calls, html.wall #tops { flex: 1 1 0; }
html.wall #tops { position: static; max-height: none; }
html.wall #day { flex: 1 1 auto; }                     /* the day's tape grows into what column B has left */
html.wall #day > .bd { display: flex; flex-direction: column; min-height: 0; }
html.wall #day .tape { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 5rem; }
html.wall #day .tape-bars { flex: 1 1 auto; height: auto; min-height: 3rem; }
html.wall #refused { flex: 0 1 auto; }
html.wall #refused > .bd { position: relative; overflow: hidden; min-height: 0; }
html.wall #pos { max-height: 44%; }
html.wall #twins .why { display: none; }
html.wall :is(#calls, #tops) > .bd { position: relative; overflow: hidden; min-height: 0; padding: 0; }
html.wall :is(#calls, #tops) .scroller { position: absolute; inset: 0; overflow: hidden; padding: .4rem var(--pad) 1.6rem; }
html.wall #calls .scroller { scrollbar-width: none; }
html.wall #pos > .bd { overflow: hidden; padding: .35rem var(--pad) .45rem; min-height: 0; }
html.wall :is(#calls, #tops, #refused) > .bd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2rem; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
html.wall #marks .scroller { padding: 0; }
html.wall .src .bd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding-block: .45rem .55rem; }
html.wall .src .ft { display: none; }
html.wall .tops .trow { padding-block: .48rem; }
html.wall .tops .trow > .lg { width: 1.75rem; height: 1.75rem; }
html.wall .tops .t-spk .spk { height: 1.7rem; }
/* the rank column fills its card (§2: no card more than a quarter empty, review finding 11): the two lists share the
   height by their row counts (--rows), each row grows up to 10rem and the growth goes to its 6-h curve (name,
   numbers and chips top-left, the curve over the whole row beside them, as SDS draws a coin); a long feed keeps the
   natural rows and clips under the fade */
html.wall #tops .scroller { display: flex; flex-direction: column; }
html.wall #tops .tlists { flex: 1 0 auto; display: flex; flex-direction: column; }
html.wall #tops .tl { flex: var(--rows, 0) 0 auto; display: flex; flex-direction: column; }
html.wall #tops .toplist { flex: 1 0 auto; display: flex; flex-direction: column; }
html.wall #tops .toplist > li { flex: 1 0 auto; display: flex; max-height: 10rem; }
html.wall #tops .trow { flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr); align-items: start;
  grid-template-areas: "rk lg nm mc ch spk sc" "rk lg chips chips chips spk sc"; }
html.wall #tops .movers .trow { grid-template-areas: "rk lg nm mc ch spk" "rk lg chips chips chips spk"; }
html.wall #tops .t-spk { align-self: stretch; position: relative; min-height: 1.7rem; }
html.wall #tops .t-spk .spk { position: absolute; inset: 0; height: auto; }   /* the curve adds no height of its own */
html.wall #tops .t-sc { align-self: center; }
html.wall .alarm { top: 3.4rem; }

/* ================================================================ other views */
.view.coiny, .view.knihy, .view.znacky, .view.profil { display: grid; gap: var(--gap); align-content: start; }
.cs-search .bd { display: grid; gap: .6rem; }
.search.big { max-width: none; height: 2.8rem; padding: 0 .35rem 0 .8rem; }
.search.big input { font-size: var(--fs-md); }
.search.big .btn { height: var(--btn-h-sm); border-radius: var(--r-xs); }
.cs-recent { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.cs-recent .lab { margin-right: .3rem; }
.chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem .2rem .25rem; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 var(--fs-xs)/1 var(--body); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--brand-b); }
.cs-note { font: 400 var(--fs-xs)/1.4 var(--body); color: var(--faint); }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .55rem; }
.mini { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lg nm px" "spk spk spk"; align-items: center; gap: .45rem .7rem; padding: .6rem .7rem; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.mini:hover { box-shadow: inset 2px 0 0 var(--select), inset 0 0 0 1px var(--line-2); }
.mini > .lg { grid-area: lg; }
.mi-nm { grid-area: nm; display: grid; gap: .12rem; min-width: 0; }
.mi-nm b { font: 700 var(--fs-md)/1.1 var(--body); }
.mi-nm small { font: 400 var(--fs-2xs)/1.2 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-px { grid-area: px; display: grid; justify-items: end; gap: .12rem; font: 600 var(--fs-sm)/1 var(--mono); }
.mi-px small { font: 400 .55rem/1 var(--mono); color: var(--faint); }
.mini > .spk { grid-area: spk; height: 1.6rem; }
.kb-books { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 2600px) { .kb-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kb-lists { display: grid; gap: .9rem; margin-top: 1rem; }
.kb-sub .sub { display: flex; align-items: center; gap: .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); font: 600 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kb-sub .sub .count { color: var(--faint); }
.kb-twins .lead { margin-bottom: .5rem; font: 400 var(--fs-xs)/1.4 var(--body); color: var(--muted); }
.view.znacky, .view.profil { max-width: 72rem; }
.pf .bd { display: grid; gap: 1rem; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem 1.4rem; }
.pf-facts > div { display: grid; gap: .3rem; }
.pf-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font: 600 var(--fs-md)/1.25 var(--body); }
.pf-facts dd small { font: 400 var(--fs-xs)/1.2 var(--mono); color: var(--faint); }
.pf-facts code { font: 500 var(--fs-xs)/1.3 var(--mono); color: var(--fg); overflow-wrap: anywhere; }
.role-owner { color: var(--brand-b); } .role-pending { color: var(--slow); }
.pf-note { font: 400 var(--fs-xs)/1.4 var(--body); color: var(--muted); }
.pf-act { display: grid; gap: .45rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.pf-act h3 { font: 600 var(--fs-xs)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.pf-act p { font: 400 var(--fs-xs)/1.4 var(--body); color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.row.end { justify-content: flex-end; }
.row input { flex: 1 1 16rem; min-width: 0; height: var(--btn-h); padding: 0 .7rem; border-radius: var(--r-btn); border: var(--hair) solid var(--line-2); background: var(--bg-2); color: var(--fg); font: 500 var(--fs-xs)/1 var(--mono); transition: border-color var(--t) var(--ease); }
.row input:hover { border-color: var(--faint); }
.row input:focus { outline: none; border-color: var(--focus); box-shadow: var(--ring); }
.row input:disabled { color: var(--faint); background: transparent; border-color: var(--line); }
@media (max-width: 759px) { .row input { height: var(--btn-h-lg); } }
.pf-msg { font: 500 var(--fs-xs)/1.3 var(--mono); color: var(--muted); min-height: 1.2em; }
.pf-act h3 .count { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--faint); letter-spacing: .04em; text-transform: none; }
.pf-table { width: 100%; }
.pf-table td { padding: .32rem .6rem .32rem 0; border-top: 1px solid var(--line); font: 400 var(--fs-xs)/1.3 var(--mono); white-space: nowrap; vertical-align: middle; }
.pf-table td small { color: var(--faint); }
.pf-table td.r { text-align: right; }
.pf-table code { font: 500 var(--fs-xs)/1.3 var(--mono); }

/* ================================================================ the coin card (overlay) */
html.coin-open body { overflow: hidden; }
.coin-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 2.5vh 2vw; }
.coin-back { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.coin-card { position: relative; width: min(118rem, 100%); height: min(64rem, 100%); display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); overflow: hidden; }
.coin-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--horizon); }
.cc-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: .5rem 1rem; padding: .85rem var(--pad) .7rem; }
.cc-id { display: grid; gap: .25rem; min-width: 0; }
.cc-id h2 { font: 800 var(--fs-big)/.9 var(--display); letter-spacing: .01em; }
.cc-id p { font: 400 var(--fs-xs)/1.3 var(--mono); color: var(--muted); }
.cc-v { display: inline-flex; align-items: center; gap: .45rem; }
.cc-px { display: grid; justify-items: end; gap: .2rem; }
.cc-px b { font: 600 var(--fs-xl)/1 var(--mono); font-stretch: 87.5%; }
.cc-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 var(--fs-md)/1 var(--body); }
.cc-x:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--brand-b); }
.cc-x:focus-visible { box-shadow: var(--ring); }
.cc-tabs { display: flex; gap: .25rem; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.cc-tabs button { all: unset; cursor: pointer; padding: .45rem .8rem .5rem; font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: var(--r-xs) var(--r-xs) 0 0; }
.cc-tabs button[aria-selected="true"] { color: var(--brand-b); box-shadow: inset 0 -2px 0 var(--brand-b); }
.cc-tabs button:focus-visible { box-shadow: var(--ring); }
.cc-body { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(19rem, 1fr); min-height: 0; }
.cc-main, .cc-dex { grid-column: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding: .7rem var(--pad) .8rem; gap: .6rem; }
.cc-side { grid-column: 2; grid-row: 1; min-height: 0; overflow: auto; padding: .7rem var(--pad) 1rem; border-left: 1px solid var(--line); display: grid; gap: .85rem; align-content: start; scrollbar-width: thin; }
.cc-chart { position: relative; min-height: 14rem; }
.cc-chart svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-chart .g { stroke: var(--line); stroke-width: 1; }
.cc-chart .yl, .cc-chart .xl, .cc-chart .ll { font: 400 10.5px/1 "Martian Mono", monospace; fill: var(--faint); }
.cc-chart .pa { fill: url(#cc-fade); stroke: none; }   /* a vertical fade --area-top -> 0 (chart.js #cc-fade): a fill, not an encoding */
.cc-chart .fa { stop-color: var(--chart); stop-opacity: var(--area-top); }
.cc-chart .fz { stop-color: var(--chart); stop-opacity: 0; }
.cc-chart .px { fill: none; stroke: var(--chart); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cc-chart .hl { stroke: color-mix(in oklab, var(--chart) 38%, transparent); stroke-width: 1; }
.cc-chart .dec { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 4; }
.cc-chart .dec-t { fill: var(--muted); }
.cc-chart .srcm { font: 600 9.5px/1 "Martian Mono", monospace; fill: var(--muted); dominant-baseline: hanging; }
.cc-chart .lv { stroke-width: 1; stroke-dasharray: 5 4; }
.cc-chart .lv-stop_x { stroke: var(--neg); fill: var(--neg); } .cc-chart text.lv-stop_x { stroke: none; }
.cc-chart .lv-tp_x { stroke: var(--pos); fill: var(--pos); } .cc-chart text.lv-tp_x { stroke: none; }
.cc-chart .lv-trail_x { stroke: var(--slow); fill: var(--slow); stroke-dasharray: 2 3; } .cc-chart text.lv-trail_x { stroke: none; }
.cc-chart .lv-bg { flood-color: var(--surface); } .cc-chart text.lvb { fill: transparent; }   /* level labels' tags (chart.js) */
.cc-chart .fl { fill: var(--brand-a); stroke: var(--surface); stroke-width: 1; }
.cc-chart .nowd { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.cc-chart .nowt rect { fill: var(--sun); }
.cc-chart .nowt text { font: 600 10.5px/1 "Martian Mono", monospace; fill: var(--on-sun); }
.cc-chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.ch-read { position: absolute; left: .4rem; top: .2rem; padding: .2rem .45rem; border-radius: var(--r-xs); background: color-mix(in oklab, var(--surface-2) 90%, transparent); font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--fg); pointer-events: none; }
.ch-empty { display: grid; place-content: center; height: 100%; min-height: 12rem; gap: .3rem; text-align: center; font: 400 var(--fs-sm)/1.4 var(--body); color: var(--muted); }
.ch-empty b { color: var(--fg); }
.cc-under { display: grid; gap: .5rem; }
.cc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); }
.cc-legend .k { display: inline-block; width: .9rem; height: 2px; vertical-align: middle; }
.cc-legend .k.px { background: var(--chart); } .cc-legend .k.fl { width: .5rem; height: .5rem; background: var(--brand-a); clip-path: polygon(50% 0, 100% 100%, 0 100%); } .cc-legend .k.lv { background: repeating-linear-gradient(90deg, var(--neg) 0 4px, transparent 4px 7px); }
.cc-pos { width: 100%; }
.cc-pos th, .cc-pos td { padding: .28rem .5rem .28rem 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); font: 400 var(--fs-xs)/1.25 var(--mono); }
.cc-pos thead th { font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.cc-pos .r { text-align: right; }
.cc-dex iframe { width: 100%; height: 100%; min-height: 24rem; border: 0; border-radius: var(--r); background: var(--bg-2); }
.dex-note { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); }
.cc-sec { display: grid; gap: .3rem; }
.cc-sec ul { display: grid; gap: .18rem; }
.cc-sec li, .cc-sec p { font: 400 var(--fs-xs)/1.4 var(--body); }
.cc-sec h3 small { font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); text-transform: none; letter-spacing: 0; }
.cc-sec.verdict .rs li { color: var(--fg); }
.cc-sec .shield { font: 500 var(--fs-xs)/1.3 var(--mono); color: var(--muted); }
.cc-sec .shield.no { color: var(--nie); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { display: grid; gap: .2rem; min-width: 0; }
.facts dd { font: 600 var(--fs-sm)/1.2 var(--body); }
.facts dd small { display: block; font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.cc-books > li { display: grid; justify-items: start; gap: .15rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.cc-books > li:first-child { border-top: 0; }
.cc-books .dc { font: 600 var(--fs-xs)/1.2 var(--body); }
.cc-books .dc.in { color: var(--pos); } .cc-books .dc.no { color: var(--muted); }
.cc-books small { font: 400 var(--fs-2xs)/1.35 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.cc-books ul { padding-left: .2rem; }
.cc-books .ps { font: 400 var(--fs-2xs)/1.4 var(--mono); color: var(--muted); }
.cc-calls li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: .45rem; }
.cc-calls .t { font: 400 var(--fs-2xs)/1 var(--mono); color: var(--faint); }
.cc-calls small { font: 400 var(--fs-2xs)/1.3 var(--mono); color: var(--muted); }
.cc-truth li { font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--fg); }
.cardtext summary { cursor: pointer; font: 500 var(--fs-2xs)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cardtext pre { margin: .4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--fs-2xs)/1.45 var(--mono); color: var(--muted); }
.reading { display: grid; gap: .35rem; padding: 1rem 0; font: 400 var(--fs-sm)/1.45 var(--body); color: var(--muted); }
.reading b { color: var(--fg); font-size: var(--fs-lg); }
.pulse { width: .7rem; height: .7rem; border-radius: 50%; background: var(--chart); animation: breathe 1.2s ease-in-out infinite alternate; }
.reading .since { color: var(--faint); font-size: var(--fs-xs); }
.reading.late b { color: var(--slow); }                 /* a degraded state, said in words: the dossier did not come */
.reading.late .btn { justify-self: start; margin-top: .3rem; }
@keyframes breathe { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
@media (max-width: 899px) {
  .coin-layer { padding: 0; place-items: stretch; }
  .coin-card { width: 100%; height: 100%; border-radius: 0; }
  .cc-hd { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cc-v { grid-column: 2; grid-row: 2; }
  .cc-px { grid-column: 1 / 3; grid-row: 3; justify-items: start; }
  .cc-x { grid-column: 3; grid-row: 1; }
  .cc-body { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .cc-main, .cc-dex { grid-template-rows: auto auto; }
  .cc-chart { height: 17rem; }
  .cc-side { grid-column: 1; grid-row: auto; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .cc-pos { display: block; overflow-x: auto; }
}

/* ================================================================ overlays */
.toast { position: fixed; left: 50%; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); font: 500 var(--fs-sm)/1 var(--body); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast .ic { width: 1rem; height: 1rem; }
.tip { position: fixed; z-index: 70; max-width: 24rem; padding: .45rem .6rem; border-radius: var(--r); background: var(--surface-2); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); font: 400 var(--fs-xs)/1.4 var(--mono); white-space: pre-line; pointer-events: none; }

/* the login wall (auth.js fills #wall): the whole screen in the brand; these classes are its hooks */
#wall { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
#wall .wall-card { display: grid; justify-items: center; gap: 1rem; max-width: 30rem; text-align: center; color: var(--muted); font: 400 var(--fs-md)/1.45 var(--body); }
#wall .wall-mark { width: 4rem; height: 4rem; }
#wall .wm .word { font-size: 2.6rem; font-weight: 500; }

/* ================================================================ every control's states (the «profi» layer): hover, pressed,
   focus (the global ring), disabled, busy; one motion: 120-160 ms ease-out (--t-fast / --t, --ease). Data keeps its
   own animations and their rules: the tick flash 300 ms, the hot row 6 s, the LIVE pulse, the reading pulse */
.nav a, .sel select, .solchip, .chip, .cc-x, .cc-tabs button, .linkish, .amt, .amt small, .mc, .mint, .coin .nm b, .bk, .search,
.crow, .trow, .mini, .prow, .sugg li, .twd > summary, .closed > summary, .rules > summary, .cardtext summary {
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.nav a:active, .solchip:active, .chip:active, .cc-x:active, .cc-tabs button:active { background: var(--surface-2); transition-duration: var(--t-fast); }
.amt:active, .mc:active, .mint:active, .coin:active, .linkish:active { background: color-mix(in oklab, var(--fg) 9%, transparent); transition-duration: var(--t-fast); }
.crow:active, .trow:active, .mini:active, .sugg li:active { background: var(--surface-2); transition-duration: var(--t-fast); }
.bk:hover { background: color-mix(in oklab, var(--hue) 10%, transparent); }
.bk:active { background: color-mix(in oklab, var(--hue) 18%, transparent); transition-duration: var(--t-fast); }
.cc-tabs button:hover { color: var(--fg); }
.linkish:hover { color: var(--brand-b-2); }
.search:hover:not(:focus-within) { box-shadow: inset 0 0 0 var(--hair) var(--faint); }
.twd > summary:hover h2, .closed > summary:hover, .rules > summary:hover, .cardtext summary:hover { color: var(--fg); }
.sel select:disabled, .chip:disabled, .solchip:disabled { cursor: not-allowed; color: var(--faint); border-color: var(--line); box-shadow: inset 0 0 0 var(--hair) var(--line); background: transparent; }
.search input:disabled { cursor: not-allowed; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
