/* CYRIF terminal: one system monospace font, no web fonts, no images, no SVG. */
:root{color-scheme:dark;--font:"Cascadia Mono","Cascadia Code",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --bg:#141413;--fg:#e8e6df;--dim:#8a877d;--faint:#3a3935;--ac:#d97757;--ac2:#e8a17f;--up:#7fb069;--dn:#e5534b;--amb:#e0b050;--sel:rgba(217,119,87,.16);--h1:#6f5a44;--h2:#b87a52;--h3:#e8a17f}
/* phosphor: soft green CRT, toned down from full-glow #39ff6a on black */
:root[data-skin=phosphor]{--bg:#050c07;--panel:#0c1710;--fg:#a2e4b4;--dim:#5f8f6e;--faint:#1d3a28;--ac:#4fd97a;--ac2:#a8e8b8;--up:#6fe098;--dn:#ef7272;--amb:#d4c85a;--sel:rgba(79,217,122,.12);--h1:#2a6a3c;--h2:#48b868;--h3:#a8e8b8}
:root[data-skin=amber]{--bg:#0b0700;--fg:#ffcf73;--dim:#a07522;--faint:#3a2a08;--ac:#ffb000;--ac2:#ffe0a0;--up:#9fe06a;--dn:#ff6040;--amb:#ffb000;--sel:rgba(255,176,0,.13);--h1:#7a5510;--h2:#d08d10;--h3:#ffe0a0}
:root[data-skin=bloomberg]{--bg:#000000;--fg:#f2f2f2;--dim:#8c8c8c;--faint:#2b2b2b;--ac:#fb8b1e;--ac2:#ffc27a;--up:#4af6c3;--dn:#ff433d;--amb:#fb8b1e;--sel:rgba(251,139,30,.15);--h1:#6b3d0e;--h2:#c06a18;--h3:#ffc27a}
/* crimson: black and red like a gaming-GPU control panel */
:root[data-skin=crimson]{--bg:#0c0c0d;--fg:#f0f0f0;--dim:#8e8e93;--faint:#3a2a2e;--ac:#e0143e;--ac2:#ff6b81;--up:#3ddc84;--dn:#ff5a5a;--amb:#ffb020;--sel:rgba(224,20,62,.18);--h1:#5a1020;--h2:#a3122f;--h3:#ff6b81}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--fg);font:13px/1.45 var(--font);overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button{all:unset;cursor:pointer;color:var(--dim)}
button:hover{color:var(--fg)}
button.on{color:var(--ac)}
pre{margin:0;font:inherit;line-height:1.2;white-space:pre;overflow:hidden}
.up{color:var(--up)}.dn{color:var(--dn)}.dim{color:var(--dim)}.ac{color:var(--ac)}.amb{color:var(--amb)}.b{font-weight:700}
.clk{cursor:pointer}.clk:hover{color:var(--ac)}
.hotb{color:var(--bg);background:var(--dn);padding:0 3px;font-weight:700}
.warnb{color:var(--bg);background:var(--amb);padding:0 3px;font-weight:700}
.s-x{color:var(--ac)}.s-hl{color:var(--amb)}.s-bn{color:var(--dn)}.s-pm{color:var(--ac2)}
.kw{color:var(--amb)}.cc{color:var(--ac2)}

/* header, status line, signals */
.bar{display:flex;flex-wrap:wrap;gap:4px 22px;align-items:center;padding:6px 16px;border-bottom:1px solid var(--faint)}
.bar .logo{color:var(--ac);font-weight:700;letter-spacing:.12em}
.bar .grp{display:flex;gap:12px}
.bar .r{margin-left:auto;display:flex;gap:16px;align-items:center}
#sndB.amb{color:var(--amb)}
#live .dot{color:var(--up)}#live.warn .dot{color:var(--amb)}#live.off .dot{color:var(--dn)}
.status{display:flex;white-space:nowrap;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--faint)}
.status::-webkit-scrollbar{display:none}
.status>span{padding:3px 12px;border-right:1px solid var(--faint);flex:none}
.status .mode{background:var(--ac);color:var(--bg);font-weight:700}
.status .mode.off{background:var(--dn)}
.sig{display:flex;flex-wrap:wrap;gap:2px 20px;padding:4px 16px;border-bottom:1px solid var(--faint)}
.sig .crit{color:var(--bg);background:var(--dn);padding:0 4px;font-weight:700}
.sig .warn{color:var(--bg);background:var(--amb);padding:0 4px;font-weight:700}
.sig .info{color:var(--ac)}

/* panes: a hairline box with the title cut into the top border */
.view{display:none;padding:18px 16px 10px;gap:18px}
.view.on{display:grid}
.pane{position:relative;border:1px solid var(--faint);border-radius:6px;padding:14px 12px 10px;min-width:0;min-height:0;background:var(--bg)}
.pane>.t{position:absolute;top:-9px;left:10px;padding:0 6px;background:var(--bg);color:var(--ac);font-weight:700;letter-spacing:.04em;white-space:nowrap;max-width:60%;overflow:hidden}
.pane>.t .dim{font-weight:400}
.pane>.k{position:absolute;top:-9px;right:10px;padding:0 6px;background:var(--bg);color:var(--dim);white-space:nowrap}
.pane>pre,.pane>div{overflow:hidden}  /* the pane itself stays visible so its title can sit on the border */
.zm{display:flex;flex-wrap:wrap;gap:2px 14px;padding:0 0 6px;color:var(--dim)}
.pane>.k.zm{padding:0 6px;gap:10px}
.zm.flt{font-size:15px}  /* feed filter tabs */

/* layout 1 · tmux */
#vA{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
/* F11: the map + feed row takes 40% of the extra height (--grow, set in term.js), the bottom row the rest;
   everything stays pinned to the top of its box and the extra room opens up underneath */
#vA .feed{min-height:calc(min(430px,36vh) + var(--grow,0px))}
#vA .pane.scan{padding-bottom:calc(10px + var(--grow,0px))}
#vA .row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr) minmax(0,1fr);gap:18px}
/* layout 2 · log */
#vB{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:start}
#vB .side{display:grid;gap:18px}
#vB .feed{height:calc(100vh - 150px);min-height:420px}
/* layout 3 · repl */
#vC{grid-template-columns:minmax(0,1fr)}
#vC .session{min-height:calc(100vh - 170px)}
#sess section{margin:2px 0 14px}
#sess .cmd{color:var(--ac)}
#sess .cmd::before{content:"cyrif ❯ ";font-weight:700}
.banner{color:var(--ac);line-height:1.05}

/* feed: hero + fixed-height lines, so a page never changes size */
.feed{display:flex;flex-direction:column}
.feed .log{flex:1;height:0}
.hero{border:1px solid var(--faint);border-left:3px solid var(--ac);padding:5px 9px 6px;margin:0 0 6px;cursor:pointer;font-size:17.9px}  /* feed hero */
.hero.hot{border-left-color:var(--dn)}
.hero.sel{background:var(--sel)}
.hero .hm{display:flex;gap:8px;white-space:nowrap;overflow:hidden}
.hero .hm .ago{margin-left:auto;color:var(--amb)}
.hero .ht{font-size:20px;line-height:1.4;margin:3px 0 4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;height:calc(20px * 1.4 * 3)}
.hero .hr{display:flex;flex-wrap:wrap;gap:2px 18px;white-space:nowrap}
.hero .rc{cursor:pointer}
.hero.empty{color:var(--dim);border-left-color:var(--faint);cursor:default}
.ln{display:flex;gap:10px;height:27px;line-height:27px;font-size:18px;overflow:hidden;white-space:nowrap;cursor:pointer}
.ln:hover{background:var(--sel)}
.ln .tm{color:var(--dim);flex:none}
.ln .src{flex:none;width:3ch}
.ln .who{flex:none;width:14ch;color:var(--dim);overflow:hidden;text-overflow:ellipsis}
.ln .tx{flex:1;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ln .rx{flex:none;text-align:right}
.ln.sel{background:var(--sel);box-shadow:inset 2px 0 var(--ac)}
/* new item: a quick 8-bit inverse flash that lands on the row's own background (selected rows stay tinted, no snap) */
.ln.new,.hero.new{animation:flash .45s steps(3) 1}
@keyframes flash{from{background:var(--fg);color:var(--bg)}}
.log .none{color:var(--dim);padding:6px 0}

/* world map: every glyph is text */
.map{color:var(--dim);cursor:crosshair}
.map .l0{color:var(--dim)}.map .l1{color:var(--h1)}.map .l2{color:var(--h2)}.map .l3{color:var(--h3)}
.map .nt{opacity:.45}
.map .sw{color:var(--ac);text-shadow:0 0 6px var(--ac)}
.map .pH{color:var(--dn);font-weight:700}.map .pN{color:var(--ac);font-weight:700}
.map .rg{color:var(--ac)}.map .rgH{color:var(--dn)}
.map .pa{color:var(--dim)}.map .ph{color:var(--up);font-weight:700}.map .phD{color:var(--dn);font-weight:700}
.map .bx{color:var(--ac2)}.map .bxH{color:var(--dn)}.map .tx{color:var(--fg)}
.map .ex{color:var(--up)}.map .exc{color:var(--faint)}
.map .rd{color:var(--ac);opacity:.45}.map .pr{color:var(--amb);font-weight:700}.map .tr{color:var(--amb);opacity:.55}
.map .rt{color:var(--fg);font-weight:700}.map .zz{color:var(--ac2)}
.map .vu{color:var(--bg);background:var(--up);font-weight:700}.map .vd{color:var(--bg);background:var(--dn);font-weight:700}.map .vw{color:var(--bg);background:var(--amb);font-weight:700}
.map .od{color:var(--bg);background:var(--amb);font-weight:700}
/* CYRIF himself: the Heavy Sentry, bottom-left of the map, with a status line */
.mascot{position:absolute;inset:0;pointer-events:none}
.mascot canvas{position:absolute;display:block;image-rendering:pixelated;pointer-events:auto;cursor:pointer}
/* thought bubble: pixel corners, tail stepping down-right to him; green pumping, red dumping */
#bubw{position:absolute;pointer-events:auto;cursor:default}
#bubw .bub{font-size:1.2em;font-weight:700;letter-spacing:.06em;padding:4px 10px;white-space:nowrap;color:var(--bg);
  clip-path:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px))}
#bubw i{position:absolute;display:block}
#bubw .t1{right:14px;bottom:-6px;width:6px;height:6px}
#bubw .t2{right:8px;bottom:-11px;width:4px;height:4px}
#bubw.pump .bub,#bubw.pump i{background:var(--up)}
#bubw.dump .bub,#bubw.dump i{background:var(--dn)}
.say{position:absolute;left:0;bottom:0;font-size:1.2em;line-height:1.3;white-space:nowrap;color:var(--fg)}
.say .who{color:var(--ac);font-weight:700;letter-spacing:.08em}
.say .cur{color:var(--ac)}
.say.hot .msg{color:var(--dn)}
/* text over the map, 44% larger than the dot grid */
.mapw{position:relative}
.mapo{position:absolute;inset:0;pointer-events:none;font-size:1.44em;line-height:1.2}
.mapo>span{position:absolute;white-space:pre}
.mapo .ex{color:var(--up)}.mapo .hub{color:var(--up);font-weight:700}.mapo .hubD{color:var(--dn);font-weight:700}
.mapo .co{position:absolute;border:1px solid var(--ac2);border-radius:4px;background:var(--bg);padding:.6em .7em .5em;color:var(--fg);line-height:1.3}
.mapo .co.hot{border-color:var(--dn)}
.mapo .cT,.mapo .cF{position:absolute;left:.6em;padding:0 .35em;background:var(--bg);color:var(--ac2);white-space:nowrap;max-width:calc(100% - 1.2em);overflow:hidden;text-overflow:ellipsis}
.mapo .cT{top:-.7em}.mapo .cF{bottom:-.7em}
.mapo .co.hot .cT,.mapo .co.hot .cF{color:var(--dn)}
.mapo .cB{height:6.5em;overflow:hidden;overflow-wrap:anywhere}
.mapo .cB i{font-style:normal;color:var(--ac)}
.lane{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:22px;padding-top:8px;white-space:nowrap;overflow:hidden;font-size:16px}
.lane .h{color:var(--amb);font-weight:700}

/* tables */
table{border-collapse:collapse;width:100%}
td,th{padding:0 10px 0 0;text-align:right;white-space:nowrap;font-weight:400}
th{color:var(--dim)}
td:first-child,th:first-child,td.l,th.l{text-align:left}
tr[data-chart]{cursor:pointer}
tr[data-chart]:hover td{color:var(--ac)}
tr.sel td{background:var(--sel)}
.chart{line-height:1.05}
.chart .big{font-size:17px}
.pm{display:flex;gap:10px;white-space:nowrap;overflow:hidden}
.pm .q{overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.pm .p{flex:none;width:5ch;text-align:right;font-weight:700}
.pm .c{flex:none;width:7ch;text-align:right}
.cal{display:flex;gap:10px;white-space:nowrap;overflow:hidden}
.cal .w{flex:none;width:9ch;color:var(--dim)}
.cal .c{flex:none;width:4ch}
.cal .c.High{color:var(--dn)}.cal .c.Medium{color:var(--amb)}.cal .c.Low{color:var(--dim)}
.cal .ti{overflow:hidden;text-overflow:ellipsis;min-width:0}
.cal.past{opacity:.5}
.sub{color:var(--dim);margin:8px 0 2px}

/* markets | chart tabs, real candles */
.pane>.t button{font-weight:700;color:var(--dim);letter-spacing:.04em}
.pane>.t button.on{color:var(--ac)}
/* bigger, easier-to-hit tab buttons in pane titles (markets | chart, timeframes) */
.pane>.t:has(button),.pane>.k:has(button[data-tf]){top:-12px;font-size:16px}
.pane>.t button,.pane>.k button[data-tf]{font-size:16px;padding:0 4px}
.chh{margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chh .big{font-size:16px}
/* chart fills its whole pane, so switching tabs never changes the box size */
#chW{position:absolute;inset:14px 12px 10px;display:flex;flex-direction:column}
#chW[hidden]{display:none}
#chW .lc{flex:1;min-height:0}
.pane:has(>#chW:not([hidden])){min-height:330px}
/* markets | analysis | positioning row: one fixed height so tabs never grow or shrink it */
/* tmux layout on wide screens: the page is exactly one window tall; the bottom row takes what's left (min 460px) */
@media (min-width:1181px){
  body:has(#vA.on){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
  body:has(#vA.on)>*{flex:none}
  body:has(#vA.on)>#vA{flex:1 1 0;min-height:0;grid-template-rows:auto minmax(460px,1fr)}
  #vA .row:has(#chW){min-height:0}
}
#vA .row:has(#chW) #anA{max-height:100%;overflow:hidden}
#vA .row:has(#chW) #mkA{max-height:100%;overflow-y:auto;scrollbar-width:thin}
#vA .row:has(#chW) :is(#posA,#ocA,#pmA,#calA,#jvA){height:100%;overflow-y:auto;scrollbar-width:thin;margin:0}
.pane>.t.wide{max-width:calc(100% - 20px);font-size:clamp(12px,.72vw,14.5px);top:-11px}
.pane>.t.wide button{font-size:inherit;padding:0 2px}
/* markets hero: the selected market, same outline as the feed hero */
.mkhero{border:1px solid var(--faint);border-left:3px solid var(--ac);padding:5px 9px 6px;margin:0 0 8px}
.mh-top{display:flex;gap:8px;align-items:baseline}
.mh-name{font-size:1.16em;letter-spacing:.04em}
.mh-go{margin-left:auto;color:var(--ac)}
.mh-go:hover{text-decoration:underline}
.mh-px{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;margin:2px 0}
.mh-big{font-size:1.69em;font-weight:700}
.mh-spk{letter-spacing:0;white-space:nowrap;overflow:hidden;line-height:1.1;font-size:1.16em}
.mh-ax{display:flex;justify-content:space-between;font-size:.84em}
.mh-meta{margin-top:2px}
.mh-jev{margin-top:2px}

#mkA{font-size:19.8px}  /* markets tab: larger than the rest of the terminal */
.tk2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:start}
.tkcol{display:flex;flex-direction:column;gap:2px;min-height:40px;padding-bottom:12px}
.tk2 .tk{display:flex;justify-content:space-between;gap:8px;padding:2px 6px;cursor:pointer;white-space:nowrap}
.tk2 .tk:hover{background:var(--sel)}
.tk2 .tk.sel{background:var(--sel);box-shadow:inset 2px 0 var(--ac)}
.tk2 .tk[draggable=true]{cursor:grab}
/* 8-bit tick blink on the digits that changed */
.bl-up{animation:tick-up .9s steps(3) both}.bl-dn{animation:tick-dn .9s steps(3) both}
@keyframes tick-up{0%,66%{background:var(--up);color:var(--bg)}100%{background:transparent}}
@keyframes tick-dn{0%,66%{background:var(--dn);color:var(--bg)}100%{background:transparent}}
.tk2 .tk.drag{opacity:.35}
.tk2 .tk.over-top{box-shadow:inset 0 2px var(--ac)}
.tk2 .tk.over-bot{box-shadow:inset 0 -2px var(--ac)}

/* positioning: verdict hero, one row per coin, market in words, whales that matter */
.ps-coins{display:flex;gap:8px;margin-bottom:6px}
.ps-coins button.on{color:var(--ac);font-weight:700}
.ps-hero{border:1px solid var(--faint);border-left:3px solid var(--amb);padding:5px 9px 6px;margin-bottom:8px}
.ps-hero.r{border-left-color:var(--dn)}.ps-hero.g{border-left-color:var(--up)}.ps-hero.d{border-left-color:var(--faint)}
.ps-hv{font-size:15px;font-weight:700;margin-bottom:2px}
.ps-sq{font-size:13px;font-weight:400}
.ps-kv{display:grid;grid-template-columns:auto 1fr;gap:1px 12px}
.ps-kv .k,.ps-hero .k{color:var(--dim);font-size:11px;letter-spacing:.06em;align-self:center}
.ps-t th{font-size:11px;letter-spacing:.06em}
.ps-t td,.ps-t th{padding:1px 8px 1px 0}
.ps-tag{font-weight:700;padding:0 4px;color:var(--bg)}
.ps-tag.a{background:var(--amb)}.ps-tag.r{background:var(--dn)}.ps-tag.g{background:var(--up)}.ps-tag.d{background:var(--faint);color:var(--fg)}
.ps-split{display:flex;height:8px;margin:1px 0 3px}
.ps-split i{display:block}
.ps-bars{letter-spacing:0;line-height:1;white-space:nowrap;overflow:hidden}

/* CYRIF analysis: ranked items, most urgent first */
#anA .it,.anl .it{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 10px;padding:5px 0;border-bottom:1px dashed var(--faint)}
#anA .it:last-child,.anl .it:last-child{border-bottom:0}
.it .why{grid-column:2;color:var(--dim)}
.it .sev{font-weight:700;padding:0 4px;color:var(--bg);align-self:start;text-align:center}
.it .sev.r{background:var(--dn)}.it .sev.a{background:var(--amb)}.it .sev.d{background:var(--faint);color:var(--fg)}
.it.clk{cursor:pointer}.it.clk:hover{background:var(--sel)}

/* analysis story cards: same outline as the feed hero (faint box, accent line on the left, red when major) */
.acard{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:2px 14px;padding:5px 9px 6px;margin-bottom:8px;cursor:pointer;border:1px solid var(--faint);border-left:3px solid var(--ac)}
.acard.r{border-left-color:var(--dn)}
.acard:hover{background:var(--sel)}
.acard .ahd{grid-column:1/-1;display:flex;gap:8px;align-items:baseline}
.acard .ahd .age{margin-left:auto;color:var(--dim)}
.acard .tag{font-weight:700;padding:0 4px;color:var(--bg);background:var(--amb)}
.acard .tag.r{background:var(--dn)}
.acard .atx{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* hero: the top story, bigger */
.acard.hero{grid-template-columns:minmax(0,1fr) 250px;margin-bottom:4px}
.acard .ast .wrap{white-space:normal;display:inline-block}
.acard.hero .atx{font-size:15.5px;line-height:1.4;-webkit-line-clamp:4;margin:2px 0 3px}
.acard.hero .ast .b{font-size:15px}
.acard .also{margin-top:3px}
/* thesis hero: the hottest market call, with the stories that heated it */
.acard.thesis{display:block;cursor:default}
.acard.thesis.quiet{border-left-color:var(--faint);opacity:.75}
.th-q{font-size:12px;margin-bottom:2px}
.th-top{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.th-name{font-size:18px;font-weight:700;letter-spacing:.04em}
.th-heat b{font-size:15px}
.th-sub{margin:2px 0 6px}
.th-tl .tl{display:grid;grid-template-columns:auto 4ch minmax(0,1fr) auto;gap:0 10px;padding:1px 0;white-space:nowrap}
.th-tl .tl:hover{background:var(--sel)}
.th-tl .tl .atx{overflow:hidden;text-overflow:ellipsis}
.th-tl .tl .tm{color:var(--dim)}
.arow.thr{grid-template-columns:9ch auto auto minmax(0,1fr)}
/* the rest: one line each, no side line */
.arow{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:0 10px;align-items:baseline;padding:3px 6px 3px 0;margin-bottom:3px;cursor:pointer;white-space:nowrap}
.arow:hover{background:var(--sel)}
.arow .tag{font-weight:700;padding:0 4px;color:var(--bg);background:var(--amb)}
.arow .tag.r{background:var(--dn)}
.arow .atx{overflow:hidden;text-overflow:ellipsis}
.arow .acall{font-weight:700}
.arow .tm{color:var(--dim)}
.acard .ast{border-left:1px dashed var(--faint);padding-left:10px;display:grid;grid-template-columns:auto 1fr;gap:0 8px;align-content:start;white-space:nowrap}
.acard .ast .k{color:var(--dim);font-size:11px;letter-spacing:.06em}
.acard .ast .big{font-size:15px;font-weight:700}
.acard .asep{grid-column:1/-1;border-top:1px dashed var(--faint);margin:3px 0}
.asub{color:var(--dim);font-size:11px;letter-spacing:.08em;margin:10px 0 3px}
.atabs{display:flex;flex-wrap:wrap;gap:8px;font-size:15px;align-items:baseline;margin:10px 0 5px;border-bottom:1px dashed var(--faint);padding-bottom:3px}
.atabs button{color:var(--dim);letter-spacing:.04em}
.atabs button.on{color:var(--ac);font-weight:700}
.atab{min-height:120px}
/* thinking pane */
.acard.vd{display:block;font-size:1.2em}
.vd-top{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.vd-big{font-size:25px;font-weight:700}
.vd-bar{font-size:18px;letter-spacing:-1px}
.vd-sub{margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vd-off{color:var(--faint)}
.acard.vd.upl{border-left-color:var(--up)}.acard.vd.dnl{border-left-color:var(--dn)}
.acard.vd.quiet{border-left-color:var(--faint)}
/* conviction tab: the score, its gauge and the three pillars as gauge panels */
.cv{display:flex;flex-direction:column;gap:9px;height:100%;overflow:hidden;font-size:18px;line-height:1.45}
.cvhead{display:flex;flex-direction:column;gap:5px}
.cvtop{display:flex;gap:13px;align-items:baseline;flex-wrap:wrap;min-width:0}
.cvbig{font-size:36px;font-weight:700;line-height:1}
.cvmain{display:flex;gap:10px;align-items:center;font-size:16px}
.cvmain .cvg{flex:1;height:11px}
.cvev{font-size:16px}
.cvg{position:relative;height:9px;background:var(--faint);overflow:hidden}
.cvg i{position:absolute;top:0;bottom:0;background:currentColor}
.cvg u{position:absolute;left:50%;top:0;bottom:0;width:1px;margin-left:-1px;background:var(--bg);opacity:.75}
.cvcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px;align-content:start;flex:1;min-height:0}
.cvp{border:1px solid var(--faint);border-top-width:2px;padding:7px 11px 9px;min-width:0;overflow:hidden;display:flex;flex-direction:column}
.cvp.upl{border-top-color:var(--up)}.cvp.dnl{border-top-color:var(--dn)}.cvp.ambl{border-top-color:var(--amb)}.cvp.diml{border-top-color:var(--faint)}
.cvh{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:14.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.cvh b{font-size:23px}
.cvrs{margin-top:6px;min-height:0;overflow:hidden}
.cvr{display:flex;justify-content:space-between;gap:9px;align-items:baseline;min-width:0;font-size:17px}
.cvr .ell{min-width:0;overflow-wrap:anywhere}
.cvr b{flex:none}
/* 2.0 only: the measurement strip - a hit rate is never shown without its baseline and sample size */
.cvm{border-top:1px dashed var(--faint);border-bottom:1px dashed var(--faint);padding:4px 0;margin-top:2px;font-size:15px;display:flex;flex-direction:column;gap:2px}
.cvmr{display:grid;grid-template-columns:48px auto minmax(0,1fr);gap:12px;align-items:baseline}
.cvml{color:var(--dim);font-size:13px;letter-spacing:.07em;text-transform:uppercase}
.cvm .ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cvv{font-size:13px;letter-spacing:.08em;margin-left:auto}
@media(max-width:760px){.cvp{border:0;border-left:2px solid var(--faint);padding:2px 0 3px 10px}}
/* console: the pane fills its box; counters left, story log right */
#vA .row:has(#chW) #anA{height:100%;display:flex;flex-direction:column}
#anA .atab{flex:1;min-height:0;overflow:hidden}
.cons{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;height:100%;font-size:17.3px}
.cs{border-left:2px solid var(--faint);padding:0 0 10px 10px}
.cs-v{font-size:31px;font-weight:700;line-height:1.15}
.cs-v.cs-sm{font-size:22px}
.cs-l{font-size:13px;color:var(--dim);letter-spacing:.06em;text-transform:uppercase}
.clog{min-width:0;overflow:hidden}
.cl{flex:none;display:grid;grid-template-columns:4px 5ch minmax(0,1fr) auto;gap:0 10px;align-items:center;padding:4px 0;white-space:nowrap}
.cl .cg{align-self:stretch;background:var(--faint)}
.cl .ell{overflow:hidden;text-overflow:ellipsis}
.cl.sk{color:var(--dim);opacity:.55}
.cl:hover{background:var(--sel);opacity:1}
.tk-foot{display:flex;gap:18px;flex-wrap:wrap;border-top:1px dashed var(--faint);margin-top:auto;padding-top:4px;color:var(--dim);font-size:14.5px}
.acalls{width:100%}
.acalls td{padding:1px 10px 1px 0;text-align:left}
.amood{margin-top:4px}
@media (max-width:720px){
  .cons{grid-template-columns:minmax(0,1fr)}.cstats{display:flex;flex-wrap:wrap;gap:0 14px}.acard{grid-template-columns:minmax(0,1fr)}.acard .ast{border-left:0;padding-left:0}}

/* command line + output */
.out{position:relative;margin:0 16px 8px;border:1px solid var(--faint);border-radius:6px;padding:10px 12px;max-height:55vh;overflow:auto}
.out .x{position:absolute;top:6px;right:10px}
.prompt{position:sticky;bottom:0;display:flex;align-items:center;gap:8px;padding:7px 16px;border-top:1px solid var(--faint);background:var(--bg)}
.prompt .p{color:var(--ac);font-weight:700}
.prompt input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--fg);font:inherit;caret-color:var(--ac)}
.prompt .hint{color:var(--dim);white-space:nowrap}

/* narrower screens: panes stack, the feed keeps a fixed number of lines */
@media (max-width:1180px){
  #vA,#vB{grid-template-columns:minmax(0,1fr)}
  #vA .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #vA .row:has(#chW){height:auto;grid-auto-rows:750px}
  #vA .feed .log,#vB .feed .log{flex:none;height:auto}
  #vB .feed{height:auto;min-height:0}
  .prompt .hint{display:none}
}
@media (max-width:720px){
  #vA .row{grid-template-columns:minmax(0,1fr)}
  .bar .r{margin-left:0}
  .ln .who{display:none}
  .scan>.k{display:none}
}

/* positioning · crowding gauges */
.ps2{font-size:15px}
.gz{padding:4px 0 5px;border-bottom:1px dashed var(--faint)}
.gz:hover{background:var(--sel)}
.gz-top{display:grid;grid-template-columns:8ch minmax(0,1fr) auto;gap:10px;align-items:baseline}
.gz-why{color:var(--dim);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gz-sc{position:relative;height:10px;margin:5px 2px 0;background:linear-gradient(90deg,var(--up) 0%,var(--faint) 35%,var(--faint) 65%,var(--dn) 100%)}
.gz-m{position:absolute;top:-4px;width:4px;height:20px;margin-left:-2px;background:var(--fg);box-shadow:0 0 0 2px var(--bg)}
.gz-leg{display:flex;justify-content:space-between;font-size:12px;margin-top:4px}
.ps2 .ps-kv{font-size:14.5px}
.lqb{display:flex;align-items:flex-end;gap:2px;height:36px;border-bottom:1px solid var(--faint)}
.lqb i{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end}
.lqb b{display:block}
.lq-ax{display:flex;justify-content:space-between;font-size:12px;color:var(--dim)}
.wh2{display:grid;grid-template-columns:13ch 6ch minmax(0,1fr) auto;gap:10px;padding:2px 0;font-size:14px;white-space:nowrap}
.wh2>span{overflow:hidden;text-overflow:ellipsis}
.wh2:hover{background:var(--sel)}

/* on-chain tab */
.oc2{display:flex;flex-direction:column;gap:8px;height:100%;font-size:17.3px}
.oc-hero{border:1px solid var(--faint);border-left:3px solid var(--ac);padding:7px 10px;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.oc-hero .ps-tag{font-size:17.3px}
.oc-lead{color:var(--fg);font-size:15.5px}
.oc-r{display:grid;grid-template-columns:17.5ch minmax(0,1fr);gap:0 12px;align-items:baseline;padding:1px 0;border-bottom:1px dashed var(--faint);white-space:nowrap}
.oc-r>span{overflow:hidden;text-overflow:ellipsis}
.oc-l{color:var(--dim)}
.oc-rd{font-size:15px;grid-column:2}
.oc-charts{margin-top:auto}
.oc-area,.oc-etf{height:50px;display:flex;align-items:flex-end;gap:1px;border-bottom:1px solid var(--faint)}
.oc-area i{flex:1;background:var(--ac);opacity:.85}
.oc-etf{align-items:stretch;border-bottom:0}
.oc-etf i{flex:1;display:flex;flex-direction:column}
.oc-etf s{height:50%;display:flex;flex-direction:column;justify-content:flex-end;text-decoration:none}
.oc-etf s+s{justify-content:flex-start;border-top:1px solid var(--faint)}
.oc-etf b{display:block}
.oc-etf b.p{background:var(--up)}.oc-etf b.n{background:var(--dn)}
.oc-ex{display:flex;gap:14px;flex-wrap:wrap;font-size:15px;margin-top:4px}
.oc2 .asub,.oc2 .lq-ax{font-size:13.5px}
/* on-chain: numbers stay neutral (the arrow is direction); the BULLISH / BEARISH tag carries the colour */
.oc-r>span:nth-child(2) .up,.oc-r>span:nth-child(2) .dn{color:var(--fg)}
.oc-rd{color:var(--dim)}
.oc-b{font-weight:700;margin-right:6px}
/* polymarket event board */
#pmA{font-size:18.5px}
.pm-mv{border:1px solid var(--faint);border-left:3px solid var(--amb);padding:5px 9px;font-size:17px;margin-bottom:4px}
.pm-mv a{color:inherit}
.pm-sec{display:flex;justify-content:space-between;gap:10px;font-size:14.5px;color:var(--dim);letter-spacing:.08em;text-transform:uppercase;margin:8px 0 1px;border-bottom:1px solid var(--faint)}
.pe{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:center;padding:3px 0;border-bottom:1px dashed var(--faint);color:inherit;text-decoration:none}
.pe:hover{background:var(--sel)}
.pe-t{font-weight:700;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}
.pe-h{white-space:nowrap;text-align:right}
.pe-s{grid-column:1/-1;font-size:15.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pe-s b,.pm-mv b{color:var(--fg);font-weight:400}
.pe .ps-tag{font-size:15px}
.pm-ft{font-size:12px;margin-top:6px}
/* polymarket 8-bit meter boxes */
.pe,.pe:hover{text-decoration:none}
.pe-bx{display:flex;gap:4px}
.pmb{width:106px;border:1px solid var(--faint);padding:1px 5px 2px;line-height:1.2;background:var(--bg)}
.pmb-l{display:flex;justify-content:space-between;gap:4px;font-size:14px;color:var(--dim);white-space:nowrap}
.pmb-l span{overflow:hidden;text-overflow:ellipsis}
.pmb-l b{color:var(--fg);font-size:17px}
.pmb-m{display:flex;align-items:baseline;font-size:14px;letter-spacing:-1px;white-space:nowrap}
.pmb-m i{font-style:normal;letter-spacing:0;margin-left:auto;padding-left:3px;font-size:13px}
/* movers banner: name + meter box (odds before ▸ now) */
.pm-mv{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap}
.pm-mvh{margin-right:2px}
.pm-mvi{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.pm-mvi:hover{text-decoration:none;background:var(--sel)}
.pm-mvn{display:flex;flex-direction:column;line-height:1.15}
.pm-mvn small{font-size:12.5px;color:var(--dim)}
/* calendar tab */
#calA{font-size:16.5px}
#vA .row:has(#chW) #calA:not([hidden]){display:flex;flex-direction:column;overflow:hidden}
.cal-hero{border:1px solid var(--faint);border-left:3px solid var(--amb);padding:6px 10px;margin-bottom:4px}
.cal-hero.hi{border-left-color:var(--dn)}
.ch-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.ch-n{font-size:19px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-cd{font-size:19px;font-weight:700;color:var(--amb);white-space:nowrap}
.ch-sub{font-size:14px}
.cal-list{flex:1;min-height:0;overflow:hidden}
.cd{display:flex;justify-content:space-between;font-size:13px;color:var(--dim);letter-spacing:.08em;margin:7px 0 1px;border-bottom:1px solid var(--faint)}
.cr{display:grid;grid-template-columns:5ch 6px 5ch minmax(0,1fr) auto;gap:0 9px;align-items:center;padding:2px 0;white-space:nowrap}
.cr>span{overflow:hidden;text-overflow:ellipsis}
.cr-t{color:var(--dim)}
.cr-i{height:14px}
.cr-i.hi{background:var(--dn)}.cr-i.md{background:var(--amb)}
.cr-c{color:var(--amb);font-weight:700}
.cr-v{font-size:14.5px;text-align:right}
.cr.past{opacity:.5}
.cal-ft{font-size:14px;border-top:1px dashed var(--faint);padding-top:4px;margin-top:4px}
/* analysis: four core market cards */
.cc4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:2px}
.cc4>.cc{border:1px solid var(--faint);border-left:3px solid var(--faint);padding:4px 8px;font-size:15px;line-height:1.35;min-width:0}
.cc4>.cc.upl{border-left-color:var(--up)}.cc4>.cc.dnl{border-left-color:var(--dn)}
.cc4>.cc.quiet{opacity:.6}
.cc4>.cc:hover{background:var(--sel)}
.cc-h{display:flex;justify-content:space-between;align-items:baseline;gap:6px;white-space:nowrap}
.cc-h b{font-size:22px;letter-spacing:.03em}
.cc-v{font-weight:700;font-size:16.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-b{white-space:nowrap;letter-spacing:-.5px}
.cc-s{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:720px){.cc4{grid-template-columns:repeat(2,minmax(0,1fr))}}
#mkA.compact :is(.mh-spk,.mh-ax,.mh-meta,.mh-jev){display:none}
.mh-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mh-jv{margin-left:auto;white-space:nowrap;font-size:.9em}
.mh-jv+.mh-go{margin-left:12px}
.mk-more{display:none}  /* phone only */
/* hero is always the same height: every line stays on one line */
.mh-top,.mh-px{flex-wrap:nowrap;white-space:nowrap;min-width:0}
.mh-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-px>*{white-space:nowrap}
.cc4>.cc{display:flex;flex-direction:column;justify-content:space-between}
/* lock-on reticle: four corner brackets forming a true square */
.mapo .ret{position:absolute;pointer-events:none}
.mapo .ret i{position:absolute;width:32%;height:32%;border:0 solid var(--fg)}
.mapo .ret i:nth-child(1){left:0;top:0;border-width:2px 0 0 2px}
.mapo .ret i:nth-child(2){right:0;top:0;border-width:2px 2px 0 0}
.mapo .ret i:nth-child(3){left:0;bottom:0;border-width:0 0 2px 2px}
.mapo .ret i:nth-child(4){right:0;bottom:0;border-width:0 2px 2px 0}
/* jev calls tab */
#jvA{font-size:clamp(12.5px,.6vw,15px)}
#vA .row:has(#chW) #jvA:not([hidden]){display:flex;flex-direction:column;overflow:hidden}
.jv-sum{display:flex;gap:18px;flex-wrap:wrap;border:1px solid var(--faint);border-left:3px solid var(--ac);padding:5px 10px;font-size:16px}
.jv-by{display:flex;gap:14px;flex-wrap:wrap;font-size:13.5px;color:var(--dim);margin:4px 0 2px}
.jv-empty{margin-top:10px;line-height:1.5}
.jv-hd,.jv{display:grid;grid-template-columns:5.5ch minmax(0,16.5ch) 6.5ch 4.5ch minmax(0,11ch) 7ch minmax(0,9ch) minmax(0,9ch);gap:0 8px;align-items:baseline;white-space:nowrap}
.jv-hd{font-size:11.5px;color:var(--dim);letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--faint);margin-top:6px}
.jv-list{flex:1;min-height:0;overflow:hidden}
.jv{padding:3px 0;border-bottom:1px dashed var(--faint)}
.jv:hover{background:var(--sel)}
.jv>span{overflow:hidden;text-overflow:ellipsis}
.jv-t{color:var(--dim)}.jv-m{font-weight:700}.jv-s{font-size:12.5px;font-weight:700}.jv-c,.jv-p{color:var(--fg)}
.jv-w{grid-column:1/-1;font-size:13px;color:var(--dim);padding-left:6.5ch}
.cc4{min-height:min-content}  /* never shorter than the cards' own content when matching the markets hero */
.mapw>*{transform:translateX(var(--mx,0px))}  /* centre a height-capped map in its pane */
/* lock-and-pulse callout layer (persistent, animated once per story) */
.mapc .ring{position:absolute;border:2px solid var(--dn);border-radius:50%;opacity:0}
.mapc .ret{position:absolute;white-space:normal}
.mapc .cl{position:absolute;height:2px;background:var(--ac2)}
.mapc .co.hot~.cl,.mapc .cl:has(~.co.hot){background:var(--dn)}
.mapc .cB>div{white-space:nowrap;overflow:hidden}
.mapc{z-index:3}  /* the news box sits above the Sentry */
/* the callout box draws itself: outline traced by an SVG stroke, then the fill and labels come in */
.mapc .cdraw{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none}
.mapc .cdraw rect{fill:none;stroke:var(--ac2);stroke-width:1.5;stroke-dasharray:100;stroke-dashoffset:100}
.mapc .co.hot .cdraw rect{stroke:var(--dn)}
.mapc .co{background:transparent;isolation:isolate;transition:border-color .18s}
.mapc .cfill{position:absolute;inset:0;background:var(--bg);border-radius:4px;z-index:-1;clip-path:inset(0 100% 0 0)}
.mapc .co.drawing{border-color:transparent}
.mapc .co.drawing .cT,.mapc .co.drawing .cF{opacity:0}
.mapc .co .cT,.mapc .co .cF{transition:opacity .18s}
.mapc .co:not(.drawing) .cdraw{opacity:0;transition:opacity .3s .1s}
#logA .ln,#logB .ln,.hero[data-id],#anA .cl{cursor:pointer}
.kw.up{color:var(--up)}.kw.dn{color:var(--dn)}
.bar .brainl{color:var(--ac);text-decoration:none;font-weight:700}.bar .brainl:hover{text-decoration:underline}
/* smart money rows in positioning: bar grows right for net long, left for net short, from the middle */
.sm2{display:grid;grid-template-columns:9ch minmax(0,1fr) 9ch 8ch;gap:10px;align-items:center;font-size:14px;padding:1px 0}
.sm2:hover{background:var(--sel)}
.sm-bar{position:relative;height:10px;background:var(--faint)}
.sm-bar::after{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:var(--dim)}
.sm-bar i{position:absolute;top:0;bottom:0}
.sm-bar i.l{left:50%;background:var(--up)}.sm-bar i.s{right:50%;background:var(--dn)}
/* analysis log: repeat stories struck through in red */
.cl.rp .ell{text-decoration:line-through;text-decoration-color:var(--dn);text-decoration-thickness:2px}
.cl.rp .rpl{color:var(--dn)}
/* ★ winners view in the feed */
.wnb{color:var(--amb);font-weight:700;margin-right:10px}
.wnb.on{background:var(--amb);color:var(--bg);padding:0 6px}
.ln.wn{text-decoration:none;color:inherit}
.ln.wn .wn-a{flex:none;width:13ch;overflow:hidden;text-overflow:ellipsis;color:var(--dim)}
.ln.wn .wn-p{flex:none;width:12ch}
.ln.wn .wn-r{flex:none;width:6ch;text-align:right}
.wn-hero{border-left-color:var(--amb)}
.wn-tabs{display:inline-flex;gap:6px;margin:0 10px}.wn-tabs button{color:var(--dim)}.wn-tabs button.on{color:var(--amb);font-weight:700}
/* headline thought ticker in the analysis footer */
.tk-foot{justify-content:space-between}
.jtk{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;font-size:15px}
.jtk-r{flex:none}
.jtk.quiet{color:var(--dim)}.jtk.build{color:var(--amb)}.jtk.hot{color:var(--dn);font-weight:700}
.jtk.held{color:var(--amb);font-weight:700}.jtk.call{color:var(--ac);font-weight:700}.jtk.flow{color:#a58cf0;font-weight:700}.jtk.track{color:var(--up)}
.bar .brainl+.brainl{margin-left:10px}

/* ================= phone layout (≤720px) ================= */
@media (max-width:720px){
  /* header: logo + pages on one line, sound · live · UTC on the next; no themes, classic link or local clock */
  .bar{gap:4px 14px;padding:6px 12px}
  .bar .grp:has([data-t]),.bar .r a[href="/classic"],.bar .r>span:has(#loc){display:none}
  .bar .r{gap:12px;width:100%}
  #sndB{white-space:nowrap}
  /* no brain / chart links and no price strip on a phone */
  .bar .brainl,#status{display:none}
  /* header is one line: logo on the left, sound · live · UTC on the right; no tmux button */
  .bar{flex-wrap:nowrap;font-size:13px;gap:10px}
  .bar .grp:has([data-l]){display:none}
  .bar .r{width:auto;margin-left:auto;gap:10px;white-space:nowrap}
  /* no world map on a phone */
  #vA .pane.scan{display:none}
  /* feed: stories wrap to two lines instead of being cut off */
  #vA .feed>.t .dim{display:none}
  .ln{height:auto;line-height:1.35;white-space:normal;padding:4px 0;font-size:16px;align-items:flex-start}
  .ln .tx{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
  /* markets / analysis / positioning: markets as tall as its list, the other two a fixed phone-sized box */
  #vA .row:has(#chW){grid-auto-rows:auto}
  #vA .row:has(#chW)>.pane:has(#posA){height:640px}
  #mkA{font-size:15px}
  .tk2{gap:0 10px}
  /* positioning tabs: one strip you can swipe sideways */
  .pane>.t.wide{font-size:14px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .pane>.t.wide::-webkit-scrollbar{display:none}
  /* the analysis title's right-hand label would sit on top of it */
  #anK{display:none}
  /* feed is news only on a phone (term.js PHONE): no filter tabs or winners button */
  /* only the latest story (the hero) on a phone; the list and pager are hidden */
  #fltA,#pgA,#logA{display:none}
  #vA .feed{min-height:0}
  /* hero text 30% smaller on a phone */
  #heroA .hero{font-size:12.5px}
  #heroA .hero .ht{font-size:14px;height:calc(14px * 1.4 * 3)}
}

/* ================= phone · cyrif analysis ================= */
@media (max-width:720px){
  /* the pane is as tall as its content */
  #vA .row:has(#chW) #anA{height:auto;max-height:none}
  #anA .atab{flex:none;overflow:visible}
  /* core cards: 2×2, name + stance + heat, nothing cut off */
  #anA .cc4{height:auto!important;gap:6px}
  .cc4>.cc{padding:6px 8px;font-size:13px;gap:2px}
  .cc-h .dim,.cc-h .up{display:none}
  .cc-h b{font-size:17px}
  .cc-v{font-size:13.5px}
  .cc-b{font-size:12px;letter-spacing:-1px}
  .cc-b>.dim{display:none}
  .cc-s{font-size:12px}
  /* tabs: one line, swipe sideways if needed */
  .atabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:14px;gap:6px}
  .atabs::-webkit-scrollbar{display:none}
  .atabs button{flex:none}
  /* counters: one compact row of small tiles instead of a tall stack */
  .cons{display:block;font-size:15px}
  .cstats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}
  .cs{border:1px solid var(--faint);padding:4px 6px}
  .cs-v,.cs-v.cs-sm{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cs-l{font-size:10.5px;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* story log: 8 stories, headline on two lines, Jev's verdict underneath */
  .clog{overflow:visible}
  .clog>.cl:nth-child(n+9){display:none}
  .cl{grid-template-columns:3px 5ch minmax(0,1fr);white-space:normal;align-items:start;padding:5px 0;border-bottom:1px dashed var(--faint)}
  .cl>.ell,.cl>b.ell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
  .cl>:last-child{grid-column:3;font-size:13px}
  /* footer: the headline thought on its own line */
  .tk-foot{flex-direction:column;gap:2px;font-size:13.5px}
  .jtk{white-space:normal}
}

/* ================= phone · markets: tickers fold away under the hero ================= */
@media (max-width:720px){
  .mk-more{display:block;width:100%;margin:0 0 6px;padding:7px 0;border:1px dashed var(--faint);color:var(--ac);font-size:14px;letter-spacing:.04em;text-align:center}
  #mkA:not(.open) .tk2{display:none}
}
/* phone · cyrif analysis is only the four core cards: no tabs, counters, story log or footer */
@media (max-width:720px){#anA :is(.atabs,.atab,.tk-foot){display:none}}
/* phone · nothing below cyrif analysis: the positioning pane (and its tabs) is hidden */
@media (max-width:720px){#vA .row:has(#chW)>.pane:has(#posA){display:none}}

/* phone · app-style tab bar replaces the command line */
.tabbar{display:none}
@media (max-width:720px){
  .prompt,.out,#sndB{display:none!important}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--faint);background:var(--bg);padding:6px 0 calc(6px + env(safe-area-inset-bottom,0px))}
  .tabbar>*{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--dim);text-decoration:none;font:inherit;font-size:11px;letter-spacing:.06em;background:none;border:0;padding:4px 0;cursor:pointer}
  .tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tabbar .on{color:var(--ac)}
  .tabbar #sndT.amb{color:var(--amb)}
  .tabbar #sndT.on{color:var(--up)}
}

/* phone · feed and whales tabs: one full list, nothing else (whales keeps the ★ winners button) */
@media (max-width:720px){
  body.mv-list #vA .row{display:none}
  body.mv-list #logA{display:block}
  body.mv-list #heroA{display:none}
  body.mv-list #pgA{display:block}
  body.mv-feed #pgA .wnb{display:none}
  body.mv-whale #pgA .wnb{display:inline}
}

/* phosphor panel layer (2026-10-12): panes sit just above the ground, the depth the Codex theme has */
:root[data-skin=phosphor] .pane{background:var(--panel)}
:root[data-skin=phosphor] .bar{background:var(--panel)}

/* ---- price board (2026-10-15): the four cards are a drag-and-drop price strip now ---- */
.cc4>.cc.pb{gap:1px;justify-content:flex-start;cursor:pointer}
.pb-px{font-size:29px;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;letter-spacing:.01em}
.pb-chg{font-size:16.5px;line-height:1.25}
.pb-x{color:transparent;font-size:15px;line-height:1;padding:0 1px;cursor:pointer}
.cc4>.cc.pb:hover .pb-x{color:var(--dim)}
.cc4>.cc.pb .pb-x:hover{color:var(--dn)}
.cc4>.cc.pb-empty{display:flex;align-items:center;justify-content:center;text-align:center;
  border:1px dashed var(--faint);border-left:1px dashed var(--faint);font-size:13.5px;min-height:86px}
.cc4>.cc.pb-over,.cc4>.cc.pb-empty.pb-over{outline:1px solid var(--ac);outline-offset:-1px;background:var(--sel)}
@keyframes pb-up{from{background:color-mix(in srgb,var(--up) 20%,transparent)}to{background:transparent}}
@keyframes pb-dn{from{background:color-mix(in srgb,var(--dn) 20%,transparent)}to{background:transparent}}
.cc4>.cc.pb-hot-up{animation:pb-up .9s ease-out}
.cc4>.cc.pb-hot-dn{animation:pb-dn .9s ease-out}
.rc[draggable=true]{cursor:grab}

/* range rail: where the price sits between its own 24h low and high */
.pb-rail{position:relative;height:11px;margin:5px 0 3px}
.pb-rl{position:absolute;left:0;right:0;top:5px;height:1px;background:var(--faint)}
.pb-rl:before,.pb-rl:after{content:"";position:absolute;top:-3px;width:1px;height:7px;background:var(--faint)}
.pb-rl:before{left:0}.pb-rl:after{right:0}
.pb-rm{position:absolute;top:1px;width:3px;height:9px;margin-left:-1.5px;border-radius:1px;
  background:var(--dim);transition:left .7s cubic-bezier(.3,1,.4,1)}
.cc4>.cc.upl .pb-rm{background:var(--up)}
.cc4>.cc.dnl .pb-rm{background:var(--dn)}
@media (max-width:1180px){.pb-px{font-size:23px}.pb-chg{font-size:14.5px}}

/* ================= /desk : portrait, one tall column (2026-10-21) =================
   Same DOM, same term.js. A 1440x2560 monitor has height the landscape layout never
   had, so nothing goes behind a tab and nothing scrolls: scanner, feed, markets,
   analysis and positioning stack and share the height. */
html[data-view=desk] body { overflow: hidden; }
html[data-view=desk] #vA { grid-template-columns: minmax(0, 1fr); gap: 20px; }
html[data-view=desk] #vA .row { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 20px; }
html[data-view=desk] body:has(#vA.on) > #vA { grid-template-rows: none; }
html[data-view=desk] #vA > .pane.feed { min-height: 430px; }
html[data-view=desk] #vA .row > .pane { min-height: 400px; }
html[data-view=desk] #mkA { font-size: 22px; }   /* it was rendering at 32; 30% off that, per request */
/* mkFit() shrinks the list until it fits, so the pane must be tall enough to hold
   26 symbols at that size or the doubling is silently undone. */
html[data-view=desk] #vA .row > .pane:first-child { min-height: 711px; }   /* pays for the taller map; the smaller type fits anyway */
/* the scanner is the only decorative pane, so it gives up the height the list needs */
html[data-view=desk] #vA > .pane.scan { min-height: 0; max-height: 600px; overflow: hidden; }   /* the map now fills the pane width; this just stops it clipping */
html[data-view=desk] #vA > .pane.feed { min-height: 380px; max-height: 420px; overflow: hidden; }
/* positioning is off on the desk view; its data still feeds the conviction score */
html[data-view=desk] #vA .row > .pane:has(#posA) { display: none; }
html[data-view=desk] #vA .row > .pane:has(#anA) { min-height: 470px; }
html[data-view=desk] .pb-px { font-size: 40px; }
html[data-view=desk] .pb-chg { font-size: 21px; }
html[data-view=desk] .cvbig { font-size: 54px; }
html[data-view=desk] .cc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto !important; }
html[data-view=desk] .log { font-size: 19px; }
html[data-view=desk] .atabs button { font-size: 18px; }

/* the price board gets its own pane under the feed, but only on /desk (2026-10-21) */
.pbdesk { display: none; }
html[data-view=desk] .pbdesk { display: block; }
html[data-view=desk] .pbdesk .cc4 { height: auto !important; }

/* ---- desk: the top bar is navigation, health and the time. Everything else was browser
   furniture (theme picker, the arm-sound button, a link back to the landscape UI) or a
   second clock, and at 1440 wide it was wrapping the bar onto two lines. ---- */
html[data-view=desk] .bar .grp:has([data-l]),
html[data-view=desk] .bar .grp:has([data-t]),
html[data-view=desk] .bar a[href="/classic"],
html[data-view=desk] .bar .r > span:has(#utc) { display: none; }
html[data-view=desk] .bar { gap: 0 30px; padding: 9px 18px; font-size: 19px; flex-wrap: nowrap; }
html[data-view=desk] .bar .logo { font-size: 22px; }
html[data-view=desk] .bar .grp { gap: 24px; }
html[data-view=desk] .bar .r { gap: 22px; }
html[data-view=desk] .bar #loc { font-size: 23px; letter-spacing: .02em; }
html[data-view=desk] .status { font-size: 19px; }
html[data-view=desk] .status > span { padding: 5px 14px; }
html[data-view=desk] .sig { font-size: 17px; padding: 5px 18px; }
.status .btcs { color: var(--ac); }
.status .sysdot { letter-spacing: .04em; }

/* the app has no use for the ticker strip; the bar dot already turns amber when a feed breaks */
html[data-view=desk] #status { display: none; }
html[data-view=desk] .bar #sndB { font-size: 17px; letter-spacing: .06em; }
html[data-view=desk] .bar #sndB.on { color: var(--up); }
/* the mascot line is the breaking headline, read from across the room */
html[data-view=desk] .say, html[data-view=desk] #bubw .bub { font-size: 1.56em; }
/* The alert line is the point of the app, so its row is reserved whether or not anything is
   firing — otherwise the first signal of the day pushes the bottom pane off a fixed screen.
   One line, crit sorted first, so the worst thing is always the thing you can see. */
html[data-view=desk] #sig[hidden] { display: flex !important; }
html[data-view=desk] #sig { height: 34px; overflow: hidden; align-content: flex-start; }

/* ---- the markets pane's own row of four -------------------------------------------
   Lines up column-for-column with the price board above it, so the two panels read as
   one 2x4 grid. Slot 0 is locked to the selection; the other three take drags from the
   ticker list underneath. No tick flash here on purpose: the board above already has
   one, and two of them firing at once is what made the section feel noisy. */
/* no gap of its own: both rows take .cc4's, so the columns cannot drift apart again */
html[data-view=desk] .dk4 { margin-bottom: 14px; }
html[data-view=desk] .dk4 > .cc.dk {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 13px 10px; font-size: 16px; line-height: 1.3;
}
html[data-view=desk] .dk4 > .cc.dk.dk-lock { border-left-width: 3px; background: var(--sel); }
html[data-view=desk] .dk-name { font-size: 25px; letter-spacing: .03em; }
html[data-view=desk] .dk-sel { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
html[data-view=desk] .dk-px { font-size: 40px; line-height: 1.05; letter-spacing: -.01em; margin: 2px 0 1px; }
/* the 24h move is the headline and the 1h is a footnote; they used to be the same weight */
html[data-view=desk] .dk-chg { font-size: 19px; white-space: nowrap; }
html[data-view=desk] .dk-chg b { font-weight: 700; }
html[data-view=desk] .dk-1h { font-size: 15px; }
html[data-view=desk] .dk-jv { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
html[data-view=desk] .dk4 > .cc.dk .cc-s { font-size: 14px; }
/* an empty slot says what to do with it and nothing else */
html[data-view=desk] .dk4 > .cc.dk-empty {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-left-style: dashed; border-left-color: var(--faint);
  font-size: 15px; min-height: 150px;
}
html[data-view=desk] .dk4 > .cc.dk-empty:hover { background: var(--sel); }
html[data-view=desk] .dk4 > .cc.pb-over { border-color: var(--ac); border-left-color: var(--ac); background: var(--sel); }
html[data-view=desk] .dk4 .pb-x { cursor: pointer; font-size: 18px; }
html[data-view=desk] .dk4 .pb-x:hover { color: var(--dn); }

/* ---- CPU and GPU in the bar: boxed cells, temperature carries the colour ---- */
.sysb { display: none; }
html[data-view=desk] .sysb { display: inline-flex; gap: 12px; }
html[data-view=desk] .sysb[hidden] { display: none; }
html[data-view=desk] .sysc {
  border: 1px solid var(--faint); border-radius: 4px; padding: 2px 11px;
  font-size: 20.5px; white-space: nowrap;   /* +20%, per request */
}
html[data-view=desk] .sysc .k { color: var(--ac); font-weight: 700; letter-spacing: .08em; font-size: 17px; }
html[data-view=desk] .sysc .sx { color: var(--faint); }
html[data-view=desk] .sysc i { font-style: normal; font-size: 15.5px; color: var(--dim); }
html[data-view=desk] .sysc b { font-weight: 700; }
