
/* chart-first: one top bar, the chart fills the window; the plan and alerts appear as cards on the chart only when they
   need an answer; everything else (alert history, calls, trades) lives in a Review drawer that is closed while trading */
/* 2026 revamp: design tokens (--c-*) for the dark default and the light option; the older names (--bg, --panel, --ink...)
   used across the page are set from the same palette in each set, so every room re-themes with them. data-theme on <html>
   is set before the first paint (inline script at the top of <head>). A chart whose own colours don't match the app theme
   (Chart settings) re-tints the cards on the chart with the matching set (#stage.cs-dark / .cs-light); the trade panel and
   the bottom strip stay with the app theme. Home Base (#cockpit, owner 2026-11-05) follows the app theme too and only its
   chart widget (#ck_chartbox) keeps the chart's set, unless Chart Settings -> "Home Base uses the chart's look" is on
   (#stage.hb-chart: Home Base takes the chart's set, the look before 2026-11-05).
   Dark --faint / --c-faint (a11y hunt 2026-11-08): #8e87a0, at least 4.5:1 on every dark surface up to --c-raised (WCAG AA
   for small text). It was #6f6880 / #857e96: 3.4:1 / 4.3:1, the small gray words a little too dim to read. Light --up /
   --c-up #0a7462 (was #0b7a66, 4.4:1 on --c-raised: BUY, "Clear", the week's green days) and --untested-ink #3767ab (4.3:1) */
:root, :root[data-theme="dark"], .cs-dark, #stage.cs-light > :is(#tpanel, #bstrip), #stage.cs-light:not(.hb-chart) > #cockpit, #stage.cs-dark #ck_chartbox {
  --c-bg:#0e0c13; --c-panel:#13111a; --c-card:#191621; --c-raised:#201c2a; --c-border:#262131; --c-border-strong:#332c42; --c-text:#ece8f4;
  --c-muted:#9a93ab; --c-faint:#8e87a0; --c-accent:#a78bfa; --c-accent-hover:#b49af0; --c-accent-deep:#673ab7; --c-on-accent:#15101f; --c-up:#3cc4a8;
  --c-down:#ef6b6b; --c-warn:#e0a14e; --c-grid:#1d1a26; --c-veil:rgba(5,4,9,.62); --c-shadow:0 10px 30px rgba(0,0,0,.45);
  --c-shadow-sm:0 4px 14px rgba(0,0,0,.35); --bg:#0e0c13; --shade:#15121c; --panel:#191621; --panel2:#201c2a; --ink:#ece8f4; --mut:#9a93ab;
  --faint:#8e87a0; --rule:#262131; --vwap:#5b8cff; --candle:#ef6b6b; --candle-up:#3cc4a8; --candle-line-up:#3cc4a8; --untested-ink:#8db3ec;
  --axis:#9a93ab; --tag:#3cc4a8; --up:#3cc4a8; --dn:#ef6b6b; --level:#a78bfa; --half:#8a8398; --fresh:#3cc4a8; --spent:#6f6880; --untested:#6f9be0;
  --liq:#e0a14e; --key:#a78bfa; --calm:#7fb8d4;
  --tag-half-bg:#2f2b39; --tag-half-ink:#d2ccdc; --tag-on-bg:#4a3a22; --tag-on-ink:#f5c983; --tag-on-word:#e0a14e;
  color-scheme:dark;
}
:root[data-theme="light"], .cs-light, #stage.cs-dark > :is(#tpanel, #bstrip), #stage.cs-dark:not(.hb-chart) > #cockpit, #stage.cs-light #ck_chartbox {
  --c-bg:#f6f1ea; --c-panel:#fbf8f3; --c-card:#ffffff; --c-raised:#f1ebe2; --c-border:#e6ddd0; --c-border-strong:#d3c6b4; --c-text:#221c2b;
  --c-muted:#5f5769; --c-faint:#6f6680; --c-accent:#673ab7; --c-accent-hover:#5a2fa3; --c-accent-deep:#4a2590; --c-on-accent:#ffffff; --c-up:#0a7462;
  --c-down:#b93b3b; --c-warn:#93570f; --c-grid:#ece4d8; --c-veil:rgba(40,28,20,.32); --c-shadow:0 10px 30px rgba(60,40,25,.12);
  --c-shadow-sm:0 4px 14px rgba(60,40,25,.10); --bg:#f6f1ea; --shade:#efe6da; --panel:#ffffff; --panel2:#f1ebe2; --ink:#221c2b; --mut:#5f5769;
  --faint:#6f6680; --rule:#e6ddd0; --vwap:#2962ff; --candle:#8d493a; --candle-up:#d0b8a8; --candle-line-up:#8d493a; --untested-ink:#3767ab;
  --axis:#8b4513; --tag:#089981; --up:#0a7462; --dn:#b93b3b; --level:#673ab7; --half:#7c7772; --fresh:#089981; --spent:#a3978c; --untested:#3d6fb6;
  --liq:#c27a1e; --key:#673ab7; --calm:#2f6f8f;
  --tag-half-bg:#e8e3dd; --tag-half-ink:#45403b; --tag-on-bg:#f7e3c2; --tag-on-ink:#7a4709; --tag-on-word:#93570f;
  color-scheme:light;
}
:root {
  --f-disp:"IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --f-body:"IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* every number in the app (owner 2026-10-26): the charts' clean sans (--f-chart below), never the old bold monospace. A
     font shorthand resets font-variant-numeric, so every rule that sets --f-num also sets tabular-nums (columns line up);
     500 for headline numbers, 400 for table cells. --f-mono: only keys, codes, the word-ladder letters and code text */
  --f-num:"Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --f-mono:"IBM Plex Mono", Consolas, "Cascadia Mono", ui-monospace, Menlo, monospace;
  /* the candle charts' level tags, countdown and OHLC legend (style "A · Clean", owner 2026-10-26): the Windows UI sans,
     on every PC with no download (the app works offline). Its default figures are proportional and a canvas can't switch
     font features on, so the tags set each digit in a fixed-width cell (tagText) and the DOM uses tabular-nums.
     --f-chart-axis: the price-axis numbers that Lightweight Charts draws itself. Nirmala UI (in Windows since 8) carries the
     same Segoe UI Latin design with tabular figures by default, so the axis lines up too; anywhere else the same stack */
  --f-chart:"Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --f-chart-axis:"Nirmala UI", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --r-ctl:8px; --r-card:12px; --t-fast:120ms; --t-med:160ms; --ease:cubic-bezier(.2,.7,.2,1);
  --dtw:44px; --rp:272px; --sbh:36px;
}
* { box-sizing:border-box } [hidden] { display:none !important }
html, body { height:100%; margin:0 }
body { background:var(--bg); color:var(--ink); font:14px/1.45 var(--f-body); font-variant-numeric:tabular-nums; display:grid; grid-template-rows:auto 1fr; overflow:hidden }
select, button, input { font:inherit; color:var(--ink); background:var(--panel2); border:1px solid var(--rule); border-radius:6px; padding:5px 10px }
button { cursor:pointer } button:hover { border-color:var(--key) }
:is(button, select, input, summary):focus-visible { outline:2px solid var(--key); outline-offset:1px }
.meta { color:var(--mut); font-size:12.5px; font-variant-numeric:tabular-nums }
.up { color:var(--up) } .down { color:var(--dn) }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; vertical-align:middle; flex:none }
.d-fresh { background:var(--fresh) } .d-untested { background:var(--untested) } .d-touched { background:var(--mut) }
.d-spent { border:1.5px solid var(--spent) } .d-liq { background:var(--liq); border-radius:1px; transform:rotate(45deg); width:7px; height:7px }

/* top bar */
header { display:flex; align-items:center; gap:6px; padding:7px 12px; border-bottom:1px solid var(--rule); background:var(--panel); flex-wrap:wrap }
h1 { font:600 18px/1 var(--f-disp); margin:0 6px 0 0; letter-spacing:.03em }
/* the wordmark: the logo mark stands in for the T of TiltLab (~1.4x cap height, its stem on the baseline, the letters leaning with it);
   hidden like the old name: in the trade room below 1480px (every pixel of the bar is used) and on phones */
.wm { white-space:nowrap } .wm-svg { display:block; height:22px; width:auto } .wm-mark-only { display:none; height:22px; width:auto }
/* the wordmark (branding/logo.json): the mark standing in for the T, "iltLab" as vector paths, so no font load */
/* two-tone mark on dark (base + light facet), flat #673ab7 on light (the facet takes the base colour) */
:root, :root[data-theme="dark"] { --wm-mark:#673ab7; --wm-facet:#9b72ec; --wm-ink:#ece8f4 } :root[data-theme="light"] { --wm-mark:#673ab7; --wm-facet:#673ab7; --wm-ink:#1d1830 }
.wm-mark { fill:var(--wm-mark) } .wm-facet { fill:var(--wm-facet) } .wm-ink { fill:var(--wm-ink) }
header h1.wm { font-size:19px } .sc-wm { margin:0 0 10px } .sc-wm .wm-svg { height:26px }
@media (max-width:1560px) { #propchip .lab, #newschip .lab, #planchip .lab { display:none } header { gap:5px } }
.grow { flex:1 }
#hbar, #rctl { display:contents } #rctl_t { display:none }   /* wrappers only matter on phones (compact header below) */
.chip { display:flex; align-items:center; gap:8px; padding:4px 10px; border:1px solid var(--rule); border-radius:999px; font:500 12.5px var(--f-num); background:var(--panel2); white-space:nowrap; position:relative; font-variant-numeric:tabular-nums }
.chip .lab { font:600 11.5px var(--f-disp); letter-spacing:.07em; text-transform:uppercase }
#guard .lab { color:var(--fresh) } #guard.done { border-color:var(--dn) } #guard.done .lab { color:var(--dn) }
#guard .add { border:0; background:transparent; padding:0 2px; color:var(--key); font:600 15px/1 var(--f-body) }
#planchip { cursor:pointer } #planchip .lab { color:var(--mut) }
/* skip link: the first Tab stop, visible only while focused; jumps past the top bar and the right rail */
.skip { position:fixed; left:8px; top:-60px; z-index:100; padding:8px 14px; border-radius:8px; background:var(--panel); color:var(--key); border:2px solid var(--key); font:600 13.5px var(--f-body); text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,.18) }
.skip:focus { top:8px; outline:none }
#chart:focus-visible, main[id^="room_"]:focus-visible { outline:2px solid var(--key); outline-offset:-2px }
/* TradingView-style right toolbar: tools you use now and then, so the top bar stays calm */
#rail { position:fixed; right:0; top:var(--hh, 46px); bottom:0; width:52px; z-index:34; background:var(--panel); border-left:1px solid var(--rule);
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0 }
#rail .wrap { display:contents }
.rb { position:relative; width:44px; padding:6px 0 4px; border:0; border-radius:8px; background:transparent; color:var(--mut); display:grid; justify-items:center; gap:2px; font:500 9.5px/1 var(--f-body); letter-spacing:.02em }
.rb svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.rb:hover { background:var(--panel2); color:var(--ink) }
.rb[aria-pressed="true"] { background:color-mix(in srgb, var(--key) 14%, transparent); color:var(--key) }
#voice[aria-pressed="true"] { color:var(--fresh); background:color-mix(in srgb, var(--fresh) 14%, transparent) }
#rail .sep { width:28px; height:1px; background:var(--rule); margin:6px 0 }
#rail .badge { position:absolute; top:1px; right:3px }
#rail #vpop { position:fixed; top:calc(var(--hh, 46px) + 8px); right:60px; max-height:calc(100vh - var(--hh, 46px) - 24px); overflow-y:auto }
body #stage, body main[id^="room_"] { margin-right:52px !important }
body main[id^="room_"] { width:auto !important; min-width:0 }   /* width:100% + the rail margin pushed rooms under the rail */
/* rooms capped at 1200px (1480px on wide windows, below): the ROOM is full width (it is the scroll box, so the mouse wheel
   scrolls it from the empty margins too: owner 2026-11-13) and its side padding centres the column left of the rail */
body #room_prep, body #room_protect { --rw:1200px; max-width:none; margin-left:0 !important;
  padding-left:max(22px, calc((100% - 52px - var(--rw)) / 2 + 22px)); padding-right:max(22px, calc((100% - 52px - var(--rw)) / 2 + 22px)) }
body #social, body #drawer { right:52px; top:var(--hh, 46px) } body .ptoast { right:70px } body #atlas { right:110px }
.grp { display:flex; align-items:center; gap:4px; padding:2px; border:1px solid var(--rule); border-radius:9px; background:var(--panel2) }
.grp > * { border-color:transparent !important; background:transparent }
.grp > select, .grp > button { padding:4px 8px }
.grp > button:hover, .grp > select:hover { background:var(--panel) }
#play:not(:disabled) { color:var(--key); font-weight:600 }
.pop { position:absolute; top:calc(100% + 6px); right:0; z-index:20; background:var(--panel2); border:1px solid var(--rule); border-radius:8px; padding:10px; box-shadow:0 8px 24px rgba(90,50,30,.16) }
#rpop { display:flex; gap:5px; flex-wrap:wrap; width:240px; font-family:var(--f-num); font-variant-numeric:tabular-nums } #rpop button { padding:3px 9px; font-size:12.5px }
#rpop .l { color:var(--dn) } #rpop .w { color:var(--up) } #rpop input { width:62px; padding:3px 6px; font-size:12.5px }
#vpop { display:grid; grid-template-columns:minmax(0, 1fr); gap:6px; width:min(300px, calc(100vw - 24px)); font:13px var(--f-body) } #vpop select { max-width:100%; min-width:0 } #vpop label { display:flex; gap:8px; align-items:center }
#vpop .vrow { display:flex; gap:6px } #vpop .vrow select { flex:1; min-width:0 } #vpop .vsep { border:0; border-top:1px solid var(--rule); width:100%; margin:2px 0 }
#vkinds { display:grid; gap:6px } #vpop .vother > summary { cursor:pointer; font-weight:600; padding:2px 0 } #vpop .vother[open] { display:grid; gap:6px }
#vpop .vsrc b { color:var(--ink); font-weight:600 } #vpop .vsrc .vsrc-why { display:block; margin-top:2px }
.wrap { position:relative }

/* chart + overlays */
#stage { position:relative; min-height:0 }
#chart { position:absolute; inset:0 }
/* the candle countdown under a chart's last-price tag (style A: the tags' font and corners) */
/* the position boxes on NinjaTrader's entry / stop / target lines (2026-10-30, Chart Trader look): value | size */
#ntbox { position:absolute; inset:0; pointer-events:none; z-index:3 }
.ntb { position:absolute; top:0; left:0; display:flex; height:20px; border-radius:3px; overflow:hidden; font:700 12px/20px var(--f-chart); font-variant-numeric:tabular-nums; white-space:nowrap; box-shadow:0 1px 4px rgba(0,0,0,.3); will-change:transform }
.ntb-v { padding:0 8px; color:#fff; transition:background-color .25s }
.ntb-q { padding:0 7px; background:var(--c-card, #222); color:var(--ink); border-left:1px solid rgba(0,0,0,.25) }
.ntb[data-tone=up] .ntb-v { background:var(--up) } .ntb[data-tone=dn] .ntb-v { background:var(--dn) } .ntb[data-tone=flat] .ntb-v { background:var(--mut) }
.cdown { position:absolute; top:0; right:0; z-index:3; pointer-events:none; text-align:center; font:500 11px/16px var(--f-chart); font-variant-numeric:tabular-nums; border-radius:4px; will-change:transform }
.ov { position:absolute; z-index:5 }
#clock { left:12px; top:8px; font:500 15px var(--f-chart); font-variant-numeric:tabular-nums; color:var(--mut); display:flex; gap:10px; align-items:baseline }
#clock small { font:12px var(--f-body); color:var(--faint) }
#now { right:78px; top:10px; background:color-mix(in srgb, var(--panel) 92%, transparent); border:1px solid var(--rule); border-radius:8px; padding:6px 10px; font:12.5px var(--f-chart); font-variant-numeric:tabular-nums; min-width:220px }
#now:empty { display:none }   /* no empty box after Load, before the first bar */
.nr { display:grid; grid-template-columns:12px 1fr auto; gap:8px; align-items:center; padding:1px 0 }
.nr .k { color:var(--faint); font:11px var(--f-body); margin-left:6px } .nr .d { color:var(--mut) }
.nr.px { border-block:1px solid var(--rule); margin:3px 0; padding:3px 0; font-weight:600 }
#empty { inset:0; display:grid; place-items:center; color:var(--mut); pointer-events:none; text-align:center }
#empty a, #empty button { pointer-events:auto }   /* the setup-guide / download links in the empty state must be clickable */

/* trade ticket (TradingView-style position tool): logs only, never sends orders */
#trade { left:12px; --tt:38px; top:var(--tt); display:grid; gap:6px; width:250px }
/* (owner 2026-11-04: "the bottom of the key is cut off") the keys stack down from the top and ran under the Today bar:
   the stack stops above it and scrolls instead */
#trade { max-height:calc(100% - var(--tt, 38px) - var(--sbh, 0px) - 10px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin }
/* (bug hunt 2026-11-05) ...and above Today's Plan, which sits at the bottom left in the same column (--plh: the room the
   open plan takes from the bottom of the chart, set by a ResizeObserver; 0 when it's closed) */
#trade { max-height:calc(100% - var(--tt, 38px) - max(var(--sbh, 0px) + 10px, var(--plh, 0px))) }
.bs { display:grid; grid-template-columns:1fr 1fr; gap:6px }
.bs button { padding:7px 6px; border:0; color:#fff; font:600 13px var(--f-body); border-radius:6px; display:grid; line-height:1.2 }
.bs button small { font:500 11px var(--f-num); opacity:.85; font-variant-numeric:tabular-nums }
.bs .sell { background:#f23645 } .bs .buy { background:#2962ff } .bs button:hover { filter:brightness(1.08) }
#ticket { padding:10px 12px; width:250px; font-size:12.5px }
#ticket .hd { display:flex; justify-content:space-between; align-items:center; font:600 12px var(--f-disp); letter-spacing:.06em; text-transform:uppercase }
#ticket .qty { font:500 22px var(--f-num); margin:4px 0 2px; font-variant-numeric:tabular-nums } #ticket .qty small { font:500 12px var(--f-body); color:var(--mut) }
#ticket .rows { display:grid; grid-template-columns:auto 1fr; gap:1px 10px; color:var(--mut) } #ticket .rows b { color:var(--ink); font-weight:500; text-align:right }
#ticket .row2 { display:flex; gap:6px; margin-top:8px; align-items:center } #ticket .row2 button { flex:1; padding:5px 6px; font-size:12.5px }
#ticket .go { background:var(--ink); color:var(--bg); border-color:var(--ink); font-weight:600 }
#ticket input { width:70px; padding:2px 5px; font-size:12.5px } #ticket select { padding:2px 4px; font-size:12.5px }
#ticket .pnl { font:500 18px var(--f-num); font-variant-numeric:tabular-nums } #ticket .warn { color:var(--dn); font-size:12px; margin-top:4px }
#ticket .hint { color:var(--faint); font-size:11.5px; margin-top:4px }
#stage.dragging, #stage.dragging * { cursor:ns-resize !important }

/* chart key: what each line style means; toggled from the top bar, remembered */
#key, #key_ict, #key_gen { width:250px; padding:9px 12px; font-size:12px }
#key h2, #key_ict h2, #key_gen h2 { margin-bottom:4px }
#key .kr, #key_ict .kr, #key_gen .kr { display:grid; grid-template-columns:34px 1fr; gap:8px; align-items:center; padding:2px 0; color:var(--mut) }
#key .kr b, #key_ict .kr b, #key_gen .kr b { color:var(--ink); font-weight:500 }
#key svg, #key_ict svg, #key_gen svg { width:34px; height:8px; display:block }
/* SMC: higher-timeframe arrays in Mentor Notes, the settings button / panel */
.li.hz .x { flex-wrap:wrap } .li .zl { flex-basis:100%; font:11px var(--f-num); color:var(--faint); font-variant-numeric:tabular-nums } .li .zl b { color:var(--mut); font-weight:600 }
.li .nx { border:0; background:none; padding:0 6px 0 0; font-size:11px; color:var(--c-accent); text-decoration:underline; cursor:pointer }
#smc_set { display:none; border:0; background:none; padding:2px 4px; color:var(--mut); cursor:pointer } #smc_set svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; display:block }
body.m-ict #smc_set { display:inline-grid; place-items:center } #smc_set:hover { color:var(--ink) }
@media (min-width:761px) { body.room-trade #smc_set { order:3; margin-block:5px; height:32px } }
@media (max-width:760px) { body.m-ict #smc_set { display:none } }   /* phones: SMC Settings is in the SMC key */
.smc-set { max-width:620px } .smc-set table { width:100%; border-collapse:collapse; font-size:13px } .smc-set td { padding:4px 4px; border-bottom:1px solid var(--rule) }
.smc-set td:first-child { color:var(--ink) } .smc-set .seg button { padding:4px 9px; font-size:12px } .smc-set h4 { margin:12px 0 4px; font-size:12px; color:var(--mut); text-transform:uppercase; letter-spacing:.04em }
.smc-set .acts { display:flex; gap:8px; justify-content:space-between; align-items:center; margin-top:12px } .smc-set .err { color:var(--c-down); font-size:12px }
.smc-cols table { border-collapse:collapse; margin:4px 0 } .smc-cols td { padding:2px 10px 2px 0; font-size:12px; vertical-align:middle }
.smc-cols input[type=color] { width:34px; height:22px; padding:0; margin-right:8px; vertical-align:middle; border:1px solid var(--c-border); border-radius:4px; background:none; cursor:pointer }
.smc-defc { display:inline-flex; align-items:center; gap:3px; color:var(--mut); font-size:12px } .smc-defc i { width:10px; height:10px; border-radius:2px; display:inline-block }
.smc-set .lk, #smc_set2 { border:0; background:none; padding:0; color:var(--c-accent); text-decoration:underline; cursor:pointer; font-size:12px }
#key .dots, #key_ict .dots, #key_gen .dots { display:flex; gap:8px; flex-wrap:wrap; margin-top:5px; padding-top:6px; border-top:1px solid var(--rule); color:var(--mut) }
#key .dots span, #key_ict .dots span, #key_gen .dots span { display:flex; gap:4px; align-items:center }

/* hourly story card (top centre) */
#story { left:312px; right:308px; top:10px; margin:0 auto; width:auto; max-width:560px; min-width:320px; border-top:3px solid var(--key) }   /* between the Buy/Sell buttons and the "now" box, never over them */
#story .txt { font-size:13.5px; line-height:1.5 } .lead-in { color:var(--key); font-style:italic }
#story .fb { display:flex; gap:6px; margin-top:8px; align-items:center } #story .fb button { padding:3px 9px; font-size:12.5px }
#story .fb button.on { border-color:var(--key); background:color-mix(in srgb, var(--key) 12%, transparent) }
#story textarea { width:100%; margin-top:6px; font:13px var(--f-body); padding:6px; border:1px solid var(--rule); border-radius:6px; background:var(--panel2); color:var(--ink); resize:vertical }
.st { padding:10px 14px; border-bottom:1px solid var(--rule); font-size:13px; line-height:1.5 } .st b { font-size:12px; color:var(--mut); display:block }

/* mentors: ICT drawings live on a canvas over the chart (boxes / killzone bands lightweight-charts can't draw) */
#ovc { position:absolute; inset:0; pointer-events:none; z-index:2; display:none }   /* the overlay paints inside the chart (OVPRIM); #ovc only shows the drawing being dragged (dAct) */
#ovc.act { display:block }
#mentor { font-weight:600 }
#mentor_w { display:contents } #mentor_w svg, #mentor_b { display:none }   /* the icon only shows on phones (see the phone header) */

/* rooms: Trade (the cockpit) and Review (your own results); more rooms plug in here */
#rooms { display:flex; gap:2px; background:var(--panel2); border:1px solid var(--rule); border-radius:8px; padding:2px; margin-right:6px }
#rooms button { border:0; background:transparent; padding:4px 7px; border-radius:6px; font:600 12.5px var(--f-body); color:var(--mut) }
#rooms button[aria-pressed="true"] { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px rgba(90,50,30,.15) }
body.room-review #stage { display:none }
#room_review { overflow-y:auto; padding:18px 22px 40px; display:grid; gap:18px; align-content:start; width:100%; max-width:1200px; margin:0 auto }
.rv-top { display:flex; flex-wrap:wrap; align-items:center; gap:12px }
.rv-top h2 { margin:0; font:600 20px var(--f-disp) } .rv-top .meta { margin-left:auto }
.seg { display:flex; border:1px solid var(--rule); border-radius:8px; overflow:hidden }
.seg button { border:0; border-radius:0; background:var(--panel); padding:5px 12px; font-size:13px; color:var(--mut) }
.seg button[aria-pressed="true"] { background:var(--panel2); color:var(--ink); font-weight:600 }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px }
.tile { background:var(--panel); border:1px solid var(--rule); border-radius:10px; padding:10px 14px }
.tile .v small.vu { font-size:.6em; font-weight:500; white-space:nowrap } .tile .l { font-size:12px; color:var(--mut) } .tile .v { font:500 22px var(--f-num); margin-top:2px; font-variant-numeric:tabular-nums } .tile .s { font-size:12px; color:var(--faint) }
.rv-card { background:var(--panel); border:1px solid var(--rule); border-radius:10px; padding:14px 16px }
.rv-card h3 { margin:0 0 4px; font:600 14px var(--f-body) } .rv-card .sub { font-size:12px; color:var(--mut); margin-bottom:10px }
#rv_curve { height:260px; position:relative }
.rv-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap:14px }
.ins { display:grid; gap:6px; margin:0; padding:0; list-style:none } .ins li { padding:8px 12px; background:var(--panel2); border-radius:8px; font-size:13.5px }
.bars { display:grid; gap:6px }
.br { display:grid; grid-template-columns:78px 1fr 92px; align-items:center; gap:8px; font-size:12.5px }
.br .k { color:var(--mut); text-align:right } .br .num { font-family:var(--f-num); font-variant-numeric:tabular-nums } .br .num small { color:var(--faint) }
.br .track { position:relative; height:14px }
.br .track::before { content:""; position:absolute; left:50%; top:-3px; bottom:-3px; width:1px; background:var(--rule) }
.br .bar { position:absolute; top:0; height:14px }
.br .bar.pos { left:50%; background:var(--up); border-radius:0 4px 4px 0 } .br .bar.neg { right:50%; background:var(--dn); border-radius:4px 0 0 4px }
.br.thin { opacity:.55 }
.rv-empty { padding:30px; text-align:center; color:var(--mut) }
/* Review room: Your trader DNA card */
#rv_dna:empty { display:none }
.dna-sum { font-size:13.5px; line-height:1.55; margin:0 0 12px }
.dna-sumd { margin:0 0 12px } .dna-sumd > summary { cursor:pointer; font-size:12.5px; color:var(--mut); width:max-content } .dna-sumd[open] > summary { margin-bottom:6px }
.dna-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px }
@media (max-width:1150px) { .dna-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) } }
@media (max-width:600px) { .dna-grid { grid-template-columns:minmax(0, 1fr) } }
.dna-box { background:var(--panel2); border-radius:8px; padding:10px 12px; min-width:0 }
.dna-box h4 { margin:0 0 8px; font:600 12px var(--f-body); color:var(--mut); text-transform:uppercase; letter-spacing:.05em }
.dna-box .foot { font-size:12px; color:var(--mut); margin-top:8px }
.dna-tilt { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; align-items:end; height:96px }
.dna-tilt .col { display:grid; grid-template-rows:1fr auto auto; height:100%; text-align:center; font-size:11.5px; color:var(--mut) }
.dna-tilt .well { position:relative; background:var(--panel); border-radius:4px 4px 0 0 }
.dna-tilt .fill { position:absolute; left:0; right:0; bottom:0; background:var(--faint); border-radius:4px 4px 0 0 }
.dna-tilt .col.hot .fill { background:var(--dn) } .dna-tilt .col.hot b { color:var(--dn) }
.dna-tilt b { font:500 12.5px var(--f-num); color:var(--ink); margin-top:3px; font-variant-numeric:tabular-nums }
.dna-box .br { grid-template-columns:42px 1fr 52px; font-size:12px; gap:6px }
.dna-box .br .track { height:10px } .dna-box .br .bar { height:10px }
.dna-box .tiles { grid-template-columns:repeat(2, 1fr); gap:8px }
.dna-box .tile { padding:7px 10px } .dna-box .tile .v { font-size:18px }
.dna-meter { height:10px; border-radius:999px; background:var(--panel); overflow:hidden; margin:2px 0 4px }
.dna-meter i { display:block; height:100%; border-radius:999px; background:var(--up) }
.dna-meter i.mid { background:var(--liq) } .dna-meter i.hi { background:var(--dn) }
.dna-score { font:500 22px var(--f-num); font-variant-numeric:tabular-nums } .dna-score small { font-size:12px; color:var(--faint); font-weight:400 }
.dna-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px }
.dna-chips span { padding:3px 9px; border:1px solid var(--rule); border-radius:999px; font-size:12px; background:var(--panel) }
.dna-words { margin-top:14px; display:grid; gap:8px }
.dna-words h4 { margin:0; font:600 13px var(--f-body); display:flex; align-items:center; gap:10px }
.dna-words h4 button { margin-left:auto; font-size:12px; padding:3px 10px }
/* Review room: the weekly Discipline Score card (GET /api/discipline; no P&L anywhere on it) */
#rv_disc:empty { display:none }
/* Before -> With TiltLab (transform.py, GET /api/transform): process habits only, better = green whichever way it moves */
#rv_tf:empty { display:none }
.tf-card h3 { margin:0 } .tf-card .sub { margin:4px 0 0 }
.tf-head { margin:10px 0 0; font:600 15.5px/1.45 var(--f-body) }
.tf-tbl { width:100%; border-collapse:collapse; margin-top:12px; font-size:13.5px }
.tf-tbl th, .tf-tbl td { padding:7px 6px; border-top:1px solid var(--rule); text-align:left; vertical-align:top }
.tf-tbl thead th { border-top:0; font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
.tf-tbl tbody th { font-weight:500 } .tf-tbl small { display:block; font-size:11.5px; color:var(--c-faint); font-weight:400 }
.tf-tbl td.v { font-family:var(--f-num); white-space:nowrap; font-variant-numeric:tabular-nums }
.tf-ar { font-weight:700; color:var(--c-muted) } .tf-ar.good { color:var(--c-up) } .tf-ar.work { color:var(--c-warn) }
.tf-tbl .tf-note { font-size:12.5px; color:var(--c-muted) } .tf-tbl tr.good .tf-note { color:var(--c-up) }
.tf-empty { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:10px } .tf-empty p { margin:0; flex:1 1 260px; font-size:14px; line-height:1.5 }
.tf-rule { margin-top:10px; font-size:12px; color:var(--c-faint) }
.tf-reports { margin-top:12px } .tf-reports ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:6px }
.tf-reports li button { width:100%; text-align:left }
.tf-rep { display:grid; gap:8px; margin-top:10px; padding:12px 14px; border:1px solid var(--rule); border-radius:10px }
.tf-rep h4 { margin:0 } .tf-rep ul { margin:0; padding-left:18px; display:grid; gap:4px; font-size:14px } .tf-rep p { margin:0 }
/* 21 days with Atlas + the Tilt Fingerprint (fingerprint.py, GET /api/fingerprint): one calm line in Home Base's header,
   the program in a dialog, a small card in Review > You. No streaks, no verdicts; a day Atlas didn't see is a neutral blank */
.hb-bar .hb-fp { display:none }
@media (min-width:761px) {
  #cockpit.hb > .hb-bar .hb-fp:not([hidden]) { display:inline-flex; align-items:center; gap:7px; min-width:0; max-width:62%; border:1px solid var(--c-border); background:transparent;
    color:var(--c-muted); border-radius:999px; padding:2px 12px 2px 6px; white-space:nowrap; overflow:hidden; position:relative }
  #cockpit.hb > .hb-bar .hb-fp:hover { color:var(--c-text); background:var(--c-raised) }
  #cockpit.hb > .hb-bar .hb-fp b { color:var(--c-text); font-weight:600 } #cockpit.hb > .hb-bar .hb-fp span { overflow:hidden; text-overflow:ellipsis }
  #cockpit.hb > .hb-bar .hb-fp.new::after { content:""; position:absolute; right:5px; top:5px; width:6px; height:6px; border-radius:50%; background:var(--c-accent) }
  #cockpit.hb-edit > .hb-bar .hb-fp { display:none !important }
}
.fp-ring { width:16px; height:16px; flex:none; transform:rotate(-90deg) } .fp-ring circle { fill:none; stroke:var(--c-border); stroke-width:2.4 }
.fp-ring circle.on { stroke:var(--c-accent); stroke-linecap:round }
.modal.fp-card { width:min(760px, 100%); box-sizing:border-box; gap:14px } .modal.fp-card > * { min-width:0 }
.fp-top { display:flex; align-items:center; gap:12px } .fp-top .fp-ring { width:34px; height:34px } .fp-top .fp-ring circle { stroke-width:2 }
.fp-top b { display:block; font:600 16px var(--f-body) } .fp-top span { font-size:13.5px; color:var(--c-muted) }
.fp-strip { display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin:0; padding:0; list-style:none }
.fp-strip li { width:10px; height:10px; border-radius:50%; background:color-mix(in srgb, var(--c-accent) 55%, transparent) }
.fp-strip li.unseen { background:transparent; border:1.5px dashed var(--c-faint); box-sizing:border-box }
.fp-strip li.today { background:transparent; border:2px solid var(--c-accent); box-sizing:border-box }
.fp-strip li.later { background:var(--c-border); opacity:.55 }
.fp-key { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--c-faint) } .fp-key i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:0 }
.fp-key .k-seen { background:color-mix(in srgb, var(--c-accent) 55%, transparent) } .fp-key .k-unseen { border:1.5px dashed var(--c-faint); box-sizing:border-box }
.fp-sec { display:grid; gap:6px } .fp-sec h4, .fp-rev h4 { margin:0; font:600 12px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
.fp-lines { margin:0; padding-left:18px; display:grid; gap:4px; font-size:14px; line-height:1.45 }
.fp-learn { margin:0; font-size:14.5px; line-height:1.5 }
.fp-rev { display:grid; gap:10px; padding:14px 16px; border:1px solid var(--c-border); border-radius:12px; background:color-mix(in srgb, var(--c-accent) 5%, transparent) }
.fp-head { margin:0; font:600 16px/1.4 var(--f-body) }
.fp-cols { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px }
.fp-col { display:grid; gap:6px; align-content:start; padding:10px 12px; border:1px solid var(--c-border); border-radius:10px; background:var(--panel) }
.fp-col h5, .fp-rev h5 { margin:0; font:600 14px var(--f-body) } .fp-col .meta { font-size:12px }
.fp-with h5 { color:var(--c-up) }
.fp-ch { color:var(--c-up) } .fp-keep { margin:0; font-size:13px; color:var(--c-muted) }
.fp-ck { list-style:none; margin:0; padding:0; display:grid; gap:6px; font-size:13.5px } .fp-ck b { font-weight:600 }
.fp-rule { font-size:12px; color:var(--c-faint) } .fp-sample { font-size:12px; color:var(--c-accent) }
#rv_fp:empty { display:none }
.fp-rv { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px } .fp-rv .fp-top { flex:1 1 280px }
@media (max-width:640px) { .fp-cols { grid-template-columns:minmax(0, 1fr) } }
/* the shareable Tilt Fingerprint card (fpcOpen): just a button, never a nag; the preview is the real canvas, scaled */
.fp-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px } .fp-acts .fp-keep { flex:1 1 220px }
.fp-ck .fp-share { margin-left:6px; padding:2px 10px; font-size:12.5px; min-height:0 }
.modal.fpc-dlg { width:min(720px, 100%); box-sizing:border-box; gap:12px } .modal.fpc-dlg > * { min-width:0 }
.fpc-prev canvas { max-height:min(56vh, 620px) } .fpc-prev.tall canvas { width:auto; max-width:100% }
.fpc-num { display:flex; align-items:center; gap:8px; font-size:13.5px; flex-wrap:wrap } .fpc-num input { margin:0 }
.fpc-dlg .row .grow { flex:1 }
.tf-work { font-size:13.5px; color:var(--c-muted) }
.tf-mini { width:100%; border-collapse:collapse; font-size:12.5px } .tf-mini td, .tf-mini th { padding:4px 4px; border-top:1px solid var(--rule); text-align:left }
.tf-mini th { font-weight:500 } .tf-mini td.v { font-family:var(--f-num); white-space:nowrap; font-variant-numeric:tabular-nums }
@media (max-width: 560px) {               /* phone: each habit on its own line, then before -> with under it */
  .tf-tbl thead { display:none } .tf-tbl, .tf-tbl tbody { display:block }
  .tf-tbl tr { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:baseline; gap:2px 8px; padding:8px 0; border-top:1px solid var(--rule) }
  .tf-tbl th, .tf-tbl td { border:0; padding:0 } .tf-tbl tbody th { grid-column:1 / -1 } .tf-tbl td.tf-note { display:none }
  .tf-tbl td.v[data-l]::before { content:attr(data-l) " "; font:500 11px var(--f-body); color:var(--c-muted) } }
/* the trial-end recap (recap.py, GET /api/recap): one calm card, the trader's own journal only, no P&L */
#rv_recap:empty { display:none }
.rc-card h3 { margin:0 }
.rc-card .sub { margin:4px 0 0 }
.rc-exit { margin:10px 0 0; font-size:14px; line-height:1.5 }
.rc-list { list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:8px }
.rc-list li { display:grid; gap:3px; padding:9px 11px; border:1px solid var(--rule); border-radius:8px; font-size:13.5px }
.rc-list li .meta { font-size:12.5px; line-height:1.45 }
.rc-save { margin:12px 0 0; padding:9px 12px; border-left:3px solid var(--c-accent); background:color-mix(in srgb, var(--c-accent) 7%, transparent); border-radius:0 8px 8px 0; font-size:13.5px }
.rc-acc { margin:10px 0 0; font-size:13.5px }
.rc-acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px }
.rc-reopen { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 14px }
.rc-reopen span { flex:1 1 220px; font-size:13.5px }
.ds-h { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-bottom:10px }
.ds-h h3 { margin:0 } .ds-h .sub { margin:0; flex-basis:100% }
.ds-wk { display:flex; align-items:center; gap:4px; margin-left:auto } .ds-wk button { padding:3px 9px; font-size:13px; line-height:1.2 }
.ds-wk span { font:500 12.5px var(--f-num); color:var(--ink); min-width:118px; text-align:center; font-variant-numeric:tabular-nums }
.ds-body { display:grid; grid-template-columns:150px minmax(0, 1fr) minmax(0, 1.1fr); gap:16px 22px; align-items:center }
/* (hunt 2026-11-11 #3) the card's own width decides the layout, not the window's: the demo caps Review at 760 px on a wide
   screen, and the three columns left each day tile 50 px ("warni / ngs" broke mid-word). A narrow card puts the days on
   their own full-width row */
.rv-card:has(> .ds-body) { container-type:inline-size }
@container (max-width:1000px) { .ds-body { grid-template-columns:140px minmax(0, 1fr) } .ds-days { grid-column:1 / -1 } }
@media (max-width:1150px) { .ds-body { grid-template-columns:140px minmax(0, 1fr) } .ds-days { grid-column:1 / -1 } }
@media (max-width:600px) { .ds-body { grid-template-columns:minmax(0, 1fr) } .ds-ring { justify-self:center } .ds-strip { gap:4px } .ds-day { padding:6px 3px } .ds-day .what { font-size:10.5px } }
.ds-ring { position:relative; width:140px; height:140px }
.ds-ring svg { width:100%; height:100%; transform:rotate(-90deg) }
.ds-ring circle { fill:none; stroke-width:11 } .ds-ring .bg { stroke:var(--panel2) } .ds-ring .fg { stroke-linecap:round; transition:stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1) }
.ds-ring .in { position:absolute; inset:0; display:grid; place-content:center; text-align:center }
.ds-ring b { font:500 40px/1 var(--f-num); font-variant-numeric:tabular-nums } .ds-ring small { font-size:11.5px; color:var(--mut); margin-top:3px }
.ds-parts { display:grid; gap:9px; min-width:0 }
.ds-part .top { display:flex; justify-content:space-between; gap:8px; font-size:13px } .ds-part .top b { font-family:var(--f-num); font-weight:500; font-variant-numeric:tabular-nums }
.ds-part .top small { color:var(--faint); font-weight:400 }
.ds-part .dna-meter { margin:4px 0 0; background:var(--panel2) }
.ds-part .s { font-size:11.5px; color:var(--mut); margin-top:2px }
.ds-part.na .top b { color:var(--faint) }
.ds-days { min-width:0 }
.ds-strip { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px }
.ds-day { border-radius:8px; padding:7px 6px; text-align:center; background:var(--panel2); border:1px solid transparent; min-width:0 }
.ds-day .wd { font:700 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--mut) }
.ds-day .dn { font:500 16px var(--f-num); margin:1px 0; font-variant-numeric:tabular-nums } .ds-day .what { font-size:11px; color:var(--mut); line-height:1.25; overflow-wrap:break-word }
.ds-day.ok { background:color-mix(in srgb, var(--up) 14%, var(--panel)); border-color:color-mix(in srgb, var(--up) 40%, transparent) } .ds-day.ok .wd { color:var(--up) }
.ds-day.bad { background:color-mix(in srgb, var(--dn) 12%, var(--panel)); border-color:color-mix(in srgb, var(--dn) 40%, transparent) } .ds-day.bad .wd { color:var(--dn) }
.ds-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; align-items:center }
.ds-acts .go { background:var(--key); color:var(--c-on-accent); border-color:var(--key); font-weight:600 }
.ds-acts .meta { margin-left:auto }
.ds-cool { margin-top:10px; font-size:12.5px } .ds-empty .ds-cool { margin:0 0 8px }
.dna-vs { font-size:12px; color:var(--mut); margin:6px 0 0; font-style:italic }
/* the yearly offer (one calm line, day-21 trial report) and Give a month, get a month (Plans) - 2026-10-22 */
.yr-offer { display:grid; gap:6px; border-top:1px solid var(--rule); padding-top:10px; margin-top:4px }
.yr-offer p { margin:0; font-size:14px } .yr-offer .row, .modal .yr-offer .row { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-start; margin:0 }
.rf-card { display:grid; gap:6px; border:1px solid var(--rule); border-radius:10px; padding:12px 14px; font-size:13.5px; line-height:1.5 }
.rf-card .row, .modal .rf-card .row { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-start; margin:0 } .rf-friend { overflow-wrap:anywhere }
.ds-empty { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:16px; align-items:center; padding:6px 0 }
@media (max-width:600px) { .ds-empty { grid-template-columns:minmax(0, 1fr); justify-items:center; text-align:center } }
.ds-empty p { margin:0 0 8px; font-size:13.5px; line-height:1.5 }

/* Protect room: prop account tracker */
.pr-tabs { display:flex; flex-wrap:wrap; gap:8px; align-items:center } .pr-tabs > .pr-empty { flex:1 1 100%; min-width:0 }   /* (0.9.43) as wide as the connections above it, never a half-width card */
.pr-tabs > button { display:grid; text-align:left; gap:1px; padding:6px 12px; border-radius:8px; font-size:13px; font-weight:600 }
.pr-tabs > button small { font-weight:400; color:var(--mut); font-size:11.5px } .pr-tabs > button[aria-pressed="true"] { border-color:var(--key); background:var(--panel) }
.pr-tabs > button.warn { border-left:3px solid var(--liq) } .pr-tabs > button.bad { border-left:3px solid var(--dn) }
.pr-empty { margin:0 0 12px; padding:22px 20px; border-radius:var(--r-card, 12px); border:1px solid var(--c-border); background:var(--c-card); display:grid; gap:10px; justify-items:start }
.pr-empty h3 { margin:0; font-size:17px } .pr-empty p { margin:0; color:var(--mut); font-size:13.5px; line-height:1.45; max-width:62ch }
#room_protect.empty > :is(#pr_det, #pr_pick) { display:none }
.pc-none { margin:2px 0 0; font-size:13px; color:var(--mut) } .pr-empty .pr-add { margin-left:0; flex-wrap:wrap }
#gnums .g-rule { font-size:10.5px; opacity:.75 } .ck-rulen { font-size:12px }
.pr-add { display:flex; gap:6px; margin-left:auto } .pr-add select { padding:4px 6px; font-size:12.5px } .pr-add button { white-space:nowrap } .pr-add select { min-width:0 }
body.room-protect #stage { display:none }
#room_protect { overflow-y:auto; padding:18px 22px 40px; display:grid; gap:16px; align-content:start; width:100%; max-width:1200px; margin:0 auto }
.pr-cfg { display:flex; flex-wrap:wrap; gap:10px; align-items:center } .pr-cfg select, .pr-cfg input { padding:4px 8px; font-size:13px }
.pr-cfg input[type=number] { width:96px } .pr-cfg .pr-comm { flex-basis:100%; line-height:1.45 } .pr-cfg label { font-size:12.5px; color:var(--mut); display:flex; gap:6px; align-items:center }
.hero { display:grid; grid-template-columns:minmax(220px, 1.2fr) repeat(auto-fit, minmax(170px, 1fr)); gap:10px }
.hero .tile.main { border-width:2px } .hero .tile.main .v { font-size:34px }
.tile.ok { border-color:var(--up) } .tile.warn { border-color:var(--liq) } .tile.bad { border-color:var(--dn); background:color-mix(in srgb, var(--dn) 6%, transparent) }
.meter { height:8px; border-radius:4px; background:var(--panel2); overflow:hidden; margin-top:8px } .meter > i { display:block; height:100%; border-radius:4px; background:var(--key) }
.chk { list-style:none; margin:0; padding:0; display:grid; gap:6px; font-size:13.5px } .chk li::before { content:"\2715"; color:#b0473a; font-weight:700; margin-right:8px }
.chk li.ok::before { content:"\2713"; color:#089981 } .chk li.info::before { content:"\2022"; color:var(--mut) }
table.days { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums } table.days th, table.days td { text-align:right; padding:5px 8px; border-bottom:1px solid var(--rule) }
table.days th:first-child, table.days td:first-child { text-align:left } table.days th { color:var(--mut); font-weight:500 }
table.days button { border:0; background:none; color:var(--faint); padding:0 4px }
#pr_curve { height:240px } #pr_curve:has(> .rv-empty) { height:auto } .pr-legend { display:flex; gap:14px; font-size:12px; color:var(--mut); margin-bottom:6px } .pr-legend i { display:inline-block; width:18px; height:0; border-top:2px solid; vertical-align:middle; margin-right:5px }
#propchip { cursor:pointer } #propchip.warn .lab { color:var(--liq) } #propchip.bad { border-color:var(--dn) } #propchip.bad .lab { color:var(--dn) } #propchip .lab { color:var(--fresh) }

/* pre-trade check on the ticket */
.pcheck { border-radius:8px; padding:7px 9px; margin:6px 0 4px; font-size:12px; line-height:1.4; background:var(--panel2) }
.pcheck .vd { font:700 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; column-gap:8px }
.pcheck .vd span { white-space:nowrap } .pcheck .vd span + span { font-size:9.5px; font-weight:600; opacity:.75 }   /* "Stop and think" no longer broke into two lines each */
.pcheck.clear .vd { color:var(--up) } .pcheck.caution { background:color-mix(in srgb, var(--liq) 12%, transparent) } .pcheck.caution .vd { color:color-mix(in srgb, var(--liq) 82%, var(--ink)) } .pcheck.stop { background:color-mix(in srgb, var(--dn) 12%, transparent) } .pcheck.stop .vd { color:color-mix(in srgb, var(--dn) 88%, var(--ink)) }
.pcheck .pc-ledge { margin-top:6px; width:100%; font-size:12px; padding:4px 8px; color:color-mix(in srgb, var(--calm) 75%, var(--ink)); background:color-mix(in srgb, var(--panel) 60%, transparent); border-color:color-mix(in srgb, var(--calm) 30%, var(--panel)) }
.pcheck ul { margin:4px 0 0; padding-left:16px } .pcheck li.note { color:var(--mut) } .pcheck .basis { color:var(--faint); font-size:11px; margin-top:3px }
/* saved ledger */
.ledger { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px }
.ledger .tile .v.up { color:#089981 } .ledger .tile .v.down { color:#b0473a }

/* demo mode (social video): title / end cards */
#demo_card { position:fixed; inset:0; z-index:70; display:grid; place-items:center; background:linear-gradient(160deg, #2b1d14, #4a2f20 60%, #673ab7); color:#fff; text-align:center; cursor:pointer }
#demo_card h1 { font:800 clamp(40px, 7vw, 84px)/1 var(--f-body); margin:0 0 14px; letter-spacing:-.02em } #demo_card p { font:500 clamp(16px, 2.4vw, 26px) var(--f-body); margin:6px 0; opacity:.92 }
#demo_card .fine { font-size:13px; opacity:.6; margin-top:26px }
#demo_card p.dm-prog { font-size:15px; opacity:.7; margin-top:22px }
#demo_btn { border-color:var(--key); color:var(--key); font-weight:600 }
/* the sample day / demo banner: synthetic prices, nothing saved (same amber in light and dark, white text) */
#sample_bar { position:fixed; top:58px; left:50%; transform:translateX(-50%); z-index:80; display:flex; align-items:center; gap:10px; padding:5px 6px 5px 14px;
  border-radius:999px; background:#8a5300; color:#fff; font:600 13px/1.3 var(--f-body); box-shadow:0 4px 18px rgba(0,0,0,.28); max-width:calc(100vw - 32px) }
#sample_bar span { min-width:0 } #sample_bar small { font-weight:500; opacity:.9 }
#sample_bar button { flex:none; border:1px solid rgba(255,255,255,.7); background:transparent; color:#fff; border-radius:999px; padding:4px 12px; font:600 12px var(--f-body); cursor:pointer }
#sample_bar button:hover, #sample_bar button:focus-visible { background:rgba(255,255,255,.18) }
@media (max-width:760px) { #sample_bar { top:auto; bottom:12px; font-size:12px } #sample_bar small { display:none } }

/* ---- motion: cards, rooms and captions ease in */
@keyframes cardIn { from { opacity:0; transform:translateY(10px) scale(.985) } to { opacity:1; transform:none } }
@keyframes roomIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:none } }
.ov.card:not([hidden]), #ticket:not([hidden]), #key:not([hidden]), #key_ict:not([hidden]), #key_gen:not([hidden]) { animation:cardIn .38s cubic-bezier(.2,.8,.2,1) }
#alert.ov.card:not([hidden]) { animation:cardIn .38s cubic-bezier(.2,.8,.2,1) }
#room_review:not([hidden]), #room_protect:not([hidden]) { animation:roomIn .45s cubic-bezier(.2,.8,.2,1) }
#demo_card { transition:opacity .6s ease; background-size:200% 200%; animation:cardGlow 8s ease infinite }
#demo_card.out { opacity:0 }
@keyframes cardGlow { 0% { background-position:0% 50% } 50% { background-position:100% 50% } 100% { background-position:0% 50% } }
#demo_card > div > * { opacity:0; animation:rise .7s cubic-bezier(.2,.8,.2,1) forwards } #demo_card > div > *:nth-child(2) { animation-delay:.18s } #demo_card > div > *:nth-child(3) { animation-delay:.36s }
#demo_card > div > *:nth-child(4) { animation-delay:.6s } #demo_card > div > *:nth-child(5) { animation-delay:.8s } #demo_card > div > *:nth-child(6) { animation-delay:1s }
@keyframes rise { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }
/* ---- Atlas (owner-approved 2026-10-24/25): the bodyguard himself replaces the abstract orb. The drawing is the layered
   rig (<template id="atlas_rig"> + #atlas_rig_css): the BUST by default where the orb sat (84 px), the FULL FIGURE in .big
   (the demo / tour). Its state follows the container's classes (atlasState): .speaking (shades tip, the orb brightens
   with the voice, sound-wave rings), .listening (Voice Ask, soft green), the co-pilot's Caution / Stop (amber / red) and
   a success beat (shades tip + glint). The figure never takes the pointer: only the .disc and the x do */
#atlas { position:fixed; right:92px; bottom:96px; z-index:75; width:84px; height:84px; display:grid; place-items:center; pointer-events:none; opacity:0; transform:scale(.8); transition:opacity .4s, transform .4s }
#atlas.show { opacity:1; transform:none } #atlas.big { right:50%; bottom:auto; top:16%; width:112px; height:276px; margin-right:-56px }
/* 2026-10-19: drag the orb (only its own circle catches the pointer; around it stays click-through to the chart), double-click
   puts it back, the x hides it (Sound settings brings it back). A moved orb overrides the default / MTF / right-panel offsets, not .big */
#atlas .disc { position:absolute; inset:0; border-radius:50%; cursor:grab; touch-action:none } #atlas.drag .disc { cursor:grabbing }
#atlas.show .disc, #atlas.show .ox { pointer-events:auto } #atlas.drag { transition:opacity .4s }
#atlas .ox { position:absolute; top:-4px; right:-4px; width:20px; height:20px; padding:0; border-radius:50%; border:1px solid color-mix(in srgb, var(--wm-facet, #9b72ec) 60%, transparent); background:var(--bg, #fff); color:var(--wm-facet, #9b72ec); font:700 13px/1 var(--f-body); display:grid; place-items:center; opacity:0; visibility:hidden; transition:opacity .15s; cursor:pointer }
#atlas.show .ox { visibility:visible } #atlas.show:hover .ox, #atlas .ox:focus-visible { opacity:1 } #atlas.big .ox { display:none }
#atlas.moved:not(.big) { left:var(--ox) !important; top:var(--oy) !important; right:auto !important; bottom:auto !important }
#atlas.off:not(.big) { display:none } #atlas.probe, #atlas.probe * { pointer-events:none !important }   /* atlasDodge: looking under him */
#atlas .rig { position:absolute; inset:0; pointer-events:none } #atlas .rig > svg { display:block; width:100%; height:100%; overflow:visible }
#atlas .name { position:absolute; top:-18px; font:700 10px var(--f-body); letter-spacing:.3em; color:var(--wm-facet, #9b72ec) }
/* his moves start when he shows (an invisible Atlas never animates), pause while TiltLab is hidden / minimized, and while
   it's in the background unless he's talking or listening */
#atlas:not(.show) .rig * { animation:none !important }
html.page-hidden #atlas .rig *, html.calm-anim #atlas:not(.speaking):not(.listening) .rig * { animation-play-state:paused !important }

/* ---- trailer-grade demo motion */
#demo_vig { position:fixed; inset:0; z-index:55; pointer-events:none; opacity:0; transition:opacity .6s; background:radial-gradient(ellipse at center, transparent 55%, rgba(30,18,10,.28) 100%) }
body.demo #demo_vig { opacity:1 }
body.demo #story { left:auto; right:92px; top:200px; transform:none; width:min(420px, 38vw); min-width:0 }   /* the open right half: never over the candles */
@keyframes zoomIn { from { opacity:0; transform:scale(1.05); filter:blur(10px) } to { opacity:1; transform:none; filter:none } }
.zoom-in { animation:zoomIn .42s cubic-bezier(.16,.84,.24,1) }
#demo_card h1 { letter-spacing:.35em; animation:titleIn 1.1s cubic-bezier(.16,.84,.24,1) forwards !important; text-shadow:0 0 30px rgba(120,190,255,.35) }
@keyframes titleIn { from { opacity:0; letter-spacing:.6em; filter:blur(12px) } to { opacity:1; letter-spacing:-.01em; filter:none } }
#demo_card::after { content:""; position:absolute; inset:0; background:linear-gradient(105deg, transparent 40%, rgba(255,255,255,.10) 50%, transparent 60%); transform:translateX(-100%); animation:sweep 2.4s .4s ease-in-out forwards; pointer-events:none }
@keyframes sweep { to { transform:translateX(100%) } }
#demo_card { overflow:hidden }

/* ---- demo v3: chapter tag, live subtitles, montage label, feature highlights */
#demo_chip { position:fixed; top:64px; left:50%; transform:translateX(-50%); z-index:60; padding:6px 14px; border-radius:999px; background:rgba(18,12,8,.78); color:#fff;
  font:700 12px var(--f-body); letter-spacing:.18em; text-transform:uppercase; backdrop-filter:blur(6px); box-shadow:0 6px 20px rgba(0,0,0,.25) }
#demo_chip b { color:#7fd6ff; margin-right:8px } #demo_chip.in { animation:chipIn 500ms cubic-bezier(.16,.84,.24,1) }
@keyframes chipIn { from { opacity:0; transform:translate(-50%, -10px); filter:blur(4px) } to { opacity:1; transform:translateX(-50%); filter:none } }
#demo_sub { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:60; max-width:min(900px, 90vw); text-align:center; padding:8px 16px; border-radius:10px;
  background:rgba(18,12,8,.62); backdrop-filter:blur(4px); font:600 clamp(16px, 2vw, 23px)/1.35 var(--f-body); color:rgba(255,255,255,.45); transition:opacity .2s }
#demo_sub.in-plot { font-size:clamp(15px, 1.4vw, 19px) }   /* (follow-up #1) inside the chart's bottom lane: a smaller line */
#demo_sub .w { transition:color .12s } #demo_sub .w.on { color:#fff } #demo_sub .w.now { color:#7fd6ff }
#demo_label { position:fixed; left:50%; top:46%; transform:translate(-50%, -50%); z-index:62; pointer-events:none; font:800 clamp(30px, 5vw, 64px) var(--f-body); letter-spacing:.06em;
  color:rgba(255,255,255,.96); text-shadow:0 4px 30px rgba(0,0,0,.45); text-transform:uppercase }
#demo_label.in { animation:labelIn .9s cubic-bezier(.16,.84,.24,1) forwards }
@keyframes labelIn { 0% { opacity:0; transform:translate(-50%, -50%) scale(1.15); filter:blur(10px) } 25% { opacity:1; transform:translate(-50%, -50%) scale(1); filter:none } 80% { opacity:1 } 100% { opacity:0; transform:translate(-50%, -50%) scale(.97) } }
.ins li.hl { background:rgba(103,58,183,.16); box-shadow:inset 3px 0 0 #673ab7; transition:background .3s }
body.demo .br .bar { transition:width .9s cubic-bezier(.16,.84,.24,1) } body.demo .meter > i { transition:width 1s cubic-bezier(.16,.84,.24,1) }
.pop-in { animation:cardIn .4s cubic-bezier(.16,.84,.24,1) }

/* Prep room: premarket home base */
body.room-prep #stage { display:none }
#room_prep { overflow-y:auto; padding:18px 22px 40px; display:grid; gap:16px; align-content:start; width:100%; max-width:1200px; margin:0 auto }
.pp-grid { display:grid; grid-template-columns:minmax(300px, 1fr) minmax(340px, 1.3fr); gap:16px } @media (max-width:900px) { .pp-grid { grid-template-columns:1fr } }
.ci { display:grid; gap:12px } .ci label { display:grid; gap:4px; font-size:13px; color:var(--mut) }
.ci input[type=number] { width:90px } .ci textarea { font:13px var(--f-body); padding:6px; border:1px solid var(--rule); border-radius:6px; background:var(--panel2); color:var(--ink); resize:vertical }
.scale { display:flex; gap:4px } .scale button { width:38px; padding:4px 0; font-size:13px } .scale button[aria-pressed="true"] { background:var(--key); color:var(--c-on-accent); border-color:var(--key) }
.ckl { list-style:none; margin:0; padding:0; display:grid; gap:6px } .ckl label { display:flex; gap:8px; align-items:center; font-size:13.5px; cursor:pointer }
.rules { padding:10px 12px; border-radius:8px; background:rgba(194,122,30,.12); color:#8a5208; font-size:13.5px } .rules.ok { background:rgba(8,153,129,.10); color:#066b5a }
.mk { display:grid; gap:10px; font-size:13.5px } .mk .row { display:grid; grid-template-columns:140px 1fr; gap:8px } .mk .row > span:first-child { color:var(--mut) }
.mk .pill { display:inline-block; padding:1px 8px; border-radius:999px; background:var(--panel2); margin:0 4px 4px 0; font-family:var(--f-num); font-size:12.5px; font-variant-numeric:tabular-nums }
.mk .plan { padding:8px 10px; border-left:3px solid var(--key); background:var(--panel2); border-radius:6px }
.fomc { padding:8px 12px; border-radius:8px; background:rgba(176,71,58,.12); color:#8f3328; font-weight:600 }
.lim { display:grid; gap:6px } .lim .a { display:flex; justify-content:space-between; font-size:13.5px; padding:6px 10px; background:var(--panel2); border-radius:6px }

/* news countdown, price alerts, multi-timeframe panel */
#newschip.soon { border-color:#b0473a } #newschip.soon .lab { color:#b0473a } #newschip .lab { color:#c27a1e }
#mtf { position:absolute; top:0; right:0; bottom:0; width:var(--mtfw, 30%); display:grid; grid-template-rows:1fr 1fr; border-left:1px solid var(--rule); background:var(--bg); z-index:4 }
#mtf > .mp { position:relative; min-height:0; border-bottom:1px solid var(--rule) }
#mtf .mp-h { position:absolute; left:6px; top:5px; z-index:3; display:flex; align-items:center; gap:3px; padding:2px 6px 2px 8px; font:700 11px var(--f-body); letter-spacing:.04em; color:var(--mut); background:color-mix(in srgb, var(--bg) 82%, transparent); border:1px solid var(--rule); border-radius:5px; cursor:pointer }
#mtf .mp-h:hover, #mtf .mp-h[aria-expanded="true"] { color:var(--ink) } #mtf .mp-h svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
#mtf .mtf-grip { position:absolute; left:-4px; top:0; bottom:0; width:8px; z-index:5; cursor:col-resize; touch-action:none } #mtf .mtf-grip:hover { background:color-mix(in srgb, var(--mut) 25%, transparent) }
#mtfmenu { position:absolute; z-index:9; width:220px; padding:8px; display:grid; gap:6px; background:var(--panel); color:var(--ink); border:1px solid var(--rule); border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.3); font:500 12.5px var(--f-body) }
#mtfmenu .mm-h { font:600 10.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--mut) }
#mtfmenu .mm-tf { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px } #mtfmenu .mm-n { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px }
#mtfmenu button { padding:4px 6px; font-size:12px } #mtfmenu button[aria-pressed="true"]:not(.mm-row) { background:var(--ink); color:var(--bg); border-color:var(--ink) } #mtfmenu .mm-row { text-align:left }
#stage.mtf #chart, #stage.mtf #ovc { right:var(--mtfw, 30%) } #stage.mtf #chart { width:auto }
#stage.mtf #now, #stage.mtf #alert { right:calc(var(--mtfw, 30%) + 70px) } #stage.mtf #story { right:calc(var(--mtfw, 30%) + 308px) } body:is(.h-mtf, #stage.mtf) #atlas { right:calc(var(--mtfw, 30%) + 90px) }
.news { list-style:none; margin:0; padding:0; display:grid; gap:6px } .news li { display:grid; grid-template-columns:52px 14px 1fr; gap:8px; align-items:start; font-size:13.5px }
.news .im { width:10px; height:10px; border-radius:2px; margin-top:4px } .news .im.High { background:var(--dn) } .news .im.Medium { background:var(--liq) }
.news .fc { color:var(--faint); font-size:12px }

/* Train room: scored replay drills */
body.room-train #stage { display:none }
#room_train { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:0; min-height:0 } @media (max-width:900px) { #room_train { grid-template-columns:1fr; grid-template-rows:60vh auto } }
#tr_chartwrap { position:relative; min-height:0 } #tr_chart { position:absolute; inset:0 }
#tr_info { position:absolute; left:12px; top:10px; z-index:3; font:500 13px var(--f-chart); font-variant-numeric:tabular-nums; color:var(--mut); background:rgba(248,237,227,.85); padding:4px 10px; border-radius:6px }
#tr_verdict { position:absolute; left:50%; top:18px; transform:translateX(-50%); z-index:3; padding:10px 18px; border-radius:10px; font:700 18px var(--f-body); box-shadow:0 8px 24px rgba(90,50,30,.18); animation:cardIn .35s }
#tr_verdict.win, #tr_verdict.good_skip { background:#e3f4ee; color:#066b5a } #tr_verdict.loss, #tr_verdict.missed { background:#f8e3df; color:#8f3328 } #tr_verdict.flat { background:var(--panel2); color:var(--ink) }
#tr_side { border-left:1px solid var(--rule); background:var(--panel); padding:16px; overflow-y:auto; display:grid; gap:14px; align-content:start; grid-auto-rows:max-content }
.tr-btns { display:grid; gap:8px } .tr-btns button { padding:12px; font:700 15px var(--f-body); border-radius:8px; border:0; color:#fff } .tr-btns kbd { opacity:.7; font-size:11px; margin-left:6px }
.tr-long { background:#2962ff } .tr-short { background:#f23645 } .tr-skip { background:var(--panel2) !important; color:var(--ink) !important; border:1px solid var(--rule) !important } .tr-btns button:disabled { opacity:.35 }
.tr-next { background:var(--ink); color:var(--bg) !important }
.tr-score { display:grid; grid-template-columns:1fr 1fr; gap:8px } .tr-score .tile { padding:8px 10px } .tr-score .tile .v { font-size:20px }
.tr-recent { list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:12.5px } .tr-recent li { display:flex; justify-content:space-between; padding:4px 8px; background:var(--panel2); border-radius:6px }

/* Partners & chat drawer */
#chatbtn { position:relative } #chatbtn .badge { position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; border-radius:9px; background:var(--dn); color:var(--c-on-accent); font:700 10.5px/17px var(--f-body); padding:0 4px }
#social { position:fixed; top:0; right:0; bottom:0; width:min(420px, 100vw); z-index:31; background:var(--panel); border-left:1px solid var(--rule); box-shadow:-10px 0 30px rgba(90,50,30,.16); display:grid; grid-template-rows:auto auto minmax(0,1fr) }
#social .pane { overflow-y:auto; padding:12px 14px; display:grid; gap:10px; align-content:start }
.sc-form { display:grid; gap:8px } .sc-form input { padding:7px 10px } .sc-form .row2 { display:flex; gap:8px }
.sc-form .sc-google { display:flex; align-items:center; justify-content:center; gap:8px; padding:8px 10px; font-weight:600 } .sc-form .sc-google svg { width:16px; height:16px; flex:none }
.sc-form .sc-or { display:flex; align-items:center; gap:10px; color:var(--mut); font-size:11px; letter-spacing:.08em; text-transform:uppercase }
.sc-form .sc-or::before, .sc-form .sc-or::after { content:""; flex:1; height:1px; background:currentColor; opacity:.35 }
.sc-form .wl-lk { border:0; background:transparent; padding:0; color:inherit; text-decoration:underline; font:inherit; cursor:pointer }
.sc-form .sc-forgot { justify-self:start; border:0; background:transparent; padding:0; color:var(--mut); text-decoration:underline; font:inherit; font-size:12px; cursor:pointer }
.sc-list { list-style:none; margin:0; padding:0; display:grid; gap:6px } .sc-list li { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--panel2); border-radius:8px; font-size:13.5px }
.sc-list li .grow { flex:1 } .sc-list li small { color:var(--faint) } .sc-list li button { padding:3px 10px; font-size:12.5px }
.conv { display:grid; grid-template-rows:auto minmax(0,1fr) auto; grid-template-columns:minmax(0,1fr); height:100%; gap:8px } .conv .msgs { overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:4px 2px }
.msg { max-width:82%; padding:7px 11px; border-radius:12px; font-size:13.5px; line-height:1.4; background:var(--panel2); align-self:flex-start } .msg.me { background:var(--key); color:var(--c-on-accent); align-self:flex-end }
.msg small { display:block; font-size:10.5px; opacity:.65; margin-top:2px } .msg .who { font-weight:600; font-size:11.5px; opacity:.8 }
.tcard { border:1px solid var(--rule); border-radius:10px; padding:8px 10px; background:var(--panel); color:var(--ink); font:500 13px var(--f-num); font-variant-numeric:tabular-nums } .msg.me .tcard { border-color:rgba(255,255,255,.4) }
.tcard b.up { color:#089981 } .tcard b.down { color:#b0473a }
.ci-img { display:block; padding:0; margin:2px 0; border:0; background:transparent; cursor:zoom-in; max-width:100%; line-height:0; border-radius:10px }
.ci-img img { display:block; max-width:100%; height:auto; border-radius:10px; background:var(--panel2) } .ci-img img.ci-gone { min-width:120px; min-height:40px }
.ci-pend { display:flex; align-items:center; gap:8px; margin:6px 0 4px; padding:6px 8px; border:1px solid var(--rule); border-radius:10px; font-size:12.5px }
.ci-pend .ci-pv { padding:0; border:0; background:transparent; cursor:zoom-in; line-height:0; border-radius:6px } .ci-pend img { width:48px; height:48px; object-fit:cover; border-radius:6px; flex:none } .ci-pend span { flex:1; opacity:.8 } .ci-pend button { flex:none }
.ci-cap { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:4px } .ci-bad { font-style:italic; opacity:.7 } .msg.pic { padding:4px; max-width:min(82%, 340px) } .msg.pic small { padding:0 6px }
.ci-drop { outline:2px dashed var(--key); outline-offset:-4px }
.gi-btn { font-weight:800; font-size:11px; letter-spacing:.04em }
.gi-pan { display:flex; flex-direction:column; gap:6px; margin:6px 0 4px; padding:8px; border:1px solid var(--rule); border-radius:10px }
.gi-q { width:100%; box-sizing:border-box; min-width:0 }
.gi-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:4px; overflow-y:auto; max-height:240px }
.gi-it { display:block; height:96px; padding:0; border:0; border-radius:6px; overflow:hidden; background:var(--panel2); cursor:pointer; line-height:0 }
.gi-it img { display:block; width:100%; height:100%; object-fit:cover } .gi-it:focus-visible { outline:2px solid var(--key); outline-offset:-2px }
.gi-st { font-size:12.5px; opacity:.8 } .gi-st:empty, .gi-more[hidden] { display:none } .gi-more { align-self:center }
.gi-by { font-size:11px; opacity:.65; text-align:right }
.em-btn { font-family:"Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size:15px; line-height:1 }
.em-pan { display:flex; flex-direction:column; gap:6px; margin:6px 0 4px; padding:8px; border:1px solid var(--rule); border-radius:10px }
.em-q { width:100%; box-sizing:border-box; min-width:0 }
.em-tabs { display:flex; gap:2px; flex-wrap:wrap }
.em-tab, .em-it { font-family:"Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; border:0; background:transparent; padding:0; border-radius:6px; cursor:pointer; line-height:1; color:inherit }
.em-tab { font-size:16px; width:32px; height:28px } .em-tab:hover, .em-it:hover { background:var(--panel2) }
.em-grid { position:relative; overflow-y:auto; max-height:220px }
.em-h { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; opacity:.65; margin:6px 2px 3px }
.em-row { display:grid; grid-template-columns:repeat(auto-fill, minmax(34px, 1fr)); gap:2px }
.em-it { font-size:21px; height:34px } .em-tab:focus-visible, .em-it:focus-visible { outline:2px solid var(--key); outline-offset:-2px }
.em-st { font-size:12.5px; opacity:.8 } .em-st:empty { display:none }
.conv .msg { position:relative }
.sc-rxb { position:absolute; top:50%; left:calc(100% + 4px); transform:translateY(-50%); opacity:0; width:26px; height:26px; padding:0; border:1px solid var(--rule); border-radius:999px; background:var(--panel); color:var(--ink); font:14px/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; cursor:pointer }
.msg.me .sc-rxb { left:auto; right:calc(100% + 4px) } .msg:hover .sc-rxb, .msg:focus-within .sc-rxb, .sc-rxb:focus-visible { opacity:1 }
.sc-edb { position:absolute; top:50%; right:calc(100% + 34px); transform:translateY(-50%); opacity:0; width:26px; height:26px; padding:0; border:1px solid var(--rule); border-radius:999px; background:var(--panel); color:var(--ink); font-size:13px; line-height:1; cursor:pointer }
.msg:hover .sc-edb, .msg:focus-within .sc-edb, .sc-edb:focus-visible { opacity:1 } .msg.editing { min-width:min(82%, 320px) }
/* editing your own message (046): the box in place of the text, "(edited)" after it, earlier versions in Reports */
.ed-mark { font-size:11px; opacity:.65; white-space:nowrap } .ed-box { display:grid; gap:3px; margin-top:2px }
.ed-in { width:100%; box-sizing:border-box; padding:6px 9px; border:1px solid var(--key); border-radius:8px; background:var(--panel); color:var(--ink); font:inherit }
.ed-hint { font-size:11px; opacity:.7 } .ed-err { font-size:12px; color:var(--dn) } .ed-err:empty { display:none }
.ed-hist { margin-top:6px; font-size:12.5px; opacity:.85 } .ed-old { margin-top:3px; padding-left:8px; border-left:2px solid var(--rule) } .ed-old time { opacity:.7; margin-right:4px }
.sc-rx { margin-top:5px } .sc-rx button { color:var(--ink); font-family:"Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif }
.cm-pick.sc-pick { position:static; align-self:flex-start; font-family:"Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif } .cm-pick.sc-pick.me { align-self:flex-end } .sc-pick .sc-more { font-size:16px; font-weight:700 }
.ci-view { position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.86); display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out }
.ci-view img { max-width:100%; max-height:100%; object-fit:contain; border-radius:6px } .ci-view .ci-x { position:absolute; top:12px; right:16px; font-size:26px; line-height:1; padding:4px 12px; border:0; border-radius:8px; background:rgba(255,255,255,.14); color:#fff; cursor:pointer }
.conv form { display:flex; gap:6px } .conv form input { flex:1; min-width:0; padding:8px 10px }
.toggle-row { display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; font-size:13px; padding:10px; background:var(--panel2); border-radius:8px }
.toggle-row h4 { grid-column:1/-1; margin:0 0 2px; font:600 13.5px var(--f-body) }
.prac-q p { margin:0 0 8px } .prac-q .row { display:flex; gap:8px; flex-wrap:wrap }
.nacc .nacc-r { margin-bottom:8px } .nacc .nacc-r p { margin:0 0 4px } .nacc label { display:flex; gap:6px; align-items:center }
.ptoast { position:fixed; right:18px; top:70px; z-index:40; background:var(--panel); border:1px solid var(--rule); border-left:4px solid var(--key); border-radius:10px; padding:10px 14px; box-shadow:0 10px 30px rgba(90,50,30,.2); font-size:13.5px; animation:cardIn .35s; max-width:340px }
.ptoast.undo { display:flex; align-items:center; gap:12px } .ptoast.undo button { flex:none; font-weight:600 }
/* the speaking budget's caption (vbCap): the line Atlas just said + Less of This; a held line (no home of its own) quieter */
.vcap { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:41; display:flex; align-items:center; gap:10px; max-width:min(560px, calc(100vw - 32px));
  width:max-content; box-sizing:border-box;   /* (bug hunt 2026-11-05) sized by its words, not by the half of the window right of left:50% */
  background:var(--panel); border:1px solid var(--rule); border-radius:10px; padding:7px 12px; font-size:13px; box-shadow:0 8px 24px rgba(90,50,30,.16); animation:cardIn .3s }
.vcap[hidden] { display:none } .vcap.held { opacity:.8 } .vcap-less { flex:none; font-size:12px; padding:3px 8px }

/* Community: Discord-style channels (left), conversation (middle), who's here (right) */
body.room-community #stage { display:none }
.nbadge { display:inline-block; min-width:16px; height:16px; margin-left:5px; border-radius:8px; background:var(--dn); color:var(--c-on-accent); font:700 10px/16px var(--f-body); padding:0 4px; vertical-align:1px }
#room_community { display:grid; grid-template-columns:236px minmax(0,1fr) 216px; min-height:0; height:100%; overflow:hidden }
@media (max-width:1000px) { #room_community { grid-template-columns:200px minmax(0,1fr) } .cm-members { display:none } }
.cm-side { background:var(--panel2); border-right:1px solid var(--rule); display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0 }
.cm-brand { padding:14px 16px 10px; font:700 15px var(--f-disp); letter-spacing:.02em; border-bottom:1px solid var(--rule) }
.cm-chans { overflow-y:auto; padding:8px 8px 16px }
.cm-sec { display:flex; align-items:center; justify-content:space-between; margin:14px 6px 4px; font:700 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--faint) }
.cm-sec button { border:0; background:transparent; padding:0 4px; color:var(--faint); font:600 16px/1 var(--f-body) } .cm-sec button:hover { color:var(--ink) }
.cm-ch { display:flex; align-items:center; gap:7px; width:100%; text-align:left; border:0; background:transparent; padding:6px 8px; border-radius:6px; color:var(--mut); font:500 14px var(--f-body) }
.cm-ch:hover { background:var(--shade); color:var(--ink) } .cm-ch[aria-current="true"] { background:var(--shade); color:var(--ink); font-weight:600 }
.cm-ch .h { color:var(--faint); font-weight:400; width:14px; text-align:center } .cm-ch .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.cm-ch.unread { color:var(--ink); font-weight:700 } .cm-ch .cnt { background:var(--dn); color:var(--c-on-accent); border-radius:8px; font:700 10px/16px var(--f-body); min-width:16px; padding:0 4px; text-align:center }
.cm-ch.out { opacity:.7 } .cm-ch .lock { font-size:11px }
.cm-form { display:grid; gap:6px; margin:6px; padding:10px; background:var(--panel); border:1px solid var(--rule); border-radius:8px; font-size:13px }
.cm-form input { padding:6px 8px } .cm-form label { display:flex; gap:6px; align-items:center; color:var(--mut) }
.cm-me { display:flex; align-items:center; gap:8px; padding:10px 12px; border-top:1px solid var(--rule); background:var(--shade); font-size:13px }
.cm-me .grow { flex:1; min-width:0 } .cm-me small { display:block; color:var(--faint) }
.av { flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:#fff; font:700 14px var(--f-body); position:relative }
.av.sm { width:28px; height:28px; font-size:12px } .av .dot { position:absolute; right:-1px; bottom:-1px; width:11px; height:11px; border-radius:50%; background:#3ba55d; border:2px solid var(--panel2) }
.cm-main { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; min-height:0; background:var(--panel) }
.cm-top { display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid var(--rule); min-height:48px }
.cm-top .t { font:700 15px var(--f-body) } .cm-top .d { color:var(--mut); font-size:13px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-left:1px solid var(--rule); padding-left:10px }
.cm-top button { padding:4px 10px; font-size:12.5px }
/* (floorqa 11-13) a long room / channel name ellipses before it pushes the header's buttons (Invite, the Room Settings gear) off the edge;
   up to tablet width the buttons drop their long words (the gear keeps its "Room Settings" label) */
.cm-top > .t { min-width:48px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .cm-top > button, .cm-top > .fsb-tools { flex:none; white-space:nowrap }
@media (max-width:1000px) { .cm-top .ic { display:none } }
@media (max-width:600px) { .cm-top { gap:6px } .cm-top .t { flex:1 1 auto; min-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .cm-top .d { display:none } .cm-top button { flex:none } .cm-top .ic { display:none } }
.cm-msgs { overflow-y:auto; padding:10px 0 6px }
.cm-m { display:grid; grid-template-columns:52px minmax(0,1fr); padding:2px 16px 2px 8px; position:relative }
.cm-m.first { margin-top:12px } .cm-m:hover { background:var(--panel2) } .cm-m.mention { background:color-mix(in srgb, #f0b232 14%, transparent); box-shadow:inset 3px 0 #f0b232 }
.cm-m .gut { display:flex; justify-content:center; padding-top:2px } .cm-m .gut time { visibility:hidden; font-size:10.5px; color:var(--faint); padding-top:3px }
.cm-m:hover .gut time { visibility:visible }
.cm-m .hd { display:flex; align-items:baseline; gap:8px } .cm-m .hd b { font-weight:600; font-size:14.5px } .cm-m .hd time { font-size:11.5px; color:var(--faint) }
.cm-m .tx { font-size:14.5px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere }
.cm-m .men { background:color-mix(in srgb, var(--key) 18%, transparent); color:var(--key); border-radius:3px; padding:0 2px; font-weight:600 }
.cm-m .rp { grid-column:2; font-size:12.5px; color:var(--mut); display:flex; gap:6px; align-items:center; margin-top:4px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.cm-m .rp::before { content:""; width:22px; height:9px; border-left:2px solid var(--rule); border-top:2px solid var(--rule); border-top-left-radius:6px; margin-left:0; margin-right:2px; flex:none; margin-top:6px }
/* (Floor QA 2026-11-12) the reply line clipped its own connector (overflow:hidden) and the first letters of the name it quotes: the
   line itself reaches into the gutter now, so the connector shows and the name starts where the message text does */
.cm-m .rp { margin-left:-30px }
.cm-m .acts { position:absolute; right:14px; top:-12px; display:none; background:var(--panel); border:1px solid var(--rule); border-radius:8px; box-shadow:0 2px 8px rgba(90,50,30,.12); padding:2px }
.cm-m:hover .acts, .cm-m:focus-within .acts { display:flex } .cm-m .acts button { border:0; background:transparent; padding:3px 7px; font-size:14px; border-radius:6px } .cm-m .acts button:hover { background:var(--panel2) }
.cm-rx { display:flex; gap:4px; flex-wrap:wrap; margin-top:4px } .cm-rx button { padding:1px 7px; border-radius:8px; font-size:13px; background:var(--panel2); border:1px solid transparent }
.cm-rx button.mine { border-color:var(--key); background:color-mix(in srgb, var(--key) 12%, transparent) }
.cm-pick { position:absolute; right:14px; top:20px; z-index:5; display:flex; gap:2px; background:var(--panel); border:1px solid var(--rule); border-radius:8px; padding:4px; box-shadow:0 6px 18px rgba(90,50,30,.16) }
.cm-pick button { border:0; background:transparent; font-size:18px; padding:2px 5px; border-radius:6px } .cm-pick button:hover { background:var(--panel2) }
.cm-day { display:flex; align-items:center; gap:10px; margin:16px 16px 4px; color:var(--faint); font:600 11.5px var(--f-body) } .cm-day::before, .cm-day::after { content:""; flex:1; height:1px; background:var(--rule) }
.cm-typing { height:20px; padding:0 18px; font-size:12px; color:var(--mut) }
.cm-compose { padding:0 16px 16px }
.cm-compose { position:relative }
.cm-mp { position:absolute; left:16px; right:16px; bottom:100%; z-index:30; max-width:440px; margin-bottom:4px; padding:6px; background:var(--panel); border:1px solid var(--rule); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.18) }
.cm-mp .mp-o { display:flex; align-items:center; gap:8px; min-height:36px; padding:4px 8px; border-radius:6px; cursor:pointer; font-size:14px; min-width:0 }
.cm-mp .mp-o:hover { background:var(--panel2) } .cm-mp .mp-o[aria-selected="true"] { background:color-mix(in srgb, var(--key) 16%, transparent) }
.cm-mp .mp-o b { font-weight:600; white-space:nowrap } .cm-mp .mp-o small { color:var(--mut); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0 }
.cm-mp .mp-all { background:var(--panel2); color:var(--mut) }
.cm-m .chl { border:0; padding:0 3px; margin:0; border-radius:3px; font:inherit; font-weight:600; color:var(--key); background:color-mix(in srgb, var(--key) 14%, transparent); cursor:pointer } .cm-m .chl:hover { background:color-mix(in srgb, var(--key) 24%, transparent); text-decoration:underline }
.cm-compose .reply { display:flex; justify-content:space-between; align-items:center; padding:6px 12px; background:var(--panel2); border-radius:8px 8px 0 0; font-size:12.5px; color:var(--mut) } .cm-compose .reply button { border:0; background:transparent; padding:0 4px }
.cm-compose form { display:flex; gap:6px; align-items:center; background:var(--panel2); border:1px solid var(--rule); border-radius:10px; padding:4px 6px 4px 12px }
.cm-compose .reply + form { border-radius:0 0 10px 10px }
.cm-compose input { flex:1; min-width:0; border:0; background:transparent; padding:8px 0; font-size:14.5px; outline:none } .cm-compose form button { border:0; background:transparent; font-size:16px; padding:4px 8px }
/* (must-haves 2026-11-12) the message box is a textarea that grows to ~8 lines, then scrolls; the buttons stay on its last line */
.cm-compose textarea#cm_text { flex:1; min-width:0; border:0; background:transparent; color:inherit; padding:8px 0; font:inherit; font-size:14.5px; line-height:1.4; outline:none; resize:none; box-sizing:border-box; display:block; max-height:calc(8 * 1.4em + 16px); overflow-y:auto; scrollbar-width:thin }
.cm-compose #cm_send { align-items:flex-end } .cm-compose #cm_send > button { margin-bottom:2px }
/* (floorqa 11-13) a narrow box (a phone, a tablet between both side lists): the text gets its own full row and the buttons go
   under it, Send on the right. Below 440 px the basis is huge (a row of its own), above it 0 (one row as before) */
.cm-compose #cm_send:has(> button:nth-of-type(3)) { flex-wrap:wrap }
.cm-compose #cm_send:has(> button:nth-of-type(3)) > textarea#cm_text { flex:1 1 calc((440px - 100%) * 999); max-width:100% }
.cm-compose #cm_send:has(> button:nth-of-type(3)) > button[aria-label="Send"] { margin-left:auto }
textarea.ed-in { display:block; resize:none; line-height:1.4; max-height:calc(8 * 1.4em + 14px); overflow-y:auto }
.cm-thread textarea#cm_tt { max-height:calc(8 * 1.45em + 18px); overflow-y:auto; resize:none }
.cm-compose .err { color:var(--dn); font-size:12px; padding:4px 4px 0 }
.cm-join { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; background:var(--panel2); border:1px solid var(--rule); border-radius:10px; font-size:13.5px }
.cm-members { background:var(--panel2); border-left:1px solid var(--rule); overflow-y:auto; padding:12px 8px }
.cm-members h4 { margin:10px 8px 6px; font:700 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--faint) }
.cm-mem { display:flex; align-items:center; gap:9px; padding:5px 8px; border-radius:6px; font-size:13.5px; cursor:pointer } .cm-mem:hover { background:var(--shade) } .cm-mem.off { opacity:.5 }
.cm-mem .who { min-width:0; display:flex; align-items:baseline; gap:4px } .cm-mem .who > .wn { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .cm-mem .who > :not(.wn) { flex:none }   /* (floorqa 11-13) a long name ellipses, its owner / admin tag stays */
.cm-me .grow > b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }   /* (floorqa 11-13) as on the website: a 15+ letter name on one line */ .cm-mem small { color:var(--faint); font-size:11px } .cm-empty { color:var(--mut); padding:40px 24px; text-align:center; font-size:14px }
.cm-welcome { padding:24px 16px 8px } .cm-welcome .big { width:64px; height:64px; border-radius:50%; background:var(--shade); display:grid; place-items:center; font:700 30px var(--f-body); color:var(--mut) }
.cm-loading { padding:24px 16px; color:var(--mut); font-size:13.5px }
/* trade review posts (floor 2026-11-11) */
.rvc { display:grid; gap:8px; margin:4px 0; padding:12px 14px; border:1px solid var(--rule); border-radius:10px; background:var(--panel); max-width:560px }
.rvc-h { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline } .rvc-k { font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--mut) }
.rvc-h .up { color:var(--up) } .rvc-h .dn { color:var(--dn) } .rvc-tag { font-size:11px; padding:1px 6px; border-radius:6px; background:var(--shade); color:var(--mut) }
.rvc-q { padding:6px 10px; border-left:3px solid var(--level); background:var(--shade); border-radius:4px; font-style:italic }
.rvc-svg { width:100%; height:auto; display:block; background:var(--bg); border-radius:6px }
.rvc-b.up { fill:var(--up) } .rvc-b.dn { fill:var(--dn) } .rvc-w { stroke-width:1 } .rvc-w.up { stroke:var(--up) } .rvc-w.dn { stroke:var(--dn) }
.rvc-zone { fill:var(--level); opacity:.08 } .rvc-l { stroke-width:1; stroke-dasharray:4 3 } .rvc-l.in, .rvc-t.in { stroke:var(--level); fill:var(--level) }
.rvc-l.out, .rvc-t.out { stroke:var(--mut); fill:var(--mut) } .rvc-l.stop, .rvc-t.stop { stroke:var(--dn); fill:var(--dn) } .rvc-l.tgt, .rvc-t.tgt { stroke:var(--up); fill:var(--up) }
.rvc-t { font-size:11px; stroke:none !important } .rvc-ax { font-size:10px; fill:var(--mut) }
.rvc-f { display:flex; flex-wrap:wrap; gap:6px 18px } .rvc-f span { display:block; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--mut) }
.rvc-s { display:flex; gap:8px; align-items:center; flex-wrap:wrap } .rvc-stars i { font-style:normal; color:var(--shade) } .rvc-stars i.f { color:#d9a400 } .rvc-stars i.h { color:#e8c766 }
.rvc-c { margin:0; padding-left:18px; font-size:13px } .rvc-c li.ok::marker { content:"\2713  "; color:var(--up) } .rvc-c li.note::marker { content:"\2022  "; color:var(--dn) }
.rvc-bs { display:flex; gap:8px; flex-wrap:wrap } .rvc-w2 { display:grid; gap:4px; font-size:13px } .rvc-ft { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap }
.rvp-list { display:grid; gap:6px; margin:10px 0; max-height:50vh; overflow:auto } .rvp-t { display:flex; gap:10px; align-items:center; text-align:left; padding:8px 10px }
.rvp-t .up { color:var(--up) } .rvp-t .dn { color:var(--dn) }
.rvs-row { display:grid; gap:4px; margin:6px 0 } .rvs-sws { display:flex; flex-wrap:wrap; gap:4px 14px; margin:8px 0 }
/* (layout sweep 2026-11-12) the dialog's flex label rule put these fields beside their labels at different places: field under
   label; the five switches as tidy columns, not a wrap that leaves one hanging */
.modal label.rvs-row { display:grid; gap:4px; align-items:start; margin:0 } .modal .rvs-sws { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:6px 14px; margin:2px 0 }
.modal .rvs-sws label { align-items:flex-start } .modal .rvs-sws input { margin:2px 0 0; flex:none } .rvs-prev { margin:6px 0; max-height:46vh; overflow:auto }
.tt-share { float:right; font-size:12px }
.cm-calm { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; justify-content:space-between; margin:0 0 8px; padding:10px 12px; border:1px solid var(--rule); border-radius:10px; background:var(--panel); font-size:13px; color:var(--mut) } .cm-calm-b { display:flex; gap:8px }
.cm-pulse:not(:empty) { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; padding:7px 16px; border-bottom:1px solid var(--rule); font-size:12.5px; color:var(--mut) } .cm-pulse b { color:var(--ink) } .cm-pulse button { margin-left:auto; font-size:12px } .pulse-l { margin:6px 0 10px; padding-left:20px; line-height:1.7 }
.tt-floor { margin-top:10px; padding:10px 12px; border:1px solid var(--rule); border-radius:10px; display:grid; gap:6px; font-size:13px } .tt-floor[hidden] { display:none } .tt-fl-h { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap }
.cm-win { display:flex; align-items:center; gap:10px; margin:10px 16px 4px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--level) } .cm-win::before, .cm-win::after { content:""; flex:1; border-top:1px dashed var(--rule) } .cm-win-now { color:var(--level); font-weight:600 }
.pair { margin:8px 0; padding:12px 14px; border:1px solid var(--rule); border-radius:10px; background:var(--panel) } .pair-h { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; margin-bottom:6px } .pair-t { width:100%; border-collapse:collapse; font-size:13px } .pair-t th, .pair-t td { padding:4px 6px; text-align:left; border-bottom:1px solid var(--rule) } .pair-t td { font-variant-numeric:tabular-nums; white-space:nowrap } .pair-t thead th { font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--mut) } .pair-box:empty { display:none }
.coh { flex-basis:100%; display:flex; flex-wrap:wrap; gap:4px 12px; align-items:center } .coh b { color:var(--ink) } .coh button { margin-left:auto } .cm-pulse > .coh:first-child { padding-top:0 } .cm-pulse > :not(.coh) ~ .coh { padding-top:6px; border-top:1px dashed var(--rule) }
/* (Floor QA 2026-11-12) phone: the room's pulse and its cohort took ~240 px (wrapping to 6-7 rows with their buttons) and,
   with the plan / slow-mode bar, left almost no room for the messages. Each is one line now that scrolls sideways */
.pls { flex-basis:100%; display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center }
.plx { display:contents; font-style:normal }   /* (floorqa 11-13) the pulse's numbers: one group, its own line on a phone */
@media (max-width:760px) {
  /* (floorqa 11-13) two lines each instead of one line that scrolled sideways (it cut "never P&L" mid-word, with no hint it
     scrolled): the name and the button on top, the numbers on one line under them (cut with ... ; all of them on a computer) */
  .pls, .coh { flex-wrap:wrap; gap:2px 10px; line-height:1.35; white-space:nowrap; min-width:0; max-width:100% }
  .pls > *, .coh > * { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis }
  .pls > button, .pls > .byc-inc, .coh > button { flex:none; margin-left:auto }   .coh > button ~ button { margin-left:0 }
  .pls > .plx, .coh > .coh-tot { order:1; flex:1 1 100%; display:block }
  .pls > b, .coh > b { flex:1 1 0 }   /* the name takes what is left of the top line (cut with ...), so its button never drops a line */
  .plx > span + span::before { content:"·"; margin:0 6px }
  .pls > .meta:first-child, .coh > .meta:not(.coh-tot) { flex:1 1 0; white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2 }
  .cm-pulse button { min-height:32px }
}
.cm-start { margin:14px 16px 6px; padding:12px 14px; border:1px dashed var(--rule); border-radius:10px; max-width:620px } .cm-start ol { margin:6px 0 8px; padding-left:20px; line-height:1.7 } .cm-start button { padding:2px 10px }
.cm-welcome h2 { margin:10px 0 4px; font:700 24px var(--f-disp) } .cm-welcome p { margin:0; color:var(--mut) }

/* trading-floor touches: session strip, ET + session tags, price chips, call cards, focus mode */
.cm-sess { margin-top:6px; display:grid; gap:3px; font:500 12px var(--f-body); letter-spacing:0; color:var(--mut) }
.cm-sess .row { display:flex; align-items:center; gap:6px } .cm-sess .row b { font:500 12px var(--f-num); font-variant-numeric:tabular-nums }
.sdot { width:8px; height:8px; border-radius:50%; flex:none } .s-rth { --s:#089981 } .s-pre { --s:#c27c0e } .s-lon { --s:#3d6fb6 } .s-asia { --s:#8e44ad } .s-off { --s:#a3978c }
.sdot { background:var(--s) } .sess { font:700 9.5px var(--f-body); letter-spacing:.06em; padding:1px 5px; border-radius:4px; color:var(--s); background:color-mix(in srgb, var(--s) 13%, transparent) }
.cm-m .hd time, .cm-m .gut time { font-family:var(--f-num); font-variant-numeric:tabular-nums }
.cm-m .tx { font-size:14px } .cm-m.first { margin-top:9px }
.px { border:0; padding:0 4px; margin:0 1px; border-radius:4px; font:500 13px var(--f-num); color:var(--untested-ink); background:color-mix(in srgb, var(--untested) 12%, transparent); cursor:pointer; font-variant-numeric:tabular-nums }   /* --untested-ink: the level blue as text, lighter on dark chart themes (the now-box price row, price chips) */
.px:hover { background:color-mix(in srgb, var(--untested) 22%, transparent) }
/* floor must-haves: start (2026-11-12; the same in floor.css and index.html) */
/* 1.2 a link: a small chip with its domain; a click copies it (links never open from the Floor) */
.lnk { border:0; padding:0 5px; margin:0 1px; border-radius:4px; font:500 13px var(--f-body); color:var(--untested-ink, var(--untested)); background:color-mix(in srgb, var(--untested) 10%, transparent); cursor:copy; text-decoration:underline dotted color-mix(in srgb, var(--untested) 60%, transparent); text-underline-offset:2px; overflow-wrap:anywhere }
.lnk:hover { background:color-mix(in srgb, var(--untested) 20%, transparent) } .lnk > span { margin-right:3px; font-size:11px; text-decoration:none; display:inline-block }
/* 1.3 safe formatting in a message: bold, italic, strike, code, code blocks, quotes, lists (no extra lines around blocks) */
.cm-m .tx strong { font-weight:700 } .cm-m .tx em { font-style:italic } .cm-m .tx s { text-decoration-thickness:1.5px }
.cm-m .tx .fm-code { font:12.5px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; padding:1px 4px; border-radius:4px; background:var(--panel2); border:1px solid var(--rule) }
.cm-m .tx .fm-pre { margin:4px 0; padding:8px 10px; border-radius:6px; background:var(--panel2); border:1px solid var(--rule); font:12.5px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space:pre-wrap; overflow-wrap:anywhere; max-height:320px; overflow:auto }
.cm-m .tx .fm-pre code { font:inherit; background:none; border:0; padding:0 }
.cm-m .tx .fm-q { margin:2px 0; padding:0 0 0 10px; border-left:3px solid color-mix(in srgb, var(--mut) 45%, transparent) }
.cm-m .tx .fm-l { margin:2px 0; padding-left:22px } .cm-m .tx .fm-l li { margin:1px 0; padding-left:2px }
/* 1.4 "N new messages since ..." (top) and "Jump to latest" (bottom): sticky inside the messages pane (its 10px / 6px padding), no height of their own */
.fm-newbar-w { position:sticky; top:0; height:0; z-index:4 }
.fm-newbar { position:absolute; top:-10px; left:12px; right:12px; display:flex; align-items:center; gap:8px; padding:0 4px 0 0; border:1px solid var(--key); border-top:0; border-radius:0 0 8px 8px; background:var(--panel2); color:var(--ink); box-shadow:0 2px 8px rgba(0,0,0,.18); font:600 12.5px var(--f-body) }
.fm-newbar button { border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; padding:6px 10px }
.fm-newbar .fm-nb-go { flex:1; min-width:0; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.fm-newbar .fm-nb-read { flex:none; border-radius:6px; padding:3px 9px; color:var(--key); text-decoration:underline; text-underline-offset:2px } .fm-newbar .fm-nb-read:hover { background:color-mix(in srgb, var(--key) 14%, transparent) }
.fm-jump-w { position:sticky; bottom:0; height:0; z-index:4 }
/* (floorphone 11-13) shown, the pill sits in its own strip at the bottom of the list (the list's window gets shorter by it), never over the posts. At the top, the first day divider clears the "N new" bar */
.fm-jump-w.on { bottom:-6px; height:auto; display:flex; justify-content:center; padding:5px 0 6px; background:var(--c-bg, var(--panel)); border-top:1px solid var(--c-border, var(--rule)) }
.fm-jump-w.on .fm-jump { position:static; transform:none; box-shadow:none }
.fm-newbar-w + .cm-day { margin-top:44px }
/* a divider (or a post) scrolled half out of view fades at the top edge instead of looking cut by the room's process line above (not under the "N new" bar, which sits there) */
.cm-msgs:not(:has(> .fm-newbar-w)) { -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 16px); mask-image:linear-gradient(to bottom, transparent 0, #000 16px) }
.fm-jump { position:absolute; bottom:4px; left:50%; transform:translateX(-50%); white-space:nowrap; border:1px solid var(--rule); border-radius:16px; padding:6px 14px; background:var(--panel); color:var(--ink); font:600 12.5px var(--f-body); box-shadow:0 3px 12px rgba(0,0,0,.18); cursor:pointer }
.fm-jump:hover { border-color:var(--key) } .fm-jump[hidden] { display:none }
/* 1.5 Remove from Room on a member's card */
.cm-prof .fm-rm { color:var(--dn); border-color:color-mix(in srgb, var(--dn) 45%, var(--rule)) } .cm-prof .fm-rm:hover { border-color:var(--dn) }
/* floor must-haves: end */
.call, .tcard, .thr { white-space:normal }
.call { margin-top:4px; max-width:420px; border:1px solid var(--rule); border-left:4px solid var(--c); border-radius:8px; background:var(--panel); padding:8px 12px; font:500 13px var(--f-num); font-variant-numeric:tabular-nums }
.call.long { --c:var(--up) } .call.short { --c:var(--dn) }
.call .ch { display:flex; align-items:center; gap:8px; font:700 12px var(--f-body); letter-spacing:.06em; color:var(--c) } .call .ch .grow { flex:1 }
.call .lv { display:grid; grid-template-columns:repeat(4, auto); gap:2px 16px; margin-top:6px; justify-content:start } .call .lv span { color:var(--faint); font:600 10px var(--f-body); letter-spacing:.06em }
.call .note { margin-top:6px; font:400 13.5px var(--f-body); color:var(--ink) }
.call .res { font:500 12px var(--f-num); padding:2px 7px; border-radius:5px; font-variant-numeric:tabular-nums } .res.win { color:var(--c-on-accent); background:var(--up) } .res.loss { color:var(--c-on-accent); background:var(--dn) } .res.be { background:var(--panel2); color:var(--mut) }
.call .mk { display:flex; gap:6px; margin-top:8px } .call .mk button { padding:2px 9px; font:600 11.5px var(--f-body) }
.cm-callf { display:grid; grid-template-columns:auto repeat(3, minmax(0, 92px)) minmax(0, 1fr); gap:6px; align-items:center; margin-bottom:6px; padding:8px; background:var(--panel2); border:1px solid var(--rule); border-radius:10px }
.cm-callf input { padding:6px 8px; font:500 13px var(--f-num); min-width:0; font-variant-numeric:tabular-nums } .cm-callf .seg2 button { padding:5px 10px; font-weight:700 }
.cm-callf .seg2 button[aria-pressed="true"].l { background:var(--up); color:var(--c-on-accent) } .cm-callf .seg2 button[aria-pressed="true"].s { background:var(--dn); color:var(--c-on-accent) }
.cm-focus { display:flex; align-items:center; gap:8px; margin-bottom:6px; padding:6px 12px; border-radius:8px; font-size:12.5px; color:var(--mut); background:color-mix(in srgb, var(--key) 9%, transparent) }

/* scorecards, leaderboard, daily threads */
.scp { font:600 10.5px var(--f-num); padding:1px 6px; border-radius:4px; cursor:pointer; background:var(--panel2); color:var(--mut); font-variant-numeric:tabular-nums }
.scp.up { color:var(--up); background:color-mix(in srgb, var(--up) 11%, transparent) } .scp.dn { color:var(--dn); background:color-mix(in srgb, var(--dn) 11%, transparent) }
.who { cursor:pointer } .who:hover { text-decoration:underline }
.cm-prof { position:fixed; z-index:60; width:290px; background:var(--panel); border:1px solid var(--rule); border-radius:12px; box-shadow:0 12px 34px rgba(90,50,30,.22); overflow:hidden }
.cm-prof .ph { display:flex; align-items:center; gap:10px; padding:14px; background:var(--panel2) } .cm-prof .ph b { font-size:15px }
.cm-prof .pg { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1px; background:var(--rule) } .cm-prof .pg div { background:var(--panel); padding:9px 10px }
.cm-prof .pg span { display:block; font:600 9.5px var(--f-body); letter-spacing:.07em; color:var(--faint) } .cm-prof .pg b { font:500 15px var(--f-num); font-variant-numeric:tabular-nums }
.cm-prof .pf { padding:9px 12px; font-size:11.5px; color:var(--mut) } .cm-prof .seg2 { display:flex; gap:4px; padding:8px 12px 0 } .cm-prof .seg2 button { padding:2px 9px; font-size:11.5px }
.cm-board { padding:16px } .cm-board table { width:100%; border-collapse:collapse; font:400 13.5px var(--f-num); font-variant-numeric:tabular-nums }
.cm-board th { text-align:right; font:700 10.5px var(--f-body); letter-spacing:.07em; color:var(--faint); padding:6px 10px; border-bottom:1px solid var(--rule) } .cm-board th:nth-child(2) { text-align:left }
.cm-board td { text-align:right; padding:9px 10px; border-bottom:1px solid var(--rule) } .cm-board td:nth-child(2) { text-align:left }
.cm-board td.rk { color:var(--faint); width:36px } .cm-board tr:nth-child(-n+4) td.rk { color:var(--liq); font-weight:700 }
.cm-board .nm { display:flex; align-items:center; gap:8px; font-family:var(--f-body); font-weight:600 }
.thr { margin-top:4px; max-width:520px; border:1px solid var(--rule); border-radius:10px; background:var(--panel); overflow:hidden }
.thr .th { padding:10px 14px; display:grid; gap:3px } .thr .th b { font:700 14.5px var(--f-body) } .thr .th small { color:var(--mut); font-size:12.5px }
.thr .tsum { display:flex; gap:16px; padding:0 14px 10px; font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums } .thr .tsum span { color:var(--faint); font:600 10px var(--f-body); letter-spacing:.06em; display:block }
.thr .tf { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px; background:var(--panel2); font-size:12.5px; color:var(--mut) } .thr .tf button { padding:3px 12px; font-size:12.5px }
.av.th { background:var(--key) !important; color:var(--c-on-accent); font-size:11px }   /* the TiltLab badge: dark letters on the light dark-mode purple (white was 2.7:1) */
#room_community.threaded { grid-template-columns:236px minmax(0,1fr) 380px }
.cm-thread { display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100%; margin:-12px -8px; background:var(--panel) }
.cm-thread .tt { display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--rule) } .cm-thread .tt b { flex:1; font-size:14px } .cm-thread .tt button { border:0; background:transparent; font-size:18px; padding:0 4px }
.cm-thread .tl { overflow-y:auto; padding:6px 0 } .cm-thread .cm-m { grid-template-columns:44px minmax(0,1fr); padding-left:6px }
.cm-thread .tc { padding:10px 12px; border-top:1px solid var(--rule); display:grid; gap:6px }
.cm-thread textarea { width:100%; min-height:84px; resize:vertical; padding:8px 10px; font:14px/1.45 var(--f-body); background:var(--panel2); border:1px solid var(--rule); border-radius:8px; box-sizing:border-box }
.cm-thread .tc .row { display:flex; gap:6px; justify-content:space-between }
.cm-thread .tc { position:relative } .cm-thread .tc .cm-mp { left:12px; right:12px }

/* beta hardening: rules, report, block, admin queue */
.modal-bg { position:fixed; inset:0; z-index:90; background:rgba(40,25,15,.38); display:grid; place-items:center; padding:16px }
.modal { width:min(480px, 100%); max-height:calc(100vh - 32px); overflow-y:auto; background:var(--panel); border:1px solid var(--rule); border-radius:14px; box-shadow:0 20px 50px rgba(40,25,15,.3); padding:20px 22px; display:grid; gap:12px }
.modal h3 { margin:0; font:700 18px var(--f-disp) } .modal ol { margin:0; padding-left:20px; line-height:1.6; font-size:14px } .modal li { margin-bottom:4px }
.modal .row { display:flex; gap:8px; justify-content:flex-end } .modal label { display:flex; gap:8px; align-items:center; font-size:14px }
.modal textarea { width:100%; min-height:60px; padding:8px; box-sizing:border-box; font:14px var(--f-body) }
/* Delete account (Plans card -> signed in, PC only) */
.da-card p, .da-card ul { margin:0; font-size:14px; line-height:1.5 } .da-card ul { padding-left:20px }
.da-card label { display:grid; gap:4px; font-size:13.5px } .da-card label input { width:100%; box-sizing:border-box; padding:7px 9px; font:14px var(--f-body) }
.da-card .where { font-size:12.5px; background:var(--bg); border:1px solid var(--rule); border-radius:8px; padding:8px 10px; overflow-wrap:anywhere }
.da-card .where code { font-size:12px } .da-card .err { color:var(--dn); font-size:13.5px; line-height:1.45 } .da-card .err:empty { display:none }
.da-card .row { flex-wrap:wrap } button.danger { background:var(--dn); color:var(--c-on-accent); border-color:var(--dn); font-weight:600 } button.danger:disabled { opacity:.45; cursor:not-allowed }
.pl-del { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; border-top:1px solid var(--rule); padding-top:10px }
.blk { color:var(--faint); font-style:italic } .blk a { color:var(--mut); cursor:pointer; text-decoration:underline }
.rep { display:grid; gap:6px; padding:12px 14px; margin:0 16px 10px; border:1px solid var(--rule); border-radius:10px; background:var(--panel) }
.rep .rh { display:flex; gap:8px; align-items:center; font-size:13px; color:var(--mut) } .rep .rh b { color:var(--ink) }
.rep .rb2 { padding:8px 10px; background:var(--panel2); border-radius:8px; font-size:13.5px; white-space:pre-wrap; overflow-wrap:anywhere }
.rep .ra { display:flex; gap:6px; flex-wrap:wrap } .rep .ra button { padding:3px 10px; font-size:12.5px }
.cm-ban { padding:10px 14px; border-radius:10px; background:color-mix(in srgb, var(--dn) 10%, transparent); color:var(--dn); font-size:13.5px }

/* Tradovate card (Protect) */
.bk { display:grid; gap:12px } .bk-say { margin:0; font-size:14px; line-height:1.45 } .bk-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap } .bk-head h3 { margin:0; font:700 16px var(--f-disp) }
.bk-dot { width:9px; height:9px; border-radius:50%; background:var(--faint) } .bk-dot.on { background:var(--up); box-shadow:0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent) } .bk-dot.err { background:var(--dn) }
.bk-tiles .tile .v { display:block } .bk-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:8px }
.bk table { width:100%; border-collapse:collapse; font:400 13px var(--f-num); font-variant-numeric:tabular-nums } .bk th { text-align:right; font:700 10.5px var(--f-body); letter-spacing:.06em; color:var(--faint); padding:5px 8px; border-bottom:1px solid var(--rule) }
.bk td { text-align:right; padding:7px 8px; border-bottom:1px solid var(--rule) } .bk th:first-child, .bk td:first-child { text-align:left }
.bk .acts { display:flex; gap:6px; flex-wrap:wrap; align-items:center }
/* Connect Tradovate + Import Trades dialogs */
.bk-scroll { overflow-x:auto } .bk .acts button { white-space:nowrap }
.modal.tv-card, .modal.ci-card { width:min(560px, 100%); box-sizing:border-box } .modal.tv-card > *, .modal.ci-card > * { min-width:0 }
.modal.tv-card { position:relative } .modal.tv-card > .tv-x { position:absolute; top:10px; right:12px }
.tv-line { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--c-muted) } .tv-line .bk-dot { flex:none }
.tv-facts { margin:0; padding-left:18px; display:grid; gap:6px; font-size:13.5px; line-height:1.5 }
.tv-pro { padding:9px 12px; border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-accent) 10%, var(--c-card)); font-size:13.5px }
.tv-saved { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:9px 12px; border:1px solid var(--c-border); border-radius:var(--r-ctl); font-size:13.5px }
.tv-saved[hidden], .tv-form[hidden] { display:none }
.tv-oa { display:grid; gap:10px } .tv-oa-row { justify-content:flex-start; gap:10px; flex-wrap:wrap }
.tv-keyway { border-top:1px solid var(--c-border); padding-top:10px } .tv-keyway > summary { cursor:pointer; font-size:13.5px; color:var(--c-muted) }
.tv-keybody { display:grid; gap:12px; margin-top:10px }
.tv-form { display:grid; grid-template-columns:1fr 1fr; gap:10px } .tv-form .wide { grid-column:1 / -1 }
.modal .tv-form label { display:grid; gap:4px; font-size:12.5px; color:var(--c-muted) } .tv-form input, .tv-form select { width:100%; box-sizing:border-box; font-size:14px; color:var(--c-text) }
.tv-msg { padding:9px 12px; border-radius:var(--r-ctl); font-size:13.5px; line-height:1.45 }
.tv-msg.err { color:var(--c-down); background:color-mix(in srgb, var(--c-down) 10%, transparent) } .tv-msg.info { color:var(--c-text); background:color-mix(in srgb, var(--c-accent) 12%, transparent) }
.tv-msg.warn { color:var(--c-text); background:color-mix(in srgb, var(--c-warn) 16%, transparent) } .tv-msg.ok { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 10%, transparent) }
.modal .tv-row { align-items:center; flex-wrap:wrap } .tv-row .grow { flex:1 } .tv-danger { color:var(--c-down) }
.drop { display:grid !important; gap:4px; place-items:center; text-align:center; padding:26px 14px; border:2px dashed var(--c-border-strong); border-radius:12px; cursor:pointer; background:var(--c-raised) }
.drop span { font-size:12.5px; color:var(--c-muted) } .drop.over, .drop:hover, .drop:focus-visible { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 8%, var(--c-raised)) }
.ci-how { font-size:13.5px } .ci-how ul { margin:6px 0 0; padding-left:18px; line-height:1.55 } .ci-how summary { cursor:pointer; color:var(--c-muted) }
.ci-sum { display:grid; gap:4px; font-size:13.5px; padding:10px 12px; border:1px solid var(--c-border); border-radius:var(--r-ctl) }
.ci-tab { width:100%; border-collapse:collapse; font:400 12.5px var(--f-num); font-variant-numeric:tabular-nums } .ci-tab th { text-align:left; font:700 10.5px var(--f-body); letter-spacing:.06em; color:var(--c-faint); padding:4px 6px; border-bottom:1px solid var(--c-border) }
.ci-tab td { padding:5px 6px; border-bottom:1px solid var(--c-border); white-space:nowrap }
.ci-tz { display:grid; gap:4px; font-size:13.5px } .ci-tz label { display:flex; gap:8px; align-items:center; flex-wrap:wrap }
.ci-tz select { max-width:100%; min-width:0; font-size:14px; color:var(--c-text) } .ci-tz .meta { font-size:12.5px }
#rv_import { margin-left:auto } .pp-real .pp-acts { flex-wrap:wrap }
@media (max-width:560px) { .tv-form { grid-template-columns:1fr } .bk-head .meta { flex-basis:100% } }
 .bk ol { margin:0; padding-left:20px; line-height:1.65; font-size:13.5px } .bk code { font-size:12.5px }

/* LIVE mode */
.modesw { display:flex; gap:2px; padding:2px; border:1px solid var(--rule); border-radius:9px; background:var(--panel2) }
.modesw button { border:0; background:transparent; padding:4px 10px; border-radius:7px; font:600 12.5px var(--f-body); color:var(--mut); display:flex; align-items:center; gap:6px }
.modesw button[aria-pressed="true"] { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px rgba(90,50,30,.15) }
.modesw button[data-mode="live"][aria-pressed="true"] { color:#d63c2f }
.ldot { width:7px; height:7px; border-radius:50%; background:currentColor; display:inline-block }
body.live #day, body.live #load, body.live #play, body.live #speed { display:none !important }
#livebadge { display:none; align-items:center; gap:7px; padding:3px 10px; font:500 12.5px var(--f-num); color:var(--mut); font-variant-numeric:tabular-nums }
body.live #livebadge, body.srvdown #livebadge { display:flex } header #rctl_t.srvdown { color:var(--c-warn, #b7791f) } #livebadge.on { color:#d63c2f } #livebadge.on .ldot { animation:lpulse 1.6s ease-in-out infinite }
@keyframes lpulse { 50% { opacity:.25 } }
#rctl_s .rthtag { font:600 9.5px/1 var(--f-num, inherit); letter-spacing:.04em; padding:2px 4px; margin-left:4px; border-radius:3px; border:1px solid currentColor; vertical-align:1px; opacity:.85; font-variant-numeric:tabular-nums }   /* Session: Regular hours is on */
#rctl_s .ldot { margin-right:5px; vertical-align:1px } body.live #rctl_s .ldot { color:#d63c2f; animation:lpulse 1.6s ease-in-out infinite }   /* the header pill while Live is on: always lit and blinking (Replay has no dot) */
.setupcard { max-width:540px; text-align:left; line-height:1.6; background:var(--panel); border:1px solid var(--rule); border-radius:12px; padding:16px 20px; box-shadow:0 8px 24px rgba(90,50,30,.12); color:var(--mut) }
.setupcard ol { margin:6px 0 8px; padding-left:20px } .setupcard b { color:var(--ink) }

/* MyMentor builder */
#mmd { position:fixed; top:var(--hh, 46px); right:52px; bottom:0; width:min(900px, calc(100vw - 52px)); z-index:31; background:var(--panel); border-left:1px solid var(--rule);
  box-shadow:-10px 0 30px rgba(90,50,30,.16); display:grid; grid-template-rows:auto minmax(0,1fr) }
#mmd .mh { display:flex; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--rule); flex-wrap:wrap } #mmd .mh b { font:700 16px var(--f-disp); margin-right:6px }
#mmd .mh input { padding:5px 8px; width:200px } #mmd .mh .grow { flex:1 }
#mmd .mb { display:grid; grid-template-columns:minmax(260px, 340px) minmax(0, 1fr); min-height:0 } @media (max-width:820px) { #mmd .mb { grid-template-columns:1fr; overflow-y:auto } }
#mmd .ml { border-right:1px solid var(--rule); overflow-y:auto; padding:12px; display:grid; gap:8px; align-content:start; background:var(--panel2) }
#mmd .mr { overflow-y:auto; padding:14px 16px; display:grid; gap:12px; align-content:start }
.mmr { background:var(--panel); border:1px solid var(--rule); border-radius:10px; padding:9px 11px; display:grid; gap:4px; cursor:pointer; font-size:13px }
.mmr[aria-current="true"] { border-color:var(--key); box-shadow:0 0 0 2px color-mix(in srgb, var(--key) 20%, transparent) } .mmr.off { opacity:.55 }
.mmr .t { display:flex; align-items:center; gap:6px; font-weight:600 } .mmr .t span { flex:1 } .mmr .s { color:var(--mut); font-size:12px; line-height:1.4 }
.mmr .g { display:flex; gap:4px; flex-wrap:wrap } .mmr .g i { font-style:normal; font:600 10.5px var(--f-num); padding:1px 6px; border-radius:4px; background:var(--panel2); color:var(--mut); font-variant-numeric:tabular-nums }
.mmf { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px } .mmf label { display:grid; gap:3px; font-size:12px; color:var(--mut) }
.mmf input, .mmf select { padding:6px 8px; font-size:13.5px; color:var(--ink) } .mmf .wide { grid-column:1 / -1 }
.mmsec { font:700 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--faint); margin-top:4px }
.mmres { display:grid; gap:10px } .mmres .tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:8px }
.mmres table { width:100%; border-collapse:collapse; font:400 12.5px var(--f-num); font-variant-numeric:tabular-nums } .mmres th { text-align:right; font:700 10px var(--f-body); letter-spacing:.06em; color:var(--faint); padding:4px 6px; border-bottom:1px solid var(--rule) }
.mmres td { text-align:right; padding:5px 6px; border-bottom:1px solid var(--rule) } .mmres th:first-child, .mmres td:first-child { text-align:left }
.mmv { padding:10px 12px; border-radius:10px; font-size:13.5px; background:var(--panel2); border-left:4px solid var(--key) } .mmv.bad { border-left-color:var(--dn) } .mmv.good { border-left-color:var(--up) }

/* About you / Trader DNA (Prep) */
.me-grid { display:grid; grid-template-columns:minmax(300px, 1fr) minmax(320px, 1.2fr); gap:16px } @media (max-width:900px) { .me-grid { grid-template-columns:1fr } }
.me-form { display:grid; gap:10px; font-size:13.5px } .me-form textarea { width:100%; min-height:60px; padding:8px; box-sizing:border-box; font:13.5px var(--f-body) }
.me-form .wk { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px } .me-form label { display:flex; gap:8px; align-items:center }
.me-form .rules { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px } .me-form .rules label { display:grid; gap:3px; font-size:12px; color:var(--mut) }
/* About you: commission + which NinjaTrader accounts count (2026-10-18) */
.me-form .comm { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin-top:4px } .me-form .comm input[type=number] { width:86px }
.me-form .comm-per { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; margin-top:6px } .me-form .comm-per label { display:grid; gap:3px; font-size:12px; color:var(--mut) } .me-form .comm-per input { width:100%; box-sizing:border-box }
.me-form details > summary { cursor:pointer; font-size:12.5px; color:var(--mut); margin-top:4px }
.me-form .accts { display:grid; gap:4px; margin-top:6px; padding:6px 0 0 22px } .me-form .accts[aria-disabled="true"] { opacity:.55 }
.me-form .accts small { color:var(--faint) } .me-form .tag { font-size:11px; padding:0 6px; border-radius:8px; background:var(--panel2); color:var(--mut) }
.me-form .err { color:var(--dn); font-size:12.5px } .me-form .err:empty { display:none }
@media (max-width:420px) { .me-form .comm-per { grid-template-columns:repeat(2, minmax(0, 1fr)) } }
.me-form .or-acc { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:6px 12px; margin-top:6px }
.me-form .or-acc label { display:grid; gap:3px; font-size:12px; min-width:0 } .me-form .or-acc label > span { overflow-wrap:anywhere }
.me-form .or-acc input { width:100%; box-sizing:border-box } .me-form .or-sug button { margin-left:6px }
/* (hunt 2026-11-09) "R is measured from": on a phone the choice drops under its words instead of being cut ("A fixed amount (your") */
.or-basis { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px } .or-basis select { flex:0 1 auto; max-width:100% }
/* About you on a phone: every checkbox / radio row is a 44px tap target, the boxes themselves 22px, inputs 40px+ */
@media (max-width:760px), (pointer:coarse) {
  .me-form .wk { grid-template-columns:1fr; gap:0 }
  .me-form label:has(> input[type=checkbox]), .me-form label:has(> input[type=radio]) { min-height:44px; padding:4px 0; box-sizing:border-box; cursor:pointer }
  .me-form .strict label { align-items:center !important }
  .me-form input[type=checkbox], .me-form input[type=radio] { width:22px; height:22px; flex:none; margin:0 }
  .me-form .accts { gap:0; padding-left:12px }
  .me-form .accts label { flex-wrap:wrap; column-gap:8px; row-gap:0 }
  .me-form details > summary { min-height:44px; display:flex; align-items:center }
  .me-form input:not([type=checkbox]):not([type=radio]), .me-form select { min-height:40px; font-size:16px; box-sizing:border-box }
  .me-form #me_save { min-height:44px; min-width:88px }
  .ledge-card button, .ledge-card input { min-height:40px; font-size:16px }
}
.gap { padding:9px 12px; border-radius:8px; font-size:13.5px; border-left:4px solid var(--rule); background:var(--panel2) }
.gap.confirmed, .gap.rule { border-left-color:var(--dn) } .gap.unlisted { border-left-color:var(--liq) } .gap.not_seen { border-left-color:var(--up) }

/* MyMentor market */
body.room-market #stage { display:none }
#room_market { overflow-y:auto; padding:18px 22px 40px }
.mk-note { margin:4px 0 12px; padding:9px 12px; border-radius:8px; background:color-mix(in srgb, var(--liq) 10%, transparent); border-left:4px solid var(--liq); font-size:13px; color:var(--mut) }
.mk-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px } .mk-bar input { flex:1 1 260px; padding:8px 12px } .mk-bar select { padding:7px 10px }
.mk-tags { display:flex; gap:6px; flex-wrap:wrap } .mk-tags button { padding:4px 11px; border-radius:999px; font-size:12.5px } .mk-tags button[aria-pressed="true"] { background:var(--key); color:var(--c-on-accent); border-color:var(--key) }
.mk-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:14px }
.mkc { background:var(--panel); border:1px solid var(--rule); border-radius:14px; padding:14px; display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:10px; align-content:start; transition:box-shadow .15s, transform .15s }
.mkc:hover { box-shadow:0 8px 24px rgba(90,50,30,.12); transform:translateY(-1px) }
.mkc .top { display:flex; gap:10px; align-items:center } .mkc .top .nm { flex:1; min-width:0 } .mkc .top b { display:block; font:700 15px var(--f-body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mkc .top small { color:var(--mut) } .mk-logo { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; color:#fff; font:800 15px var(--f-disp); flex:none }
.mk-chips { display:flex; gap:5px; flex-wrap:wrap } .mk-chip { font:700 10px var(--f-body); letter-spacing:.05em; padding:2px 7px; border-radius:5px; background:var(--panel2); color:var(--mut); text-transform:uppercase }
.mk-chip.sample { background:color-mix(in srgb, var(--liq) 15%, transparent); color:var(--liq) } .mk-chip.mine { background:color-mix(in srgb, var(--key) 15%, transparent); color:var(--key) }
.mk-st { display:inline-flex; align-items:center; gap:5px; font:600 11px var(--f-body); padding:2px 8px; border-radius:999px }
.mk-st i { width:7px; height:7px; border-radius:50% } .mk-st.monitoring { color:var(--up); background:color-mix(in srgb, var(--up) 12%, transparent) } .mk-st.monitoring i { background:var(--up); animation:lpulse 2s infinite }
.mk-st.cooldown { color:var(--liq); background:color-mix(in srgb, var(--liq) 14%, transparent) } .mk-st.cooldown i { background:var(--liq) } .mk-st.paused { color:var(--mut); background:var(--panel2) } .mk-st.paused i { background:var(--faint) }
.mkc .metric { display:flex; align-items:flex-end; gap:12px; min-width:0 } .mkc .metric > span { flex:0 1 auto; min-width:0; overflow:hidden } .mkc .metric > span svg { display:block; max-width:100%; height:auto } .mkc .mps { font:500 30px/1 var(--f-num); font-variant-numeric:tabular-nums } .mkc .mps small { display:block; font:600 10px var(--f-body); letter-spacing:.06em; color:var(--faint); margin-top:3px }
.mkc .sub2 { font:500 12.5px var(--f-num); color:var(--mut); min-width:0; flex:0 1 auto; font-variant-numeric:tabular-nums } .mkc .blurb { font-size:13px; color:var(--ink); line-height:1.45; min-height:38px }
.mkc .foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:auto } .mkc .price { font:500 18px var(--f-num); font-variant-numeric:tabular-nums } .mkc .price small { font:500 12px var(--f-body); color:var(--mut) }
.mkc .foot button { white-space:nowrap; background:var(--key); color:var(--c-on-accent); border-color:var(--key); padding:7px 12px; font-weight:600 }
.mk-board { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--rule); border-radius:12px; overflow:hidden; font-size:13.5px }
.mk-board th { text-align:left; font:700 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--faint); padding:10px; border-bottom:1px solid var(--rule); background:var(--panel2); white-space:nowrap }
.mk-board th[data-k] { cursor:pointer } .mk-board th[aria-sort="descending"]::after { content:" \25BC" } .mk-board th[aria-sort="ascending"]::after { content:" \25B2" }
.mk-board td { padding:10px; border-bottom:1px solid var(--rule); vertical-align:middle } .mk-board tr:last-child td { border-bottom:0 } .mk-board tr:hover td { background:var(--panel2) }
.mk-board .num { font-family:var(--f-num); text-align:right; font-variant-numeric:tabular-nums } .mk-board th.num { text-align:right } .mk-board .rk { font:500 15px var(--f-num); color:var(--faint); width:36px; font-variant-numeric:tabular-nums } .mk-board tr:nth-child(-n+3) .rk { color:var(--liq) }
.mk-board .who { display:flex; align-items:center; gap:9px } .mk-board .who .mk-logo { width:32px; height:32px; border-radius:9px; font-size:12px } .mk-board td button { padding:5px 10px; font-size:12.5px; white-space:nowrap }
.mk-unranked { margin-top:16px } .mk-unranked h4 { margin:0 0 8px; font:700 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--faint) }
@media (max-width:900px) { .mk-board .hide-sm { display:none } }
#mk_drawer { position:fixed; top:var(--hh, 46px); right:52px; bottom:0; width:min(640px, calc(100vw - 52px)); z-index:33; background:var(--panel); border-left:1px solid var(--rule); box-shadow:-12px 0 34px rgba(90,50,30,.18); overflow-y:auto; animation:mkIn .22s ease-out }
@keyframes mkIn { from { transform:translateX(30px); opacity:0 } }
#mk_dbody { padding:16px 18px 30px; display:grid; gap:14px } .mkd-h { display:flex; gap:12px; align-items:center } .mkd-h .nm { flex:1 } .mkd-h b { font:800 19px var(--f-disp) } .mkd-h button { border:0; background:transparent; font-size:22px }
.mkd-tiles { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px } .mkd-tiles .tile .v { font-size:19px }
.mkd-proof { display:flex; gap:8px; align-items:center; padding:9px 12px; border-radius:9px; font-size:12.5px; background:color-mix(in srgb, var(--up) 9%, transparent); color:var(--ink) } .mkd-proof.sample { background:color-mix(in srgb, var(--liq) 11%, transparent) }
.mkd-proof code { font-size:11.5px; color:var(--mut) }
.mkd-log { width:100%; border-collapse:collapse; font:400 12.5px var(--f-num); font-variant-numeric:tabular-nums } .mkd-log th { text-align:left; font:700 10px var(--f-body); letter-spacing:.06em; color:var(--faint); padding:5px 6px; border-bottom:1px solid var(--rule) }
.mkd-log td { padding:6px; border-bottom:1px solid var(--rule) } .mkd-log .sig { color:var(--faint); font-size:11px }
#mk_dbody { grid-template-columns:minmax(0, 1fr) } .mkd-blurb { font-size:13.5px; line-height:1.5 }
.mkd-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch } .mkd-log th, .mkd-log td { white-space:nowrap } .mkd-log td.meta { white-space:normal }
@media (max-width:560px) { .mkd-log th:last-child, .mkd-log td.sig { display:none } .mkd-log th, .mkd-log td { padding-left:4px; padding-right:4px } }
.vs { font:700 10px var(--f-body); letter-spacing:.05em; padding:2px 7px; border-radius:5px; text-transform:uppercase } .vs.validated { color:var(--c-on-accent); background:var(--up) } .vs.invalidated { color:var(--c-on-accent); background:var(--dn) } .vs.pending { color:var(--mut); background:var(--panel2) }
.mkd-co { border:1px solid var(--rule); border-radius:12px; padding:14px; display:grid; gap:10px } .mkd-co .sw { display:flex; align-items:center; justify-content:space-between; font-weight:700 }
.switch { position:relative; width:44px; height:24px; border-radius:12px; background:var(--rule); border:0; padding:0; cursor:pointer } .switch::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:left .15s }
.switch[aria-checked="true"] { background:var(--key) } .switch[aria-checked="true"]::after { left:23px }
.mkd-co ul { margin:0; padding-left:18px; font-size:13px; line-height:1.6; color:var(--mut) } .mkd-co .split { display:flex; gap:8px; font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums } .mkd-co .split span { flex:1; padding:7px 9px; border-radius:8px; background:var(--panel2) }
.mkd-co .go { background:var(--key); color:var(--c-on-accent); border-color:var(--key); padding:10px; font-weight:700 } .mkd-co .go:disabled { opacity:.55; cursor:not-allowed }

/* plans */
#planbtn { margin-top:auto } #planbtn.pro { color:var(--key) } #planbtn.free { color:var(--mut) }
.up-card { width:min(520px, 100%) } .up-card .tag { justify-self:start; display:inline-block; font:700 10px var(--f-body); letter-spacing:.08em; padding:3px 8px; border-radius:5px; background:color-mix(in srgb, var(--key) 14%, transparent); color:var(--key) }
.up-card ul { margin:0; padding-left:18px; line-height:1.65; font-size:13.5px } .up-card .pr { font:500 26px var(--f-num); font-variant-numeric:tabular-nums } .up-card .pr small { font:500 13px var(--f-body); color:var(--mut) }
.up-card .go, .lockveil .go { background:var(--key); color:var(--c-on-accent); border-color:var(--key); font-weight:700; padding:9px 14px }
.plans-card { width:min(860px, 100%) } .plans-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; font-size:13px; border:1px solid var(--rule); border-radius:10px; overflow:hidden }
.plans-grid > div { padding:7px 10px; border-bottom:1px solid var(--rule) } .plans-grid .h { font:700 12px var(--f-body); background:var(--panel2) } .plans-grid .pro { background:color-mix(in srgb, var(--key) 5%, transparent) }
.plans-grid .y { color:var(--up); font-weight:700 } .plans-grid .n { color:var(--faint) }
.lockveil { position:relative } .lockveil .blur { filter:blur(5px); opacity:.55; pointer-events:none; user-select:none }
.lockveil .cta { position:absolute; inset:0; display:grid; place-items:center; text-align:center } .lockveil .cta > div { background:var(--panel); border:1px solid var(--rule); border-radius:12px; padding:14px 18px; box-shadow:0 8px 24px rgba(90,50,30,.15); max-width:380px }

/* Claude mentor */
.aitag { font:700 10px var(--f-body); letter-spacing:.05em; padding:1px 6px; border-radius:5px; color:var(--key); background:color-mix(in srgb, var(--key) 12%, transparent); margin-left:4px }
#askd { position:fixed; top:var(--hh, 46px); right:52px; bottom:0; width:min(440px, calc(100vw - 52px)); z-index:33; background:var(--panel); border-left:1px solid var(--rule); box-shadow:-10px 0 30px rgba(90,50,30,.16); display:grid; grid-template-rows:auto minmax(0,1fr) auto }
.ask-h { display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--rule) } .ask-h b { font:700 15px var(--f-disp) } .ask-h .grow { flex:1 } .ask-h button { border:0; background:transparent; font-size:20px }
.ask-log { overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:10px }
.ask-m { max-width:88%; padding:9px 12px; border-radius:12px; font-size:14px; line-height:1.5; white-space:pre-wrap } .ask-m.q { align-self:flex-end; background:var(--key); color:var(--c-on-accent) } .ask-m.a { align-self:flex-start; background:var(--panel2) } .ask-m.e { align-self:center; background:transparent; color:var(--dn); font-size:12.5px }
.ask-f { display:flex; gap:6px; padding:10px 12px; border-top:1px solid var(--rule) } .ask-f input { flex:1; padding:9px 11px }
/* Voice Ask (2026-10-20): the mic in Ask, the state pill, the orb while listening, the settings + first-time card */
#va_mic { display:grid; place-items:center; padding:0 10px } #va_mic[hidden] { display:none } #va_mic svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round }
#va_mic[aria-pressed="true"] { background:var(--c-down, #d9534f); color:#fff; border-color:transparent; animation:vamic 1.1s ease-in-out infinite }
@keyframes vamic { 50% { box-shadow:0 0 0 5px color-mix(in srgb, var(--c-down, #d9534f) 25%, transparent) } }
#va_pill { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:76; display:flex; align-items:center; gap:8px; max-width:min(560px, calc(100vw - 32px));
  padding:7px 14px; border-radius:999px; background:var(--c-card, var(--panel)); color:var(--c-text, var(--ink)); border:1px solid var(--c-border, var(--rule)); box-shadow:0 8px 24px rgba(0,0,0,.22); font-size:13.5px; cursor:pointer; animation:cardIn .2s }
#va_pill i { flex:none; width:9px; height:9px; border-radius:50%; background:var(--c-accent, #3aa9e0) } #va_pill[data-state="listening"] i { background:var(--c-down, #d9534f); animation:lpulse .9s ease-in-out infinite }
#va_pill[data-state="thinking"] i { animation:lpulse 1.4s ease-in-out infinite } #va_pill[data-state="error"] i { background:var(--c-warn, #c27c0e) } #va_pill span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.va-set { display:flex; flex-direction:column; gap:5px; margin-top:8px; padding-top:8px; border-top:1px solid var(--c-border, var(--rule)) } .va-row { display:flex; gap:6px; flex-wrap:wrap } .va-body { display:flex; flex-direction:column; gap:5px } .va-body[hidden] { display:none }
.va-good { color:var(--c-up, var(--up)) } .va-bad { color:var(--c-down, var(--dn)) }
.va-first { display:flex; flex-direction:column; gap:6px; margin:10px 12px 0; padding:10px 12px; border:1px solid var(--c-border, var(--rule)); border-radius:10px; background:var(--c-card, var(--panel2)) }
#askd:has(#va_first:not([hidden])) { grid-template-rows:auto auto minmax(0,1fr) auto }

/* Executions column (left side of the Review room) */
body #room_review { max-width:none; margin:0; margin-right:52px !important; padding:0; overflow:hidden; display:grid; grid-template-columns:minmax(380px, 460px) minmax(0, 1440px); justify-content:center; gap:0 }
#room_review .rv-main { overflow-y:auto; padding:18px 22px 40px; display:grid; gap:18px; align-content:start; min-width:0 }
@media (min-width:1101px) { body #room_review { grid-template-rows:minmax(0, 1fr) } }   /* (firstrun hunt 2026-11-10) the row fills the room: with little to show (a new trader), Executions' panel ended mid-screen over a black band */
#room_review .rv-main > * { width:100% }
.rv-exec { display:grid; grid-template-rows:auto 260px minmax(0,1fr); min-height:0; min-width:0; overflow:hidden; border-left:1px solid var(--rule); border-right:1px solid var(--rule); background:var(--panel) }
@media (max-width:1100px) { body #room_review { grid-template-columns:1fr; overflow-y:auto } .rv-exec { grid-template-rows:auto 240px auto; border-right:0; border-bottom:1px solid var(--rule); overflow:visible; min-height:auto } #ex_body { overflow:visible } #room_review .rv-main { overflow:visible } }   /* stacked: the column grows with its trades (overflow:hidden collapsed it to 0px) */
/* stacked (narrow) Review: the script moves Executions into the main column after Discipline and Trader DNA (rvExecPlace),
   so a first run doesn't open on an empty Executions block, and the reading order matches what's on screen */
#room_review .rv-main > .rv-exec { border:1px solid var(--rule); border-radius:12px }
/* (design quick win 2026-11-10) no logged trades at all: the Executions column folds away (it was 460 px of empty state beside
   an empty week); the week gets the room, capped at 1100 px. It comes back with the first trade (exRender drops .empty) */
#room_review #execp.empty { display:none !important }
body #room_review.rvt-week:has(> #execp.empty) { grid-template-columns:minmax(0, 1100px) }
.rv-exec:is(.empty, .nobars) { grid-template-rows:auto minmax(0,1fr) } .rv-exec:is(.empty, .nobars) #ex_chart { display:none }   /* nobars: trades but no prices for that day on this PC */   /* no logged trades at all: no blank chart box */
.ex-h { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--rule) } .ex-h b { font:700 15px var(--f-disp) } .ex-h .grow { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
#ex_chart { position:relative; border-bottom:1px solid var(--rule); min-width:0; overflow:hidden; height:100% } #ex_body { overflow-y:auto; padding:10px 12px 20px; display:grid; gap:10px; align-content:start }
.ex-tiles { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px } .ex-tiles .tile { padding:8px 10px } .ex-tiles .tile .v { font-size:18px; display:block }
.ex-t { border:1px solid var(--rule); border-radius:10px; padding:8px 10px; display:grid; gap:5px; cursor:pointer; font-size:13px } .ex-t[aria-current="true"] { border-color:var(--key); box-shadow:0 0 0 2px color-mix(in srgb, var(--key) 18%, transparent) }
.ex-t .row { display:flex; align-items:center; gap:8px } .ex-t .row b { font-family:var(--f-num); font-weight:500; font-variant-numeric:tabular-nums } .ex-t .r { margin-left:auto; font:500 14px var(--f-num); font-variant-numeric:tabular-nums }
.ex-t .row .ex-hm { white-space:nowrap }   /* "1:05-1:20 PM" never breaks before PM */
.ex-f { display:flex; gap:4px; flex-wrap:wrap } .ex-f span { font:700 10px var(--f-body); letter-spacing:.03em; padding:2px 7px; border-radius:5px; color:var(--dn); background:color-mix(in srgb, var(--dn) 11%, transparent) }
.ex-f span.ok { color:var(--up); background:color-mix(in srgb, var(--up) 12%, transparent) }
.ex-prac { font:600 10px var(--f-body); letter-spacing:.03em; padding:1px 7px; border-radius:999px; border:1px solid var(--rule); color:var(--mut) } .ex-why { color:var(--mut); font-size:12px; line-height:1.4 }
.ex-hab { width:100%; border-collapse:collapse; font:400 12.5px var(--f-num); font-variant-numeric:tabular-nums } .ex-hab td, .ex-hab th { padding:5px 4px; border-bottom:1px solid var(--rule); text-align:right } .ex-hab th { font:700 10px var(--f-body); letter-spacing:.06em; color:var(--faint) } .ex-hab td:first-child, .ex-hab th:first-child { text-align:left; font-family:var(--f-body) }

/* cards on the chart */
.card { background:var(--panel); border:1px solid var(--rule); border-radius:10px; box-shadow:0 10px 30px rgba(90,50,30,.18); padding:12px 14px; width:min(400px, calc(100vw - 32px)) }
.card h2 { margin:0 0 6px; font:600 12px var(--f-disp); letter-spacing:.08em; text-transform:uppercase; color:var(--mut); display:flex; justify-content:space-between; align-items:center; gap:8px }
.card h2 button { border:0; background:transparent; padding:0 4px; color:var(--faint); font-size:16px; line-height:1 }
#plan { left:14px; bottom:34px }
.pl { border-top:1px solid var(--rule); padding:8px 0; display:grid; gap:6px }
.pl:first-of-type { border-top:0; padding-top:2px }
.pl .row { display:flex; gap:8px; align-items:center; font:13px var(--f-num); font-variant-numeric:tabular-nums } .pl .nm { font:600 12px var(--f-disp); color:var(--mut); letter-spacing:.05em }
.pl .tr { font-size:12.5px; color:var(--mut) }
.pl .inp { display:flex; gap:10px; align-items:center } .pl input { width:96px; padding:2px 6px; font:12.5px var(--f-num); font-variant-numeric:tabular-nums }
.pl.yes .nm { color:var(--fresh) } .pl.no { opacity:.45 }
#alert { right:78px; bottom:34px; width:min(420px, calc(100vw - 32px)); border-left:3px solid var(--key) }
#alert.long { border-left-color:var(--up) } #alert.short { border-left-color:var(--dn) }
#alert .ttl { font:500 15px var(--f-body); margin-bottom:6px; display:flex; gap:8px; align-items:center }
.kv { display:grid; grid-template-columns:70px 1fr; gap:2px 8px; font-size:12.5px; font-variant-numeric:tabular-nums }
.kv > span:nth-child(odd) { color:var(--faint) } .kv .v { display:flex; gap:6px; align-items:center; flex-wrap:wrap }
.acts { display:flex; gap:5px; flex-wrap:wrap; margin-top:10px }
.acts button { padding:4px 10px; font-size:12.5px } .acts kbd { color:var(--faint); font:11px var(--f-mono); margin-left:4px }
.acts .call { margin-left:auto; color:var(--key) }
.size { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; margin-top:8px; padding:7px 9px; background:var(--panel2); border-radius:7px; font-size:12.5px; color:var(--mut) }
.size input { width:72px; padding:2px 6px; font-size:12.5px } .size select { padding:2px 4px; font-size:12.5px }
.size .out { flex-basis:100%; color:var(--ink) } .size .out b { font-size:15px } .size .warn { color:var(--dn) }
.callrow { display:grid; grid-template-columns:1fr 1fr auto; gap:6px; margin-top:8px } .callrow input { padding:4px 6px; font:12.5px var(--f-num); min-width:0; font-variant-numeric:tabular-nums }
.err { color:var(--dn); font-size:12px; margin-top:4px }
.more { font:12px var(--f-body); color:var(--faint); letter-spacing:0; text-transform:none }

/* review drawer */
#drawer { position:fixed; top:0; right:0; bottom:0; width:min(420px, 100vw); z-index:30; background:var(--panel); border-left:1px solid var(--rule); box-shadow:-10px 0 30px rgba(90,50,30,.16); display:grid; grid-template-rows:auto auto minmax(0,1fr) }
.dh { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid var(--rule) }
.dh b { font:600 16px var(--f-disp); letter-spacing:.03em }
.tabs { display:flex; border-bottom:1px solid var(--rule) }
.tabs button { flex:1; border:0; border-radius:0; background:transparent; padding:8px 4px; color:var(--mut); font:600 12px var(--f-disp); letter-spacing:.07em; text-transform:uppercase; border-bottom:2px solid transparent }
.tabs button[aria-selected="true"] { color:var(--ink); border-bottom-color:var(--key) }
.pane { overflow-y:auto }
.sum { display:flex; gap:12px; flex-wrap:wrap; padding:10px 14px; font-size:12px; color:var(--mut); border-bottom:1px solid var(--rule); font-variant-numeric:tabular-nums } .sum b { color:var(--ink); font:500 13px var(--f-num); font-variant-numeric:tabular-nums }
.filters { display:flex; gap:4px; align-items:center; padding:8px 14px; border-bottom:1px solid var(--rule) }
.filters button { padding:1px 9px; font-size:12px; border-radius:999px; background:transparent } .filters button[aria-pressed="true"] { border-color:var(--key) }
.filters label { margin-left:auto; font-size:12px; color:var(--mut); display:flex; gap:4px; align-items:center }
.li { display:grid; grid-template-columns:40px 1fr auto; gap:8px; align-items:center; padding:6px 14px; border-bottom:1px solid var(--rule); font-size:12.5px }
.li .t { font:12px var(--f-num); color:var(--faint); font-variant-numeric:tabular-nums } .li .x { display:flex; gap:6px; align-items:center; color:var(--mut) } .li.imp .x { color:var(--ink) }
.li select { padding:1px 4px; font-size:12px } .li small { color:var(--faint) }
.s-open { color:var(--key) } .s-hit { color:var(--up) } .s-missed { color:var(--dn) } .s-expired { color:var(--mut) }
.none { padding:16px 14px; color:var(--mut); font-size:13px }
/* phone access panel (PC side) */
#phoned { position:fixed; top:var(--hh, 46px); right:52px; width:min(420px, calc(100vw - 52px)); max-height:calc(100vh - var(--hh, 46px)); overflow-y:auto; z-index:33;
  background:var(--panel); border-left:1px solid var(--rule); border-bottom:1px solid var(--rule); box-shadow:-10px 10px 30px rgba(90,50,30,.16); border-bottom-left-radius:12px }
#phoned .ph-h { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--rule) } #phoned .ph-h b { font:700 16px var(--f-disp) }
#phoned .ph-h button { border:0; background:transparent; font-size:22px; padding:0 4px }
#ph_body { padding:14px 16px 18px; display:grid; gap:12px; font-size:13.5px }
/* Sound Settings (2026-10-21, audit #9): everything that used to crowd the Sound popover, one link away */
#sndset { position:fixed; top:var(--hh, 46px); right:52px; width:min(400px, calc(100vw - 52px)); max-height:calc(100vh - var(--hh, 46px)); overflow-y:auto; z-index:80;
  background:var(--c-panel); color:var(--c-text); border-left:1px solid var(--c-border); border-bottom:1px solid var(--c-border); box-shadow:-10px 10px 30px rgba(90,50,30,.16); border-bottom-left-radius:12px }
#sndset .ph-h { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--c-border); position:sticky; top:0; background:inherit; z-index:1 }
#sndset .ph-h b { font:600 16px var(--f-body) } #sndset .ph-h button { border:0; background:transparent; font-size:22px; padding:0 4px; color:inherit }
#snd_body { padding:12px 16px 18px; display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; font:13px var(--f-body) }
#snd_body select { max-width:100%; min-width:0 } #snd_body label { display:flex; gap:8px; align-items:center } #snd_body .vrow { display:flex; gap:6px; align-items:center } #snd_body .vrow select { flex:1; min-width:0 }
#snd_body .vsep { border:0; border-top:1px solid var(--c-border); width:100%; margin:4px 0 } #snd_body h4 { margin:6px 0 0; font:600 12px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--mut) }
#snd_body .vsrc b { font-weight:600 } #snd_body .vsrc .vsrc-why { display:block; margin-top:2px } #snd_body .vwarn { align-items:flex-start } #snd_body .vwarn input { margin-top:2px } #snd_body .trg-opts { display:flex; flex-direction:column; gap:4px; margin:6px 0 }
#vkinds_d > summary, #snd_body .vgrp > summary, #snd_body .vother > summary { cursor:pointer; font-weight:600; padding:3px 0 }
#vkinds_d[open] > #vkinds, #snd_body .vgrp[open], #snd_body .vother[open] { display:grid; gap:6px } #snd_body .vgrp { padding-left:4px }
#vpop .vonrow { font-size:14px } #vpop .vonrow b { font-weight:600 } #vpop .vmore { display:flex; gap:8px; align-items:center; justify-content:space-between }
#vpop .vmood_h { margin-top:-2px }

/* grounding mode (2026-10-21): one calm, non-modal card while a spiral lasts. Never covers the order buttons, never blocks */
#grd { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:44; width:min(420px, calc(100vw - 32px)); padding:14px 16px; border-radius:12px;
  background:var(--c-panel); color:var(--c-text); border:1px solid var(--c-border); border-left:5px solid var(--c-down); box-shadow:0 10px 30px rgba(0,0,0,.18); font:14px/1.45 var(--f-body) }
#grd .g-h { display:flex; gap:8px; align-items:baseline; justify-content:space-between } #grd .g-h b { font:600 15px var(--f-body); color:var(--c-down) }
#grd .g-x { border:0; background:transparent; font-size:20px; padding:0 4px; color:inherit } #grd p { margin:6px 0 0 }
#grd .g-acts { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap } #grd .g-acts button { flex:1 1 140px } #grd .g-acts .go { background:var(--key); color:var(--c-on-accent); border-color:var(--key); font-weight:600 }
/* scan 2: the Voice Ask pill (#va_pill, bottom 22px, z 76) and the phone's Check This Trade button (#ctfab, bottom right)
   sit in the same corner; the card moves up so its Start Cool-Off / I'm Okay buttons are never covered */
body:has(#va_pill:not([hidden])) #grd { bottom:70px }
body.ct-phone #grd { bottom:calc(var(--rb, 0px) + 84px) }
.pp-glance { margin:0 0 6px }
#ph_body .row { display:flex; align-items:center; gap:10px } #ph_body .row .grow { flex:1 }
#ph_body .qr { display:grid; justify-items:center; gap:6px; padding:12px; border:1px solid var(--rule); border-radius:10px; background:#fff; color:#222 }
#ph_body .qr svg { width:200px; height:200px } #ph_body .qr small { color:#555; font-size:12px }
#ph_body .note { padding:9px 12px; border-radius:8px; background:color-mix(in srgb, var(--liq) 12%, transparent); border-left:4px solid var(--liq) }
#ph_body ol { margin:0; padding-left:20px; display:grid; gap:4px }
#ph_body .ph-dev { display:grid; gap:6px; border-top:1px solid var(--rule); padding-top:10px }
#ph_body .ph-dev ul { list-style:none; margin:0; padding:0; display:grid; gap:6px } #ph_body .ph-dev li { display:flex; align-items:center; gap:10px } #ph_body .ph-dev li .grow { flex:1; min-width:0; overflow-wrap:anywhere }
#ph_body .ph-ttl b { font-variant-numeric:tabular-nums }
#ph_body .ph-app { display:grid; gap:10px } #ph_body .ph-app-h { font-size:15px }
#ph_body .ph-ok { padding:9px 12px; border-radius:8px; background:color-mix(in srgb, var(--c-up) 12%, transparent); border-left:4px solid var(--c-up) }
#ph_body .ph-kinds { display:grid; gap:4px } #ph_body .ph-kind { display:flex; align-items:center; gap:8px; font-size:13px }
#ph_body .ph-lan { border-top:1px solid var(--c-border, var(--rule)); padding-top:10px } #ph_body .ph-lan summary { cursor:pointer; padding:2px 0 }
#ph_body .ph-lan-b { display:grid; gap:12px; margin-top:10px }
/* ---------------- phones (2026-10-17): one column, room tabs scroll sideways, the tool rail becomes a bottom bar */
@media (max-width:760px) {
  body { --rb:58px; font-size:14.5px; grid-template-columns:minmax(0,1fr) }
  header, #stage, main[id^="room_"] { min-width:0; max-width:100vw }
  header > * { min-width:0; max-width:100% }
  header { flex-wrap:wrap; gap:6px; padding:6px 8px }
  header h1 { display:none !important }
  #rooms { order:-1; width:100%; min-width:0; display:flex; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch }
  #rooms::-webkit-scrollbar { display:none }
  #rooms button { flex:none; padding:7px 12px }
  header select, header button, header .chip { min-height:32px; font-size:13px }
  header .grp > select, header .grp > button { padding:4px 6px }
  /* compact header (2026-10-18): row 1 = room tabs (scroll sideways), row 2 = one Replay/Live button + mentor + chips
     (scroll sideways) with the guard chip pinned on the right. The mode switch, day, Load, Play, TF and speed live in a
     panel that drops down under the header from that button. */
  header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 6px }
  #rooms { grid-column:1 / -1 }
  #hbar { display:flex; align-items:center; gap:6px; min-width:0; overflow-x:auto; scrollbar-width:none } #hbar::-webkit-scrollbar { display:none }
  #hbar > * { flex:none }
  #hbar .grow { display:none }
  #rctl_t { display:inline-flex; align-items:center; gap:5px; font-weight:600; white-space:nowrap; max-width:none }
  #rctl_t[aria-expanded="true"] { border-color:var(--key); color:var(--key) }
  #rctl { display:none }
  header.rctl-open #rctl { display:flex; flex-wrap:wrap; align-items:center; gap:8px; position:fixed; z-index:41; left:0; right:0; top:var(--hh, 46px);
    padding:10px 8px 12px; background:var(--panel); border-bottom:1px solid var(--rule); box-shadow:0 10px 24px rgba(90,50,30,.16) }
  header.rctl-open #replay { flex-wrap:wrap; max-width:100% }
  #rctl select, #rctl button { min-height:40px }
  /* mentor picker: an icon button (the native select, its text hidden) with the active mentor's initial as a badge, so
     it is never cut off beside the guard chip. Tapping it opens the phone's own picker with the full names. */
  #mentor_w { position:relative; display:inline-flex; align-items:center; justify-content:center }
  #mentor_w svg { display:block; position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; pointer-events:none; color:var(--ink) }
  #hbar #mentor { width:44px; min-width:44px; padding:0; color:transparent; text-indent:-999px; -webkit-appearance:none; appearance:none; background-image:none; cursor:pointer }
  #hbar #mentor option { color:var(--ink); text-indent:0 }
  #hbar #mentor:focus-visible { outline:2px solid var(--key); outline-offset:1px }
  #mentor_b { display:block; position:absolute; right:3px; bottom:3px; min-width:14px; padding:0 3px; border-radius:7px; background:var(--key); color:var(--c-on-accent); font:700 9.5px/14px var(--f-body); text-align:center; pointer-events:none }
  #guard { grid-column:2; padding:3px 8px; gap:6px; font-size:12px }
  .modesw button { padding:4px 8px }
  #propchip .lab, #newschip .lab, #planchip .lab { display:none }
  /* rail -> bottom bar */
  #rail { top:auto; left:0; right:0; bottom:0; width:auto; height:var(--rb); flex-direction:row; justify-content:flex-start; gap:0; padding:3px 4px calc(3px + env(safe-area-inset-bottom));
    border-left:0; border-top:1px solid var(--rule); overflow-x:auto; scrollbar-width:none }
  #rail::-webkit-scrollbar { display:none }
  #rail .rb { flex:none; width:56px }
  #rail .sep { width:1px; height:28px; margin:0 4px }
  #rail #vpop { top:auto; bottom:calc(var(--rb) + 8px); right:8px; left:8px; width:auto; max-height:60vh }
  #calpop { position:fixed; top:calc(var(--hh, 46px) + 8px); right:8px; left:8px; width:auto; max-height:60vh; z-index:45 }   /* on a phone it's moved to <body>: the chip row's fade mask would clip it */
  body #stage, body main[id^="room_"] { margin-right:0 !important; margin-bottom:var(--rb) !important }
  body #room_prep, body #room_protect { margin-left:0 !important }
  main[id^="room_"] { padding:12px 10px 24px !important }
  /* drawers and panels take the whole screen above the bar */
  body #social, body #drawer, #mmd, #mk_drawer, #askd { top:var(--hh, 46px) !important; right:0 !important; left:0; width:100% !important; bottom:var(--rb) !important }
  #sndset { right:0; left:0; width:100%; max-height:calc(100vh - var(--hh, 46px) - var(--rb)); border-radius:0 }
  #grd { bottom:calc(var(--rb) + 10px) }
  body .ptoast { right:10px; left:10px; top:auto; max-width:none; bottom:calc(var(--rb) + 10px) }   /* top:auto: with the desktop top:70px still set, a phone toast stretched from the header to the toolbar */
  body #atlas, #phonebtn, #phoned { display:none !important }
  /* trade room overlays fit the phone */
  #trade { left:8px; right:calc(var(--psw, 70px) + 4px); --tt:34px; top:var(--tt); width:auto }   /* (bug hunt 2026-11-02) clear of the price axis: Buy hid its top prices at 390 px */
  #ticket, #key, #key_ict, #key_gen { width:auto; max-height:52vh; overflow-y:auto }
  #story { left:8px; right:8px; top:auto; bottom:8px; transform:none; width:auto; min-width:0; max-height:45vh; overflow-y:auto }
  #alert { left:8px; right:8px; bottom:8px; width:auto; max-height:45vh; overflow-y:auto }
  #plan { left:8px; right:8px; bottom:8px; width:auto; max-height:45vh; overflow-y:auto }
  #now { right:calc(var(--psw, 70px) + 6px); left:auto; min-width:0; max-width:calc(100% - var(--psw, 70px) - 60px); top:84px }   /* below the full-width Sell / Buy row, and left of the price axis (--psw: its live width) */
  #stage:is(.h-tkt, #ticket:not([hidden])) :is(#now, #story) { display:none }
  #stage:is(.h-key, #key:not([hidden])) #now { display:none }   /* an open key sat under the price box: one at a time */   /* the open ticket owns the screen (the story stays in Log -> Story) */
  #story, #alert { z-index:7 }   /* cards sit above the floating Draw button instead of under it */
  #stage:is(.h-tkt, #ticket:not([hidden])) #trade { z-index:8; right:calc(var(--psw, 70px) + 4px) }   /* ...and the open ticket above the cards, left of the price axis so the entry / SL / TP tags stay readable and draggable */
  #mtf { display:none }
  /* rooms */
  body #room_review { grid-template-columns:1fr !important; overflow-y:auto; margin-right:0 !important }   /* no rail on the right on phones */
  #room_train { grid-template-columns:1fr; grid-template-rows:55vh auto; overflow-y:auto }
  #room_community { grid-template-columns:1fr !important; grid-template-rows:auto minmax(0,1fr) }
  .cm-side { border-right:0; border-bottom:1px solid var(--rule); max-height:30vh; overflow-y:auto }
  .cm-members { display:none }
  .rv-grid, .pp-grid, .me-grid, .dna-grid { grid-template-columns:minmax(0,1fr) !important }
  .mk-grid { grid-template-columns:minmax(0,1fr) }
  .tiles, .dna-box .tiles { grid-template-columns:repeat(2, minmax(0,1fr)) !important } .tile { min-width:0 }
  .hero { grid-template-columns:repeat(2, minmax(0,1fr)) } .hero .tile.main { grid-column:1 / -1 }   /* Protect tiles were 390px wide on a 375px phone */
  .mk-bar input { flex-basis:100% }
  table { display:block; overflow-x:auto; max-width:100% }
  .rv-card, .bk, .bk-head > * { min-width:0; overflow-wrap:anywhere }
  main[id^="room_"] > * { min-width:0; max-width:100% }
  input, select, textarea { font-size:16px }   /* iOS doesn't zoom into fields at 16px+ */
  button kbd { display:none }   /* keyboard shortcut hints (1 / 2 / 3, N, L) mean nothing on a phone */
}
/* ---------------- drawing tools (left toolbar on the chart, style bar for the selected drawing) + chart settings */
#stage { --dtw:44px }
#stage > #chart, #stage > #ovc { left:var(--dtw) }
#clock, #trade { margin-left:var(--dtw) }
/* the drawing toolbar (2026-10-23 refresh): a darker strip, one icon set (24 grid, 1.6 stroke, round caps), tools grouped
   into flyouts (the group's last-used tool on top), toggles under them, Undo / Redo + Lock / Hide / Delete all at the bottom.
   Hover: a tooltip with the name and shortcut (#dttip). Colours are the theme tokens, so light, dark and a chart theme that
   re-tints the stage (cs-dark / cs-light) all follow */
#stage, #tr_chartwrap, #dttip, .dt-fly { --tb-bg:color-mix(in srgb, var(--c-bg) 82%, #000); --tb-ink:color-mix(in srgb, var(--c-text) 72%, var(--c-bg)); --tb-on:var(--c-accent) }
:root[data-theme="light"] :is(#stage, #tr_chartwrap, #dttip, .dt-fly), :root[data-theme] :is(#stage, #tr_chartwrap).cs-light { --tb-bg:color-mix(in srgb, var(--c-raised) 70%, var(--c-border)); --tb-ink:color-mix(in srgb, var(--c-text) 80%, var(--c-bg)) }
:root[data-theme] :is(#stage, #tr_chartwrap).cs-dark { --tb-bg:color-mix(in srgb, var(--c-bg) 82%, #000); --tb-ink:color-mix(in srgb, var(--c-text) 72%, var(--c-bg)) }
#dtools { position:absolute; left:0; top:0; bottom:0; width:var(--dtw); z-index:6; background:var(--tb-bg); border-right:1px solid var(--c-border);
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 0; overflow-y:auto; overflow-x:hidden; scrollbar-width:none }
#dtools::-webkit-scrollbar { display:none }
#dtools .sep { width:22px; height:1px; background:var(--c-border); margin:4px 0; flex:none }
#dtools .dt-grow { flex:1 1 auto; min-height:6px }
.dt { width:34px; height:32px; flex:none; padding:0; border:0; border-radius:8px; background:transparent; color:var(--tb-ink); display:grid; place-items:center; position:relative;
  transition:background var(--t-fast), color var(--t-fast) }
.dt svg, .dt-it svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; pointer-events:none }
.dt:hover, .dt:focus-visible { background:var(--c-raised); color:var(--c-text); border-color:transparent }
.dt:disabled { opacity:.35; cursor:default } .dt:disabled:hover { background:transparent; color:var(--tb-ink) }
.dt[aria-pressed="true"] { background:color-mix(in srgb, var(--tb-on) 20%, transparent); color:var(--tb-on); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--tb-on) 40%, transparent) }
#dtools .dt.keep[aria-pressed="true"]::after { content:""; position:absolute; left:3px; top:3px; width:5px; height:5px; border-radius:50%; background:var(--tb-on) }   /* keep drawing: a dot */
.dt:focus-visible { outline:2px solid var(--tb-on); outline-offset:-1px }
.dg { position:relative; flex:none; display:flex; align-items:center }
.dg .dt-more { position:absolute; right:-1px; bottom:-1px; width:11px; height:13px; padding:0; border:0; border-radius:3px; background:transparent; color:var(--c-faint); display:grid; place-items:center; opacity:.75 }
.dg .dt-more svg { width:5px; height:8px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; pointer-events:none }
.dg:hover .dt-more, .dg.open .dt-more, .dg .dt-more:focus-visible { opacity:1; color:var(--c-text) }
.dg .dt-more:hover { background:var(--c-raised) }
.dt-fly { display:none; position:fixed; z-index:60; min-width:228px; padding:6px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:10px; box-shadow:var(--c-shadow) }
.dg.open > .dt-fly { display:block }
.dt-fh { padding:2px 8px 6px; font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint) }
.dt-it { display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px; width:100%; height:34px; padding:0 8px; border:0; border-radius:7px; background:transparent;
  color:var(--c-text); font:500 13px var(--f-body); text-align:left }
.dt-it:hover, .dt-it:focus-visible { background:var(--c-raised); border-color:transparent; outline:none }
/* (a11y hunt 2026-11-10) the keyboard's place in a tool's list and in the chart menu was only the hover shade (#191621 to
   #201c2a, about 1.1:1): arrowing through them, nothing showed where he was. The app's focus ring, inside the item */
.dt-it:focus-visible, #cmenu button:focus-visible { outline:2px solid var(--c-accent) !important; outline-offset:-2px }
.dt-it[aria-checked="true"] { color:var(--tb-on); background:color-mix(in srgb, var(--tb-on) 12%, transparent) }
.dt-it kbd, #dttip kbd { font:500 11px var(--f-mono); color:var(--c-faint); padding:1px 5px; border:1px solid var(--c-border); border-radius:4px; background:var(--c-bg) }
.dt-it kbd:empty { visibility:hidden }
.dt-it[aria-checked="true"] kbd { color:inherit; border-color:color-mix(in srgb, var(--tb-on) 40%, var(--c-border)) }
#dttip { position:fixed; z-index:70; pointer-events:none; display:flex; align-items:center; gap:8px; padding:5px 9px; border-radius:7px; background:var(--c-text); color:var(--c-bg);
  font:500 12.5px var(--f-body); white-space:nowrap; box-shadow:var(--c-shadow-sm) }
#dttip kbd { color:var(--c-bg); background:transparent; border-color:color-mix(in srgb, var(--c-bg) 40%, transparent) }
#dttip::before { content:""; position:absolute; left:-4px; top:calc(50% - 4px); width:8px; height:8px; background:inherit; transform:rotate(45deg) }
#dttip.below::before { left:calc(50% - 4px); top:-4px }
#dttip { flex-wrap:wrap; max-width:320px } #dttip .dt-grp { flex-basis:100%; font-size:11px; line-height:1.35; opacity:.78; white-space:normal }
/* polish 2026-10-23: the magnet preview (the candle it attaches to, a dot on the exact price, the price on the axis) */
.magp { position:fixed; left:0; top:0; pointer-events:none; z-index:45 }
.magp[hidden] { display:none }
.mag-bar { border-radius:3px; background:color-mix(in srgb, var(--c-accent, #2962ff) 16%, transparent); outline:1px solid color-mix(in srgb, var(--c-accent, #2962ff) 55%, transparent) }
.mag-dot { width:10px; height:10px; border-radius:50%; background:var(--c-accent, #2962ff); box-shadow:0 0 0 2px var(--c-bg, #fff) }
.mag-px { height:20px; padding:0 6px; border-radius:3px; background:var(--c-accent, #2962ff); color:var(--c-on-accent, #fff); font:600 11px/20px var(--f-num); text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums }
#dlockhint { position:fixed; z-index:72; pointer-events:none; padding:3px 8px; border-radius:6px; background:var(--c-text); color:var(--c-bg); font:600 11.5px var(--f-body) }
#dlockhint[hidden] { display:none }
/* what's drawn (Clean / More levels / Everything) at the top of every Key; the mentor zone style dialog */
.lvlrow { display:grid; gap:4px; margin:0 0 8px } .lvlrow > span { font-size:11.5px; color:var(--c-muted) }
.lvlseg { display:flex; flex-wrap:wrap } .lvlseg button { flex:1 1 auto; white-space:nowrap }
.mzs { display:grid; gap:10px; margin:8px 0 12px } .mzs-row { display:grid; grid-template-columns:84px minmax(0, 1fr); gap:10px; align-items:center }
.mzs-sw { display:flex; flex-wrap:wrap; gap:6px; align-items:center } .mzs-sw input[type=color] { width:26px; height:24px; padding:0; border:1px solid var(--c-border); border-radius:6px; background:none; cursor:pointer }
.mzs-sw .mzs-hex { width:76px; padding:3px 6px; font:500 12px var(--f-num); text-transform:uppercase } .mzs-sw .mzs-hex.bad { border-color:var(--c-down); color:var(--c-down) } .mzs-sw button { width:22px; height:22px; border-radius:50%; border:2px solid transparent; padding:0 }
.mzs-sw button[aria-pressed="true"] { border-color:var(--c-text); box-shadow:0 0 0 2px var(--c-bg) inset }
.dt-row { display:flex; align-items:center; gap:2px }
.dt-row .dt-it { flex:1 }
.dt-star { flex:none; width:30px; height:30px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--c-faint); display:grid; place-items:center; opacity:.45 }
.dt-star svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round }
.dt-row:hover .dt-star, .dt-star:focus-visible { opacity:1 } .dt-star:hover { color:var(--c-text); background:var(--c-raised); border-color:transparent }
.dt-star[aria-pressed="true"] { opacity:1; color:#e0a14e } .dt-star[aria-pressed="true"] svg { fill:currentColor }
.dt-favs { display:contents }
.dt-fly { max-height:calc(100vh - 16px); overflow-y:auto }
/* the style editor's extras + the Drawings list */
#dbar .fillg { align-items:center; gap:6px } #dbar .fillg input { width:90px; padding:0 } #dbar .fillg output { font:12px var(--f-num); color:var(--c-muted); min-width:30px; font-variant-numeric:tabular-nums }
#dbar .db-acts { display:flex; gap:4px; flex-wrap:wrap }
#dbar .db-h { font:600 12px var(--f-body); color:var(--c-muted); padding:2px 2px 4px }
#dbar.menu .db-acts { display:grid; grid-template-columns:1fr 1fr 1fr; gap:4px } #dbar .db-list { margin-top:2px }
#dlist { position:absolute; z-index:30; left:calc(var(--dtw) + 8px); top:44px; width:min(320px, calc(100% - var(--dtw) - 16px)); max-height:calc(100% - 100px); display:flex; flex-direction:column;
  background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow); overflow:hidden }
#dlist .dl-h { display:flex; align-items:baseline; gap:8px; padding:10px 10px 8px 14px; border-bottom:1px solid var(--c-border) }
#dlist .dl-h b { font:600 13.5px var(--f-body); color:var(--c-text) } #dlist .dl-h span { color:var(--c-muted); font-size:12.5px; flex:1 }
#dlist .dl-h button { border:0; background:transparent; color:var(--c-muted); font-size:20px; line-height:1; padding:0 6px }
#dlist .dl-l { list-style:none; margin:0; padding:4px; overflow-y:auto }
#dlist li { display:flex; align-items:center; gap:2px; border-radius:8px } #dlist li:hover { background:var(--c-raised) }
#dlist li[aria-current="true"] { background:color-mix(in srgb, var(--c-accent) 12%, transparent) }
#dlist li.off .dl-go { opacity:.5 }
#dlist .dl-go { flex:1; min-width:0; display:flex; align-items:center; gap:10px; padding:6px 8px; border:0; background:transparent; text-align:left; color:var(--c-text) }
#dlist .dl-go svg, #dlist .dl-b svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
#dlist .dl-go span { display:flex; flex-direction:column; min-width:0 } #dlist .dl-go b { font:500 13px var(--f-body) }
#dlist .dl-go small { font:12px var(--f-num); color:var(--c-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums }
#dlist .dl-b { flex:none; width:30px; height:30px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--c-faint); display:grid; place-items:center }
#dlist .dl-b:hover { background:var(--c-card); color:var(--c-text) } #dlist .dl-b[aria-pressed="true"] { color:var(--c-text) } #dlist .dl-b[data-a=lock][aria-pressed="true"] { color:var(--c-accent) }
#dlist .dl-b.del:hover { color:var(--c-down) }
#dlist .dl-e { margin:0; padding:14px; color:var(--c-muted); font-size:13px }
#dbar.menu { width:256px; max-height:calc(100% - 16px); overflow-y:auto; gap:5px }
#dbar.menu.fibm { width:360px }
#dbar .fb-m { display:grid; gap:6px } #dbar .fb-r { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12.5px }
#dbar .fb-r > span:first-child:not(.g) { min-width:62px; color:var(--c-muted) } #dbar .fb-hint { color:var(--faint); font-size:11px }
#dbar .fb-ck { display:inline-flex; align-items:center; gap:6px; cursor:pointer }
#dbar .fb-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 10px; padding:4px 0; border-block:1px solid var(--c-border) }
#dbar .fb-lv { display:flex; align-items:center; gap:5px } #dbar .fb-lv input[type=number] { width:72px; min-width:0; padding:3px 5px; font:12px var(--f-num, monospace) }
#dbar .fb-lv input[type=color] { width:26px; height:22px; padding:0; border:1px solid var(--c-border); border-radius:4px; background:none; cursor:pointer }
#dbar .fb-lv input[type=color]:disabled { opacity:.35; cursor:default }
#dbar .fb-m select { padding:3px 6px }
#dbar .sw .sw-none { background:transparent; color:var(--c-muted); font:600 11px var(--f-body); line-height:16px; border:1px dashed var(--c-border-strong) }
#dtools .dt[data-t=magnet][data-mode="1"]::after, #dtools .dt[data-t=magnet][data-mode="2"]::after { position:absolute; right:3px; bottom:2px; font:600 8.5px/1 var(--f-num); color:var(--tb-on); font-variant-numeric:tabular-nums }
#dtools .dt[data-t=magnet][data-mode="1"]::after { content:"W" } #dtools .dt[data-t=magnet][data-mode="2"]::after { content:"S" }
#ivbox { position:absolute; z-index:40; left:calc(var(--dtw) + 50%); top:38%; transform:translate(-50%, -50%); width:220px; padding:12px 14px; display:flex; flex-direction:column; gap:6px;
  background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow) }
#ivbox label { font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint) }
#ivbox input { font:500 20px var(--f-num); padding:6px 10px; background:var(--c-bg); border:1px solid var(--c-border-strong); border-radius:8px; color:var(--c-text); font-variant-numeric:tabular-nums }
#ivbox small { color:var(--c-muted); font-size:12px } #ivbox.bad input { border-color:var(--c-down) } #ivbox.bad small { color:var(--c-down) }
#gonow { position:absolute; z-index:5; width:30px; height:30px; padding:0; display:grid; place-items:center; border-radius:8px; border:1px solid var(--c-border-strong);
  background:color-mix(in srgb, var(--c-card) 92%, transparent); color:var(--c-text); box-shadow:var(--c-shadow-sm) }
#gonow svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
#kbtip { position:absolute; z-index:30; left:calc(var(--dtw) + 12px); bottom:calc(var(--sbh) + 76px); width:min(440px, calc(100% - var(--dtw) - var(--rp) - 40px)); padding:12px 14px;
  background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow); font-size:13px }
body.ck #kbtip, body:not(.room-trade) #kbtip { display:none }   /* walk 2026-11-08: over the chart only (it stayed over Home Base) */
body:not(.room-trade) #drawer:not(#x1) { display:none }   /* (firstrun hunt 2026-11-10) Today's Log belongs to the Trade room: left open, it covered the Floor's channels and the other rooms; it's still open back in Trade */
#kbtip .kb-h { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px } #kbtip .kb-h b { color:var(--c-text) }
#kbtip .kb-h button { border:0; background:transparent; color:var(--c-muted); font-size:18px; padding:0 4px; line-height:1 }
#kbtip .kb-f { display:flex; justify-content:space-between; align-items:center; margin-top:10px }
.kb-l { display:grid; grid-template-columns:1fr; gap:3px } .kb-r { display:grid; grid-template-columns:minmax(0, 46%) 1fr; gap:10px; align-items:baseline }
.kb-r kbd { font:500 12px var(--f-mono); color:var(--c-text); white-space:normal } .kb-r span { color:var(--c-muted) }
#hs_kb .kb-l { margin-top:8px }
/* the timeframe row (chart top left, before the clock) and its "+" panel */
#tfrow { display:flex; align-items:center; gap:1px; padding:2px; align-self:center; border:1px solid var(--c-border); border-radius:9px;
  background:color-mix(in srgb, var(--c-card) 88%, transparent); backdrop-filter:blur(4px) }
/* calm type (owner, 2026-10-23: the "+" panel strained the eyes): codes in the normal text colour at medium weight, never pure
   white, labels in the secondary colour, one column so nothing wraps, rows ~35 px, a big pin with a clear on / off */
#tfrow .tfb { min-width:30px; height:24px; padding:0 7px; border:0; border-radius:6px; background:transparent; color:color-mix(in srgb, var(--c-text) 68%, var(--c-bg));
  font:500 12px var(--f-chart); font-variant-numeric:tabular-nums; letter-spacing:.01em; display:grid; place-items:center; transition:background var(--t-fast), color var(--t-fast) }
#tfrow .tfb:hover { background:var(--c-raised); color:var(--c-text) }
#tfrow .tfb[aria-pressed="true"] { background:color-mix(in srgb, var(--c-accent) 85%, var(--c-bg)); color:var(--c-on-accent); font-weight:600 }
#tfrow .tfb.tmp:not([aria-pressed="true"]) { font-style:italic }
#tfrow .tfadd { min-width:24px; padding:0; color:var(--c-faint) } #tfrow .tfadd[aria-expanded="true"] { color:var(--c-accent); background:var(--c-raised) }
#tfrow .tfadd svg { width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round }
#tfpop { position:absolute; z-index:40; width:244px; padding:6px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow);
  display:flex; flex-direction:column; gap:1px; max-height:calc(100% - 60px); overflow-y:auto }
#tfpop .tfp-h { display:flex; flex-direction:column; gap:2px; padding:6px 10px 8px; font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint) }
#tfpop .tfp-h span { text-transform:none; letter-spacing:0; font:400 12px var(--f-body); color:var(--c-muted) }
#tfpop .tfp-r { display:flex; align-items:center; gap:4px; min-height:36px; padding:0 2px 0 0; border-radius:8px; transition:background var(--t-fast) }
#tfpop .tfp-r:hover, #tfpop .tfp-r:focus-within { background:var(--c-raised) }
#tfpop .tfp-go { flex:1; display:flex; align-items:center; gap:12px; height:36px; padding:0 10px; border:0; background:transparent; text-align:left; border-radius:8px; white-space:nowrap;
  color:color-mix(in srgb, var(--c-text) 82%, var(--c-bg)) }
#tfpop .tfp-go:focus-visible { outline:2px solid var(--c-accent); outline-offset:-2px }
#tfpop .tfp-go b { font:500 13px var(--f-num); min-width:34px; color:inherit; font-variant-numeric:tabular-nums } #tfpop .tfp-go span { font:400 13px var(--f-body); color:var(--c-muted) }
#tfpop .tfp-go[aria-pressed="true"] b, #tfpop .tfp-go[aria-pressed="true"] span { color:var(--c-accent) }
#tfpop .tfp-go[aria-pressed="true"]::after { content:""; margin-left:auto; width:6px; height:6px; border-radius:50%; background:var(--c-accent) }
#tfpop .tfp-pin { flex:none; width:32px; height:32px; padding:0; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--c-faint); display:grid; place-items:center }
#tfpop .tfp-pin svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round }
#tfpop .tfp-pin:hover { color:var(--c-text); border-color:var(--c-border-strong); background:var(--c-card) }
#tfpop .tfp-pin[aria-pressed="true"] { color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent); border-color:color-mix(in srgb, var(--c-accent) 35%, transparent) }
#tfpop .tfp-pin[aria-pressed="true"] svg { fill:currentColor }
#tfpop .tfp-pin:disabled { opacity:.45; cursor:default }
#tfpop .tfp-sep { height:1px; margin:4px 8px; background:var(--c-border) }
#stage.drawing #chart { cursor:crosshair; touch-action:none }
#drawbtn { display:none }
#dbar { position:absolute; z-index:8; top:40px; left:calc(50% + var(--dtw) / 2); transform:translateX(-50%); display:flex; flex-wrap:wrap; align-items:center; gap:6px; max-width:calc(100% - var(--dtw) - 16px);
  padding:5px 8px; background:var(--panel); border:1px solid var(--rule); border-radius:9px; box-shadow:0 8px 24px rgba(0,0,0,.18); font-size:12.5px }
#dbar button, #dbar select, #dbar input { padding:3px 7px; font-size:12px; border-radius:5px }
#dbar .sw { display:flex; gap:3px; align-items:center } #dbar .sw button { width:18px; height:18px; padding:0; border-radius:4px; border:1px solid rgba(0,0,0,.15) }
#dbar .sw button[aria-pressed="true"] { outline:2px solid var(--key); outline-offset:1px }
#dbar input[type=color] { width:26px; height:22px; padding:0 2px }
#dbar .g { display:flex; gap:2px } #dbar .g button[aria-pressed="true"], #dbar button.on[aria-pressed="true"] { border-color:var(--key); color:var(--key); background:color-mix(in srgb, var(--key) 12%, transparent) }
#dbar input[data-k=text] { width:150px } #dbar input[data-k=levels] { width:190px; font-family:var(--f-num); font-variant-numeric:tabular-nums }
#dbar .del { color:var(--dn) }
#dbar.menu { transform:none; flex-direction:column; align-items:stretch; flex-wrap:nowrap; width:230px; max-width:none }
#dbar.menu .lab { display:block; color:var(--faint); font-size:11px; margin-bottom:-3px }
#dbar .lab { display:none }
/* chart settings: a side panel that leaves the chart visible (changes apply live) */
.modal-bg:has(.cs-card) { background:transparent; place-items:start end; padding:calc(var(--hh, 46px) + 8px) 62px 16px 16px; pointer-events:none }
.modal.cs-card { pointer-events:auto; width:min(412px, 100%); gap:10px; padding:16px 18px; grid-template-columns:minmax(0, 1fr) }   /* 412: three 120 px look cards a row (design #6) */
.cs-card h3 { display:flex; justify-content:space-between; align-items:center } .cs-card h3 button { border:0; background:none; font-size:20px; padding:0 4px; color:var(--faint) }
.cs-card .seg { flex-wrap:wrap } .cs-card .seg button { font-size:12.5px; padding:5px 9px }
.cs-card .cs-tabs { flex-wrap:nowrap } .cs-card .cs-tabs button { flex:1 1 0; white-space:nowrap }   /* the three tabs (2026-11-09) */
.cs-pane { display:flex; flex-direction:column; gap:10px } .cs-pane[hidden] { display:none }
.cs-grid { display:grid; grid-template-columns:96px 1fr; gap:8px 10px; align-items:center; font-size:13px }
.cs-grid > span { color:var(--mut); align-self:start; line-height:26px }   /* (chart hunt 2026-11-10) on its row's first line: "Price Box" / "My Trades" sat centered beside the hint or the second box */ .cs-grid > div { display:flex; gap:8px; align-items:center; flex-wrap:wrap }
.cs-grid input[type=color] { width:34px; height:26px; padding:0 2px }
.cs-col { display:inline-flex; align-items:center; gap:3px }
.cs-grid .cs-hex { width:66px; padding:3px 5px; font:500 12px var(--f-num); letter-spacing:.02em; text-transform:uppercase }
.cs-grid .cs-hex.bad { border-color:var(--c-down); color:var(--c-down) } .cs-grid select { padding:3px 6px; font-size:12.5px } .cs-grid label { font-size:12.5px; gap:4px }
/* a dark chart theme darkens everything on the chart (toolbar, cards, the price box) so it reads as one surface */
:is(#stage, #tr_chartwrap):is(.cs-dark, .cs-light) { color:var(--ink) }
@media (max-width:760px) {
  #stage { --dtw:0px }
  #dtools { display:none }
  /* a phone: Draw opens every tool at once (no flyouts on a touch screen), 6 to a row */
  #dtools.open { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); position:absolute; left:8px; right:8px; top:auto; bottom:92px; width:auto; max-height:60%; z-index:12;
    border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.25); padding:8px; gap:4px; background:var(--c-card); overflow-y:auto }
  #dtools.open .dg, #dtools.open .dt-fly, #dtools.open .dt-row { display:contents }
  #dtools.open :is(.dt-star, .dt-favs .dt) { display:none !important }
  #dlist { left:8px; right:8px; width:auto; top:auto; bottom:92px; max-height:55% }
  #dtools.open :is(.dt, .dt-it) { width:auto; height:42px; display:grid; place-items:center; padding:0; border-radius:9px }
  #dtools.open :is(.sep, .dt-grow, .dg:not(.solo) > .dt-main, .dt-more, .dt-fh) { display:none }
  #dtools.open .dt-it span, #dtools.open .dt-it kbd { display:none }
  #dtools.open .dt-it[aria-checked="true"] { box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--tb-on) 40%, transparent) }
  #dttip { display:none !important }
  /* a phone: the row leaves the clock band (the Cockpit | Chart switch and Sell / Buy fill it) for the bottom left, beside Draw */
  #stage > #tfrow { position:absolute; z-index:6; left:86px; bottom:44px; max-width:calc(100% - 94px - var(--psw, 70px) - 98px); overflow-x:auto; scrollbar-width:none;   /* (hunt 2026-11-09: and left of the hide-drawings eye, which sat under "4h D" at 390 px) (bug hunt 2026-11-02) ends left of the chart gear: "+" sat on it at 390 px */
    box-shadow:0 4px 14px rgba(0,0,0,.18); background:var(--c-card) }
  #stage > #tfrow::-webkit-scrollbar { display:none }
  #tfrow .tfb { min-width:28px; height:28px; padding:0 6px; flex:none } #tfpop { width:min(260px, calc(100vw - 16px)) }
  body.ck #stage > #tfrow { display:none }
  /* (design review 2026-11-10 #2) the practice buttons left the top of the chart: a small "+ Practice" above Draw opens them */
  #tkfab:not([hidden]) { display:flex; align-items:center; position:absolute; left:8px; bottom:88px; z-index:6; padding:6px 12px; border-radius:999px; border:1px solid var(--c-border-strong);
    background:var(--c-card); color:var(--c-text); box-shadow:0 4px 14px rgba(0,0,0,.18); font:600 13px var(--f-body); min-height:40px }
  #tkfab[aria-expanded="true"] { border-color:var(--c-accent); color:var(--c-accent) }
  body.ck #tkfab, body:is(.h-tkt, :has(#ticket:not([hidden]))) #tkfab { display:none !important }
  #tpanel #bs { display:none } body.tk-pick #tpanel #bs:not([hidden]) { display:grid; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:10px; box-shadow:var(--c-shadow) }
  #drawbtn { display:flex; align-items:center; gap:5px; position:absolute; left:8px; bottom:44px; z-index:6; padding:6px 11px; border-radius:999px; background:var(--panel); box-shadow:0 4px 14px rgba(0,0,0,.18); font:600 13px var(--f-body) }
  #drawbtn svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
  #drawbtn[aria-pressed="true"] { border-color:var(--key); color:var(--key) }
  #dbar { top:auto; bottom:92px; left:8px; right:8px; transform:none; max-width:none }
  .modal-bg:has(.cs-card) { padding:calc(var(--hh, 46px) + 6px) 8px calc(var(--rb, 58px) + 8px); place-items:start stretch }
  .modal.cs-card { width:100%; max-height:calc(100vh - var(--hh, 46px) - var(--rb, 58px) - 20px) }
}
/* ---------------- "Talk me off the ledge" (2026-10-18): a calm cool-off banner on the chart; B / S ask once before a ticket */
#ledgebtn[aria-pressed="true"] { color:var(--calm); background:color-mix(in srgb, var(--calm) 13%, transparent) }
#ledgebtn[aria-pressed="true"] span { font-variant-numeric:tabular-nums }
#ledge_bar { left:var(--dtw); right:0; top:0; z-index:9; display:flex; align-items:center; gap:10px; padding:7px 14px; min-height:40px;
  background:color-mix(in srgb, var(--calm) 13%, var(--panel)); color:color-mix(in srgb, var(--calm) 75%, var(--ink)); border-bottom:1px solid color-mix(in srgb, var(--calm) 30%, var(--panel)); font:500 13.5px var(--f-body) }
#ledge_bar .t { font:500 17px var(--f-num); min-width:50px; font-variant-numeric:tabular-nums }
#ledge_bar .msg { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; max-width:none; padding:0; border-radius:0; background:none; font-size:inherit; align-self:auto }   /* not the chat bubble (.msg) */
#ledge_bar button { flex:none; padding:3px 10px; font-size:12.5px; background:color-mix(in srgb, var(--panel) 65%, transparent); border-color:color-mix(in srgb, var(--calm) 30%, var(--panel)); color:inherit }
body.cooloff #clock { top:50px } body.cooloff #trade { --tt:82px; top:var(--tt) } body.cooloff #now, body.cooloff #story { top:52px }
#ticket .ledge-ask p { margin:6px 0 2px; font:600 14.5px/1.35 var(--f-body); color:var(--ink) }
#ticket .ledge-ask .hd { color:var(--calm) }
.ledge-card .lg-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0 }
.ledge-card .lg-txt { display:grid; gap:4px; font-size:12.5px; color:var(--mut) }
.ledge-card textarea { width:100%; min-height:58px; padding:8px; font:14px var(--f-body); color:var(--ink); background:var(--panel2); border:1px solid var(--rule); border-radius:6px; resize:vertical }
.ledge-card #lg_rec.on { border-color:var(--dn); color:var(--dn) }
.ledge-card .lg-voice { margin:8px 0 2px } .ledge-card .lg-voice > summary { cursor:pointer; font:600 13.5px var(--f-body); color:var(--c-text, var(--ink)) }
.me-auto select { margin:0 3px; padding:1px 4px; font:inherit }
.me-auto #me_ac_msg { display:block; margin:2px 0 0 26px; font-size:12.5px }
#ledge_bar .msg a { color:inherit; font-weight:700; text-decoration:underline }
/* the co-pilot's moment: an order warning from NinjaTrader is shown big for 10 s and the guard chip flashes;
   while the strip says Stop, a soft red edge glows round the chart */
#ntflash { position:fixed; z-index:45; top:calc(var(--hh, 46px) + 12px); left:50%; transform:translateX(-50%); width:min(640px, calc(100vw - 84px));
  padding:14px 18px 14px 20px; border-radius:12px; background:#fff5f2; color:#5c1d16; border:1px solid #e6b9b0; border-left:6px solid var(--dn);
  box-shadow:0 14px 36px rgba(90,30,20,.22); font:600 22px/1.3 var(--f-body); cursor:pointer }
#ntflash.caution { border-left-color:var(--liq); background:#fff8ec; color:#5a3a0c; border-color:#ecd3a8 }
#ntflash .h { font:700 11.5px var(--f-disp); letter-spacing:.08em; text-transform:uppercase; opacity:.8; margin-bottom:5px }
#ntflash small { display:block; font:500 14px/1.4 var(--f-body); margin-top:6px; opacity:.9 }
#guard.flash { border-color:var(--dn); animation:gflash .9s ease-in-out 4 }
#guard.flash.caution { border-color:var(--liq) }
@keyframes gflash { 50% { background:color-mix(in srgb, var(--dn) 22%, var(--panel2)); box-shadow:0 0 0 4px color-mix(in srgb, var(--dn) 22%, transparent) } }
#stage::after { content:""; position:absolute; inset:0 0 0 var(--dtw); z-index:4; pointer-events:none; opacity:0; transition:opacity .8s;
  box-shadow:inset 0 0 0 3px rgba(176,71,58,.55), inset 0 0 46px rgba(176,71,58,.28) }
#stage.cp-stop::after { opacity:1; animation:cpglow 3.2s ease-in-out infinite }
@keyframes cpglow { 50% { opacity:.5 } }
@media (prefers-reduced-motion: reduce) {
  #guard.flash, #stage.cp-stop::after { animation:none !important } #stage::after { transition:none }
  #guard.flash { background:color-mix(in srgb, var(--dn) 16%, var(--panel2)) }
}
@media (max-width:760px) {
  #ntflash { left:8px; right:8px; width:auto; transform:none; font-size:19px }
  #ledge_bar { padding:6px 8px; gap:7px } #ledge_bar .msg { display:none }
  /* an automatic cool-off keeps its reason on the phone: a second line under the timer */
  #ledge_bar.auto { flex-wrap:wrap; row-gap:2px } #ledge_bar.auto .msg { display:block; order:5; flex-basis:100%; white-space:normal; font-size:12.5px; line-height:1.3 }
  body.cooloff.cooloff-auto #clock { top:84px } body.cooloff.cooloff-auto #trade { --tt:112px; top:var(--tt) } body.cooloff.cooloff-auto #now { top:162px } body.cooloff.cooloff-auto #story { top:86px }
  body.cooloff #trade { --tt:78px; top:var(--tt) } body.cooloff #now { top:128px }
  /* the Plan upsell / setup guide on a 375 px phone: less padding, buttons wrap instead of overflowing */
  .modal-bg { padding:10px }
  .modal { padding:16px 14px; max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px) }
  .modal .row { flex-wrap:wrap } .modal .row button { flex:1 1 auto }
  .up-card .pr { font-size:22px }
}
/* ---------------- first run, focus, motion and phone tap targets (2026-10-18 night) */
#empty .go, .rv-empty .go, #tr_empty .go { background:var(--key); color:var(--c-on-accent); border-color:var(--key); font-weight:600; padding:9px 16px; margin-top:10px }
.rv-empty b { color:var(--ink) }
:where(main, .modal, aside) a:where(:not([class])) { color:var(--key) }   /* inline links ("Pro", "See Pro", downloads) were browser blue, unreadable in dark mode */
#empty > div { max-width:440px; line-height:1.55; box-sizing:border-box }
#empty > div { border-radius:12px; padding:12px 16px }
/* a side panel (Log, Chat, Phone: 420px; Ask: 440px) opened over the chart: the empty / setup message centres in the space left of it
   instead of running under it (the panels share the stage's right edge, so the padding is exactly their width) */
@media (min-width:761px) { body:is(.h-drawer, .h-social, #drawer:not([hidden])) #empty { padding:0 420px 0 16px } body:is(.h-askd, #askd:not([hidden])) #empty { padding:0 440px 0 16px } }
#empty.nudge, #empty.nudge > * { color:var(--ink) } #empty.nudge > div { animation:enudge 1.6s ease-out 1 }   /* a highlight, not a scale: scaling the full-size overlay widened the phone viewport */
@keyframes enudge { 0%, 35% { background:color-mix(in srgb, var(--key) 14%, var(--panel)) } 100% { background:transparent } }
#tr_empty { position:absolute; inset:0; z-index:4; display:grid; place-items:center; background:var(--bg); padding:24px; line-height:1.55 }
#tr_empty[hidden] { display:none } #tr_empty > div { max-width:440px } #tr_empty p { margin:8px 0 4px }
.tr-btns button:disabled { opacity:.45; cursor:not-allowed }
:is(a, textarea, summary, [tabindex], [role="tab"], [role="switch"]):focus-visible { outline:2px solid var(--key); outline-offset:2px }
.modal:focus { outline:none }
.cm-compose:focus-within { box-shadow:0 0 0 2px var(--key) }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important }
}
@media (max-width:760px) {
  /* every control a thumb can hit: 40 px (WCAG target size), icon-only closes included */
  header select, header button, header .chip, #rooms button { min-height:40px }
  header select, #ex_day { font-size:16px }   /* iOS zooms the page into any select under 16px */
  @media (max-width:420px) { .ex-h .ex-src { display:none } }   /* the source label wraps beside the day picker */
  main[id^="room_"] :is(button, select, input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range])),
  .modal :is(button, select, input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range])),
  :is(#social, #drawer, #mmd, #askd, #mk_drawer, #vpop, #sndset, #grd, #ledge_bar, #ticket, #key, #key_gen, #key_ict, #plan, #alert, #story) :is(button, select, input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range])) { min-height:40px; min-width:40px }
  :is(#socialx, #drawerx, #mmx, #askx, #phx, #keyx, #keyx2, #keyx3, #planx, #cs_x, #ds_prev, #ds_next) { min-width:40px; min-height:40px; box-sizing:border-box; display:inline-grid; place-items:center }
  #drawbtn { min-height:40px }
  .mk-tags button, .seg button { min-height:40px; min-width:40px }
  main[id^="room_"] a:not(:where(.btnlink)), .modal a:not(:where(.btnlink)) { padding:11px 2px; margin:-11px -2px }   /* inline links: a bigger hit area without moving the text */
  /* (walk 2026-11-13) never a link drawn as a button (.btnlink): the -11px pulled Accounts' Download the Add-On up over the line above it */
  #rail .rb { font-size:10.5px }
  /* the second header row scrolls sideways: fade its right edge so a cut-off chip reads as "more this way" */
  #hbar { -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 22px), transparent); padding-right:16px }
  #tr_empty { padding:16px }
  #mmd .mh { position:relative; padding-right:58px } #mmx { position:absolute; top:8px; right:10px }
  #rooms { -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 22px), transparent) }
  #ticket .tk-x { min-width:40px; margin:-8px -6px -8px 0; font-size:20px }
  .scale button { width:40px }
  #rooms::after { content:""; flex:none; width:18px }
  .cm-chans:empty, .cm-me:empty, .cm-top:empty, .cm-typing:empty, .cm-compose:empty { display:none }
}
/* =====================================================================================================================
   2026 REVAMP, stage 1: base components, the shared top bar, both rails and the Trade room. Later rules here override
   the older ones above (same or higher specificity); every id / hook is unchanged.
   ===================================================================================================================== */
:root, :root[data-theme="dark"] { --seg-bg:#0e0c13; --seg-on:#262131 }
:root[data-theme="light"] { --seg-bg:#efe8de; --seg-on:#ffffff }
body { font:14px/1.45 var(--f-body); font-variant-numeric:tabular-nums; background:var(--c-bg); color:var(--c-text); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility }
.num { font-family:var(--f-num); font-weight:500; font-variant-numeric:tabular-nums }
::selection { background:color-mix(in srgb, var(--c-accent) 32%, transparent) }

/* ---- controls: secondary (default), primary (.go), ghost, danger; inputs, selects, toggles */
select, button, input, textarea { font:inherit; color:var(--c-text); border-radius:var(--r-ctl);
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease) }
button { background:var(--c-raised); border:1px solid var(--c-border-strong); padding:6px 12px }
button:where(:hover) { background:color-mix(in srgb, var(--c-text) 6%, var(--c-raised)); border-color:color-mix(in srgb, var(--c-accent) 40%, var(--c-border-strong)) }
button:disabled { opacity:.5; cursor:not-allowed }
input, select, textarea { background:var(--c-bg); border:1px solid var(--c-border-strong); padding:6px 10px }
input:where(:hover), select:where(:hover), textarea:where(:hover) { border-color:color-mix(in srgb, var(--c-text) 22%, var(--c-border-strong)) }
input::placeholder, textarea::placeholder { color:var(--c-faint) }
input[type=checkbox], input[type=radio] { accent-color:var(--c-accent); padding:0; width:15px; height:15px; vertical-align:middle }
input[type=range] { accent-color:var(--c-accent); padding:0; border:0; background:transparent }
input[type=color] { background:var(--c-raised); cursor:pointer }
select { cursor:pointer }
select option { background:var(--c-card); color:var(--c-text) }
:is(button, select, input, textarea, summary, a, [tabindex], [role="tab"], [role="switch"]):focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
button.go, .go { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent); font-weight:600 }
button.go:where(:hover) { background:var(--c-accent-hover); border-color:var(--c-accent-hover) }
button.ghost, .ghost { background:transparent; border-color:transparent; color:var(--c-muted) }
button.ghost:where(:hover) { background:var(--c-raised); color:var(--c-text) }
button.danger { background:var(--c-down); color:var(--c-on-accent); border-color:var(--c-down) }
.switch { background:var(--c-border-strong); border:0 } .switch::after { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3) }
.switch[aria-checked="true"] { background:var(--c-accent) }
/* chips and badges */
.chip { height:30px; padding:0 11px; gap:8px; border:1px solid var(--c-border); border-radius:999px; background:var(--c-raised); color:var(--c-text); font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
.chip .lab { font:600 11px var(--f-body); letter-spacing:.06em; color:var(--c-muted) }
.vbadge { display:inline-flex; align-items:center; gap:6px; padding:2px 9px 2px 8px; border-radius:999px; font:600 12px/1.5 var(--f-body); letter-spacing:.01em; text-transform:none;
  background:var(--c-raised); color:var(--c-muted); border:1px solid var(--c-border-strong); white-space:nowrap }
.vbadge::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; flex:none }
.vbadge.v-clear { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-up) 38%, transparent) }
.vbadge.v-caution { color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-warn) 40%, transparent) }
.vbadge.v-stop { color:var(--c-down); background:color-mix(in srgb, var(--c-down) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-down) 42%, transparent) }
.nbadge, #chatbtn .badge, .cm-ch .cnt { background:var(--c-down); color:var(--c-on-accent) }
/* cards */
.card { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); box-shadow:var(--c-shadow-sm); padding:12px 14px }
.card h2 { font:600 11.5px var(--f-body); letter-spacing:.06em; color:var(--c-muted) }
.card h2 button { color:var(--c-faint); border-radius:6px } .card h2 button:hover { color:var(--c-text); background:var(--c-raised) }
.rv-card, .mkc, .cm-form, .thr, .call, .tcard, .rep { background:var(--c-card); border-color:var(--c-border); border-radius:var(--r-card) }
.tile { background:var(--c-card); border-color:var(--c-border); border-radius:10px }
.tile .v, .dna-score, .ds-ring b, .mkc .mps, .mkc .price, .up-card .pr { font-weight:500 }
/* segmented tabs */
.seg { display:flex; gap:2px; padding:2px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:var(--r-ctl); overflow:visible }
.seg button { border:0; border-radius:6px; background:transparent; padding:5px 12px; font:500 13px var(--f-body); color:var(--c-muted) }
.seg button:where(:hover) { background:transparent; color:var(--c-text) }
.seg button[aria-pressed="true"] { background:var(--seg-on); color:var(--c-text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.18) }
.tabs { border-bottom:1px solid var(--c-border) }
.tabs button { font:600 11.5px var(--f-body); letter-spacing:.06em; color:var(--c-muted); background:transparent }
.tabs button:where(:hover) { background:transparent; color:var(--c-text) }
.tabs button[aria-selected="true"] { color:var(--c-text); border-bottom-color:var(--c-accent) }
/* toasts, modal shell, popovers (the app's tooltips are the native title tooltips) */
.ptoast { background:var(--c-card); border:1px solid var(--c-border-strong); border-left:3px solid var(--c-accent); border-radius:10px; box-shadow:var(--c-shadow); animation-duration:.18s }
.modal-bg { background:var(--c-veil); backdrop-filter:blur(2px) } .modal-bg:has(.cs-card) { backdrop-filter:none }
.modal { background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:14px; box-shadow:var(--c-shadow) }
.modal h3 { font:600 17px var(--f-body) }
.pop { background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:10px; box-shadow:var(--c-shadow) }
.dh b, .ask-h b, #phoned .ph-h b, #mmd .mh b, .ex-h b, .bk-head h3, .mkd-h b { font-weight:600; font-family:var(--f-body) }
/* scrollbars */
* { scrollbar-width:thin; scrollbar-color:var(--c-border-strong) transparent }
/* motion: calm and short (120-180 ms); the reduced-motion block above still switches it all off */
.ov.card:not([hidden]), #ticket:not([hidden]), #key:not([hidden]), #key_ict:not([hidden]), #key_gen:not([hidden]), #alert.ov.card:not([hidden]) { animation-duration:.18s }
#room_review:not([hidden]), #room_protect:not([hidden]), #room_bottom:not([hidden]) { animation-duration:.18s }
.mkc { transition:border-color var(--t-med) var(--ease) } .mkc:hover { transform:none; box-shadow:none; border-color:var(--c-border-strong) }

/* ---- the top bar (every room): wordmark, room tabs, chips; in the Trade room a second row is the chart toolbar */
header { min-height:48px; padding:0 12px; column-gap:8px; row-gap:0; background:var(--c-panel); border-bottom:1px solid var(--c-border); position:relative; z-index:20 }
header h1.wm { font:600 18px/1 var(--f-body); color:var(--c-text); letter-spacing:-.005em; margin:0 10px 0 2px }
#rooms { gap:2px; padding:3px; margin-right:8px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:10px }
#rooms button { padding:5px 12px; border-radius:7px; font:500 13px var(--f-body); color:var(--c-muted); background:transparent }
#rooms button:where(:hover) { color:var(--c-text); background:transparent }
#rooms button[aria-pressed="true"] { background:var(--seg-on); color:var(--c-text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.2) }
.grp { height:32px; gap:2px; padding:2px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:var(--r-ctl) }
.grp > select, .grp > button { height:26px; padding:0 9px; border-radius:6px; font-size:13px }
.grp > button:hover, .grp > select:hover { background:var(--c-raised) }
#load { color:var(--c-text); font-weight:600 }
#play:not(:disabled) { color:var(--c-accent); font-weight:600 }
.modesw { height:32px; gap:2px; padding:2px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:var(--r-ctl) }
.modesw button { height:26px; padding:0 11px; border-radius:6px; font:500 13px var(--f-body); color:var(--c-muted) }
.modesw button:where(:hover) { background:transparent; color:var(--c-text) }
.modesw button[aria-pressed="true"] { background:var(--seg-on); color:var(--c-text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.18) }
.modesw button[data-mode="live"][aria-pressed="true"] { color:var(--c-down) }
#livebadge { font:500 12.5px var(--f-body); color:var(--c-muted) } #livebadge.on { color:var(--c-down) }
#mentor { height:32px; font-weight:500; background:var(--c-raised); border-color:var(--c-border) }
#guard .lab { color:var(--c-up) } #guard.done { border-color:color-mix(in srgb, var(--c-down) 55%, transparent) } #guard.done .lab { color:var(--c-down) }
#guard .add { color:var(--c-accent); background:transparent; border:0 }
#propchip .lab { color:var(--c-up) } #propchip.warn .lab { color:var(--c-warn) } #propchip.bad { border-color:color-mix(in srgb, var(--c-down) 55%, transparent) } #propchip.bad .lab { color:var(--c-down) }
#newschip .lab { color:var(--c-warn) } #newschip.soon { border-color:var(--c-down) } #newschip.soon .lab { color:var(--c-down) }
#instchip .lab { color:var(--c-text) } #instpx { color:var(--c-text) }
.trl { font:500 11px var(--f-body); color:var(--c-muted) }
@media (min-width:761px) {
  header { flex-wrap:wrap; padding-right:170px }      /* the plan chip (in the tool rail's DOM) sits fixed at the top right */
  header::after { content:""; order:0; width:0; height:48px; flex:none }      /* row 1 is 48 px tall */
  body.room-trade header::before { content:""; order:1; flex:0 0 calc(100% + 182px); margin:0 -170px 0 -12px; height:1px; background:var(--c-border) }
  body.room-trade :is(#modesw, #replay, #mentor) { order:2; margin-block:5px }
  body.room-trade #mentor { margin-left:auto }
  header h1.wm { display:block !important }
  #rail #planbtn { position:fixed; top:9px; right:12px; z-index:41; width:auto; max-width:158px; height:30px; margin:0; padding:0 12px; display:flex; align-items:center; gap:6px;
    border:1px solid color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); border-radius:999px; background:color-mix(in srgb, var(--c-accent) 12%, var(--c-raised));
    color:var(--c-text); font:600 12.5px var(--f-body); white-space:nowrap }
  #rail #planbtn svg { width:15px; height:15px; color:var(--c-accent); flex:none }
  #rail #planbtn span { overflow:hidden; text-overflow:ellipsis }
  #rail #planbtn:hover { background:color-mix(in srgb, var(--c-accent) 20%, var(--c-raised)) }
  #rail #planbtn.free { border-color:var(--c-border-strong); background:var(--c-raised) } #rail #planbtn.free svg { color:var(--c-muted) }
}
@media (min-width:761px) and (max-width:1560px) { #propchip .lab, #newschip .lab, #planchip .lab { display:inline } }
@media (min-width:761px) and (max-width:1500px) { #propchip .lab, #newschip .lab, #planchip .lab, #instchip .lab { display:none } header h1.wm .wm-svg { display:none } header h1.wm .wm-mark-only { display:block } }
@media (min-width:761px) and (max-width:1100px) { #rooms button { padding:5px 8px } header { column-gap:6px } }

/* ---- right tool rail (TradingView-style) and the left drawing-tool rail */
#rail { background:var(--c-panel); border-left:1px solid var(--c-border); gap:3px; padding:8px 0 }
.rb { color:var(--c-muted); border-radius:var(--r-ctl); font:500 9.5px/1 var(--f-body); background:transparent; border:0 }
.rb:hover { background:var(--c-raised); color:var(--c-text) }
.rb[aria-pressed="true"] { background:color-mix(in srgb, var(--c-accent) 16%, transparent); color:var(--c-accent) }
#voice[aria-pressed="true"] { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 14%, transparent) }
/* Mute TiltLab (2026-10-21): the rail button is a speaker; muted = a crossed-out speaker, "Muted", in the warning colour,
   and a pill in the header (click = unmute) so a quiet TiltLab never reads as broken */
#voice .v-off { display:none } #voice.muted .v-on { display:none } #voice.muted .v-off { display:block }
#voice.muted { color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 15%, transparent) }
#mutepill { display:inline-flex; align-items:center; gap:3px; flex:none; padding:2px 7px; border-radius:999px; border:1px solid color-mix(in srgb, var(--c-warn) 55%, transparent);
  background:color-mix(in srgb, var(--c-warn) 14%, transparent); color:var(--c-warn); font:600 12.5px var(--f-body); cursor:pointer; white-space:nowrap }
#mutepill[hidden] { display:none } #mutepill:hover { background:color-mix(in srgb, var(--c-warn) 24%, transparent) }
.vmute { display:flex; flex-direction:column; gap:5px; padding-bottom:9px; margin-bottom:8px; border-bottom:1px solid var(--c-border) }
.vmute button { text-align:left } .vmute .vm-now { font-weight:600 }
/* (hunt 2026-11-08) above the Step Away screen (85), modals (90), the update bar (250) and the first-run screens (300): nothing covers the help lines */
#crisis { position:fixed; right:16px; bottom:16px; z-index:350; width:min(420px, calc(100vw - 32px)); background:var(--c-panel); color:var(--c-text);
  border:1px solid var(--c-border); border-left:4px solid var(--calm); border-radius:12px; padding:14px 16px; box-shadow:0 10px 30px rgba(0,0,0,.25) }
#crisis[hidden] { display:none } #crisis p { margin:0 0 8px; padding-right:22px; line-height:1.45 } #crisis ul { margin:6px 0 4px; padding-left:18px } #crisis li { margin:3px 0 }
#crisis .cr-x { position:absolute; top:6px; right:8px; background:transparent; border:0; font-size:20px; color:var(--c-muted); cursor:pointer }
#ledgebtn[aria-pressed="true"] { color:var(--calm); background:color-mix(in srgb, var(--calm) 15%, transparent) }
#rail .sep { background:var(--c-border) }
#dbar { background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:10px; box-shadow:var(--c-shadow) }

/* ---- Trade room: chart in the middle, the trade panel on the right, Today's log strip along the bottom */
#stage { background:var(--c-bg) }
#stage > #chart, #stage > #ovc { inset:0 var(--rp) var(--sbh) var(--dtw) }
#stage.mtf > #chart, #stage.mtf > #ovc { right:calc(var(--rp) + var(--mtfw, 28%)) }
#mtf { right:var(--rp); bottom:var(--sbh); width:var(--mtfw, 28%); background:var(--c-bg); border-left:1px solid var(--c-border) }
#mtf > .mp { border-bottom-color:var(--c-border) } #mtf .mp-h { font:600 10.5px var(--f-body); color:var(--c-muted); background:color-mix(in srgb, var(--c-bg) 82%, transparent); border-color:var(--c-border) } #mtf .mp-h:hover, #mtf .mp-h[aria-expanded="true"] { color:var(--c-text) }
#mtfmenu { background:var(--c-raised, var(--c-card)); color:var(--c-text); border-color:var(--c-border) } #mtfmenu .mm-h { color:var(--c-muted) } #mtfmenu button[aria-pressed="true"]:not(.mm-row) { background:var(--c-accent); color:#fff; border-color:var(--c-accent) }
#empty { inset:0 var(--rp) var(--sbh) var(--dtw); color:var(--c-muted); font-size:14px }
#empty > div { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:18px 22px; box-shadow:var(--c-shadow-sm); color:var(--c-muted) }
#empty b { color:var(--c-text) } #empty .e-msg { background:var(--c-card); border:1px solid var(--c-border); border-radius:999px; padding:6px 14px; box-shadow:var(--c-shadow-sm); max-width:min(440px, calc(100% - 32px)) }
#empty.nudge > div { border-color:var(--c-accent) }
.setupcard { background:var(--c-card); border-color:var(--c-border); border-radius:var(--r-card); box-shadow:var(--c-shadow-sm) }
#clock { font:500 14px var(--f-chart); font-variant-numeric:tabular-nums; color:var(--c-muted) } #clock small { font:12px var(--f-body); color:var(--c-faint) }
#clock #lagnote { font-weight:600; color:var(--c-warn) }
#now { right:calc(var(--rp) + var(--psw, 70px) + 8px); background:color-mix(in srgb, var(--c-card) 94%, transparent); border:1px solid var(--c-border); border-radius:10px; font:500 12.5px var(--f-chart); font-variant-numeric:tabular-nums; box-shadow:var(--c-shadow-sm) }
#alert { right:calc(var(--rp) + var(--psw, 70px) + 8px); bottom:calc(var(--sbh) + 30px) }
/* (bug hunt 2026-11-02) an 800 px window: the 420 px card ran left past the chart, under the drawing tools; it fits the chart now */
@media (min-width:761px) { #alert { max-width:calc(100% - var(--dtw) - var(--rp) - var(--psw, 70px) - 20px) } }
#plan { left:calc(var(--dtw) + 12px); bottom:calc(var(--sbh) + 30px) }
#story { left:calc(var(--dtw) + 284px); right:calc(var(--rp) + 300px); border-top:2px solid var(--c-accent) }
@media (min-width:761px) { #stage:is(.h-now, #now:not([hidden])) #story { right:calc(var(--rp) + var(--psw, 70px) + var(--noww, 230px) + 20px) }
  #stage.mtf:is(.h-now, #now:not([hidden])) #story { right:calc(var(--rp) + var(--mtfw, 28%) + 70px + var(--noww, 230px) + 12px) } }   /* left of the price box, however wide a mentor makes it */
#stage.mtf #now, #stage.mtf #alert { right:calc(var(--rp) + var(--mtfw, 28%) + 70px) } #stage.mtf #story { right:calc(var(--rp) + var(--mtfw, 28%) + 300px) }
/* (owner pick R, 2026-11-05) a narrow window (half a 1920 screen beside NinjaTrader): the price box sat on the open key. One at
   a time, like the phone: the key he opened shows, the box steps aside until he closes it */
@media (min-width:761px) and (max-width:1100px) { #stage:is(.h-key, #key:not([hidden])) #now { display:none } }
#ledge_bar { left:var(--dtw); right:var(--rp) }
@media (min-width:761px) { body #atlas { right:calc(52px + var(--rp) + 40px) } body:is(.h-mtf, #stage.mtf) #atlas { right:calc(52px + var(--rp) + var(--mtfw, 28%) + 30px) } body .ptoast { right:calc(52px + var(--rp) + 16px) } }
/* (design review 2026-11-10 #1, redone after the owner's look: "it completely blocks the candles") NOTHING over the candles.
   The alert card, Atlas's caption and the full Atlas figure piled up bottom right of the chart; a card top right still sat
   on the newest bars. Now on a PC (Trade, Chart layout) the card lives in the right panel, at the top above Co-Pilot
   (alertHome moves #alert there), Atlas's spoken line as its first line with a 28 px Atlas, or as its own small card in
   the same place when no card shows. The chart keeps only its marker at the alert's price / time. The full figure steps
   aside while the panel shows a card (.lane-off) and otherwise rests over the panel's bottom corner, not the chart. A phone:
   a slim one-line bar over the chart's clock row (never over candles), the whole card on a tap */
@media (min-width:761px) {
  #tpanel > #alert { position:static; inset:auto; width:auto; max-width:none; max-height:none; margin:0; flex:none; box-sizing:border-box; z-index:auto;
    border:1px solid var(--c-border); border-left:3px solid var(--key); border-radius:var(--r-card); background:var(--c-card); padding:11px 12px; box-shadow:none; font-size:13px }
  #tpanel > #alert.long { border-left-color:var(--up) } #tpanel > #alert.short { border-left-color:var(--dn) }
  #tpanel > #alert h2 { font-size:11px } #tpanel > #alert .ttl { font-size:14px } #tpanel > #alert .acts { flex-wrap:wrap; gap:6px }
  #tpanel > #alert .callrow, #tpanel > #alert .size { flex-wrap:wrap } #tpanel > #alert .callrow input { min-width:0; width:84px }
  #tpanel > .vcap.lane { position:static; inset:auto; transform:none; width:auto; max-width:none; flex:none; box-sizing:border-box; margin:0; z-index:auto; box-shadow:none; animation:cardIn .3s }
  /* (hunt 2026-11-11 #13) the hourly story card in the same lane, under the alert's spot */
  #tpanel > #story { position:static; inset:auto; transform:none; width:auto; min-width:0; max-width:none; max-height:none; margin:0; flex:none; box-sizing:border-box; z-index:auto;
    border:1px solid var(--c-border); border-left:3px solid var(--c-accent); border-radius:var(--r-card); background:var(--c-card); padding:11px 12px; box-shadow:none; font-size:13px; overflow:visible }
  #tpanel > #story h2 { font-size:11px } #tpanel > #story .txt { font-size:13px } #tpanel > #story .fb { flex-wrap:wrap }
  body.room-trade:not(.ck):not(.tour-on) #atlas:not(.big):not(.moved) { right:64px; bottom:14px }
  body.room-trade:not(.ck):not(.tour-on) #atlas:not(.big) .rig { overflow:hidden; border-radius:50% }   /* the bust only: the legs ran over the strip */
  /* (hunt 2026-11-11 #2) every other room (and Home Base) too: his old spot (52 px + the panel's width + 40 px from the right)
     landed on the room's content, and his full figure ran over the demo's caption in Review ("...not your profi"). The bust,
     bottom right by the rail, where no room keeps a caption or a control */
  body:not(.tour-on) #atlas:not(.big):not(.moved) { right:64px; bottom:14px }
  body:not(.tour-on) #atlas:not(.big) .rig { overflow:hidden; border-radius:50% }
  body.room-trade:not(.ck):not(.tour-on) #atlas.lane-off:not(.big) { opacity:0 !important; visibility:hidden }
  /* (design quick win 2026-11-11) the resting bust sat over the last card's header ("Active Profile"): while it rests there
     the panel keeps its own strip at the bottom for him (a border in the panel's color, tall enough for his name above him: never scrolled under), so every card
     ends above him. Gone again while a card shows in the lane (he steps aside), or once he's dragged elsewhere / closed */
  body.room-trade:not(.ck):not(.tour-on):has(#atlas.show:not(.lane-off):not(.big):not(.moved):not(.off)) #tpanel { border-bottom:126px solid var(--c-panel) }
}
@media (max-width:760px) {
  body.room-trade:not(.ck) #stage > #alert:not(.open) { top:var(--albar-t, 44px); bottom:auto; left:8px; right:8px; width:auto; max-height:none; overflow:hidden; padding:5px 8px 5px 10px; cursor:pointer;
    display:flex; align-items:center; gap:8px; min-height:34px; box-sizing:border-box; z-index:30 }   /* its own thin row under the clock row: never over the Home Base | Chart switch */
  body.room-trade:not(.ck) #stage > #alert:not(.open) > :not(.ttl):not(h2) { display:none }
  body.room-trade:not(.ck) #stage > #alert:not(.open) > h2 { order:2; margin:0; flex:none } body.room-trade:not(.ck) #stage > #alert:not(.open) > h2 > span { display:none }
  body.room-trade:not(.ck) #stage > #alert:not(.open) > .ttl { order:1; flex:1; min-width:0; margin:0; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block }
  body.room-trade:not(.ck) #stage > #alert.open { top:var(--albar-t, 44px); bottom:auto; max-height:60vh; z-index:30 }
  body.cooloff { --albar-t:90px } body.cooloff.cooloff-auto { --albar-t:124px }   /* the switch follows the cool-off bar down; so does the alert row */
  /* (hunt 2026-11-11 #13) the hourly story: the same one-line bar (it sat at the chart's bottom over the candles); a tap opens it */
  body.room-trade:not(.ck) #stage > #story:not(.open) { top:var(--albar-t, 44px); bottom:auto; left:8px; right:8px; width:auto; max-height:none; overflow:hidden; padding:5px 8px 5px 10px; cursor:pointer;
    display:flex; align-items:center; gap:8px; min-height:34px; box-sizing:border-box; z-index:30 }
  body.room-trade:not(.ck) #stage > #story:not(.open) > :not(.txt):not(h2) { display:none }
  body.room-trade:not(.ck) #stage > #story:not(.open) > h2 { order:2; margin:0; flex:none } body.room-trade:not(.ck) #stage > #story:not(.open) > h2 > span { display:none }
  body.room-trade:not(.ck) #stage > #story:not(.open) > .txt { order:1; flex:1; min-width:0; margin:0; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block }
  body.room-trade:not(.ck) #stage > #story:not(.open) > .txt * { display:inline }
  body.room-trade:not(.ck) #stage > #story.open { top:var(--albar-t, 44px); bottom:auto; max-height:60vh; z-index:30 }
}
.al-say, .vcap.lane { display:flex; align-items:flex-start; gap:8px }
.al-say { margin:-2px 0 8px; padding:0 0 8px; border-bottom:1px solid var(--c-border); font:400 13px/1.4 var(--f-body); color:var(--c-text) }
.al-say, .vcap.lane { flex-wrap:wrap } .al-say .vcap-t, .vcap.lane .vcap-t { flex:1 1 calc(100% - 40px); min-width:0 }
.al-say .vcap-less, .vcap.lane .vcap-less { flex:none; font-size:12px; padding:2px 8px; margin-left:36px }   /* under the words: beside them it squeezed the line to a word a row */
.vcap.lane { flex-wrap:wrap; padding:9px 11px; border-left:3px solid var(--wm-facet, #9b72ec); font-size:13px }
.lane-av { flex:none; width:28px; height:28px; border-radius:50%; overflow:hidden; background:color-mix(in srgb, var(--wm-facet, #9b72ec) 18%, var(--c-card)); border:1px solid color-mix(in srgb, var(--wm-facet, #9b72ec) 45%, transparent) }
.lane-av > svg { display:block; width:100%; height:100%; overflow:hidden }
body:is(:not(.room-trade), .ck, .tour-on) .vcap.lane { display:none }   /* the panel's caption belongs to the Trade chart: never left over another room */
#stage::after { inset:0 var(--rp) var(--sbh) var(--dtw); box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--c-down) 60%, transparent), inset 0 0 46px color-mix(in srgb, var(--c-down) 25%, transparent) }
#dbar { left:calc(var(--dtw) + (100% - var(--dtw) - var(--rp)) / 2) }
#key svg line[stroke="#673ab7"], #key_ict svg line[stroke="#673ab7"] { stroke:var(--level) } #key svg line[stroke="#7c7772"] { stroke:var(--half) }
/* the trade panel */
#tpanel { position:absolute; top:0; right:0; bottom:0; width:var(--rp); z-index:6; display:flex; flex-direction:column; gap:10px; padding:10px;
  background:var(--c-panel); border-left:1px solid var(--c-border); overflow-y:auto; color:var(--c-text) }
.tp-card { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:12px; flex:none; transition:border-color var(--t-med) var(--ease) }
.tp-h { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
/* Stream Mode (owner 2026-10-27): the screen he can show viewers. The private cards, the money and the tools give way to
   "Atlas on air": Atlas himself, what he just said as a caption, the plain state and the call to action */
#onair { display:none }
body.stream #onair { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center }
body.stream :is(#cpcard, #tkcard, #propcard, #mod_profile, #mod_today, #propchip, #lockchip, #planchip, #guard, #acct_w, #bt_clean, #bt_disc) { display:none !important }
body.stream-lv :is(#alert, #story)[data-mentor="levels"] { display:none !important }   /* his level prices are in their text */
/* the rail stays for the features worth showing (owner 2026-10-27: "I wanna show off the ledge / games"): the Ledge, Sound
   and More (Games, the 60-second demo). Off it: Ask (answers from his own data), Chat and the Room (other people's
   messages), Phone (its pairing code), his account and Settings */
body.stream :is(#askbtn, #chatbtn, #roombtn, #phonebtn, #rm_acct, #rm_set, #newacct) { display:none !important }
#onair .tp-h { width:100%; margin-bottom:0 }
.oa-live { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; border:1px solid rgba(255,90,95,.55); background:rgba(255,90,95,.12);
  color:#ff7a7e; font:700 10.5px var(--f-body); letter-spacing:.08em; cursor:pointer }
.oa-live i { width:8px; height:8px; border-radius:50%; background:#ff5a5f; animation:lpulse 1.6s ease-in-out infinite }
.oa-rig { width:min(100%, 220px); aspect-ratio:544 / 560 } .oa-rig > svg { width:100%; height:100%; display:block }
.oa-state { font:700 13px var(--f-body); letter-spacing:.08em; text-transform:uppercase; padding:4px 14px; border-radius:999px; border:1px solid var(--c-border); color:var(--c-muted) }
.oa-state[data-v="clear"] { color:var(--up, #2fbf71); border-color:currentColor } .oa-state[data-v="caution"] { color:#f5b54a; border-color:currentColor }
.oa-state[data-v="stop"] { color:#ff5a5f; border-color:currentColor }
.oa-cap { margin:0; min-height:3.6em; font:600 16px/1.35 var(--f-body); color:var(--c-text) } .oa-cap.said::before { content:"Atlas: "; color:var(--c-accent, #8b6cf6) }
.oa-cap:not(.said) { font-weight:400; font-size:13.5px; color:var(--c-muted) }
#tr_place { position:sticky; bottom:-16px; z-index:3; margin:0 -16px -16px; padding:12px 16px 16px; background:var(--c-panel, var(--panel)); border-top:1px solid var(--c-border); box-shadow:0 -10px 24px rgba(0,0,0,.28) }
#tr_onair { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center } #tr_onair[hidden] { display:none }
#tr_onair .tp-h { width:100%; margin-bottom:0 } .tr-oa-rig { width:min(100%, 150px) }
#tr_onair .oa-cap { height:5.4em; margin:0; display:block; overflow:hidden; font:700 15px/1.35 var(--f-body); color:var(--c-text) }   /* fixed: a long line never moves the buttons below (the recording frame) */ #tr_onair .oa-cap.said::before { content:"Atlas: "; color:#ff8a2a }
#tr_onair, #onair.roast { background:radial-gradient(120% 80% at 50% 0%, rgba(255,120,40,.22), transparent 60%), var(--c-card, #16121c); border-color:rgba(255,120,40,.45) }
#tr_onair .oa-live, #onair.roast .oa-live { border-color:rgba(255,140,40,.7); background:rgba(255,120,40,.16); color:#ffb35c } #tr_onair .oa-live i, #onair.roast .oa-live i { background:#ff8a2a }
#tr_onair .oa-state, #onair.roast .oa-state { color:#ff8a2a; border-color:#ff8a2a; box-shadow:0 0 18px rgba(255,120,40,.35) }
#onair.roast .oa-cap.said { font-weight:700; font-size:17px } #onair.roast .oa-cap.said::before { color:#ff8a2a } #onair.roast .oa-foot span, #tr_onair .oa-foot span { color:#ffb35c }
.oa-meter { width:100%; display:grid; gap:5px; font:700 11.5px var(--f-body); letter-spacing:.08em; color:var(--c-muted); text-transform:uppercase } .oa-meter[hidden] { display:none }
.oa-meter .bar { height:10px; border-radius:6px; background:rgba(255,255,255,.08); overflow:hidden }
.oa-meter .bar i { display:block; height:100%; width:0; background:linear-gradient(90deg, #f5b54a, #ff8a2a 55%, #ff3d3d); transition:width .6s ease }
.oa-meter .row { display:flex; justify-content:space-between } .oa-meter .row b { color:#ff5a3d }
.oa-foot { display:flex; flex-direction:column; gap:2px; padding-top:8px; border-top:1px solid var(--c-border); width:100% }
.oa-foot b { font:800 20px var(--f-body); letter-spacing:.01em; color:var(--c-text) } .oa-foot span { font-size:12.5px; color:var(--c-muted) }
/* Showcase Look (owner 2026-10-28, A + C: "really show everything off"): Atlas Watch, the live checklist of what Atlas
   keeps an eye on (counts and words, never money), and the "Atlas caught it" card over the chart when a warning fires */
.sc-list { width:100%; display:grid; gap:6px; text-align:left } .sc-list[hidden] { display:none }
.sc-row { display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:10px; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07); font:600 13px var(--f-body); color:var(--c-text); min-width:0 }
.sc-row i { width:21px; height:21px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:12px; flex:none; background:rgba(255,255,255,.08); color:var(--c-muted) }
.sc-row.ok i { background:rgba(52,209,174,.16); color:#34d1ae } .sc-row.warn i { background:rgba(245,181,74,.18); color:#f5b54a }
.sc-row.warn { border-color:rgba(245,181,74,.35) }
.sc-row > span:not(.sc-pips) { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis } .sc-row > b { flex:none; font-weight:700; color:var(--c-muted); font-size:12px }
.sc-pips { display:flex; gap:4px; flex:none } .sc-pips u { width:14px; height:6px; border-radius:3px; background:rgba(255,255,255,.13); text-decoration:none }
.sc-pips u.on { background:#8b6cf6 } .sc-row.warn .sc-pips u.on { background:#f5b54a }
#oa_catch { position:absolute; left:calc(var(--dtw, 44px) + 18px); top:62px; z-index:40; width:min(440px, calc(100% - var(--rp, 272px) - var(--dtw, 44px) - 40px));
  padding:15px 18px; border-radius:16px; color:#fff; background:linear-gradient(160deg, rgba(48,22,30,.96), rgba(28,16,40,.96));
  border:1px solid rgba(255,140,90,.55); box-shadow:0 14px 50px rgba(0,0,0,.5), 0 0 30px rgba(255,120,80,.18); font-family:var(--f-body); pointer-events:none }
#oa_catch[hidden] { display:none } #oa_catch.in { animation:oaCatchIn .35s cubic-bezier(.2,.9,.3,1.2) }
@keyframes oaCatchIn { from { opacity:0; transform:translateY(-14px) scale(.97) } to { opacity:1; transform:none } }
#oa_catch .k { display:flex; align-items:center; gap:8px; font:800 11.5px var(--f-body); letter-spacing:.16em; text-transform:uppercase; color:#ff9b6a }
#oa_catch h3 { margin:7px 0 6px; font:800 24px/1.15 var(--f-body); color:#fff } #oa_catch p { margin:0; font:500 15px/1.4 var(--f-body); color:#f1e6ff }
#oa_catch .f { margin-top:11px; display:flex; justify-content:space-between; gap:10px; font:600 12px var(--f-body); color:#c8b6f0 }
@media (prefers-reduced-motion:reduce) { #oa_catch.in { animation:none } }
/* the vertical window (?vert=1, for OBS / reels): the page itself is 9:16 - the chart on top, Atlas Watch bottom left, a slot
   for his webcam bottom right, the catch card over the chart. Laid out at 540 x 960 and zoomed to the window (vertFit), so
   an OBS Browser Source at 1080 x 1920 is sharp. No header, rail, tools, toasts or dialogs; it never speaks */
body.vert > header, body.vert > #rail, body.vert #demo_vig, body.vert :is(.modal-bg, .ptoast, #sample_bar, #navhint, #envpop) { display:none !important }
html:has(body.vert), body.vert { background:#07060b !important }
body.vert #stage { position:fixed !important; inset:auto !important; left:50% !important; top:0 !important; width:540px !important; height:960px !important;
  transform:translateX(-50%); overflow:hidden; background:var(--c-bg) }
body.vert #stage > *:not(#chart):not(#ovc):not(#tpanel):not(#oa_catch):not(#vert_cam):not(#vert_note) { display:none !important }
body.vert #ovc { position:absolute !important; left:0 !important; top:0 !important; right:auto !important; bottom:auto !important; width:100% !important; height:56% !important }
body.vert #chart { position:absolute !important; left:0 !important; top:0 !important; right:auto !important; bottom:auto !important; width:100% !important; height:56% !important }
body.vert #tpanel { position:absolute !important; left:0 !important; top:56% !important; right:auto !important; bottom:0 !important; width:54% !important; padding:8px !important; border:0 !important; overflow:hidden !important }
body.vert.nocam #tpanel { width:100% !important }
body.vert #onair { flex:1 1 auto !important; gap:7px !important; padding:10px 10px 9px !important; justify-content:flex-start; min-height:0 }
body.vert #oa_rig { width:84px !important; height:84px !important; flex:none } body.vert #oa_rig > svg { width:84px !important; height:84px !important }
body.vert .oa-state { padding:3px 14px; font-size:12.5px } body.vert .sc-list { gap:5px } body.vert .sc-row { padding:6px 9px; font-size:12.5px }
body.vert .oa-cap { min-height:0; font-size:14px } body.vert .oa-cap:not(.said) { display:none }
body.vert .oa-foot { margin-top:auto; padding-top:6px } body.vert .oa-foot b { font-size:17px } body.vert .oa-foot span { display:none }
body.vert #oa_catch { left:12px; right:12px; width:auto; top:48px } body.vert #oa_catch h3 { font-size:22px }
#vert_note { display:none } body.vert #vert_note:not([hidden]) { display:block; position:absolute; left:24px; right:24px; top:22%; z-index:30; padding:16px 18px;
  border-radius:14px; background:rgba(25,18,40,.92); border:1px solid rgba(139,108,246,.45); color:#f1e6ff; font:600 15px/1.45 var(--f-body); text-align:center }
#vert_cam { display:none } body.vert:not(.nocam) #vert_cam { display:grid; position:absolute; right:8px; top:calc(56% + 8px); bottom:8px; width:calc(46% - 16px);
  place-items:center; border:1px dashed rgba(182,156,242,.28); border-radius:14px; color:rgba(182,156,242,.5); font:600 12px var(--f-body) }
.tp-sub { font:400 11px var(--f-body); letter-spacing:0; text-transform:none; color:var(--c-faint); text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.tp-h > span:first-child { white-space:nowrap; flex:none }
#tk_sub { white-space:normal; overflow:visible; line-height:1.3 }   /* (layout hunt 2026-11-10) "logs only, never sends orders" was cut to "never sends ord..." on a 1280-1440 laptop: it wraps */
.tp-why { font-size:13px; line-height:1.45; color:var(--c-text) }
.tip-w { text-decoration:underline dotted; text-underline-offset:3px; cursor:help }
.tlr-q { display:inline-grid; place-items:center; width:16px; height:16px; border-radius:50%; border:1px solid currentColor; font-size:11px; line-height:1; text-decoration:none; color:var(--c-muted); vertical-align:1px; margin-left:2px }
.tlr-q:hover, .tlr-q:focus-visible { color:var(--c-accent) }
/* (new-trader test F7, 11-14) under a Stop / Caution / Pause: the read-only promise, quiet and grey */
.v-adv { margin:2px 0 0; font-size:12.5px; line-height:1.4; color:var(--c-muted) } .v-adv[hidden] { display:none }
.cp-learn { margin-top:4px; font-size:11.5px; line-height:1.4; color:var(--c-muted) } .cp-learn[hidden], body.tour-on .cp-learn { display:none }
/* Chart layout: the tough-day note on the co-pilot card (2026-10-19) */
.cp-tough { display:flex; flex-direction:column; gap:5px; margin-top:10px; padding:9px 11px; border-left:3px solid var(--calm); border-radius:0 var(--r-ctl) var(--r-ctl) 0; background:color-mix(in srgb, var(--calm) 10%, var(--c-card)) }
.cp-tough[hidden] { display:none }
.cp-tough .cp-th { font:600 15px var(--f-body); color:color-mix(in srgb, var(--calm) 70%, var(--c-text)) }
.cp-tough .cp-youl { font:600 10.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
.cp-tough blockquote { margin:0; font:500 14px/1.45 var(--f-body); color:var(--c-text); white-space:pre-line; overflow-wrap:anywhere; max-height:220px; overflow-y:auto }
.cp-tough .cp-tl { font:500 12.5px var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums } .cp-tough .cp-tn { font-size:13px; color:var(--c-muted) } .cp-tough .cp-tn a { color:var(--c-text) }
.cp-tough .cp-ta { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px } .cp-tough .cp-ta button { padding:4px 10px; font-size:12.5px }
/* (mm-pass C) the running MyMentor's real state: paused / degraded / waiting is said, never a silent "watching" */
.mm-hl { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:9px; font:600 11px/18px var(--f-body); color:var(--c-warn); border:1px solid color-mix(in srgb, var(--c-warn) 45%, var(--c-border)); white-space:nowrap; max-width:220px; overflow:hidden; text-overflow:ellipsis; vertical-align:middle }
.mm-hl[data-st="paused"] { color:var(--c-down); border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)) }
.mm-hl-note { color:var(--c-warn) } .mm-hl-note[data-st="paused"] { color:var(--c-down) }
#cpcard.tough { border-color:color-mix(in srgb, var(--calm) 45%, var(--c-border)) }
#cpcard.v-caution { border-color:color-mix(in srgb, var(--c-warn) 38%, var(--c-border)) } #cpcard.v-stop { border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)) }
#tkcard .bs { gap:8px }
/* (design review 2026-11-10 #2) practice / by-hand buttons: neutral outlined grey, no red / green, no price (not an order ticket) */
#tkcard .bs button.buy, #tkcard .bs button.sell { background:transparent; border-color:var(--c-border-strong); color:var(--c-text); letter-spacing:0; padding:9px 8px; font:600 13px var(--f-body) }
#tkcard .bs button.buy:hover, #tkcard .bs button.sell:hover { background:var(--c-raised); border-color:var(--c-muted) }
#tkcard .bs > #tk_sub { grid-column:1 / -1; margin:2px 0 0; text-align:center; white-space:normal }
#tkfab { display:none }
.bs button { padding:9px 8px 8px; border:1px solid; border-radius:var(--r-ctl); font:600 13px var(--f-body); letter-spacing:.06em; display:grid; gap:3px; line-height:1.15; filter:none }
.bs .sell { background:color-mix(in srgb, var(--c-down) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-down) 45%, transparent); color:var(--c-down) }
.bs .buy { background:color-mix(in srgb, var(--c-up) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-up) 45%, transparent); color:var(--c-up) }
.bs .sell:hover { background:color-mix(in srgb, var(--c-down) 22%, var(--c-card)); border-color:var(--c-down) }
.bs .buy:hover { background:color-mix(in srgb, var(--c-up) 22%, var(--c-card)); border-color:var(--c-up) }
.bs button:hover { filter:none } .bs button small { font:500 13px var(--f-num); letter-spacing:0; color:var(--c-text); opacity:1; font-variant-numeric:tabular-nums }
#tpanel #ticket { width:auto; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:12.5px }
#ticket .hd { font:600 11.5px var(--f-body); letter-spacing:.06em }
#ticket .qty { font:500 24px var(--f-num); margin:8px 0 4px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-variant-numeric:tabular-nums }
#ticket .qty small { font:400 12px var(--f-body); color:var(--c-muted) }
#ticket .rows { gap:3px 10px; margin-top:6px; color:var(--c-muted) } #ticket .rows b { color:var(--c-text); font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
#ticket input { width:76px; padding:3px 7px; font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums } #ticket select { padding:3px 6px; font-size:12.5px }
#ticket .row2 { margin-top:10px } #ticket .row2 button { padding:7px 8px; font-size:13px }
#ticket .go { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent) }
#ticket .pnl { font:500 22px var(--f-num); font-variant-numeric:tabular-nums } #ticket .warn { color:var(--c-down) } #ticket .hint { color:var(--c-faint) }
#ticket .tk-x { color:var(--c-faint) } #ticket .tk-x:hover { color:var(--c-text) }
/* the position card read from NinjaTrader (2026-10-21): no buttons, no inputs - TiltLab only reads it */
#ntpos { font-size:12.5px }
#ntpos .hd { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase }
#ntpos .hd .meta { text-transform:none; letter-spacing:0; font-weight:400; color:var(--c-faint) }
#ntpos .rows { display:grid; grid-template-columns:auto 1fr; gap:3px 10px; margin-top:6px; color:var(--c-muted) }
#ntpos .rows b { color:var(--c-text); font:500 12.5px var(--f-num); text-align:right; font-variant-numeric:tabular-nums }
/* one line per row in the narrow card (owner 2026-10-26): stop + points, target + R, open P&L pts · R · $ never wrap; the label
   is a short "open P&L" (gross is in its tooltip and the hint) so the longest value fits a 250 px card */
#ntpos .rows span { white-space:nowrap } #ntpos .rows b { white-space:nowrap; min-width:0 }
#ntpos .rows b.np-no { color:var(--c-down); font:600 12.5px var(--f-body) } #ntpos .rows b.np-none { color:var(--c-faint); font:400 12.5px var(--f-body) }
#ntpos .np + .np { margin-top:10px; padding-top:8px; border-top:1px solid var(--c-border) }
#ntpos .hint { color:var(--c-faint); font-size:11.5px; margin-top:6px }
#ntpos .rows b.up { color:var(--c-up) } #ntpos .rows b.down { color:var(--c-down) }
#ck_ps .ck-bal { display:block; margin:3px 0 2px; font-size:13.5px; line-height:1.3; color:var(--c-muted); text-transform:none; letter-spacing:0; font-weight:400 }
#ck_ps .ck-bal b { font:600 19px/1.2 var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums } #ck_ps .ck-bal small { color:var(--c-faint); font-size:11.5px }
#ck_ps .ck-bal .ck-bala { font-size:12.5px; color:var(--c-faint) } #ck_ps .ck-balf { margin:2px 0 6px }
#ck_ps[data-fit="s"] .ck-bal b { font-size:16px }
#ck_ps .ck-np + .ck-np { margin-top:10px; padding-top:8px; border-top:1px solid var(--c-border) } #ck_ps .ck-np .ck-acct { font-size:11.5px; color:var(--c-faint); margin-left:6px; text-transform:none; letter-spacing:0; font-weight:400 }
#ck_ps .ck-rows b.np-no { color:var(--c-down) } #ck_ps .ck-rows b.np-none { color:var(--c-faint); font-weight:400 }
#ticket .rows b small { color:var(--c-faint); font:400 11.5px var(--f-num); font-variant-numeric:tabular-nums } #ticket .rows input { width:92px }
.pcheck { border-radius:var(--r-ctl); padding:8px 10px; background:var(--c-raised); border:1px solid var(--c-border) }
.pcheck.clear { border-color:color-mix(in srgb, var(--c-up) 32%, var(--c-border)) }
.pcheck.caution { background:color-mix(in srgb, var(--c-warn) 11%, var(--c-card)); border-color:color-mix(in srgb, var(--c-warn) 38%, transparent) }
.pcheck.stop { background:color-mix(in srgb, var(--c-down) 11%, var(--c-card)); border-color:color-mix(in srgb, var(--c-down) 42%, transparent) }
.pcheck .vd { font:600 11.5px var(--f-body) }
#propcard .rn-line { margin:2px 0 0; font:500 13.5px/1.45 var(--f-body); color:var(--c-text) } #propcard .rn-sub { margin:0; font-size:12.5px; line-height:1.45; color:var(--c-muted) }
#propcard .rn-line .up { color:var(--c-up) } #propcard .rn-line .down { color:var(--c-down) } #tkcard[hidden] { display:none }
#propcard .pc-row { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:12.5px; color:var(--c-muted); padding:2px 0 }
#propcard .pc-row b { color:var(--c-text); font:500 13.5px var(--f-num); white-space:nowrap; font-variant-numeric:tabular-nums } #propcard .pc-row b.up { color:var(--c-up) } #propcard .pc-row b.down { color:var(--c-down) }
#propcard.bad { border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)) }
/* (2026-11-03) the right panel redesign: the balance is the card's hero, the room today a pill under it, the firm's rules as
   rows (dim labels, bright numbers), the trailing floor in a tinted box. --glow (1 dark, 0 light): the neon on the accents */
#propcard :is(.rn-bal, .rn-room, .rn-rm)[hidden], #mod_profile[hidden], #mod_today[hidden], #ck_prof[hidden] { display:none }
/* (owner 2026-11-03) Home Base's Today's Guard carries the Active profile under the room: the card's own padding, no inner box */
#ck_gd .ck-prof { margin:10px 0 6px; border:1px solid var(--c-border); border-radius:10px }
#ck_gd .ck-prof > summary { padding:8px 10px } #ck_gd .ck-prof .mp-rows { padding:0 10px } #ck_gd .ck-prof .mp-src { margin:8px 10px 9px }
#propcard .rn-bal, #ck_bal { display:grid; gap:1px; margin:0 0 10px } #propcard.hero-acct #pc_acct, #ck_gd.hero-acct #ck_acct { display:none }
#ck_bal[hidden] { display:none }
:is(#propcard, #ck_gd) .rn-bl { font:600 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-faint) }
:is(#propcard, #ck_gd) .rn-bl span { text-transform:none; letter-spacing:0; font-weight:400 }
:is(#propcard, #ck_gd) .rn-hb { display:flex; align-items:center; gap:8px; min-width:0 }
:is(#propcard, #ck_gd) .rn-hv { font:700 26px/1.2 var(--f-num); letter-spacing:-.01em; color:var(--c-text); font-variant-numeric:tabular-nums; white-space:nowrap }
:is(#propcard, #ck_gd) .rn-hb.many .rn-hv { font-size:19px }
:is(#propcard, #ck_gd) .rn-badge { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:2px 8px; border:1px solid var(--c-border-strong); border-radius:999px;
  background:var(--c-raised); font:600 11px/1.5 var(--f-body); color:var(--c-muted) }
#propcard .rn-room { margin:0 0 8px; padding:8px 10px 9px; border-radius:10px; border:1px solid color-mix(in srgb, var(--c-up) 34%, var(--c-border));
  background:color-mix(in srgb, var(--c-up) 7%, var(--c-card)); --rn-c:var(--c-up) }
#propcard.warn .rn-room { border-color:color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 8%, var(--c-card)); --rn-c:var(--c-warn) }
#propcard.bad .rn-room, #propcard .rn-room.bad { border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-down) 9%, var(--c-card)); --rn-c:var(--c-down) }
#propcard .rn-rt { display:flex; justify-content:space-between; align-items:baseline; gap:8px }
#propcard .rn-rl { font:600 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted); white-space:nowrap }
#propcard .rn-rv { font:700 16px var(--f-num); color:var(--rn-c); font-variant-numeric:tabular-nums; text-align:right;
  text-shadow:0 0 calc(var(--glow, 0) * 10px) color-mix(in srgb, var(--rn-c) 45%, transparent) }
#propcard .rn-rm { margin-top:2px; font-size:12px; line-height:1.4; color:var(--c-muted) }
#propcard .rn-firm { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; margin:8px 0 0 }   /* minmax: a long account name is cut with "...", never widens the box past the card (hunt 2026-11-08) */
#propcard .rn-firm :is(.fr-row, .fr-box) { padding:7px 10px; border:1px solid var(--c-border-strong); border-radius:10px; color:var(--c-muted); font-weight:400 }
#propcard .rn-firm .fr-box { border-color:color-mix(in srgb, var(--c-accent) 32%, var(--c-border)); background:color-mix(in srgb, var(--c-accent) 8%, var(--c-card)) }
#propcard .rn-firm .fr-lab { display:flex; gap:6px; align-items:baseline; font:600 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-faint) }
#propcard .rn-firm .fr-acct { text-transform:none; letter-spacing:0; font-weight:500; color:var(--c-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#propcard .rn-firm .fr-acct { display:inline-flex; min-width:0; align-items:baseline; gap:4px }
#propcard .rn-firm .fr-an { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#propcard .rn-firm .fr-at { flex:none; color:var(--c-text); font-family:var(--f-num, monospace) }
#propcard .rn-firm .fr-ld { flex:none; padding:0 5px; border-radius:4px; font:700 9.5px/15px var(--f-body); letter-spacing:.05em; text-transform:uppercase; color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent) }
#propcard .rn-firm .fr-kv { display:flex; align-items:center; gap:6px; margin-top:3px; font-size:12.5px }
#propcard .rn-firm .fr-kv b { margin-left:auto; font:600 14px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums; white-space:nowrap }
#propcard .rn-firm .fr-note { margin-top:2px; font-size:11.5px; line-height:1.4; color:var(--c-faint) }
#propcard .rn-firm .fr-bt { margin-top:3px; font-size:12.5px; line-height:1.45 } #propcard .rn-firm .fr-bt b { font:600 12.5px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums }
#propcard .rn-firm .fr-row.fr-warn { border-color:color-mix(in srgb, var(--c-warn) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 7%, var(--c-card)) }
#propcard .rn-firm .fr-row.fr-warn .fr-kv b { color:var(--c-warn) }
#propcard .rn-firm .fr-box.fr-warn { border-color:color-mix(in srgb, var(--c-warn) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 9%, var(--c-card)) }
#propcard .rn-firm .fr-line { font-size:12px; line-height:1.4; color:var(--c-muted) } #propcard .rn-firm .fr-line.fr-warn { color:var(--c-warn) }
/* the status accents: crisp, a little neon on the dark theme (nothing on the light one) */
#tpanel .vbadge::before { box-shadow:0 0 calc(var(--glow, 0) * 7px) currentColor }
#tpanel .vbadge:is(.v-clear, .v-caution, .v-stop) { box-shadow:0 0 calc(var(--glow, 0) * 10px) color-mix(in srgb, currentColor 22%, transparent) }
#propcard .rn-safe { box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c-down) 22%, transparent), -2px 0 calc(var(--glow, 0) * 10px) color-mix(in srgb, var(--c-down) 45%, transparent) }
/* "Why?" in the right panel: a small round info icon (the same button, the same popover) */
:is(#tpanel, #cockpit) .why-b { width:17px; height:17px; padding:0; margin:0 0 0 6px; justify-content:center; flex:none; border-radius:50%; border-color:var(--c-border-strong);
  color:var(--c-faint); font:italic 700 11px/1 Georgia, "Times New Roman", serif; vertical-align:-3px }
:is(#tpanel, #cockpit) .why-b::after { content:"i" }
:is(#tpanel, #cockpit) .why-b { position:relative } :is(#tpanel, #cockpit) .why-b::before { content:""; position:absolute; inset:-4px; border-radius:50% }
:is(#tpanel, #cockpit) .why-b:hover, :is(#tpanel, #cockpit) .why-b:focus-visible { border-color:var(--c-muted) }
:is(#tpanel, #cockpit) .why-b:hover, :is(#tpanel, #cockpit) .why-b:focus-visible, :is(#tpanel, #cockpit) .why-b[aria-expanded="true"] { color:var(--c-text) }
/* the blocks under the cards (Active profile): folded to one summary line until the trader opens one */
.tp-mod { padding:0 }
.tp-mod > summary { display:flex; align-items:center; gap:8px; padding:10px 12px; cursor:pointer; list-style:none; border-radius:var(--r-card) }
.tp-mod > summary::-webkit-details-marker { display:none }
.tp-mod > summary::before { content:"\25B8"; flex:none; font-size:11px; color:var(--c-faint); transition:transform var(--t-fast) var(--ease) }
.tp-mod[open] > summary::before { transform:rotate(90deg) }
.tp-mod > summary:hover .tp-mt { color:var(--c-text) }
.tp-mod > summary { transition:background-color var(--t-fast) var(--ease) } .tp-mod > summary:hover { background:var(--c-raised) }
.tp-mod .tp-mt { transition:color var(--t-fast) var(--ease) }
.tp-mod .tp-mt { flex:none; font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
.tp-mod .tp-ms { min-width:0; margin-left:auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--c-faint) }
.tp-mod[open] .tp-ms { display:none }
.mp-rows { display:grid; grid-template-columns:auto 1fr; gap:5px 12px; margin:0; padding:0 12px; font-size:12.5px }
.mp-rows dt { color:var(--c-muted) } .mp-rows dd { margin:0; text-align:right; color:var(--c-text); font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
.md-body { padding:0 12px 11px }
.md-bar { display:flex; align-items:center; height:8px; border-radius:99px; overflow:hidden; background:var(--c-raised) }
.md-bar i { display:block; height:100%; flex:none; transition:width var(--t-med) var(--ease) }
.md-bar .md-room { background:color-mix(in srgb, var(--c-up) 30%, var(--c-raised)) }
#mod_today.warn .md-room { background:color-mix(in srgb, var(--c-warn) 34%, var(--c-raised)) } #mod_today.bad .md-room { background:color-mix(in srgb, var(--c-down) 34%, var(--c-raised)) }
.md-bar .md-lost { background:var(--c-down); box-shadow:0 0 calc(var(--glow, 0) * 8px) var(--c-down) }
.md-bar .md-zero { width:2px !important; background:var(--c-text); opacity:.75 }
.md-bar .md-prof { background:var(--c-up); box-shadow:0 0 calc(var(--glow, 0) * 8px) var(--c-up) }
.md-kv { display:flex; justify-content:space-between; gap:8px; margin-top:7px; font-size:12px; color:var(--c-muted) }
.md-kv b { font:600 12.5px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums } .md-kv b.up { color:var(--c-up) } .md-kv b.down { color:var(--c-down) }
.mp-src { margin:8px 12px 10px; font-size:11px; line-height:1.4; color:var(--c-faint) }
/* the bottom strip */
#bstrip { position:absolute; left:var(--dtw); right:var(--rp); bottom:0; height:var(--sbh); z-index:6; display:flex; align-items:stretch; gap:2px; padding:0 10px;
  background:var(--c-panel); border-top:1px solid var(--c-border); font-size:12.5px; white-space:nowrap; overflow:hidden }
#bstrip .bt-l { align-self:center; margin-right:8px; font:600 10.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-faint) }
#bstrip button { border:0; border-radius:0; background:transparent; padding:0 11px; color:var(--c-muted); font:500 12.5px var(--f-body); border-bottom:2px solid transparent; border-top:2px solid transparent }
#bstrip button:where(:hover) { background:transparent; color:var(--c-text) }
#bstrip button[aria-pressed="true"] { color:var(--c-text); border-bottom-color:var(--c-accent) }
#bstrip .bt-s { align-self:center; margin-left:16px; color:var(--c-muted) } #bstrip .bt-s b { margin-left:5px; color:var(--c-text); font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
/* Today's log docks above the strip on a PC (it was a side panel) */
@media (min-width:761px) {
  body #drawer { top:auto; left:var(--dtw); right:calc(52px + var(--rp)); bottom:var(--sbh); width:auto; height:min(340px, 46vh); border-left:0; border-top:1px solid var(--c-border-strong);
    border-radius:12px 12px 0 0; background:var(--c-panel); box-shadow:0 -14px 34px rgba(0,0,0,.28); overflow:hidden }
  body:is(.h-drawer, #drawer:not([hidden])) #empty { padding:0 0 min(340px, 46vh) 0 }
  body:is(.h-social, #social:not([hidden])) #empty { padding:0 calc(420px - var(--rp)) 0 16px }
  body:is(.h-askd, #askd:not([hidden])) #empty { padding:0 calc(440px - var(--rp)) 0 16px }
}
#social, #drawer, #askd, #mmd, #mk_drawer, #phoned { background:var(--c-panel); border-color:var(--c-border); box-shadow:-12px 0 32px rgba(0,0,0,.25) }
.dh, .ask-h, .ask-f, #phoned .ph-h, #mmd .mh { border-color:var(--c-border) }
.li { border-bottom-color:var(--c-border) } .sum, .filters { border-bottom-color:var(--c-border) }
.filters button { background:transparent; border-color:var(--c-border-strong) } .filters button[aria-pressed="true"] { border-color:var(--c-accent); color:var(--c-text); background:color-mix(in srgb, var(--c-accent) 12%, transparent) }
/* cool-off banner, co-pilot flash, sample-day banner */
#ledge_bar { background:color-mix(in srgb, var(--calm) 14%, var(--c-panel)); color:color-mix(in srgb, var(--calm) 70%, var(--c-text)); border-bottom:1px solid color-mix(in srgb, var(--calm) 35%, transparent); font:500 13.5px var(--f-body) }
#ledge_bar .t { font:500 17px var(--f-num); font-variant-numeric:tabular-nums }
#ledge_bar button { background:color-mix(in srgb, var(--c-card) 70%, transparent); border-color:color-mix(in srgb, var(--calm) 40%, transparent); color:inherit; border-radius:var(--r-ctl) }
#ntflash { background:var(--c-card); color:var(--c-text); border:1px solid color-mix(in srgb, var(--c-down) 40%, var(--c-border)); border-left:5px solid var(--c-down); box-shadow:var(--c-shadow); font:600 20px/1.3 var(--f-body) }
#ntflash.caution { background:var(--c-card); color:var(--c-text); border-color:color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); border-left-color:var(--c-warn) }
#ntflash .h { font:600 11px var(--f-body); color:var(--c-muted); opacity:1 }
#sample_bar { background:color-mix(in srgb, var(--c-warn) 17%, var(--c-card)); color:var(--c-text); border:1px solid color-mix(in srgb, var(--c-warn) 50%, transparent);
  box-shadow:var(--c-shadow-sm); font:500 13px/1.3 var(--f-body); padding:4px 5px 4px 12px }
@media (min-width:761px) {      /* top centre of the chart; the price box, story card and a cool-off banner make room for it */
  #sample_bar { top:calc(var(--hh, 88px) + 8px) !important; left:calc(var(--dtw) + (100% - var(--dtw) - var(--rp) - 52px) / 2) }
  body.cooloff #sample_bar { top:calc(var(--hh, 88px) + 48px) !important }
  body:is(.h-smpl, #sample_bar:not([hidden])) :is(#now, #story) { top:50px } body.cooloff:is(.h-smpl, #sample_bar:not([hidden])) :is(#now, #story) { top:92px }
}
#sample_bar b { color:var(--c-warn); font-weight:600; white-space:nowrap } #sample_bar small { color:var(--c-muted); opacity:1 }
#sample_bar::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--c-warn); flex:none }
#sample_bar button { border-color:color-mix(in srgb, var(--c-warn) 55%, transparent); color:var(--c-text); background:transparent }
#sample_bar button:hover, #sample_bar button:focus-visible { background:color-mix(in srgb, var(--c-warn) 18%, transparent) }
/* outside the Trade room the banner never sits on content: the open room starts below it (its own strip, --smpl-h =
   the banner's height + gaps, set by samplePlace), and drawers / panels slide OVER it (z-index under theirs) */
#sample_bar { z-index:30 }
@media (min-width:761px) {
  body:not(.room-trade):is(.h-smpl, #sample_bar:not([hidden])) #sample_bar { top:calc(var(--hh, 46px) + 6px) !important; left:calc((100% - 52px) / 2) }
  body:not(.room-trade):is(.h-smpl, #sample_bar:not([hidden])) > main[id^="room_"]:not([hidden]) { margin-top:var(--smpl-h, 46px) }
}
@media (max-width:760px) {      /* a phone: just above the bottom toolbar, and every room (Trade too) ends above it */
  /* width:max-content (overnight 2026-10-24): centred with left:50%, its shrink-to-fit width was half the screen, so
     "Leave Sample" sat on top of the label */
  #sample_bar { bottom:calc(var(--rb, 58px) + 6px) !important; width:max-content }
  body:is(.h-smpl, #sample_bar:not([hidden])) :is(#stage, main[id^="room_"]) { margin-bottom:calc(var(--rb, 58px) + var(--smpl-h, 46px)) !important }
}
/* (hunt 2026-11-11 #5) the Floor's height:100% (its own row of the page grid) ignored those margins: its bottom bar ("Ask in
   #support", the composer) ended under the Sample strip and the bottom toolbar on a phone, and below the window on a PC
   with the strip on top. Stretched by the grid instead, it ends where its margins say */
main#room_community { height:auto; align-self:stretch }
/* chart settings: the app theme row */
.cs-theme { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color:var(--c-muted); padding-bottom:10px; border-bottom:1px solid var(--c-border) }
.cs-sub { font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted); margin-bottom:-4px }
.cs-ct-h { margin-top:-4px; font-size:12px }   /* 2026-10-24: under the Chart Theme row (Match app / Light / Dark) */
/* (design #6) Chart Look: one card per look (a mini chart in its colors, the name under it, a check on the one on now) */
.cs-looks { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; min-width:0; max-width:100% }
.cs-look { position:relative; display:flex; flex-direction:column; gap:5px; padding:4px 4px 6px; border:1px solid var(--c-border); border-radius:9px; background:var(--c-panel);
  color:var(--c-muted); font:500 12px var(--f-body); text-align:center; cursor:pointer; min-width:0 }
.cs-look svg { display:block; width:100%; height:auto; aspect-ratio:120 / 72; border-radius:6px; box-shadow:inset 0 0 0 1px rgba(127,127,127,.18) }
.cs-look span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.cs-look:hover { border-color:var(--c-border-strong); color:var(--c-text) }
.cs-look[aria-pressed="true"] { border-color:var(--c-accent); box-shadow:0 0 0 1px var(--c-accent); color:var(--c-text); font-weight:600 }
.cs-look[aria-pressed="true"]::after { content:"\2713"; position:absolute; top:8px; right:8px; width:18px; height:18px; border-radius:50%; display:grid; place-items:center;
  background:var(--c-accent); color:var(--c-on-accent); font:700 11px/1 var(--f-body); box-shadow:0 1px 3px rgba(0,0,0,.35) }
.cs-sw { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; color:var(--c-text); cursor:pointer }   /* the words toggle the switch too */
.cs-card .cs-sw .switch { height:24px; min-height:0 !important; min-width:44px; flex:none }   /* the phone's 44 px button rule stretched it; the row is the 44 px target */
.cs-fold > summary { cursor:pointer; font:600 12.5px var(--f-body); color:var(--c-muted); padding:4px 0 }
.cs-fold > summary:hover { color:var(--c-text) } .cs-fold[open] > summary { margin-bottom:8px }
@media (max-width:760px) {      /* a phone: the looks as one row that scrolls sideways */
  .cs-looks { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:112px; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:6px; overscroll-behavior-x:contain }
  .cs-look { scroll-snap-align:start; min-height:44px }
  .cs-sw { min-height:44px }
}

/* ---- older rooms: cheap fixes so nothing is dark-on-dark (stage 2 restyles them) */
.rules { color:color-mix(in srgb, var(--liq) 75%, var(--ink)); background:color-mix(in srgb, var(--liq) 12%, transparent) }
.rules.ok { color:color-mix(in srgb, var(--up) 80%, var(--ink)); background:color-mix(in srgb, var(--up) 11%, transparent) }
.fomc { color:color-mix(in srgb, var(--dn) 85%, var(--ink)); background:color-mix(in srgb, var(--dn) 12%, transparent) }
#tr_info { background:color-mix(in srgb, var(--panel) 88%, transparent); color:var(--mut) }
#tr_verdict.win, #tr_verdict.good_skip { background:color-mix(in srgb, var(--up) 18%, var(--panel)); color:color-mix(in srgb, var(--up) 70%, var(--ink)) }
#tr_verdict.loss, #tr_verdict.missed { background:color-mix(in srgb, var(--dn) 16%, var(--panel)); color:color-mix(in srgb, var(--dn) 75%, var(--ink)) }
#tr_verdict { box-shadow:var(--c-shadow) }
.chk li::before { color:var(--dn) } .chk li.ok::before { color:var(--up) }
.ledger .tile .v.up, .tcard b.up { color:var(--up) } .ledger .tile .v.down, .tcard b.down { color:var(--dn) }
.tr-next { background:var(--c-accent) !important; color:var(--c-on-accent) !important }
#tr_side, .cm-main, .cm-top, .rv-exec { background:var(--c-panel) }
.cm-side, .cm-members { background:var(--c-bg) }
.mk-board { background:var(--c-card) } .mk-board th { background:var(--c-raised) }

/* ---- phones (<= 760 px): no right panel or strip; Sell / Buy and the ticket float over the top of the chart as before */
@media (max-width:760px) {
  :root { --dtw:0px; --rp:0px; --sbh:0px }
  #bstrip { display:none }
  #tpanel { top:34px; left:8px; right:8px; bottom:auto; width:auto; gap:6px; padding:0; background:transparent; border:0; overflow:visible; z-index:5 }
  #tpanel > #cpcard, #tpanel > #propcard, #tpanel > #mod_profile, #tpanel > #mod_today { display:none }
  #tkcard { background:transparent; border:0; padding:0 } #tkcard > .tp-h { display:none }
  #tpanel #ticket { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:10px 12px; box-shadow:var(--c-shadow); max-height:52vh; overflow-y:auto }
  #stage:is(.h-tkt, #ticket:not([hidden])) #tpanel { z-index:8; right:calc(var(--psw, 70px) + 4px) }
  /* the NinjaTrader position card: a card like the ticket, clear of the price axis (it sat see-through over the candles) */
  #tpanel #ntpos { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:10px 12px; box-shadow:var(--c-shadow) }
  #stage:has(#ntpos:not([hidden])) #tpanel { z-index:8; right:calc(var(--psw, 70px) + 4px) }
  .bs button { min-height:48px }
  #trade { --tt:96px; top:var(--tt) }
  body.cooloff #tpanel { top:78px } body.cooloff.cooloff-auto #tpanel { top:112px }
  body.cooloff #trade { --tt:140px; top:var(--tt) }
  #now { right:calc(var(--psw, 70px) + 6px) }
  #alert { right:8px; bottom:8px } #plan { left:8px; bottom:8px } #story { left:8px; right:8px }
  #rail { border-left:0; border-top:1px solid var(--c-border) }
  .trl { display:none }
  /* 44 px tap targets for the top bar, the bottom bar and the trade controls */
  header select, header button, header .chip, #rooms button { min-height:44px }
  #rctl select, #rctl button { min-height:44px }
  #rail .rb { min-height:48px }
  :is(#ticket, #ledge_bar, #sample_bar, #drawer) :is(button, select, input:not([type=checkbox]):not([type=radio])) { min-height:44px; min-width:44px }
  #ticket .tk-x { min-width:44px; min-height:44px }
  .modal.cs-card .seg button { min-height:44px }
  #rooms { padding:2px } #rooms button { padding:0 13px }
  #sample_bar { bottom:calc(var(--rb, 58px) + 10px) }
  #now { top:96px } body.cooloff #now { top:146px } body.cooloff.cooloff-auto #now { top:180px }
  #guard { gap:5px; padding:0 4px 0 10px; font-size:11.5px; letter-spacing:-.01em } #guard .lab { letter-spacing:.03em }
  .chip { height:auto }
  .grp, .modesw { height:auto }
  .grp > select, .grp > button, .modesw button { height:auto }
  #mentor { height:auto }
}
/* =====================================================================================================================
   2026 REVAMP, stage 2: every other room and panel on the stage 1 system (tokens, cards, type, tints), in both themes and
   on phones; the Mentor room; the members-only Floor card. Later rules override the older ones above; ids / hooks unchanged.
   ===================================================================================================================== */
:root, :root[data-theme="dark"], .cs-dark, #stage.cs-light > :is(#tpanel, #bstrip), #stage.cs-light:not(.hb-chart) > #cockpit, #stage.cs-dark #ck_chartbox { --glow:1; --or15-fill:rgba(41,98,255,.08); --news-hi:#e5484d; --news-md:#f08c2e; --level-spent:rgba(167,139,250,.3); --half-spent:rgba(138,131,152,.3); --liq-rest:rgba(224,161,78,.55) }
:root[data-theme="light"], .cs-light, #stage.cs-dark > :is(#tpanel, #bstrip), #stage.cs-dark:not(.hb-chart) > #cockpit, #stage.cs-light #ck_chartbox { --glow:0; --or15-fill:rgba(201,178,150,.3); --news-hi:#d1343a; --news-md:#d9731a; --level-spent:rgba(103,58,183,.3); --half-spent:rgba(124,119,114,.3); --liq-rest:rgba(194,122,30,.55) }
/* shared room shell: header room rules, headings, cards */
body.room-mentor #stage { display:none }
main[id^="room_"] { background:var(--c-bg) }
.rv-top h2, .mr-title h2 { font:600 20px/1.2 var(--f-body); letter-spacing:-.005em; color:var(--c-text) }
.rv-card { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:16px 18px; box-shadow:none }
.rv-card h3 { font:600 14px var(--f-body); color:var(--c-text); margin:0 0 4px } .rv-card .sub { color:var(--c-muted); font-size:12.5px }
.rv-empty { color:var(--c-muted) }
.tile { background:var(--c-card); border:1px solid var(--c-border); border-radius:10px }
.tile .l { font:500 12px var(--f-body); color:var(--c-muted) } .tile .v { font-family:var(--f-num); font-weight:500; color:var(--c-text); font-variant-numeric:tabular-nums } .tile .s { color:var(--c-faint) }
.rv-card .tile, .dna-box .tile { background:var(--c-raised); border-color:transparent }
.meta { color:var(--c-muted) }
.mmsec, .cm-sec, .cm-members h4, .mk-unranked h4 { font:600 11px var(--f-body); letter-spacing:.07em; color:var(--c-faint) }
table.days th, .bk th, .mmres th, .mkd-log th, .ex-hab th, .cm-board th, .mk-board th { font-family:var(--f-body); font-weight:600; color:var(--c-faint) }
table.days td, table.days th, .bk td, .bk th, .mmres td, .mmres th, .mkd-log td, .mkd-log th, .ex-hab td, .ex-hab th, .cm-board td, .cm-board th, .mk-board td, .mk-board th { border-bottom-color:var(--c-border) }
:is(.cm-prof, .cm-pick, .cm-m .acts, .lockveil .cta > div, .setupcard) { box-shadow:var(--c-shadow-sm) }

/* ---- Prep: check-in, checklist, limits, news, market prep; About you; Talk me off the ledge */
.scale { gap:4px } .scale button { width:38px; height:32px; padding:0; border-radius:var(--r-ctl); background:var(--c-raised); border-color:var(--c-border-strong); font:500 13px var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums }
.scale button[aria-pressed="true"] { background:color-mix(in srgb, var(--c-accent) 18%, var(--c-card)); border-color:var(--c-accent); color:var(--c-text) }
.ci label { color:var(--c-muted) } .ckl label { color:var(--c-text) }
.ci textarea, .me-form textarea, .ledge-card textarea { background:var(--c-bg); border:1px solid var(--c-border-strong); border-radius:var(--r-ctl); color:var(--c-text) }
.rules { border-radius:var(--r-ctl); border:1px solid color-mix(in srgb, var(--c-warn) 35%, transparent); background:color-mix(in srgb, var(--c-warn) 11%, var(--c-card)); color:var(--c-text) }
.rules.ok { border-color:color-mix(in srgb, var(--c-up) 32%, transparent); background:color-mix(in srgb, var(--c-up) 10%, var(--c-card)); color:var(--c-text) }
.me-form .rules { border:0; background:transparent; padding:0 }
.fomc { border:1px solid color-mix(in srgb, var(--c-down) 40%, transparent); background:color-mix(in srgb, var(--c-down) 11%, var(--c-card)); color:var(--c-text); border-radius:var(--r-ctl) }
.mk .row > span:first-child { color:var(--c-muted) }
.mk .pill { background:var(--c-raised); border:1px solid var(--c-border); color:var(--c-text); font:500 12px var(--f-num); font-variant-numeric:tabular-nums }
.mk .plan { background:var(--c-raised); border-left:3px solid var(--c-accent); border-radius:var(--r-ctl) }
.lim .a { background:var(--c-raised); border-radius:var(--r-ctl) } .lim .a b { font:500 13px var(--f-num); font-variant-numeric:tabular-nums }
.news .im.High { background:var(--c-down) } .news .im.Medium { background:var(--c-warn) } .news .fc { color:var(--c-faint) }
.imf { display:inline-grid; place-items:center; width:20px; flex:none } .imf .cal-fold { width:16px; height:13px } .imf.High { color:#e5484d } .imf.Medium { color:#f08c2e }
.pp-col { display:grid; gap:16px; align-content:start }
.pp-acts { display:flex; gap:10px; align-items:center; margin-top:12px } .pp-mt { margin-top:12px } .pp-sec { margin-top:16px }
.me-form .tag, .me-auto .ac-st .pill { background:var(--c-raised); color:var(--c-muted) }
.gap { background:var(--c-raised); border-radius:var(--r-ctl); border-left-color:var(--c-border-strong) }
.gap.confirmed, .gap.rule { border-left-color:var(--c-down) } .gap.unlisted { border-left-color:var(--c-warn) } .gap.not_seen { border-left-color:var(--c-up) }
.ins li { background:var(--c-raised); border-radius:var(--r-ctl) }
.ins li.hl { background:color-mix(in srgb, var(--c-accent) 16%, var(--c-card)); box-shadow:inset 3px 0 0 var(--c-accent) }

/* ---- Protect: prop tabs, settings row, hero tiles, check list, day log, Tradovate card */
.pr-tabs > button { background:var(--c-card); border-color:var(--c-border); color:var(--c-text) } .pr-tabs > button small { color:var(--c-muted) }
.pr-tabs > button[aria-pressed="true"] { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 10%, var(--c-card)) }
.pr-tabs > button.warn { border-left:3px solid var(--c-warn) } .pr-tabs > button.bad { border-left:3px solid var(--c-down) }
.pr-cfg label { color:var(--c-muted) }
.hero .tile.main { border-width:1px; border-color:var(--c-border-strong) } .hero .tile.main .v { font:500 34px var(--f-num); font-variant-numeric:tabular-nums }
.tile.ok { border-color:color-mix(in srgb, var(--c-up) 45%, var(--c-border)) } .tile.warn { border-color:color-mix(in srgb, var(--c-warn) 50%, var(--c-border)) }
.tile.bad { border-color:color-mix(in srgb, var(--c-down) 50%, var(--c-border)); background:color-mix(in srgb, var(--c-down) 7%, var(--c-card)) }
.meter { height:6px; border-radius:99px; background:var(--c-raised) } .meter > i { border-radius:99px; background:var(--c-accent) }
.chk li::before { color:var(--c-down) } .chk li.ok::before { color:var(--c-up) } .chk li.info::before { color:var(--c-muted) }
table.days button { color:var(--c-faint); background:transparent; border:0 } table.days button:hover { color:var(--c-down) }
.pr-legend { color:var(--c-muted) } .pr-legend i.bal { border-color:var(--c-accent) } .pr-legend i.flo { border-color:var(--c-down); border-top-style:dashed }
/* Protect overview: one tile per prop account (2026-10-18) + Linked To */
.pr-ov { display:grid; grid-template-columns:minmax(0, 1fr); gap:6px; flex:1 1 100% }
/* Accounts as rows (2026-10-21, owner: "a glance, not a dashboard"): logo letter, name + platform account, phase, ONE big
   number (what you can still lose today), a tiny status. A tap opens the detail right under the row */
.pr-ov > .pr-arow { display:grid; grid-template-columns:minmax(0, 1fr) 150px; gap:8px; align-items:stretch } .pr-arow > .pr-vi { white-space:nowrap; padding:0 10px; font-weight:600 }
/* (0.9.49) the header leaves room for the View Intelligence column (150px + the 8px gap), so "Balance" sits over its column */
.pr-colh.vi { padding-right:256px } @media (max-width:560px) { .pr-colh.vi { padding-right:12px } }   /* the buttons sit under the rows there */
.pr-acct .pa-v .pa-bal { font:inherit } .pr-acct .pa-v { flex-direction:column; align-items:flex-end; gap:0 } .pr-acct .pa-v .pa-cl { font:400 11.5px var(--f-body); color:var(--c-muted); white-space:nowrap }
.pa-nm { display:flex; align-items:center; gap:6px; min-width:0 } .pa-nm > .pa-l4 { flex:none; margin-left:0 }
.pa-l4 { display:inline-block; margin-left:6px; padding:0 6px; border-radius:5px; font:600 12px/1.6 var(--f-num, var(--f-body)); font-variant-numeric:tabular-nums; letter-spacing:.03em; color:var(--c-text); background:var(--c-raised, color-mix(in srgb, var(--mut) 16%, transparent)); border:1px solid var(--c-border); vertical-align:1px }
.pr-tabs > .pr-ov > button.pr-acct, .pr-tabs > .pr-ov > .pr-arow > button.pr-acct { display:grid; grid-template-columns:30px minmax(0, 1fr) auto minmax(84px, auto) 74px; align-items:center; gap:4px 12px; text-align:left; padding:9px 12px; border-radius:var(--r-ctl, 8px); border:1px solid var(--c-border); background:var(--c-card); color:var(--c-text); font-weight:400; min-width:0 }
.pr-acct .pa-logo { width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:color-mix(in srgb, var(--c-accent) 14%, var(--c-card)); color:var(--c-accent); font:700 14px var(--f-body) }
.pr-acct .pa-logo::before { content:attr(data-l) }
/* (firm-logos 2026-11-19) the prop firm's own small mark beside its account names (firmImg / firmLogoKey, served from the
   app's assets/firms: nothing loads from a firm's site). A firm without a mark keeps the letter badge. The mark sits on
   its own small rounded tile so a dark or light favicon reads on either theme. Identification only, no endorsement */
.pr-acct .pa-logo.has-img::before { content:none }
.pr-acct .pa-logo.has-img { background:color-mix(in srgb, var(--c-text) 6%, var(--c-card)) }
.pr-acct .pa-logo .firm-ico { width:18px; height:18px; margin:0; vertical-align:0 }
.firm-ico { display:inline-block; width:15px; height:15px; flex:none; object-fit:contain; border-radius:3px; margin:0 6px 0 0; vertical-align:-2px }
.has-flogo::before { content:""; display:inline-block; width:14px; height:14px; margin-right:5px; vertical-align:-2px; border-radius:3px; background:var(--flogo) center / contain no-repeat }
.pr-acct .pa-id { display:grid; min-width:0 } .pr-acct .pa-id b { font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pr-acct .pa-st { font-size:11.5px; font-weight:600; text-align:right; white-space:nowrap; color:var(--c-up) } .pr-acct.warn .pa-st { color:var(--c-warn) } .pr-acct.bad .pa-st { color:var(--c-down) }
.pr-acct .pa-v { justify-content:flex-end } .pr-acct .pa-l .pa-pay { margin-left:5px }
.pr-colh { flex:1 1 100%; display:flex; justify-content:space-between; padding:0 98px 0 54px; font-size:11px; color:var(--c-muted); letter-spacing:.02em }
@media (max-width:560px) { .pr-ov > .pr-arow { grid-template-columns:1fr } .pr-arow > .pr-vi { padding:6px 14px } .pr-tabs > .pr-ov > button.pr-acct, .pr-tabs > .pr-ov > .pr-arow > button.pr-acct { grid-template-columns:30px minmax(0, 1fr) auto; grid-template-areas:"lg id v" "lg id st" } .pr-acct .pa-ph { display:none }
  .pr-acct .pa-logo { grid-area:lg } .pr-acct .pa-id { grid-area:id } .pr-acct .pa-v { grid-area:v; font-size:20px } .pr-acct .pa-st { grid-area:st } .pr-colh { padding-right:12px } }
.pr-acct[aria-pressed="true"] { border-color:var(--c-accent); box-shadow:inset 0 0 0 1px var(--c-accent) }
/* (blownacct 2026-11-12) closed out on an earlier day: muted, no red */
.pr-acct.closed { border-left:3px solid var(--c-border) } .pr-acct.closed .pa-st, .pr-acct.closed .pa-v, .pr-acct.closed .pa-ph { color:var(--c-muted) } .pr-acct.closed .pa-id b { color:var(--c-muted); font-weight:500 } .pr-acct.closed .pa-st { white-space:normal; line-height:1.25 }
.pr-acct.closed .pa-v { font:400 16px var(--f-body); align-items:center; align-self:center; line-height:1 }   /* the "–": the body font's dash at mid-height, never an underscore in the number font */
.pr-acct.warn { border-left:3px solid var(--c-warn) } .pr-acct.bad { border-left:3px solid var(--c-down); background:color-mix(in srgb, var(--c-down) 6%, var(--c-card)) } .pr-acct.ok { border-left:3px solid var(--c-up) }
.pr-acct .pa-h { display:flex; justify-content:space-between; gap:8px; align-items:baseline } .pr-acct .pa-h b { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pr-acct .pa-ph { font-size:11px; color:var(--c-muted); white-space:nowrap }
.pr-acct .pa-l { font-size:11.5px; color:var(--c-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .pr-acct .pa-l.on { color:var(--c-up) }
.pr-acct .pa-v { font:500 22px var(--f-num); display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; font-variant-numeric:tabular-nums } .pr-acct .pa-v small { font:400 11.5px var(--f-body); color:var(--c-muted) }
.pr-acct.bad .pa-v { color:var(--c-down) } .pr-acct .pa-s { font-size:11.5px; color:var(--c-muted) } .pr-acct .meter { margin-top:4px }
.pr-link .pl-h { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; margin-bottom:8px } .pr-link .pl-h b { font-size:13.5px }
.pr-link .pl-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center } .pr-link .pl-row + .pl-row, .pr-link .pl-sug { margin-top:8px }
.pr-link select { padding:4px 8px; font-size:13px; max-width:100% }
.pl-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 4px 3px 10px; border-radius:99px; border:1px solid color-mix(in srgb, var(--c-up) 45%, var(--c-border)); font:500 13px var(--f-num); font-variant-numeric:tabular-nums }
.pl-chip small { font:400 11px var(--f-body); color:var(--c-muted) } .pl-chip button { border:0; background:none; color:var(--c-faint); padding:0 6px; font-size:15px } .pl-chip button:hover { color:var(--c-down) }
.pl-none { font-size:13px; color:var(--c-muted) } .pl-sug { font-size:13px; color:var(--c-text) } .pl-rel label { font-size:12.5px; color:var(--c-muted); display:flex; gap:6px; align-items:center; flex-wrap:wrap }
.pl-act { font-size:12.5px; color:var(--c-down) } .pr-live b { font:500 18px var(--f-num); margin:0 4px; font-variant-numeric:tabular-nums } .pr-live b.up { color:var(--c-up) } .pr-live b.down { color:var(--c-down) }
.pr-auto { font-size:10.5px; color:var(--c-muted); border:1px solid var(--c-border); border-radius:99px; padding:0 6px; margin-left:6px; font-family:var(--f-body) }
.pr-autonote { display:block; font-size:11px; color:var(--c-muted) } .pr-autonote button { font-size:11px; padding:0 6px; margin-left:4px }
/* Accounts made simple (2026-10-19): found accounts, the two-step picker, the rules sentence */
.pr-detect { display:grid; gap:8px }
.pr-found { display:grid; gap:8px; padding:12px 14px; border-radius:var(--r-card, 12px); border:1px solid color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-accent) 6%, var(--c-card)) }
.pr-found.ok { border-color:color-mix(in srgb, var(--c-up) 50%, var(--c-border)); background:color-mix(in srgb, var(--c-up) 7%, var(--c-card)) }
.pr-optrow { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px } .pr-sizerow { margin:8px 0 2px }.pr-opt { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--c-muted) }
.pr-opt .seg button { padding:3px 10px; font-size:12.5px }
.pr-found.new { animation:prnew 2.4s ease-out 1 } @keyframes prnew { from { box-shadow:0 0 0 3px color-mix(in srgb, var(--c-accent) 55%, transparent) } to { box-shadow:0 0 0 0 transparent } }
.pr-wait { display:flex; gap:10px; align-items:center; padding:12px 14px; border-radius:var(--r-card, 12px); border:1px dashed var(--c-border); font-size:13.5px; color:var(--c-muted) }
.pr-pulse { width:9px; height:9px; flex:none; border-radius:50%; background:var(--c-accent); animation:prpulse 1.6s ease-in-out infinite } @keyframes prpulse { 50% { opacity:.25 } }
@media (prefers-reduced-motion: reduce) { .pr-found.new, .pr-pulse { animation:none } }
.pr-found p { margin:0; font-size:13.5px; line-height:1.45 } .pr-found .meta { font-size:12px }
.pr-acts { display:flex; flex-wrap:wrap; gap:6px; align-items:center } .pr-acts button { white-space:nowrap }
/* ---- copy trading (2026-10-20): the question at connect time (a suggestion card like the found-account ones), then one
   switch with the group; the lead first, the copies folded under it. TiltLab never copies a trade */
.pr-copy .pr-leads { display:grid; gap:6px; margin:2px 0 } .pr-copy .pr-leads label { display:flex; gap:8px; align-items:center; font-size:13.5px; cursor:pointer }
.pr-copy .pr-leads label b { font-weight:500 } .pr-copy .pr-leads .meta { margin-left:auto }
.pr-copy .cp-sw { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center } .pr-copy .cp-sw label { display:flex; gap:8px; align-items:center; font-size:14px; font-weight:600; cursor:pointer }
.pr-copy .cp-grp { display:grid; gap:4px } .pr-copy .cp-row { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:13px; padding:4px 0; border-top:1px solid var(--c-border) }
.pr-copy .cp-row:first-child { border-top:0 } .pr-copy .cp-row b { font-weight:500 } .pr-copy .cp-row .cp-tag { font-size:11px; color:var(--c-accent); border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-radius:999px; padding:1px 7px }
.pr-copy .cp-row .cp-pos { color:var(--c-muted) } .pr-copy .cp-row .cp-room { margin-left:auto; color:var(--c-muted); font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
.pr-copy .cp-row button.ghost { font-size:12px; padding:2px 8px } .pr-copy .cp-sync { font-size:13px } .pr-copy .cp-sync.ok { color:var(--c-up) }
.pr-copy .cp-warn { display:grid; gap:3px; font-size:13.5px; color:var(--c-down); font-weight:500 } .pr-copy .cp-hit { font-size:13px; color:var(--c-warn) }
.pr-copy .cp-inf { font-size:12px; color:var(--c-muted) }
.pr-acct .pa-pay { font-size:11.5px; color:var(--c-muted) } .pr-acct .pa-pay.ok { color:var(--c-up) } .pr-acct .pa-pay.warn { color:var(--c-warn) }
.pr-copy .cp-pol { font-size:12.5px; color:var(--c-muted); margin-top:6px } .pr-copy .cp-pol-warn { font-size:13px; color:var(--c-warn); font-weight:500; margin-top:4px }
.pr-acct.lead { border-color:color-mix(in srgb, var(--c-accent) 60%, var(--c-border)) } .pr-acct .pa-lead { font-size:10.5px; color:var(--c-accent); border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-radius:999px; padding:0 6px; margin-left:6px; white-space:nowrap }
.pr-ov .pr-fold { display:flex; flex-direction:column; justify-content:center; gap:4px; text-align:left; padding:10px 12px; border-radius:var(--r-ctl, 8px); border:1px dashed var(--c-border); background:transparent; color:var(--c-text); font-weight:400; min-width:0 }
/* (M2) Archived accounts: kept with their full history, Restore / Delete permanently */
.pr-arch { margin-top:14px; display:grid; gap:6px }
.pr-arch .pr-fold { display:flex; flex-direction:column; gap:4px; text-align:left; padding:10px 12px; border-radius:var(--r-ctl, 8px); border:1px dashed var(--c-border); background:transparent; color:var(--c-text); font-weight:400 }
.pr-arch-row { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 12px; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px) }
.pr-arch-row .pa-id { display:flex; flex-direction:column; gap:2px; min-width:0 } .pr-arch-acts { display:flex; gap:6px; flex-wrap:wrap }
/* ---- the CopyWatcher tab (2026-10-21): Accounts | CopyWatcher at the top of the Accounts room, always there (desktop and
   phone), so the feature is findable before any account is connected. One class on the room picks what shows */
.pr-seg { justify-self:start; max-width:100% } .pr-seg button { padding:6px 16px; font-size:13.5px }
#room_protect.tab-copy > :not(.rv-top, #pr_seg, #pr_cw) { display:none !important }
#room_protect:not(.tab-copy) > #pr_cw { display:none !important }
.pr-cw { display:grid; gap:12px; align-content:start; min-width:0 }
.pr-cwsum { margin:0; font-size:13px; color:var(--c-muted) } .pr-cwsum b { color:var(--c-text); font-weight:600 } .pr-cwsum .ok { color:var(--c-up) }
.pr-cwsum .cw-bad { color:var(--c-down); font-weight:500 } .pr-cwsum a { color:var(--c-accent) }
.cw-intro { display:grid; gap:10px; justify-items:start } .cw-intro h3 { margin:0; font-size:17px; line-height:1.35 }
.cw-intro p { margin:0; font-size:13.5px; line-height:1.45; max-width:68ch } .cw-intro .cw-loud { font-weight:600 }
.cw-lines { margin:0; padding-left:18px; display:grid; gap:3px; font-size:13.5px }
.cw-intro h4 { margin:4px 0 2px; font-size:13px; font-weight:600; color:var(--c-muted) }
.cw-sec { display:grid; gap:4px; width:100% } .cw-note { font-weight:500 } .cw-stmt { color:var(--c-muted) }
.cw-pro h4 { color:var(--c-text, inherit) } .cw-pro .tag { display:inline-block; margin-right:6px; padding:2px 7px; border-radius:5px; font:600 10.5px var(--f-body); letter-spacing:.08em; background:color-mix(in srgb, var(--c-accent) 16%, transparent); color:var(--c-accent) }
.cw-firms { margin:0; padding:0; list-style:none; display:grid; gap:3px; font-size:12.5px; color:var(--c-muted) } .cw-firms b { color:var(--c-text); font-weight:500 }
.cw-links { display:flex; flex-wrap:wrap; gap:6px 14px } .cw-links button { font-size:12.5px; padding:3px 10px }
.cw-demo { display:grid; gap:10px; border-color:color-mix(in srgb, var(--c-accent) 55%, var(--c-border)) }
.cw-demo .cw-dh { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline } .cw-demo .cw-dh b { font-size:15px } .cw-demo .cw-dh .meta { font-size:12px }
.cw-demo .cw-step { margin:0; font-size:13.5px } .cw-demo .pr-tabs { display:block } 
.cw-demo .cw-cap { margin:0; font-size:13px; color:var(--c-muted); min-height:1.4em } .cw-demo .cw-cap b { color:var(--c-text); font-weight:500 }
.cw-demo .cw-acts { display:flex; flex-wrap:wrap; gap:8px } #pr_cw.cwd-on #pr_cwintro [data-cwdemo] { display:none }
.ask-m .ask-open { display:block; margin-top:6px; font-size:12.5px; padding:3px 10px }
.pr-ov .pr-fold b { font-weight:500 } .pr-ov .pr-fold .pa-s { font-size:11.5px; color:var(--c-muted) } .pr-ov .pr-fold.warn { border-color:var(--c-down); color:var(--c-down) }
#propcard .rn-copy { margin:2px 0 0 } #propcard #rn_copyb { font:400 12.5px var(--f-body); color:var(--c-muted); background:none; border:0; padding:0; cursor:pointer; text-align:left }
#propcard #rn_copyb:hover { color:var(--c-text) } #propcard #rn_copyb::before { content:"\25B8"; display:inline-block; margin-right:4px; transition:transform .12s } #propcard #rn_copyb[aria-expanded="true"]::before { transform:rotate(90deg) }
#propcard #rn_copyb.warn { color:var(--c-down); font-weight:500 } #propcard #rn_copyb .ok { color:var(--c-up) }
#propcard #rn_copies { list-style:none; margin:2px 0 0 14px; padding:0; display:grid; gap:2px; font-size:12px; color:var(--c-muted) } #propcard #rn_copies b { color:var(--c-text); font-weight:500 }
#propcard #rn_copies .cp-room { font:500 12px var(--f-num); font-variant-numeric:tabular-nums } #propcard .rn-copywarn { margin:3px 0 0; font-size:12.5px; line-height:1.4; color:var(--c-down); font-weight:500 }
.pr-pickbox { display:grid; gap:8px } .pr-pickbox > b { font-size:13.5px }
.pr-opts { display:flex; flex-wrap:wrap; gap:6px } .pr-opts button { padding:7px 12px; font-size:13px }
.pr-rules { display:grid; gap:8px } .pr-rules .pr-sent { margin:0; font-size:14px; line-height:1.5; color:var(--c-text) }
.pr-rules .pr-src { font-size:12px; color:var(--c-muted); display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline }
.pr-ed { color:var(--c-warn); font-weight:600 } .pr-rules .pr-line { font-size:13px; color:var(--c-muted); display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center }
.pr-rules .pr-line.on { color:var(--c-text) } .pr-rules .pr-line input[type=number] { width:96px; padding:4px 8px; font-size:13px }
.pr-rules .pr-foot { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between }
a.pr-a { font-size:12.5px } .pr-edit-h { flex-basis:100%; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline } .pr-edit-h b { font-size:13.5px; color:var(--c-text) }
.pr-reload .pl-rel label { font-size:13px } #pr_mystops { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; font-size:13px } #pr_set input[type=number] { width:90px; padding:4px 8px }
.pr-conn { font-size:13.5px } .pc-line { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; margin:0 } .pc-line b { font-weight:600 }
.pc-dot { width:9px; height:9px; border-radius:50%; flex:none; border:2px solid var(--c-muted) } .pc-line.on .pc-dot { background:var(--c-up); border-color:var(--c-up) } .pc-line .pc-dot { position:static; width:9px; height:9px; background:none; box-shadow:none }   /* (0.9.43) the Calendar habit dot shares the class name: never absolute here */
.pc-line .meta, .pc-line a { font-size:12.5px } .pr-conn:has(.pc-opt) { padding:12px 14px; border-radius:var(--r-card, 12px); border:1px solid var(--c-border); background:var(--c-card) }
.pr-glance { margin:0; font-size:14px; font-weight:600 } .pr-glance.warn { color:var(--c-warn) } .pr-glance.bad { color:var(--c-down) } .pr-glance.off { color:var(--c-muted) } .pr-glance[hidden] { display:none }
.pr-det { display:grid; gap:10px; padding:12px 14px; margin:-2px 0 4px; border-radius:var(--r-card, 12px); border:1px solid var(--c-accent); background:var(--c-card) } .pr-det[hidden] { display:none }
.pr-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px } .pr-grid .tile { padding:8px 10px; min-width:0 }
.pr-grid .tile .v { font-size:20px } .pr-grid .tile .s { font-size:11.5px }
@media (max-width:640px) { .pr-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) } }
.pr-chips { gap:6px } .pr-chip { padding:2px 9px; border-radius:999px; border:1px solid var(--c-border); font-size:12.5px; color:var(--c-text) }
.pr-rename { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:6px 0 } .pr-rename input { flex:1 1 180px; min-width:0; max-width:320px } .pr-rename .meta { flex:1 1 100%; margin:0 }
.pr-order { flex:1 1 100%; display:grid; gap:6px } .pr-order .meta { margin:0 } .pr-order ol { list-style:none; margin:0; padding:0; display:grid; gap:4px }
.pr-order li { display:flex; gap:8px; align-items:center; padding:6px 10px; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px) }
.pr-order .po-n { display:grid; min-width:0; flex:1 1 auto } .pr-order .po-n b { font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .pr-order .po-n small { font-size:11.5px; color:var(--c-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pr-order .po-b { display:flex; gap:4px; flex:0 0 auto } .pr-order .po-b button { padding:4px 10px; font-size:12.5px; white-space:nowrap }
.pr-btns { display:flex; flex-wrap:wrap; gap:6px; align-items:center } .pr-btns .btnlink { display:inline-flex; align-items:center; padding:5px 12px; border-radius:var(--r-ctl, 8px); border:1px solid var(--c-border); color:var(--c-text); text-decoration:none; font-size:13px }
.pr-btns .pr-i { margin-left:auto; display:inline-flex; gap:6px; align-items:center; font-weight:600 } .pr-btns .pr-i[aria-expanded="true"] { color:var(--c-text); border-color:var(--c-border-strong, var(--c-border)) }
.pr-info { display:grid; gap:8px; border-top:1px solid var(--c-border); padding-top:10px } .pr-info[hidden] { display:none }
.pr-info .days { font-size:12.5px } .pr-manual { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12.5px; color:var(--c-muted) } .pr-manual input { width:96px; padding:4px 8px; font-size:13px }
.bk-dot { background:var(--c-faint) } .bk-dot.on { background:var(--c-up) } .bk-dot.err { background:var(--c-down) }

/* ---- Review: Discipline, Trader DNA, results, Executions */
.br .k { color:var(--c-muted) } .br .track::before { background:var(--c-border) }
.br .bar.pos { background:var(--c-up) } .br .bar.neg { background:var(--c-down) }
.dna-box { background:var(--c-raised); border-radius:10px } .dna-box h4 { font:600 11px var(--f-body); letter-spacing:.07em; color:var(--c-muted) }
.dna-box .tile { background:var(--c-card) }
.dna-tilt .well { background:var(--c-card) } .dna-tilt .fill { background:var(--c-faint) } .dna-tilt .col.hot .fill { background:var(--c-down) }
.dna-meter { background:var(--c-card) } .dna-meter i { background:var(--c-up) } .dna-meter i.mid { background:var(--c-warn) } .dna-meter i.hi { background:var(--c-down) }
.dna-chips span { background:var(--c-card); border-color:var(--c-border); color:var(--c-text) }
.ds-ring .bg { stroke:var(--c-raised) } .ds-part .dna-meter { background:var(--c-raised) }
.ds-day { background:var(--c-raised); border-radius:var(--r-ctl) }
.ds-day.ok { background:color-mix(in srgb, var(--c-up) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-up) 38%, transparent) } .ds-day.ok .wd { color:var(--c-up) }
.ds-day.bad { background:color-mix(in srgb, var(--c-down) 12%, var(--c-card)); border-color:color-mix(in srgb, var(--c-down) 40%, transparent) } .ds-day.bad .wd { color:var(--c-down) }
.ds-ring b { font-weight:500 }
.rv-exec { background:var(--c-panel); border-color:var(--c-border) } .ex-h, #ex_chart { border-color:var(--c-border) }
.ex-t { background:var(--c-card); border-color:var(--c-border); border-radius:10px } .ex-t:hover { border-color:var(--c-border-strong) }
.ex-t[aria-current="true"] { border-color:var(--c-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 20%, transparent) }
.ex-f span { color:var(--c-down); background:color-mix(in srgb, var(--c-down) 12%, transparent) } .ex-f span.ok { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 12%, transparent) }
#room_review .rv-main > .rv-exec { border-color:var(--c-border) }

/* ---- Train: Long / Short / No trade as buy / sell tints (like the ticket), score tiles, recent list */
#tr_side { background:var(--c-panel); border-left-color:var(--c-border) }
#tr_side h3 { margin:0 0 4px; font:600 16px var(--f-body) } #tr_side h3.sm { margin:0 0 6px; font-size:13px }
#tr_tf { justify-self:start; flex-wrap:wrap }
.tr-btns button { border:1px solid; border-radius:var(--r-ctl); font:600 14px var(--f-body); letter-spacing:.05em; padding:12px }
.tr-btns .tr-long { background:color-mix(in srgb, var(--c-up) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-up) 45%, transparent) !important; color:var(--c-up) }
.tr-btns .tr-short { background:color-mix(in srgb, var(--c-down) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-down) 45%, transparent) !important; color:var(--c-down) }
.tr-btns .tr-long:not(:disabled):hover { background:color-mix(in srgb, var(--c-up) 22%, var(--c-card)); border-color:var(--c-up) !important }
.tr-btns .tr-short:not(:disabled):hover { background:color-mix(in srgb, var(--c-down) 22%, var(--c-card)); border-color:var(--c-down) !important }
.tr-skip { background:var(--c-raised) !important; color:var(--c-text) !important; border:1px solid var(--c-border-strong) !important }
.tr-next { border:1px solid var(--c-accent) !important }
.tr-btns kbd { font:500 11px var(--f-mono); opacity:.65 }
.tr-place { display:grid; gap:6px; padding:12px; border:1px solid var(--c-border, var(--rule)); border-radius:var(--r-ctl, 8px); background:var(--c-card, var(--panel2)) }
.tr-place[hidden] { display:none }
.tr-pl-read { font:500 14px var(--f-num); color:var(--ink); font-variant-numeric:tabular-nums }
.tr-pl-hint { font-style:italic } .tr-pl-mag { display:flex; align-items:center; gap:6px; font:500 12px var(--f-body); color:var(--muted, var(--axis)) }
.tr-edge { position:absolute; z-index:4; transform:translateX(-100%); padding:2px 7px; border-radius:10px; font:600 11px var(--f-num); color:var(--ink); background:var(--c-card, var(--panel2)); border:1px solid var(--c-border, var(--rule)); pointer-events:none; white-space:nowrap; font-variant-numeric:tabular-nums }
.tr-edge.lo { transform:translate(-100%, -100%) } .tr-edge[hidden], .tr-mag[hidden] { display:none }
.tr-mag { position:absolute; z-index:4; width:12px; height:3px; border-radius:2px; background:var(--accent, #f5a623); pointer-events:none }
.tr-pl-b { display:flex; flex-wrap:wrap; gap:6px } .tr-pl-b button { padding:7px 10px; font:600 13px var(--f-body) } .tr-pl-b kbd { font:500 10px var(--f-mono); opacity:.65; margin-left:6px }
.tr-btns button[aria-pressed="true"] { outline:2px solid currentColor; outline-offset:1px }
.tr-off { display:flex; align-items:center; gap:6px; font:500 13px var(--f-body); color:var(--mut) } .tr-off[hidden] { display:none }
.tr-offnote { margin:-4px 0 0; font:500 12px var(--f-body); color:var(--mut) } .tr-offnote[hidden] { display:none }
.tr-learn { display:grid; gap:6px; padding:8px 10px; border:1px solid var(--line, rgba(127,127,127,.25)); border-radius:10px; font:500 12px var(--f-body); color:var(--mut) }
.tr-learn[hidden], .tr-learn [hidden] { display:none } .tr-learn h3 { margin:0 }
.tr-learn .row { display:flex; flex-wrap:wrap; align-items:center; gap:6px } .tr-learn input[type=date] { font:inherit; padding:3px 6px; border-radius:6px; border:1px solid var(--line, rgba(127,127,127,.35)); background:transparent; color:var(--ink) }
.tr-learn button { font:600 12px var(--f-body); padding:4px 10px } .tr-learn ul { margin:0; padding:0; list-style:none; display:grid; gap:2px } .tr-learn li { display:flex; justify-content:space-between; gap:8px }
.tr-x18 { display:inline-flex; align-items:center; padding:1px 6px; border:1.5px solid currentColor; border-radius:4px; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--c-down, #e5484d) }
.tr-roast { position:absolute; left:12px; bottom:40px; z-index:4; max-width:min(420px, 70%); display:grid; gap:4px; padding:10px 14px; border-radius:12px; border:1.5px solid color-mix(in srgb, var(--c-accent, #c07a3a) 55%, transparent); background:color-mix(in srgb, var(--c-panel, #fff) 94%, transparent); box-shadow:var(--c-shadow, 0 8px 24px rgba(0,0,0,.18)); animation:cardIn .3s }
.tr-roast[hidden] { display:none } .tr-roast b { font:600 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-accent, #c07a3a) } .tr-roast span { font:600 15px var(--f-body); color:var(--ink) }
.tr-recent li { background:var(--c-raised); border-radius:var(--r-ctl) }
.tr-score .tile.wide { grid-column:1 / -1 }
#tr_info { background:color-mix(in srgb, var(--c-card) 90%, transparent); color:var(--c-muted); border:1px solid var(--c-border); border-radius:var(--r-ctl); font:500 12.5px var(--f-chart); font-variant-numeric:tabular-nums }
#tr_verdict { border-radius:var(--r-card); font:600 17px var(--f-body); border:1px solid var(--c-border) }
#tr_verdict.win, #tr_verdict.good_skip { background:color-mix(in srgb, var(--c-up) 14%, var(--c-card)); color:var(--c-up); border-color:color-mix(in srgb, var(--c-up) 40%, transparent) }
#tr_verdict.loss, #tr_verdict.missed { background:color-mix(in srgb, var(--c-down) 13%, var(--c-card)); color:var(--c-down); border-color:color-mix(in srgb, var(--c-down) 40%, transparent) }
#tr_verdict.flat { background:var(--c-card); color:var(--c-text) }
#tr_empty { background:var(--c-bg) }
/* ---- Train: Spot the Missing Piece (2026-10-24) - the setup's own pieces, a calm reveal, blind spots */
#tr_head .tr-replay { margin-top:6px; overflow-wrap:anywhere } #tr_head .tr-replay .linkbtn { white-space:nowrap }   /* Backtest > whole-day replay pointer (2026-11-13) */
.tr-mode { justify-self:stretch; display:grid !important; grid-template-columns:1fr 1fr } .tr-mode button { white-space:normal; line-height:1.2 }
#sp_box { display:grid; gap:8px } #sp_box[hidden] { display:none }
.sp-setup { display:grid; gap:4px } .sp-setup select { width:100% }
/* the door to his own setups (2026-10-24): they're built in Build a Mentor (MyMentor), so Backtest links there */
.sp-setup-h { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap }
.sp-edit { min-height:0; padding:0; border:0; background:none; box-shadow:none; color:var(--c-accent); font:500 12px var(--f-body); text-align:left; cursor:pointer }
.sp-edit:hover { text-decoration:underline } .sp-edit:focus-visible { outline:2px solid var(--c-accent); outline-offset:2px; border-radius:3px }
.sp-none { font-size:12px; color:var(--c-muted) } .sp-none[hidden] { display:none }
.sp-pre-row { display:flex; justify-content:flex-end; margin-top:-2px } .sp-pre-row .linkbtn { font-size:12.5px }
.sp-presets { display:grid; gap:8px; max-height:420px; overflow:auto; padding:2px } .sp-presets[hidden] { display:none }
.sp-pre-h { display:grid; grid-template-columns:1fr auto; gap:2px 8px; align-items:start } .sp-pre-h .meta { grid-column:1; font-size:12px }
.sp-pre-h .linkbtn { grid-row:1 / span 2; grid-column:2; font-size:18px; line-height:1; padding:0 4px }
.sp-pre { display:grid; gap:6px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:10px 12px }
.sp-pre-t { display:flex; flex-wrap:wrap; gap:4px 6px; align-items:center } .sp-pre-t b { font:600 13.5px var(--f-body); margin-right:2px }
.sp-tag { padding:0 7px; border-radius:999px; background:var(--c-raised); border:1px solid var(--c-border); font:600 10.5px/18px var(--f-body); color:var(--c-muted) }
.sp-pre p { margin:0; font:500 12.5px/1.45 var(--f-body) } .sp-pre ol { margin:0; padding-left:18px; font-size:12px; line-height:1.45; color:var(--c-muted) }
.sp-pre .meta { font-size:11.5px } .sp-pre-b { display:flex; gap:6px; flex-wrap:wrap } .sp-pre-b button { padding:4px 12px }
.sp-pre-msg[hidden] { display:none } .sp-pre-msg { color:var(--c-text) }
#sp_steps ol { margin:4px 0 0; padding-left:18px } #sp_steps li { margin:2px 0 }
.sp-pill { display:inline-block; padding:1px 8px; border-radius:999px; background:var(--c-raised); border:1px solid var(--c-border); font:600 11px var(--f-body); color:var(--c-muted); margin-left:6px }
.sp-q { display:grid; gap:6px }
#tr_chartwrap { --dtw:44px; --trl:0px; --tra:0px } #tr_chartwrap.tr-draw #tr_chart { left:var(--dtw) }
@media (max-width:760px) { #tr_chartwrap.tr-draw #tr_chart { left:0 } }
/* the drill's overlays sit right of the drawing toolbar (--trl: its measured width, 0 when it isn't there; trToolsInset) and wrap
   instead of running under it or off the chart (owner 2026-10-25: the roast's first words were cut off by the toolbar) */
#tr_chartwrap #tr_info { left:calc(var(--trl) + 12px); max-width:calc(100% - var(--trl) - 24px) }
/* (new-trader test C8) the result toast sat on the drill's info pill and the OHLC legend (top 42px): it starts below them */
#tr_chartwrap #tr_verdict { top:74px; left:calc(var(--trl) + (100% - var(--trl) - var(--tra, 0px)) / 2); max-width:var(--trcap, calc(100% - var(--trl) - 24px)); width:max-content; text-align:center; overflow-wrap:anywhere }
/* Atlas's roast caption: the LEFT side of the chart area (owner 2026-10-25: his OBS crop keeps the whole chart + price
   axis), centered ~32% across between the toolbar and the price axis (--tra), ~14% down, at most --trcap wide, so the
   newest candles and the axis stay clear. translate (not transform) so the cardIn entrance doesn't knock it off center;
   trRoastPlace sets the pair's exact spot (clear of his trade lines) and stacks the verdict under it */
#tr_chartwrap .tr-roast { left:calc(var(--trl) + (100% - var(--trl) - var(--tra, 0px)) * .32); translate:-50% 0; top:14%; bottom:auto;
  width:max-content; max-width:var(--trcap, 60%); text-align:center; justify-items:center }
.tr-roast span { overflow-wrap:anywhere }
/* Atlas himself beside the roast caption (owner 2026-10-25, for the Reels: viewers learn his look): the rig's bust in his
   current outfit, ~25% of the chart's height, the pair centered ~32% across the chart area (trRoastPlace); fades in with the
   caption, out ~1 s after the line. Off-duty roasts only. Reduced motion: the rig's own still frames */
.tr-atl { position:absolute; z-index:4; pointer-events:none; opacity:0; transition:opacity .4s ease } .tr-atl.show { opacity:1 } .tr-atl[hidden] { display:none }
.tr-atl > svg { display:block; width:100%; height:100%; overflow:hidden }   /* the bust crop: nothing past its box */
@media (prefers-reduced-motion:reduce) { .tr-atl { transition:none } }
#tr_mk { display:contents } .sp-mkp label[hidden] { display:none }
#tr_chartwrap.drawing #tr_chart { cursor:crosshair }
#tr_chartwrap.tr-draw #dtools .dt[data-t=dlist] { display:none }
.sp-mk { display:flex; gap:6px; align-items:baseline; flex-wrap:wrap }
.sp-mkm { position:relative } .sp-mkm > summary { cursor:pointer; font-weight:600; color:var(--c-text); list-style:none; padding:1px 8px; border:1px solid var(--c-border); border-radius:var(--r-ctl, 6px); background:var(--c-raised) }
.sp-mkm > summary::-webkit-details-marker { display:none }
.sp-mkp { position:absolute; z-index:20; left:0; top:calc(100% + 4px); min-width:220px; display:grid; gap:6px; padding:10px 12px; background:var(--c-card); border:1px solid var(--c-border-strong, var(--c-border)); border-radius:var(--r-ctl, 6px); box-shadow:0 6px 20px rgba(0,0,0,.25) }
.sp-mkp label { display:flex; gap:6px; align-items:baseline; color:var(--c-text); cursor:pointer } .sp-mkp p { margin:2px 0 0 }
.sp-mkshow { padding:0 4px; font-size:12px }
.sp-mkctx { position:fixed; z-index:60; background:var(--c-card); border:1px solid var(--c-border-strong, var(--c-border)); border-radius:var(--r-ctl, 6px); box-shadow:0 6px 20px rgba(0,0,0,.3); padding:4px } .sp-mkctx[hidden] { display:none }
.sp-mkctx button { display:block; width:100%; text-align:left; background:none; border:0; color:var(--c-text); padding:6px 12px; font:500 12.5px var(--f-body); border-radius:4px; min-height:0 } .sp-mkctx button:hover, .sp-mkctx button:focus-visible { background:var(--c-raised) }
.sp-few { color:var(--c-muted) } .sp-opt { color:var(--c-faint); font-size:11.5px; margin-left:4px }   /* a quieter gray, not opacity: .75 of the muted gray fell under 4.5:1 (a11y hunt 2026-11-08) */
.sp-chips { display:flex; flex-wrap:wrap; gap:6px }
.sp-chips button { border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); border-radius:999px; padding:5px 11px; font:500 12.5px var(--f-body); min-height:0 }
.sp-chips button[aria-pressed="true"] { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 16%, var(--c-card)); font-weight:600 }
.sp-chips button.truth { box-shadow:0 0 0 2px color-mix(in srgb, var(--c-warn) 70%, transparent) }
.sp-chips button:disabled { cursor:default }
.sp-limit { background:var(--c-raised); border:1px solid var(--c-border); border-radius:var(--r-ctl); padding:10px 12px; font:500 13px var(--f-body); color:var(--c-muted); display:grid; gap:8px }
.sp-limit button { justify-self:start }
.dl-card { display:grid; gap:8px; text-align:left } .dl-card b { color:var(--c-text); font-size:15px } .dl-card p { margin:0 }
.dl-card ul { margin:0; padding-left:18px; display:grid; gap:4px; color:var(--c-text) } .dl-card .row { display:flex; gap:8px; flex-wrap:wrap }
.sp-card { display:grid; gap:8px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:var(--r-card); padding:12px }
.sp-card[hidden] { display:none } .sp-card p { margin:0; font:500 13.5px/1.45 var(--f-body) } .sp-card .meta { font-size:12px }
.sp-card .sp-ch { font:600 12px var(--f-body); color:var(--c-muted); text-transform:uppercase; letter-spacing:.04em }
.sp-card .sp-cb { display:flex; gap:8px; flex-wrap:wrap } .sp-done { justify-self:start }
.sp-reveal { display:grid; gap:8px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:12px }
.sp-reveal .sp-h { font:600 14.5px var(--f-body) } .sp-reveal .sp-h.ok { color:var(--c-up) } .sp-reveal .sp-h.note { color:var(--c-text) }
.sp-reveal .sp-s { margin:0; font:500 13.5px/1.45 var(--f-body); color:var(--c-text) }
.sp-reveal .sp-b { margin:0; font-size:12.5px; color:var(--c-muted) }
.sp-reveal .sp-o { margin:0; padding-top:8px; border-top:1px dashed var(--c-border); font-size:12.5px; color:var(--c-muted) }
.sp-reveal .sp-o b { color:var(--c-text); font-weight:600 }
.sp-score { display:grid; grid-template-columns:1fr 1fr; gap:8px } .sp-score[hidden] { display:none } .sp-score .tile { padding:8px 10px } .sp-score .tile .v { font-size:20px }
.sp-score .tile.wide { grid-column:1 / -1 }
.sp-blind { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:5px; font-size:12.5px }
.sp-blind li { display:grid; grid-template-columns:1fr auto; gap:2px 8px; align-items:center }
.sp-blind .bar { grid-column:1 / -1; height:4px; border-radius:2px; background:var(--c-raised); overflow:hidden } .sp-blind .bar i { display:block; height:100%; background:color-mix(in srgb, var(--c-warn) 70%, transparent) }
#tr_verdict.sp-ok { background:color-mix(in srgb, var(--c-up) 14%, var(--c-card)); color:var(--c-up); border-color:color-mix(in srgb, var(--c-up) 40%, transparent) }
#tr_verdict.sp-note { background:var(--c-card); color:var(--c-text) }

/* ---- Market: storefront cards, leaderboard, performance drawer */
.mk-note { background:color-mix(in srgb, var(--c-warn) 9%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-warn) 30%, transparent); border-left:3px solid var(--c-warn); border-radius:var(--r-ctl); color:var(--c-muted) }
.mk-note b { color:var(--c-text) }
.mk-tags button { background:var(--c-raised); border-color:var(--c-border-strong); color:var(--c-muted) }
.mk-tags button[aria-pressed="true"] { background:color-mix(in srgb, var(--c-accent) 18%, var(--c-card)); color:var(--c-text); border-color:var(--c-accent) }
.mkc { border-radius:var(--r-card); padding:16px } .mkc .top b { font:600 15px var(--f-body) } .mkc .blurb { color:var(--c-text) }
.mkc .mps { font:500 30px/1 var(--f-num); font-variant-numeric:tabular-nums } .mkc .price { font:500 18px var(--f-num); font-variant-numeric:tabular-nums }
/* (design quick win 2026-11-10) eight filled Preview Performance buttons on one screen: outlined (secondary); the whole card
   opens the preview too, so the page keeps a calm hierarchy */
.mkc .foot button { background:transparent; color:var(--c-accent); border:1.5px solid color-mix(in srgb, var(--c-accent) 70%, var(--c-border)) }
.mkc .foot button:hover { background:color-mix(in srgb, var(--c-accent) 10%, transparent); border-color:var(--c-accent) }
.mkc[data-card] { cursor:pointer }
.mkc .metric .spark { margin-left:auto }
.mk-chip { background:var(--c-raised); color:var(--c-muted); font:600 10px var(--f-body) }
.mk-chip.sample { background:color-mix(in srgb, var(--c-warn) 15%, transparent); color:var(--c-warn) } .mk-chip.mine { background:color-mix(in srgb, var(--c-accent) 16%, transparent); color:var(--c-accent) }
.mk-st.monitoring { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 12%, transparent) } .mk-st.monitoring i { background:var(--c-up) }
.mk-st.cooldown { color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 14%, transparent) } .mk-st.cooldown i { background:var(--c-warn) }
.mk-st.paused { color:var(--c-muted); background:var(--c-raised) }
.mk-board { border:1px solid var(--c-border); border-radius:var(--r-card) } .mk-board th { background:var(--c-raised) } .mk-board tr:hover td { background:var(--c-raised) }
.mk-board .rk { font:500 15px var(--f-num); color:var(--c-faint); font-variant-numeric:tabular-nums } .mk-board tr:nth-child(-n+3) .rk { color:var(--c-warn) }
#mk_drawer { background:var(--c-panel); border-left:1px solid var(--c-border) }
.mkd-h b { font:600 19px var(--f-body) } .mkd-h button { color:var(--c-faint) } .mkd-h button:hover { color:var(--c-text); background:var(--c-raised) }
.mkd-proof { background:color-mix(in srgb, var(--c-up) 9%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-up) 28%, transparent) }
.mkd-proof.sample { background:color-mix(in srgb, var(--c-warn) 10%, var(--c-card)); border-color:color-mix(in srgb, var(--c-warn) 30%, transparent) }
.mkd-co { border-color:var(--c-border); background:var(--c-card) } .mkd-co .split span { background:var(--c-raised) }
.mkd-co .go { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent) }
.vs.pending { color:var(--c-muted); background:var(--c-raised) }

/* ---- Floor: channels (left), conversation (middle), who's here (right) */
.cm-side, .cm-members { background:var(--c-panel); border-color:var(--c-border) }
.cm-main, .cm-top { background:var(--c-bg) } .cm-top { border-bottom-color:var(--c-border) } .cm-top .d { border-left-color:var(--c-border); color:var(--c-muted) }
.cm-brand { font:600 15px var(--f-body); border-bottom-color:var(--c-border) }
.cm-ch { color:var(--c-muted); border-radius:var(--r-ctl) } .cm-ch:hover { background:var(--c-raised); color:var(--c-text) }
.cm-ch[aria-current="true"] { background:color-mix(in srgb, var(--c-accent) 14%, var(--c-card)); color:var(--c-text) }
.cm-ch.unread { color:var(--c-text) } .cm-ch .h { color:var(--c-faint) }
.cm-me { background:var(--c-card); border-top-color:var(--c-border) }
.av .dot { background:var(--c-up); border-color:var(--c-panel) }
.cm-m:hover { background:color-mix(in srgb, var(--c-text) 3%, transparent) }
.cm-m.mention { background:color-mix(in srgb, var(--c-warn) 11%, transparent); box-shadow:inset 3px 0 var(--c-warn) }
.cm-m.jump { outline:2px solid var(--c-warn); outline-offset:-2px } .ptoast.cmev { cursor:pointer }
.cm-m .men { background:color-mix(in srgb, var(--c-accent) 18%, transparent); color:var(--c-accent) }
.cm-m .acts, .cm-pick { background:var(--c-card); border-color:var(--c-border-strong) } .cm-m .acts button:hover, .cm-pick button:hover { background:var(--c-raised) }
.cm-rx button { background:var(--c-raised); border-color:transparent } .cm-rx button.mine { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent) }
.cm-day { color:var(--c-faint) } .cm-day::before, .cm-day::after { background:var(--c-border) }
.cm-new { display:flex; align-items:center; gap:10px; margin:12px 16px 4px; color:var(--c-accent); font:700 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase } .cm-new::after { content:""; flex:1; height:1px; background:var(--c-accent) }
.cm-compose form, .cm-compose .reply, .cm-join, .cm-callf { background:var(--c-card); border-color:var(--c-border-strong) }
.cm-compose input { background:transparent; border:0 }
.cm-compose textarea#cm_text { background:transparent; border:0 }
.cm-mp { background:var(--c-card); border-color:var(--c-border-strong) } .cm-mp .mp-o:hover { background:var(--c-raised) } .cm-mp .mp-o[aria-selected="true"] { background:color-mix(in srgb, var(--c-accent) 16%, var(--c-card)) } .cm-mp .mp-o small { color:var(--c-muted) } .cm-mp .mp-all { background:var(--c-raised); color:var(--c-muted) }
.cm-m .chl { color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 16%, transparent) } .cm-m .chl:hover { background:color-mix(in srgb, var(--c-accent) 26%, transparent) }
.cm-mem:hover { background:var(--c-raised) } .cm-welcome .big { background:var(--c-raised) }
.cm-focus { background:color-mix(in srgb, var(--c-accent) 10%, var(--c-card)); color:var(--c-muted) }
.cm-prof { background:var(--c-card); border-color:var(--c-border-strong) } .cm-prof .ph { background:var(--c-raised) }
.cm-prof .pg { background:var(--c-border) } .cm-prof .pg div { background:var(--c-card) }
.cm-thread { background:var(--c-bg) } .cm-thread .tt, .cm-thread .tc { border-color:var(--c-border) }
.cm-thread textarea { background:var(--c-bg); border-color:var(--c-border-strong) }
.thr .tf { background:var(--c-raised) } .rep .rb2 { background:var(--c-raised) }
.s-rth { --s:var(--c-up) } .s-pre { --s:var(--c-warn) } .s-lon { --s:var(--untested) } .s-asia { --s:var(--c-accent) } .s-off { --s:var(--c-faint) }
.cm-board td.rk { color:var(--c-faint) } .cm-board tr:nth-child(-n+4) td.rk { color:var(--c-warn) }
.cm-empty { color:var(--c-muted) } .cm-empty .big { font-size:34px; display:block; margin-bottom:6px }
/* members only: a signed-in account that isn't a member gets this card instead of rooms and chats */
.fl-member { display:grid; gap:12px; max-width:440px; margin:32px auto; padding:20px 22px; text-align:left; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:var(--r-card); box-shadow:var(--c-shadow-sm) }
.fl-member .kick { font:600 11px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-accent) }
.fl-member h3 { margin:0; font:600 17px/1.3 var(--f-body); color:var(--c-text) }
.fl-member p { margin:0; font-size:14px; line-height:1.55; color:var(--c-text) } .fl-member .fine { font-size:12.5px; color:var(--c-muted) }
.fl-member .acts { display:flex; flex-wrap:wrap; gap:8px; margin:0 } .fl-member .acts button { padding:8px 14px; font-size:13.5px }
.fl-member .fine button { border:0; background:transparent; padding:0; color:var(--c-muted); text-decoration:underline; font-size:inherit } .fl-member .fine button:hover { color:var(--c-text) }
#room_community.nonmember { grid-template-columns:236px minmax(0, 1fr) } #room_community.nonmember .cm-members { display:none }
#social .fl-member { margin:4px 0 } #cm_msgs .fl-member { margin:48px auto }
.fl-member .qn-ask { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; border:1px dashed var(--c-border-strong); border-radius:8px; font-size:13.5px; line-height:1.45; color:var(--c-text) }
.fl-member .qn-ask span { flex:1 1 220px } .fl-member .qn-ask button { padding:7px 12px; font-size:13px }

/* the TiltLab room (2026-10-21): first in the Floor, a card of its own; pinned explainer posts; the team's badge */
.cm-main { grid-template-columns:minmax(0, 1fr) }   /* a long channel description (nowrap) no longer widens the column past a phone's screen */
.tlr-room { margin:4px 0 6px; padding:6px; border:1px solid color-mix(in srgb, var(--c-accent) 32%, var(--c-border)); border-radius:var(--r-card); background:color-mix(in srgb, var(--c-accent) 6%, var(--c-panel)) }
.tlr-head { display:flex; gap:8px; align-items:center; padding:4px 4px 2px } .tlr-head .grow { flex:1; min-width:0 }
.tlr-head b { display:block; font:600 14px var(--f-body); color:var(--c-text) } .tlr-head small { display:block; color:var(--c-muted); font-size:11.5px; line-height:1.35 }
.tlr-logo { flex:none; width:28px; height:28px; border-radius:8px; display:grid; place-items:center; overflow:hidden; background:#15121f; color:#fff; font:700 11px var(--f-body) }
.tlr-logo img { width:100%; height:100%; display:block }
.tlr-sec { margin:10px 6px 2px; font:700 10.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-faint) }
.tlr-room > .tlr-sec ~ .tlr-sec { margin-top:12px; padding-top:10px; border-top:1px solid var(--c-border, var(--rule)) }   /* roomlook: each heading opens its own section */
.tlr-room .cm-ch .nm { line-height:20px }   /* an emoji in a name doesn't make its row taller */
.cm-ch.em > .h { display:none }   /* (roomlook) a name that starts with an emoji needs no "#" */
.av.tli { background:#15121f !important; overflow:hidden } .av.tli img { width:100%; height:100%; display:block }   /* the TiltLab app icon as the team's avatar */
.cm-ch.muted { opacity:.6 }
.tlr-team { display:inline-block; margin-left:6px; padding:0 6px; border-radius:6px; background:color-mix(in srgb, var(--c-accent) 16%, transparent); color:var(--c-accent); font:700 10.5px/18px var(--f-body); letter-spacing:.02em; vertical-align:1px; white-space:nowrap }
.tlr-pinned-tag { margin-left:6px; font-size:11px; color:var(--c-muted) }
.tlr-posts { display:grid; gap:12px; padding:0 16px 10px; max-width:760px }
.tlr-posts .cm-welcome { padding:18px 0 2px }
.tlr-post { padding:14px 16px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); color:var(--c-text) }
.tlr-ph { display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:8px } .tlr-ph .tlr-team { margin-left:0 }
.tlr-post h3 { margin:0 0 8px; font:600 16px/1.3 var(--f-body) }
.tlr-lines { margin:0; padding-left:18px; display:grid; gap:4px; font-size:14px; line-height:1.5 }
.tlr-post blockquote { margin:10px 0 0; padding:8px 12px; border-left:3px solid var(--c-accent); background:var(--c-raised); border-radius:0 8px 8px 0; font-size:14px; line-height:1.5 }
.tlr-rules { margin:0; padding-left:20px; display:grid; gap:6px; font-size:14px; line-height:1.5 }
.tlr-rules.sm { padding:0 10px 0 26px; font-size:12.5px; color:var(--c-muted) }
.tlr-www { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:6px 14px; margin:0; font-size:14px; line-height:1.5 }
.tlr-www dt { font-weight:600; color:var(--c-muted); font-size:12.5px; padding-top:2px } .tlr-www dd { margin:0 }
.tlr-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px }
.tlr-links .btnlink { display:inline-flex; align-items:center; padding:5px 12px; border-radius:var(--r-ctl, 8px); border:1px solid var(--c-border-strong); color:var(--c-text); text-decoration:none; font-size:13px }
.tlr-state { max-width:460px; margin:4px 16px 12px; padding:14px 16px; background:var(--c-card); border:1px dashed var(--c-border-strong); border-radius:var(--r-card); color:var(--c-text) }
.tlr-state p { margin:6px 0 0; font-size:14px; line-height:1.5; color:var(--c-muted) } .tlr-state .acts { margin-top:10px }
.tlr-more { margin:10px 8px 0; font-size:12.5px; line-height:1.45; color:var(--c-muted) }
.tlr-rule { padding:4px 4px 0; font-size:11.5px; color:var(--c-faint) }
.tlr-pinbar { display:grid; gap:4px; margin:8px 16px } .tlr-pinbar button { text-align:left; padding:6px 10px; font-size:13px; border:1px solid var(--c-border); background:var(--c-card); border-radius:var(--r-ctl, 8px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
@media (max-width:760px) { .tlr-www { grid-template-columns:minmax(0, 1fr); gap:2px } .tlr-www dd { margin-bottom:6px } .tlr-posts { padding:0 12px 10px } }

/* ---- community badges + your account (owner decisions 2026-10-23): PRO (brand purple) for Pro / trial members, FOUNDER
   (gold) for the first 100 founders instead of PRO; the TiltLab team badge first. The badge text comes from public.badges
   (031_member_badges.sql), which only the cloud writes. The top bar's Sign In / avatar menu, and Edit Profile. */
:root, :root[data-theme="dark"] { --c-pro-ink:#b9a2fb; --c-pro-bg:rgba(167,139,250,.16); --c-gold-ink:#e9c46a; --c-gold-bg:rgba(233,196,106,.16) }
:root[data-theme="light"] { --c-pro-ink:#5a2fa3; --c-pro-bg:rgba(103,58,183,.10); --c-gold-ink:#7f5a00; --c-gold-bg:rgba(176,128,16,.14) }
.mb-pro, .mb-founder { display:inline-block; margin-left:6px; padding:0 5px; border-radius:5px; font:800 9.5px/16px var(--f-body); letter-spacing:.07em; vertical-align:1px; white-space:nowrap }
.mb-pro { color:var(--c-pro-ink); background:var(--c-pro-bg); border:1px solid color-mix(in srgb, var(--c-pro-ink) 35%, transparent) }
.mb-founder { color:var(--c-gold-ink); background:var(--c-gold-bg); border:1px solid color-mix(in srgb, var(--c-gold-ink) 45%, transparent) }
.nm-team { color:var(--c-pro-ink) !important }
.rvp-card { width:min(560px, calc(100vw - 32px)) } .rvp-opts { display:flex; flex-wrap:wrap; gap:10px; align-items:center }
.rvp-opts .g button[aria-pressed="true"] { background:var(--c-accent); color:#fff; border-color:var(--c-accent) }
.rvp-img { display:flex; justify-content:center; background:var(--c-raised); border-radius:10px; padding:10px }
.rvp-img img { max-width:100%; max-height:min(56vh, 620px); border-radius:8px; box-shadow:0 8px 28px rgba(0,0,0,.35) } .nm-founder { color:var(--c-gold-ink) !important }
.cm-meb { flex:1; min-width:0; display:flex; align-items:center; gap:8px; padding:3px 4px; margin:-3px -4px; border:0; border-radius:8px; background:none; color:inherit; text-align:left; font:inherit; cursor:pointer }
.cm-meb:hover, .cm-meb:focus-visible { background:var(--c-raised) } .cm-meb .grow { flex:1; min-width:0 } .cm-meb b { overflow-wrap:anywhere }
.pf-bio { padding:8px 14px 0; font-size:13px; line-height:1.45; color:var(--c-text); white-space:pre-wrap; overflow-wrap:anywhere }
#acct_w { position:relative; flex:none; display:flex; align-items:center; order:98 }
#acct_w[hidden], #acct_in[hidden], #acct_btn[hidden] { display:none !important }
#acct_in { height:30px; padding:0 14px; border:1px solid var(--c-accent-deep); border-radius:999px; background:var(--c-accent-deep); color:#fff; font:600 12.5px var(--f-body); white-space:nowrap; cursor:pointer }
#acct_in:hover, #acct_in:focus-visible { background:color-mix(in srgb, var(--c-accent-deep) 82%, #fff) }
#acct_btn { height:30px; padding:0 7px 0 2px; display:flex; align-items:center; gap:3px; border:1px solid var(--c-border); border-radius:999px; background:var(--c-raised); color:var(--c-muted); cursor:pointer }
#acct_btn:hover, #acct_btn[aria-expanded=true] { border-color:var(--c-border-strong); color:var(--c-text) }
#acct_btn .av { width:24px; height:24px; font-size:11px } #acct_btn .car { font-size:10px }
#acct_menu { position:fixed; z-index:90; width:min(270px, calc(100vw - 16px)); display:grid; gap:2px; padding:6px }
#acct_menu[hidden] { display:none }
#acct_menu .acct-h { display:flex; align-items:center; gap:10px; padding:8px 10px 10px; border-bottom:1px solid var(--c-border); margin-bottom:4px; min-width:0 }
#acct_menu .acct-h b { font-weight:600; overflow-wrap:anywhere } #acct_menu .acct-h small { display:block; color:var(--c-muted); font-size:12px; overflow:hidden; text-overflow:ellipsis }
#acct_menu button { display:block; width:100%; text-align:left; padding:7px 10px; border:0; border-radius:var(--r-ctl, 8px); background:transparent; color:var(--c-text); font:500 13.5px var(--f-body); cursor:pointer }
#acct_menu button:hover, #acct_menu button:focus-visible { background:var(--c-raised) }
#acct_menu button b { display:block; font-weight:600 } #acct_menu button small { display:block; color:var(--c-muted); font-size:12px }
@media (min-width:761px) {
  body header > #acct_w:not(#x1):not(#x2):not(#x3):not(#x4) { display:flex !important }      /* in every room, beside Plan */
  body header > #acct_w[hidden]:not(#x1):not(#x2):not(#x3):not(#x4):not(#x5) { display:none !important }
}
#rm_acct { display:none !important }
@media (max-width:760px) {
  header #acct_w:not(#x1):not(#x2):not(#x3):not(#x4) { display:none !important }     /* a phone: Sign In / Your Account is in the rail's More */
  #rmore_pop #rm_acct:not([hidden]) { display:grid !important }
  #acct_menu { top:auto !important; bottom:calc(var(--rb, 56px) + 8px); left:8px !important; right:8px; width:auto !important }
}
.ep-card { width:min(440px, calc(100vw - 24px)) }
.ep-f { display:grid; gap:6px; margin-top:10px } .ep-f label { font-weight:600; font-size:13px; margin-top:6px } .ep-f label small { font-weight:400; color:var(--c-muted); margin-left:6px }
.ep-f input[type=text], .ep-f textarea { width:100%; box-sizing:border-box; font:inherit; font-size:14px } .ep-f textarea { resize:vertical; min-height:64px }
.ep-pv { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--c-border); border-radius:var(--r-card, 12px); background:var(--c-raised) }
.ep-pv b { font-weight:600; overflow-wrap:anywhere } .ep-pv small { display:block; color:var(--c-muted); font-size:12.5px; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere }
.ep-col { display:flex; flex-wrap:wrap; gap:8px; border:0; padding:0; margin:6px 0 0 } .ep-col legend { font-weight:600; font-size:13px; padding:0; margin-bottom:6px }
.ep-sw { position:relative; margin:0 !important } .ep-sw input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer }
.ep-sw span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#fff; font:700 11px var(--f-body); border:2px solid transparent; box-shadow:0 0 0 1px var(--c-border) }
.ep-sw input:checked + span { border-color:var(--c-bg, #fff); box-shadow:0 0 0 2px var(--c-text) } .ep-sw input:focus-visible + span { outline:2px solid var(--c-accent); outline-offset:2px }
.ep-f .err { color:var(--c-down); font-size:13px; min-height:0 } .ep-f .err:empty, .ep-f .ep-ok:empty { display:none }
.ep-f .ep-ok { color:var(--c-up); font-size:13.5px; font-weight:600 }
/* profiles v2 (owner test 2026-10-23 #16): photos, display names, staff banner + role title */
.av.has-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit }
.av.lg { width:56px; height:56px; font-size:20px }
.ep-photo { display:flex; align-items:center; gap:12px; margin-top:4px } .ep-photo .meta { margin-top:4px }
.ep-photo button { margin-right:6px }
.ep-role { font-size:13px; color:var(--c-muted) } .ep-role b { color:var(--c-text) }
.ep-handle { color:var(--c-muted); font-weight:400; font-size:12.5px; margin-left:6px }
.cm-prof .ph.banner { background:linear-gradient(135deg, color-mix(in srgb, var(--ban) 38%, var(--c-raised)), var(--c-raised)) }
.cm-prof .ph .hdl { display:block; font-size:12px; color:var(--c-muted); font-weight:400 }
.cr-card { width:min(360px, calc(100vw - 24px)) }
.cr-cv { display:block; margin:12px auto 8px; width:280px; height:280px; max-width:100%; border-radius:50%; background:var(--c-raised); cursor:grab; touch-action:none; box-shadow:0 0 0 1px var(--c-border) }
.cr-cv:active { cursor:grabbing } .cr-cv:focus-visible { outline:2px solid var(--c-accent); outline-offset:3px }
.cr-z { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600 } .cr-z input { flex:1 }
.rep-ph { width:72px; height:72px; border-radius:50%; object-fit:cover; display:block }

/* ---- Partners & chat panel, Ask, Phone, Log */
.sc-list li { background:var(--c-card); border:1px solid var(--c-border); border-radius:10px } .sc-list li small { color:var(--c-faint) }
.sc-form .sc-forgot { color:var(--c-muted) } .sc-form .sc-forgot:hover { color:var(--c-text); background:transparent }
.toggle-row { background:var(--c-card); border:1px solid var(--c-border); border-radius:10px }
.msg { background:var(--c-raised); border-radius:12px } .msg.me { background:color-mix(in srgb, var(--c-accent) 22%, var(--c-card)); color:var(--c-text) }
.msg.me .tcard { border-color:var(--c-border-strong) }
.sc-h4 { margin:4px 0 0; font:600 12px var(--f-body); color:var(--c-muted) }
.sc-row { display:flex; align-items:center; gap:8px } .sc-grow { flex:1 } .sc-start { justify-self:start } .sc-gm { font-size:13px } .sc-sum { cursor:pointer }
.ask-log { background:var(--c-panel) } .ask-m { border-radius:12px; font-size:13.5px }
.ask-m.q { background:color-mix(in srgb, var(--c-accent) 22%, var(--c-card)); color:var(--c-text) } .ask-m.a { background:var(--c-card); border:1px solid var(--c-border) }
.ask-m.e { color:var(--c-down) } .ask-via { align-self:flex-end; margin-top:-4px; font-size:11px; color:var(--c-muted) } .ask-h button { color:var(--c-faint) } .ask-h button:hover { color:var(--c-text); background:var(--c-raised) }
/* Quick Answers (2026-10-24): the small tag under an answer, and what was heard (spoken quick answers) */
.ask-m .ask-tag { display:block; margin-top:4px; font-size:11px; font-weight:600; color:var(--c-up, #2e9e5b); white-space:normal } .ask-m .ask-tag.ai { color:var(--c-muted) }
.ask-heard { align-self:flex-start; margin-top:-4px; font-size:11px; color:var(--c-muted); overflow-wrap:anywhere }
.ask-heard .ask-again { padding:0 4px; font-size:11px; color:var(--c-muted); background:none; border:0; text-decoration:underline; cursor:pointer } .ask-heard .ask-again:hover { color:var(--c-text) }
#va_pill .va-tag { flex:none; font-size:11px; font-weight:600; color:var(--c-up, #2e9e5b) }
.aitag { color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent) }
#phoned { background:var(--c-panel); border-color:var(--c-border) }
#ph_body .qr { background:#fff; color:#222; border-color:var(--c-border) }   /* a QR code needs a white quiet zone in either theme */
#ph_body .qr button { background:#f4f1ec; color:#221c2b; border-color:#d3c6b4 }
#ph_body .note { background:color-mix(in srgb, var(--c-warn) 10%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-warn) 30%, transparent); border-left:3px solid var(--c-warn); border-radius:var(--r-ctl) }
#ph_body .ph-dev { border-top-color:var(--c-border) }
.dh button, #phoned .ph-h button { color:var(--c-faint); background:transparent; border:0 } :is(.dh, #phoned .ph-h) button:hover { color:var(--c-text); background:var(--c-raised) }
.li .t { color:var(--c-faint) }
.s-open { color:var(--c-accent) } .s-hit { color:var(--c-up) } .s-missed { color:var(--c-down) } .s-expired { color:var(--c-muted) }
/* the classic MyMentor drawer (still opens from the Mentor room) */
#mmd .ml { background:var(--c-bg); border-right-color:var(--c-border) }
.mmr { background:var(--c-card); border-color:var(--c-border) } .mmr .s { color:var(--c-muted) } .mmr .g i { background:var(--c-raised) }
.mmr[aria-current="true"] { border-color:var(--c-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 20%, transparent) }
.mmv { background:var(--c-raised); border-left-color:var(--c-accent); border-radius:var(--r-ctl) } .mmv.bad { border-left-color:var(--c-down) } .mmv.good { border-left-color:var(--c-up) }

/* ---- Plans card, upsells, setup guide, Delete account, demo card */
.up-card .tag { background:color-mix(in srgb, var(--c-accent) 16%, transparent); color:var(--c-accent); font:600 10.5px var(--f-body) }
.up-card .pr { font:500 26px var(--f-num); font-variant-numeric:tabular-nums }
.plans-grid { border-color:var(--c-border); border-radius:10px } .plans-grid > div { border-bottom-color:var(--c-border) }
.plans-grid .h { background:var(--c-raised); font:600 12px var(--f-body) } .plans-grid .pro { background:color-mix(in srgb, var(--c-accent) 7%, transparent) }
.plans-grid .y { color:var(--c-up) } .plans-grid .n { color:var(--c-faint) }
.pl-del { border-top-color:var(--c-border) }
.lockveil .cta > div { background:var(--c-card); border-color:var(--c-border-strong) }
.gd-lead { font-size:14px; line-height:1.55 } .gd-steps { display:grid; gap:10px; padding-left:20px; margin:0; font-size:14px; line-height:1.5 }
.gd-status { padding:9px 12px; border-radius:var(--r-ctl); background:var(--c-raised); border:1px solid var(--c-border); font-size:14px }
.mtop6 { margin-top:6px } .mtop10 { margin-top:10px }
.da-card .where { background:var(--c-bg); border-color:var(--c-border) }
#demo_card { background:linear-gradient(160deg, #0e0c13 0%, #1c1530 48%, #3b2470 78%, #673ab7 100%); color:#f4f0fb }
#demo_card h1 { font:600 clamp(40px, 7vw, 84px)/1 var(--f-body); text-shadow:0 0 34px rgba(167,139,250,.35) }
#demo_card .fine { color:#c9bfe0; opacity:1 }
#demo_vig { background:radial-gradient(ellipse at center, transparent 55%, rgba(8,6,14,.32) 100%) }
#demo_chip, #demo_sub { background:rgba(14,12,19,.78) } #demo_chip b, #demo_sub .w.now { color:#b49af0 }
#key svg line[stroke="#f23645"] { stroke:var(--dn) }

/* ---- the plan chip: a real item at the right end of the top bar on a PC (the script moves #planbtn into the header there,
   and back into the tool rail's bottom bar on a phone). It shows in every room, past the rooms' "hide the bar" rules. */
@media (min-width:761px) {
  header { padding-right:12px }
  body.room-trade header::before { flex:0 0 calc(100% + 24px); margin:0 -12px }
  /* the :not()s only lift its specificity above the rooms' "hide the bar" rules (up to four ids, e.g. Prep's) */
  header > #planbtn:not(#x1):not(#x2):not(#x3):not(#x4):not(#x5) { display:flex !important; position:static; order:0; flex:none; width:auto; max-width:190px; height:30px; margin:0 0 0 auto; padding:0 12px; align-items:center; gap:6px;
    border:1px solid color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); border-radius:999px; background:color-mix(in srgb, var(--c-accent) 12%, var(--c-raised));
    color:var(--c-text); font:600 12.5px var(--f-body); white-space:nowrap }
  header > #planbtn svg { width:15px; height:15px; color:var(--c-accent); flex:none }
  header > #planbtn span { overflow:hidden; text-overflow:ellipsis }
  header > #planbtn:hover { background:color-mix(in srgb, var(--c-accent) 20%, var(--c-raised)) }
  header > #planbtn.free { border-color:var(--c-border-strong); background:var(--c-raised) } header > #planbtn.free svg { color:var(--c-muted) }
  header > #guard + #planbtn { margin-left:8px }
}
/* ---- navigation (2026-10-19): four primary rooms in the order of the trader's day (Prep -> Trade -> Review, then
   Accounts) and one More menu for Train, Mentor, Market and Floor (2026-10-24: Backtest, the Train room, is its own tab after Review). Row 2 is the Trade toolbar: everything that only does
   something in Trade (mode, replay controls or the live status, timeframe, instrument, Cockpit | Chart, mentor). The
   right rail is grouped (sound | chart tools | mentor | you | phone + chat) and hides chart-only tools in the Cockpit. */
#rooms .rm-sep { flex:none; width:1px; align-self:stretch; margin:6px 4px; background:var(--c-border-strong) }
#more_w { display:flex; position:relative; flex:none }
#more_btn { display:inline-flex; align-items:center; gap:5px; padding:5px 10px 5px 12px; border:0; border-radius:7px; font:500 13px var(--f-body); color:var(--c-muted); background:transparent; white-space:nowrap }
#more_btn:where(:hover), #more_btn[aria-expanded="true"] { color:var(--c-text); background:transparent }
#more_btn svg { width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transition:transform .15s ease }
#more_btn[aria-expanded="true"] svg { transform:rotate(180deg) }
#more_btn.cur { background:var(--seg-on); color:var(--c-text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.2) }
#more_badge { margin-left:0 }
#more_menu { position:fixed; z-index:60; right:auto; display:grid; gap:2px; padding:6px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow) }
#more_menu[hidden] { display:none }
#more_menu button { display:grid; gap:2px; justify-items:start; width:100%; min-height:0; padding:8px 10px; border:0; border-radius:8px; text-align:left; background:transparent; color:var(--c-text); box-shadow:none; font-weight:400 }
#more_menu button:hover, #more_menu button:focus-visible { background:var(--c-raised) }
#more_menu button b { display:flex; align-items:center; font:600 13.5px var(--f-body) }
#more_menu button small { font:400 12px/1.35 var(--f-body); color:var(--c-muted) }
#more_menu button[aria-pressed="true"] { background:color-mix(in srgb, var(--c-accent) 14%, transparent); box-shadow:none }
#more_menu button[aria-pressed="true"] b { color:var(--c-accent) }
@media (min-width:761px) {
  body.room-trade :is(#inst, #layoutsw) { order:2; margin-block:5px }
  body.room-trade #inst { margin-left:auto; height:32px }
  body.room-trade #mentor { order:3; margin-left:0 }
}
/* the status chips (prop, news, Lock It In, plan, guard) share the right end of row 1; as the window narrows they shed words
   in steps so they stay on one row down to about 1000 px: the labels, then the plan's text, then the plan button's word.
   Lock It In only shows while the lock isn't set, so its label alone says it. Every chip keeps its title and click. */
:is(#plansum, #newssum, #propsum) { display:inline-block; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; white-space:nowrap }
@media (min-width:761px) and (max-width:1440px) {
  #propchip .lab, #newschip .lab, #planchip .lab, #locksum { display:none } #lockchip .lab:not(#x) { display:inline }
  #plansum { max-width:140px }
}
@media (min-width:761px) and (max-width:1180px) { header { column-gap:6px } #plansum { display:none } #planchip .lab:not(#x) { display:inline } #newssum { max-width:110px } #propsum { max-width:150px } }
@media (min-width:761px) and (max-width:1080px) { #propsum { max-width:118px } #newssum { max-width:90px } header > #planbtn #planlbl { display:none } header > #planbtn:not(#x1) { padding:0 9px } }
/* the one-time hint under the room tabs */
#navhint { position:fixed; z-index:70; width:min(340px, calc(100vw - 16px)); display:grid; gap:6px; padding:12px 36px 12px 14px; background:var(--c-card); color:var(--c-text);
  border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-radius:12px; box-shadow:var(--c-shadow); font:400 13px/1.45 var(--f-body) }
#navhint::before { content:""; position:absolute; top:-7px; left:24px; width:12px; height:12px; background:var(--c-card); transform:rotate(45deg);
  border-left:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-top:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)) }
#navhint > b { font:600 14px var(--f-body) } #navhint > span { color:var(--c-muted) } #navhint > span b { color:var(--c-text); font-weight:600 }
#navhint.nh-away::before { display:none }   /* (pol5) moved beside the cards: no arrow pointing at nothing */
#navhint .nh-act { display:flex; justify-content:flex-end }
#navhint .nh-ok { padding:5px 14px; border:0; border-radius:var(--r-ctl); background:var(--c-accent); color:var(--c-on-accent); font:600 13px var(--f-body) }
#navhint .nh-x { position:absolute; top:6px; right:6px; padding:2px 7px; border:0; background:transparent; color:var(--c-muted); font-size:18px; line-height:1 }
#navhint .nh-x:hover { color:var(--c-text) }
@media (max-width:760px) {
  #more_btn { padding:0 12px; min-height:44px }
  /* five tabs (Prep, Trade, Review, Backtest, More) fit a phone, so the tab row needs no fade (a mask would also clip the More menu, which hangs below it) */
  #rooms { -webkit-mask-image:none; mask-image:none } #rooms::after { content:none }
  #rooms .rm-sep { margin:10px 2px }
  /* "Mentor" / "Market" in place of "More" is a few px wider: a little less padding keeps all five tabs on a 375px phone */
  #rooms button { padding-left:10px; padding-right:10px } #rooms #more_btn { padding:0 10px }
  /* the phone's Check This Trade button floats over Trade and Prep only: elsewhere it covered forms (Accounts, Mentor) and tables */
  body.ct-phone:not(.room-trade):not(.room-prep) #ctfab { display:none }
  /* (walk 2026-11-13) Prep keeps room under its last row for that button (it covered Settings, the last row, for good) */
  body.ct-phone #room_prep { padding-bottom:84px !important } body.ct-phone.h-smpl #room_prep { padding-bottom:calc(var(--smpl-h, 46px) + 84px) !important }   /* over the phone rooms' 24px !important */
  #navhint { left:8px !important; width:auto; right:8px }
  #navhint .nh-ok, #navhint .nh-x { min-height:40px; min-width:40px }
}
@media (max-width:374px) {                     /* a 360 px phone: "Accounts" in place of "More" beside Backtest */
  #rooms button { padding-left:8px; padding-right:8px } #rooms #more_btn { padding:0 7px 0 8px }
}

/* ---- Mentor room: a guided flow (Style, Rules, Examples, Personality, Test, Go live) */
#room_mentor { overflow-y:auto; padding:18px 22px 40px; display:grid; gap:14px; align-content:start; grid-template-columns:minmax(0, 1fr); min-height:0; grid-auto-rows:max-content }
#room_mentor:not([hidden]) { animation:roomIn .18s cubic-bezier(.2,.8,.2,1) }
.mr-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:10px 16px }
.mr-title { display:grid; gap:2px; min-width:0 } .mr-title h2 { margin:0 }
.mr-who { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.mr-who input { width:200px } .mr-who select { max-width:200px }
.mr-dirty { font:500 12px var(--f-body); color:var(--c-warn) } .mr-saved { font:500 12px var(--f-body); color:var(--c-muted) }
.mr-live { display:inline-flex; align-items:center; gap:6px; font:600 11px var(--f-body); letter-spacing:.05em; text-transform:uppercase; color:var(--c-up); padding:3px 9px; border-radius:999px; background:color-mix(in srgb, var(--c-up) 12%, transparent) }
.mr-notlive { display:inline-flex; align-items:center; font:600 11.5px var(--f-body); color:var(--c-warn); padding:3px 9px; border-radius:999px; border:1px dashed color-mix(in srgb, var(--c-warn) 60%, transparent) }
.mr-live::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor }
.mr-link { border:0; background:transparent; padding:4px 2px; color:var(--c-muted); text-decoration:underline; font-size:12.5px } .mr-link:where(:hover) { background:transparent; color:var(--c-text) }
.mr-steps { display:flex; gap:4px; padding:4px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:12px; overflow-x:auto; scrollbar-width:none }
.mr-steps::-webkit-scrollbar { display:none }
.mr-steps button { flex:1 1 0; min-width:max-content; display:flex; align-items:center; justify-content:center; gap:8px; padding:7px 12px; border:0; border-radius:8px; background:transparent; color:var(--c-muted); font:500 13px var(--f-body); white-space:nowrap }
.mr-steps button:where(:hover) { background:transparent; color:var(--c-text) }
.mr-steps button i { flex:none; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font:600 11px var(--f-num); font-style:normal; border:1px solid var(--c-border-strong); color:var(--c-muted); font-variant-numeric:tabular-nums }
.mr-steps button.done i { background:color-mix(in srgb, var(--c-up) 16%, transparent); border-color:color-mix(in srgb, var(--c-up) 45%, transparent); color:var(--c-up) }
.mr-steps button[aria-current="step"] { background:var(--seg-on); color:var(--c-text); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.18) }
.mr-steps button[aria-current="step"] i { background:var(--c-accent); border-color:var(--c-accent); color:var(--c-on-accent) }
.mr-body { display:grid; gap:14px; min-width:0 }
.mr-tag { margin:2px 0 0; font:600 15px/1.35 var(--f-body); color:var(--c-text) }
.mr-h { margin:0; font:600 15px var(--f-body); color:var(--c-text) }
.mr-adv { margin-top:14px; border-top:1px solid var(--c-border); padding-top:10px; display:grid; gap:10px }
.mr-adv > summary { cursor:pointer; font:600 13px var(--f-body); color:var(--c-muted) } .mr-adv > summary:hover { color:var(--c-text) }
.mr-lead { margin:0; font-size:13.5px; line-height:1.55; color:var(--c-muted); max-width:780px } .mr-lead b { color:var(--c-text) }
.mr-foot { display:flex; justify-content:space-between; gap:8px; padding-top:4px } .mr-foot:empty { display:none } .mr-foot .go { margin-left:auto }
.mr-card, .mr-panel { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:14px 16px; min-width:0 }
.mr-panel h3 { margin:0 0 10px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
.mr-panel h3 .meta { font:400 12px var(--f-body); letter-spacing:0; text-transform:none }
/* 1. Style */
.mr-tpls { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px }
.mr-tpl { display:grid; gap:6px; align-content:start; text-align:left; padding:14px 16px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); color:var(--c-text); font:inherit }
.mr-tpl:where(:hover) { background:var(--c-card); border-color:color-mix(in srgb, var(--c-accent) 50%, var(--c-border)) }
.mr-tpl b { font:600 14.5px var(--f-body) } .mr-tpl span { font-size:13px; line-height:1.45; color:var(--c-muted) } .mr-tpl small { font:500 11.5px var(--f-num); color:var(--c-faint); font-variant-numeric:tabular-nums }
.mr-tpl[aria-pressed="true"] { border-color:var(--c-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 22%, transparent) }
/* 2. Rules: sentence cards beside the preview */
.mr-split { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); gap:14px; align-items:start }
.mr-cards { display:grid; gap:12px; min-width:0 }
.mr-card.off .mr-sent { opacity:.55 }
.mr-card-h { display:flex; align-items:center; gap:10px; margin-bottom:6px }
.mm-nameask { margin:4px 0 6px; padding:6px 9px; border-radius:6px; font-size:13px; background:var(--c-accent-soft, rgba(103,58,183,.1)); color:inherit }   /* MyMentor: name your setup (2026-11-13) */
.mr-card-h .mr-name { flex:1; min-width:0; font:600 14px var(--f-body); background:transparent; border-color:transparent; padding:4px 6px; margin-left:-6px }
.mr-card-h .mr-name:hover, .mr-card-h .mr-name:focus { background:var(--c-bg); border-color:var(--c-border-strong) }
#room_mentor .switch { flex:none; width:44px; height:24px; min-width:44px; min-height:24px; padding:0 }   /* not the phone's 40px square tap target */
.mr-card-h .mr-del { padding:2px 9px; font-size:17px; line-height:1.2 } .mr-card-h .mr-del:hover { color:var(--c-down) }
.mr-sent { margin:0; font-size:14px; line-height:2.1; color:var(--c-text) }
.mr-act { height:26px; margin:0 3px; padding:0 9px; font:500 12.5px var(--f-body); vertical-align:baseline }
.mr-day { border-style:dashed } .mr-ver { margin-left:6px; font-family:var(--f-num); font-variant-numeric:tabular-nums }
.mr-slot { display:inline-block; height:28px; margin:0 1px; padding:0 6px; vertical-align:baseline; font:500 13.5px var(--f-body); color:var(--c-text);
  background:color-mix(in srgb, var(--c-accent) 10%, var(--c-bg)); border:1px solid color-mix(in srgb, var(--c-accent) 30%, var(--c-border-strong)); border-radius:6px }
.mr-slot:where(:hover) { border-color:color-mix(in srgb, var(--c-accent) 60%, var(--c-border-strong)) }
input.mr-slot[type=number] { width:76px; font-family:var(--f-num); font-variant-numeric:tabular-nums } input.mr-slot[type=time] { width:122px; font-family:var(--f-num); font-variant-numeric:tabular-nums } input.mr-slot.prices { width:190px; font-family:var(--f-num); font-variant-numeric:tabular-nums }
.mr-err { color:var(--c-down); font-size:12.5px; margin-top:6px } .mr-err:empty { display:none }
.mr-add { justify-self:start }
.mr-limit { font-size:12.5px; color:var(--c-muted) }
/* the preview: day, chart, where it would alert */
.mr-prev { position:sticky; top:0; display:grid; gap:10px }
.mr-prev-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.mr-prev-bar select { max-width:230px } .mr-prev-bar .grow { flex:1 } .mr-prev-bar label { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--c-muted) }
.mr-chart { position:relative; height:300px; border:1px solid var(--c-border); border-radius:10px; overflow:hidden; background:var(--c-bg) }
.mr-chart > .cv { position:absolute; inset:0 }
.mr-chart .mr-chart-note { position:absolute; inset:0; display:grid; place-items:center; padding:16px; text-align:center; color:var(--c-muted); font-size:13px; z-index:3; pointer-events:none; background:var(--c-bg) }
.mr-chart.busy::after { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg, transparent, var(--c-accent), transparent); animation:mrbusy 1s linear infinite; z-index:4 }
@keyframes mrbusy { from { transform:translateX(-100%) } to { transform:translateX(100%) } }
.mr-alerts { list-style:none; margin:0; padding:0; display:grid; gap:4px; max-height:240px; overflow-y:auto }
.mr-alerts li { display:grid; grid-template-columns:44px 52px minmax(0, 1fr) auto auto; gap:8px; align-items:center; padding:6px 10px; border-radius:var(--r-ctl); background:var(--c-raised); font-size:12.5px; cursor:pointer }
.mr-alerts li:hover { background:color-mix(in srgb, var(--c-text) 6%, var(--c-raised)) }
.mr-alerts li[aria-current="true"] { box-shadow:inset 0 0 0 1px var(--c-accent) }
.mr-alerts li.none { display:block; cursor:default; color:var(--c-muted); background:transparent; padding:6px 2px }
.mr-alerts .t { font-family:var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums } .mr-alerts .sd { font-weight:600 } .mr-alerts .sd.long { color:var(--c-up) } .mr-alerts .sd.short { color:var(--c-down) }
.mr-alerts .nm { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .mr-alerts .pr { font-family:var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums }
.mr-mk { font:600 10.5px var(--f-body); letter-spacing:.04em; text-transform:uppercase; padding:1px 7px; border-radius:999px }
.mr-mk.mk-take { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 13%, transparent) } .mr-mk.mk-skip { color:var(--c-muted); background:var(--c-card); box-shadow:inset 0 0 0 1px var(--c-border-strong) }
.mr-run { font-family:var(--f-num); font-variant-numeric:tabular-nums } .mr-run-wait { color:var(--c-warn) }
.mr-acterr { flex-basis:100%; font-size:12.5px; color:var(--c-down) }
/* 3. Examples */
.mr-ex { display:grid; gap:10px }
/* the days these rules alert on (P0 2026-11-14): matching sessions first, then the rest one click away, the synthetic sample apart */
.mr-days { display:grid; gap:8px }
.mr-days-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; font-size:13px } .mr-days-h .meta { font-size:12px }
.mr-days-list { display:flex; flex-wrap:wrap; gap:6px; max-height:136px; overflow-y:auto }
.mr-dchip { display:inline-flex; align-items:baseline; gap:6px; height:auto; padding:5px 10px; font:500 12.5px var(--f-body); border-radius:999px; background:var(--c-raised); border:1px solid var(--c-border-strong); color:var(--c-text) }
.mr-dchip b { font:600 12px var(--f-num); font-variant-numeric:tabular-nums; color:var(--c-up) }
.mr-dchip.no b { color:var(--c-muted); font-weight:500 } .mr-dchip.nd b { color:var(--c-warn) }
.mr-dchip[aria-pressed="true"] { border-color:var(--c-accent); box-shadow:inset 0 0 0 1px var(--c-accent) }
.mr-dchip.synth { border-style:dashed } .mr-dchip.synth b { color:var(--c-muted); font-weight:500 }
.mr-days-empty { font-size:12.5px; color:var(--c-muted); line-height:1.5 }
.mr-days .mr-link { justify-self:start; font-size:12.5px }
/* the reference levels the rules read, under the chart */
.mr-refs { display:grid; gap:4px; font-size:12.5px; color:var(--c-text) } .mr-refs:empty { display:none }
.mr-refs .rl { display:flex; align-items:baseline; gap:8px } .mr-refs .rl i { flex:none; width:16px; height:0; border-top:2px dashed #1e88e5; transform:translateY(-3px) }
.mr-refs .rl b { font-family:var(--f-num); font-weight:500; font-variant-numeric:tabular-nums } .mr-refs .sub { color:var(--c-muted) }
.mr-refs .mr-note { font-size:12.5px; padding:7px 10px }
/* (pass B 2026-11-15) beginner words, More options, what it watches for, the chart's source label, why it alerted */
.mr-plain { margin:6px 0 0; font-size:12.5px; line-height:1.5; color:var(--c-muted) }
.mr-more { margin-top:8px; border-top:1px dashed var(--c-border); padding-top:6px } .mr-more > summary { cursor:pointer; font-size:13px; line-height:1.5 } .mr-more > summary .meta { font-size:12px }
.mr-more .mr-sent { margin-top:4px } .mr-more-steps { font-size:13px }
.mr-gloss { margin:0 0 10px; font-size:13px } .mr-gloss > summary { cursor:pointer; color:var(--c-accent); font-weight:500 }
.mr-gloss dl { display:grid; grid-template-columns:minmax(120px, max-content) minmax(0, 1fr); gap:4px 12px; margin:8px 0 0; padding:10px 12px; border-radius:10px; background:var(--c-raised) }
.mr-gloss dt { font-weight:600 } .mr-gloss dd { margin:0; color:var(--c-muted); line-height:1.45 }
@media (max-width: 560px) { .mr-gloss dl { grid-template-columns:minmax(0, 1fr) } .mr-gloss dd { margin-bottom:6px } }
.mr-watch { margin:0 0 12px } .mr-watch > summary { cursor:pointer; font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
.mr-watch ol { margin:10px 0 6px; padding-left:20px; display:grid; gap:6px; font-size:13.5px; line-height:1.5 }
.mr-src { position:absolute; left:8px; top:26px; z-index:2; padding:2px 8px; border-radius:999px; font:500 11.5px var(--f-body); background:color-mix(in srgb, var(--c-bg) 80%, transparent); border:1px solid var(--c-border-strong); color:var(--c-text); pointer-events:none }
.mr-src:empty { display:none } .mr-src.synth { border-style:dashed; color:var(--c-warn) }
.mr-why, .mr-why-card { margin:0; font-size:13px; line-height:1.5; padding:8px 10px; border-radius:8px; border-left:3px solid #f5a623; background:var(--c-raised) } .mr-why-card:empty { display:none }
.mr-days-non { display:grid; gap:6px } .mr-days-sub { font-size:12.5px } .mr-days-sub .meta { font-size:12px }
.mr-ex-nav { display:flex; align-items:center; gap:8px } .mr-ex-nav .grow { flex:1; text-align:center; font:500 13px var(--f-body); color:var(--c-muted) }
.mr-ex-card { display:grid; gap:8px; padding:12px 14px; border-radius:10px; background:var(--c-raised); font-size:13.5px }
.mr-ex-card .big { font:600 16px var(--f-body) } .mr-ex-card .big .long { color:var(--c-up) } .mr-ex-card .big .short { color:var(--c-down) }
.mr-ex-card .kv { grid-template-columns:76px 1fr; font-size:13px } .mr-ex-card .kv b { font:500 13px var(--f-num); font-variant-numeric:tabular-nums }
.mr-ex-btns { display:grid; grid-template-columns:1fr 1fr; gap:8px }
.mr-ex-btns button { padding:11px 10px; font:600 14px var(--f-body); border:1px solid }
.mr-take { background:color-mix(in srgb, var(--c-up) 13%, var(--c-card)); border-color:color-mix(in srgb, var(--c-up) 45%, transparent) !important; color:var(--c-up) }
.mr-take:where(:hover), .mr-take[aria-pressed="true"] { background:color-mix(in srgb, var(--c-up) 24%, var(--c-card)); border-color:var(--c-up) !important }
.mr-skip { background:var(--c-raised); border-color:var(--c-border-strong) !important; color:var(--c-text) }
.mr-skip[aria-pressed="true"] { background:color-mix(in srgb, var(--c-text) 12%, var(--c-raised)); border-color:var(--c-text) !important }
.mr-count { font-size:12.5px; color:var(--c-muted) } .mr-count b { color:var(--c-text); font-family:var(--f-num); font-weight:500; font-variant-numeric:tabular-nums }
.mr-note { padding:10px 12px; border-radius:var(--r-ctl); font-size:13px; line-height:1.5; background:var(--c-raised); border:1px solid var(--c-border); color:var(--c-text) }
.mr-note.warn { background:color-mix(in srgb, var(--c-warn) 10%, var(--c-card)); border-color:color-mix(in srgb, var(--c-warn) 35%, transparent) }
.mr-note.calm { background:color-mix(in srgb, var(--c-accent) 8%, var(--c-card)); border-color:color-mix(in srgb, var(--c-accent) 28%, transparent) }
.mr-note .acts { margin-top:8px }
.mr-sugs { display:grid; gap:10px }
.mr-sug { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px 14px; align-items:center; padding:12px 14px; background:var(--c-card); border:1px solid var(--c-border); border-radius:10px }
.mr-sug p { margin:0; font-size:13.5px; line-height:1.5 }
.mr-sug .fb { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px }
.mr-sug .fb span { font:600 11px var(--f-num); padding:2px 8px; border-radius:999px; font-variant-numeric:tabular-nums }
.mr-sug .fb .fx { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 12%, transparent) } .mr-sug .fb .bk { color:var(--c-down); background:color-mix(in srgb, var(--c-down) 12%, transparent) }
.mr-sug .fb .bk.zero { color:var(--c-muted); background:var(--c-raised) }
/* 4. Personality */
.mr-pers { display:grid; gap:16px }
.mr-opt-l { font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted); margin-bottom:8px }
.mr-opts { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:8px }
.mr-opt { display:grid; gap:4px; text-align:left; padding:11px 13px; background:var(--c-card); border:1px solid var(--c-border); border-radius:10px; color:var(--c-text); font:inherit }
.mr-opt:where(:hover) { background:var(--c-card); border-color:color-mix(in srgb, var(--c-accent) 45%, var(--c-border)) }
.mr-opt b { font:600 13.5px var(--f-body) } .mr-opt span { font-size:12.5px; line-height:1.4; color:var(--c-muted) }
.mr-opt[aria-checked="true"] { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 9%, var(--c-card)); box-shadow:0 0 0 1px var(--c-accent) }
.mr-rem { display:grid; gap:6px; max-width:620px } .mr-rem input { width:100% } .mr-rem small { color:var(--c-faint) }
/* 5. Test */
.mr-test { display:grid; gap:12px }
.mr-test .tiles { grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)) }
.mr-test table { width:100%; border-collapse:collapse; font:400 12.5px var(--f-num); font-variant-numeric:tabular-nums }
.mr-test th { text-align:right; font:600 10.5px var(--f-body); letter-spacing:.06em; color:var(--c-faint); padding:6px 8px; border-bottom:1px solid var(--c-border) }
.mr-test td { text-align:right; padding:7px 8px; border-bottom:1px solid var(--c-border) } .mr-test th:first-child, .mr-test td:first-child { text-align:left; font-family:var(--f-body) }
.mr-test td small { display:block; font:400 11px var(--f-body); color:var(--c-faint); white-space:normal }
.mr-flag { display:inline-flex; font:600 10.5px var(--f-body); letter-spacing:.04em; text-transform:uppercase; padding:2px 8px; border-radius:999px }
.mr-flag.too_few { color:var(--c-down); background:color-mix(in srgb, var(--c-down) 12%, transparent) } .mr-flag.small { color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 13%, transparent) }
.mr-flag.ok { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 12%, transparent) }
.mr-past { font-size:12.5px; line-height:1.5; color:var(--c-muted); border-left:3px solid var(--c-border-strong); padding:2px 0 2px 10px }
/* 1b. Describe Your Setup (describe.py): the creator's words or script -> drafted rules -> reviewed line by line */
.mr-mode { display:inline-flex; gap:4px; padding:4px; background:var(--seg-bg); border:1px solid var(--c-border); border-radius:12px; justify-self:start; flex-wrap:wrap }
.mr-mode button { border:0; padding:8px 16px; border-radius:8px; background:transparent; color:var(--c-muted); font:600 13.5px var(--f-body) }
.mr-mode button:where(:hover) { background:transparent; color:var(--c-text) }
.mr-mode button[aria-pressed="true"] { background:var(--seg-on); color:var(--c-text); box-shadow:0 1px 2px rgba(0,0,0,.18) }
.mr-mode.mr-srcsw button { padding:6px 12px; font-size:12.5px }   /* (owner 2026-11-17) not "mr-src": that class is the chart's corner badge (position:absolute), which pinned this switch under the top bar */
.mr-ai { display:grid; gap:12px; max-width:880px }
.mr-ai textarea { width:100%; min-height:150px; resize:vertical; padding:12px 14px; font:400 14px/1.55 var(--f-body); color:var(--c-text); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:10px }
.mr-ai textarea.mono { min-height:220px; font:400 12.5px/1.5 var(--f-mono); white-space:pre; overflow-wrap:normal } .mr-ai textarea.short { min-height:70px }
.mr-ai-own { display:flex; gap:8px; align-items:center; font:600 13px var(--f-body) }
.mr-ai-ex { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12.5px; color:var(--c-muted) }
.mr-ai-ex button { padding:4px 11px; border-radius:999px; font:500 12.5px var(--f-body) }
.mr-ai-go { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px }
.mr-ai-cost { margin:0; font-size:12.5px; color:var(--c-muted) }
.mr-ai pre { margin:8px 0 0; max-height:260px; overflow:auto; padding:10px 12px; border-radius:8px; background:var(--c-raised); border:1px solid var(--c-border); font:400 11.5px/1.5 var(--f-mono); white-space:pre-wrap; word-break:break-word }
.mr-ai-list { display:grid; gap:10px }
.mr-ai-rule { display:grid; gap:8px; padding:12px 14px; background:var(--c-card); border:1px solid var(--c-border); border-radius:10px }
.mr-ai-rule.ok { border-color:color-mix(in srgb, var(--c-up) 45%, var(--c-border)) }
.mr-ai-rule b { font:600 14px var(--f-body) } .mr-ai-rule p { margin:0; font-size:13.5px; line-height:1.55 }
.mr-ai-rule .why { font-size:12.5px; color:var(--c-muted); border-left:3px solid var(--c-border-strong); padding-left:10px }
.mr-ai-rule .acts, .mr-ai-q .acts, .mr-par .acts { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 }
.mr-ai-rule [aria-pressed="true"] { color:var(--c-up); border-color:var(--c-up) }
.mr-ai-q { display:grid; gap:8px; padding:10px 12px; border-radius:10px; background:color-mix(in srgb, var(--c-accent) 8%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-accent) 28%, transparent); font-size:13.5px }
.mr-ai-chat { display:flex; gap:8px } .mr-ai-chat input { flex:1; min-width:0 }
.mr-ai-use { display:flex; flex-wrap:wrap; align-items:center; gap:10px }
/* (owner 2026-11-14) what an AI draft assumed: material settings are the trader's choice, the rest is shown as filled in */
.mr-ai-ask { display:grid; gap:6px; padding:9px 11px; border-radius:9px; font-size:13px; background:color-mix(in srgb, var(--c-warn) 9%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-warn) 40%, transparent) }
.mr-ai-ask.done { background:var(--c-card); border-color:color-mix(in srgb, var(--c-up) 40%, var(--c-border)) }
.mr-ai-ask p { margin:0 } .mr-ai-ask .acts { display:flex; flex-wrap:wrap; gap:6px } .mr-ai-ask [aria-pressed="true"] { color:var(--c-up); border-color:var(--c-up) }
.mr-ai-need { font:600 11px var(--f-body); letter-spacing:.04em; color:var(--c-warn) } .mr-ai-ask.done .mr-ai-need { color:var(--c-up) }
.mr-ai-custom { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.mr-ai-filled { font-size:12.5px; color:var(--c-muted) } .mr-ai-filled summary { cursor:pointer } .mr-ai-filled ul { margin:6px 0 0; padding-left:18px; line-height:1.55 }
.mr-ai-mine { display:flex; gap:8px; align-items:flex-start; font-size:13.5px }
.mr-ai-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; font-size:13px } .mr-ai-cols ul { margin:6px 0 0; padding-left:18px; line-height:1.55 }
.mr-ai-in { width:100%; border-collapse:collapse; font-size:12.5px } .mr-ai-in th { text-align:left; font:600 10.5px var(--f-body); letter-spacing:.06em; color:var(--c-faint); padding:5px 6px; border-bottom:1px solid var(--c-border) }
.mr-ai-in td { padding:6px; border-bottom:1px solid var(--c-border) }
.mr-par { display:grid; gap:10px } .mr-par-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px } .mr-par-bar input[type=file] { max-width:260px; font-size:12.5px }
.mr-par-list { margin:0; padding-left:18px; max-height:220px; overflow-y:auto; font-size:12.5px; line-height:1.6 } .mr-par-list .t { font-family:var(--f-num); font-variant-numeric:tabular-nums }
.mr-test-prev { margin-top:4px }
@media (max-width:760px) { .mr-mode { width:100% } .mr-mode button { flex:1 1 0 } .mr-ai-chat { flex-wrap:wrap } }
/* 6. Go live */
.mr-go { display:grid; gap:12px; max-width:680px }
.mr-go .acts { display:flex; flex-wrap:wrap; gap:8px; margin:0 }
#room_mentor .acts button { padding:7px 14px; font-size:13px }
.mr-empty { padding:28px 18px; text-align:center; color:var(--c-muted); font-size:13.5px; line-height:1.55 }

@media (min-width:761px) { body:not(.room-trade) .ptoast { top:auto; bottom:20px; right:70px } }   /* rooms: toasts at the bottom right, clear of the room's own header controls */
@media (max-width:1100px) { .mr-split { grid-template-columns:minmax(0, 1fr) } .mr-prev { position:static } }
@media (max-width:760px) {
  #room_mentor { gap:12px }
  .mr-head { align-items:stretch } .mr-who { width:100% } .mr-who input { flex:1 1 140px; width:auto } .mr-who select { flex:1 1 140px; max-width:none }
  .mr-steps button { flex:none; padding:8px 10px } .mr-steps button span { display:none } .mr-steps button[aria-current="step"] span { display:inline }
  .mr-chart { height:240px }
  .mr-sent { line-height:2.4 } .mr-slot { height:36px; font-size:16px; max-width:100% } input.mr-slot[type=number] { width:84px } input.mr-slot[type=time] { width:132px }
  .mr-sug { grid-template-columns:minmax(0, 1fr) } .mr-sug > button { justify-self:start }
  .mr-alerts li { grid-template-columns:42px 46px minmax(0, 1fr) auto } .mr-alerts li .pr { display:none }
  .mr-foot button, .mr-ex-btns button, .mr-steps button, .fl-member .acts button, .mr-who button { min-height:44px }
  .fl-member { margin:12px 0; padding:16px }
  #cm_msgs .fl-member { margin:16px }
  .mr-tpls, .mr-opts { grid-template-columns:minmax(0, 1fr) }
}
/* =====================================================================================================================
   2026 REVAMP, stage 4: the Cockpit layout (Trade room), indicators, the instrument picker
   ===================================================================================================================== */
:root, :root[data-theme="dark"], .cs-dark, #stage.cs-light > :is(#tpanel, #bstrip), #stage.cs-light:not(.hb-chart) > #cockpit, #stage.cs-dark #ck_chartbox {
  --i-orange:#f0954a; --i-teal:#3cc4a8; --i-blue:#5b8cff; --i-pink:#e879b9; --i-gold:#e0c04e; --i-grey:#8a8398 }
:root[data-theme="light"], .cs-light, #stage.cs-dark > :is(#tpanel, #bstrip), #stage.cs-dark:not(.hb-chart) > #cockpit, #stage.cs-light #ck_chartbox {
  --i-orange:#c25e12; --i-teal:#0b7a66; --i-blue:#2962ff; --i-pink:#b0337f; --i-gold:#8a6d00; --i-grey:#7c7772 }
/* toolbar: instrument picker + Cockpit | Chart switch (Trade room only) */
#inst, #pp_inst { font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums }
#layoutsw button { padding:4px 9px }
body:not(.room-trade) #layoutsw { display:none }
/* the Cockpit: a card grid over the chart area (the trade panel and the bottom strip stay) */
#cockpit { position:absolute; inset:0 var(--rp) var(--sbh) 0; z-index:5; display:grid; gap:12px; padding:12px; background:var(--c-bg); color:var(--c-text);
  grid-template-columns:repeat(3, minmax(0, 1fr)); grid-template-rows:auto minmax(280px, 1fr) auto;
  grid-template-areas:"vd vd nx" "gd ps pl" "mo mo mo"; overflow-y:auto; align-content:stretch }
body.ck #stage > :is(#dtools, #drawbtn, #dbar, #mtf, #clock, #now, #empty, #trade, #plan, #story, #chartgear, #mdhbtn, #chint) { display:none !important }
body.ck #stage::after { inset:0 var(--rp) var(--sbh) 0 }
.ck-card { background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:14px 16px; min-width:0; min-height:0; display:flex; flex-direction:column; gap:8px; overflow:hidden }
.ck-redit-b { margin-left:auto; padding:1px 8px; font:500 11.5px var(--f-body); letter-spacing:0; text-transform:none; color:var(--c-accent); background:none; border:1px solid var(--c-border); border-radius:6px; cursor:pointer }
.ck-rnext { margin-top:4px; color:var(--c-warn) }
.ck-redit { margin-top:6px } .ckr-f { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:6px 10px }
.ckr-f label { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--c-muted) } .ckr-f input { font-size:13.5px; padding:4px 6px }
.ckr-n { margin:6px 0 4px; font-size:12px; color:var(--c-faint) } .ckr-a { display:flex; gap:8px; align-items:center; flex-wrap:wrap }
.ck-h { display:flex; justify-content:space-between; align-items:center; gap:8px; font:600 11.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted) }
.ck-h .ck-sub { font:400 12px var(--f-body); letter-spacing:0; text-transform:none; color:var(--c-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.ck-big { font:500 30px/1.1 var(--f-num); color:var(--c-text); white-space:nowrap; font-variant-numeric:tabular-nums }
.ck-big small { font:400 14px var(--f-body); color:var(--c-muted); margin-left:6px }
.ck-rows { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:6px 14px; align-items:baseline; font-size:14px; color:var(--c-muted) }
.ck-rows b { justify-self:end; font:500 17px var(--f-num); color:var(--c-text); white-space:nowrap; font-variant-numeric:tabular-nums }
.ck-rows b.up, .ck-big.up { color:var(--c-up) } .ck-rows b.down, .ck-big.down { color:var(--c-down) } .ck-rows b.warn { color:var(--c-warn) }
.ck-note { font-size:13.5px; line-height:1.45; color:var(--c-muted) }
/* verdict */
#ck_vd { grid-area:vd; flex-direction:row; align-items:center; gap:22px; border-left:6px solid var(--c-border-strong) }
#ck_vd .ck-word { font:600 58px/1 var(--f-body); letter-spacing:-.01em; color:var(--c-muted); flex:none }
#ck_vd .ck-wq { align-self:center; font:600 13px/1.3 var(--f-body); color:var(--c-warn); max-width:16em }   /* (pol3-states) what "Monitoring" doesn't cover */
#ck_vd .ck-vtext { display:flex; flex-direction:column; gap:6px; min-width:0 }
#ck_why { font:500 19px/1.35 var(--f-body); color:var(--c-text); margin:0 }
#ck_more { margin:0; padding-left:18px; font-size:13.5px; color:var(--c-muted) } #ck_more:empty { display:none }
/* (t43-guard 11-17) one of his own limits is the reason: the fact line (always shown), then a short human line under it */
#ck_vd .ck-fact { margin:0; font:600 17px/1.3 var(--f-body); color:var(--c-text); font-variant-numeric:tabular-nums; overflow-wrap:anywhere } #ck_vd .ck-fact[hidden] { display:none }
#ck_why.ck-hum { font-size:15.5px; font-weight:400; color:var(--c-muted) }
#cpcard .cp-fact { margin:0 0 2px; font-weight:600; color:var(--c-text); font-variant-numeric:tabular-nums } #cpcard .cp-fact[hidden] { display:none }
#ck_gd .gd-msg { display:flex; flex-direction:column; gap:1px; min-width:0; padding:5px 8px; border-left:3px solid var(--c-down); border-radius:var(--r-ctl); background:var(--c-raised) }
#ck_gd .gd-msg[hidden] { display:none } #ck_gd .gd-msg.near { border-left-color:var(--c-warn) }
#ck_gd .gd-fact { margin:0; font:600 13px/1.35 var(--f-body); color:var(--c-text); font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
#ck_gd .gd-hum { margin:0; font-size:12.5px; line-height:1.4; color:var(--c-muted) } #ck_gd .gd-hum:empty { display:none }
#ck_gd.gd-nohum .gd-hum { display:none }
#ck_gd.gd-cc .gd-cnt { gap:4px } #ck_gd.gd-cc .gd-cnt > div { padding:2px 6px; flex-direction:row; align-items:baseline; justify-content:space-between; gap:4px }
#ck_gd.gd-cc .gd-cnt span { font-size:9.5px; letter-spacing:.04em } #ck_gd.gd-cc .gd-cnt b { font-size:14px } #ck_gd[data-fit="s"] .gd-msg { padding:2px 8px } #ck_gd[data-fit="s"] .gd-fact { font-size:12px } #ck_gd[data-fit="s"] .gd-hum { display:none }
/* spoken state-change warnings (2026-10-19): the line just said, on the verdict card for a few seconds */
#ck_warn { margin:8px 0 0; padding:6px 10px; border-left:4px solid var(--c-warn); border-radius:6px; background:color-mix(in srgb, var(--c-warn) 12%, var(--c-card)); color:var(--c-text); font:600 15px/1.35 var(--f-body) }
#ck_warn[hidden] { display:none }
/* the safety alerts (2026-10-20): a red line that stays until it's resolved (no stop, connection lost, the flat-by time) */
.safe-old { color:var(--c-warn); font-weight:500 }
#ck_ps .ck-npr { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 10px; padding:2px 0; border-top:1px solid var(--c-border); line-height:1.35 }
#ck_ps .ck-npr:first-child, #ck_ps .np-mix + .ck-npr { border-top:0 } #ck_ps .ck-npr[hidden] { display:none }
#ck_ps .ck-npr .ck-side { font-size:13.5px } #ck_ps .ck-npr .ck-acct { font-size:11.5px; color:var(--c-faint) } #ck_ps .ck-npr .np-ent { font-size:13px; color:var(--c-muted) }
#ck_ps .np-st { font-size:13px; font-weight:600 } #ck_ps .np-st.np-unk { color:var(--c-warn) } #ck_ps .np-st.np-no { color:var(--c-down) } #ck_ps .np-st.np-oth { font-weight:400; color:var(--c-faint) }
#ck_ps .np-oth-r .ck-side { color:var(--c-muted) } #ck_ps .np-sum { color:var(--c-text); font-weight:600; margin:0 0 2px; line-height:1.3 } #ck_ps .np-sum.np-opp { color:var(--c-warn) } #ck_ps .np-more2 { color:var(--c-muted) }   /* (pol3-states) a no-stop line on order data that isn't current */
.ck-safe, #propcard .rn-safe { margin:8px 0 0; padding:6px 10px; border-left:4px solid var(--c-down); border-radius:6px; background:color-mix(in srgb, var(--c-down) 12%, var(--c-card));
  color:var(--c-down); font:600 14.5px/1.4 var(--f-body) }
#propcard .rn-safe { margin:4px 0 0; padding:4px 8px; font-size:12.5px }
/* the firm's rules in plain words (2026-10-20): quiet muted lines under Right Now / in Accounts; amber when it's close */
#propcard .rn-firm, .pr-firm { margin:4px 0 0; font-size:12.5px; line-height:1.45; color:var(--c-muted) } #propcard .rn-firm[hidden] { display:none }
.rn-firm .fr-warn, .pr-firm .fr-warn { color:var(--c-warn); font-weight:500 } .pr-firm { font-size:13px; margin:0 }.ck-safe[hidden], #propcard .rn-safe[hidden] { display:none } #vpop .vwarn { align-items:flex-start } #vpop .vwarn input { margin-top:2px }
#ck_vd.v-clear { border-left-color:var(--c-up) } #ck_vd.v-clear .ck-word { color:var(--c-up) }
#ck_vd.v-caution { border-left-color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 7%, var(--c-card)) } #ck_vd.v-caution .ck-word { color:var(--c-warn) }
#ck_vd.v-stop { border-left-color:var(--c-down); background:color-mix(in srgb, var(--c-down) 8%, var(--c-card)) } #ck_vd.v-stop .ck-word { color:var(--c-down) }
/* guard */
#ck_gd { grid-area:gd }
/* (owner 2026-11-03) the room as Right Now's Room today pill: green, amber when close, red when hit; under the balance */
#ck_gd.has-acct .ck-room { display:flex; flex-direction:row-reverse; justify-content:space-between; align-items:baseline; gap:10px; margin:0 0 8px;
  padding:8px 10px 9px; border-radius:10px; border:1px solid color-mix(in srgb, var(--c-up) 34%, var(--c-border)); background:color-mix(in srgb, var(--c-up) 7%, var(--c-card)) }
#ck_gd.has-acct .ck-room .ck-big { font:700 20px/1.2 var(--f-num); color:var(--c-up) }
#ck_room .gd-lk { display:none }
#ck_gd.has-acct .ck-room .ck-note { margin:0; font:600 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
#ck_gd.has-acct.warn .ck-room { border-color:color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 8%, var(--c-card)) }
#ck_gd.has-acct.warn .ck-room .ck-big { color:var(--c-warn) }
#ck_gd.has-acct.bad .ck-room { border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-down) 9%, var(--c-card)) }
#ck_gd.has-acct.bad .ck-room .ck-big { color:var(--c-down) }
#ck_bar { display:block; width:100%; height:10px; border:0; border-radius:99px; background:var(--c-raised); overflow:hidden; -webkit-appearance:none; appearance:none }
#ck_bar::-webkit-progress-bar { background:var(--c-raised); border-radius:99px }
#ck_bar::-webkit-progress-value { background:var(--c-up); border-radius:99px } #ck_bar::-moz-progress-bar { background:var(--c-up); border-radius:99px }
#ck_gd.warn #ck_bar::-webkit-progress-value { background:var(--c-warn) } #ck_gd.bad #ck_bar::-webkit-progress-value { background:var(--c-down) }
#ck_gd.warn #ck_bar::-moz-progress-bar { background:var(--c-warn) } #ck_gd.bad #ck_bar::-moz-progress-bar { background:var(--c-down) }
/* (hb-cards 2026-11-15) Today's Guard, live first: the room, the state line (balance + trading state), the counters in one
   row, the cool-off row, the firm's rules folded last. data-fit (the card's own size): s = compact, m, l */
#ck_gd #ck_bal { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; margin:0 }
#ck_gd .rn-hv { font-size:18px } #ck_gd .rn-hb.many .rn-hv { font-size:15px } #ck_gd .rn-hb { gap:6px }
#ck_gd .gd-state { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 10px; min-width:0 }
#ck_gd .gd-st { font:600 12.5px var(--f-body); color:var(--c-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100% }
#ck_gd .gd-st:empty { display:none }
#ck_gd .gd-st.st-trade { color:var(--c-text) } #ck_gd .gd-st.st-ok { color:var(--c-up) } #ck_gd .gd-st.st-warn { color:var(--c-warn) }
#ck_gd .gd-st.st-bad { color:var(--c-down) } #ck_gd .gd-st.st-off { color:var(--c-faint) }
#ck_gd .gd-cnt { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px }
#ck_gd .gd-cnt > div { display:flex; flex-direction:column; min-width:0; padding:6px 8px; border-radius:var(--r-ctl); background:var(--c-raised) }
#ck_gd .gd-cnt span { font:600 10.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
#ck_gd .gd-cnt b { font:500 18px/1.25 var(--f-num); color:var(--c-text); white-space:nowrap; font-variant-numeric:tabular-nums }
#ck_gd .gd-cnt b.up { color:var(--c-up) } #ck_gd .gd-cnt b.down { color:var(--c-down) } #ck_gd .gd-cnt b.warn { color:var(--c-warn) }
#ck_gd b.gd-unk, #ck_gd .gd-cnt b.gd-unk { color:var(--c-faint); font:italic 400 14px var(--f-body) }
#ck_gd .gd-cool { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; font-size:14px; color:var(--c-muted) }
#ck_gd .gd-cool > b { font:500 16px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums; margin-right:auto } #ck_gd .gd-cool > b.warn { color:var(--c-warn) }
#ck_gd .gd-cool #ck_ledge { flex:1 1 100%; margin-top:2px }
#ck_gd.unk .ck-room .ck-big { color:var(--c-faint) }
#ck_gd .gd-ref { margin:2px 0 0 } #ck_gd .gd-ref[hidden] { display:none } #ck_gd .gd-ref #ck_lock, #ck_gd .gd-ref .ck-rulen { padding:0 10px 8px }
#ck_gd .gd-ref .tp-ms { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
/* compact: the live numbers fit without scrolling; the button sits beside the cool-off; the fold's summary is one line */
#ck_gd[data-fit="s"] { gap:3px } #ck_gd[data-fit="s"] .ck-room { margin:0; padding:2px 8px 3px } #ck_gd[data-fit="s"] #ck_bar { display:none }
#ck_gd[data-fit="s"].has-acct .ck-room .ck-big { font-size:17px }
#ck_gd[data-fit="s"] .rn-bl { display:none } #ck_gd[data-fit="s"] .rn-hv { font-size:14px } #ck_gd[data-fit="s"] .rn-badge { display:none }
#ck_gd[data-fit="s"] .gd-cnt { gap:4px } #ck_gd[data-fit="s"] .gd-cnt > div { padding:2px 6px; flex-direction:row; align-items:baseline; justify-content:space-between; gap:4px }
#ck_gd[data-fit="s"] .gd-cnt span { font-size:9.5px; letter-spacing:.04em } #ck_gd[data-fit="s"] .gd-cnt b { font-size:14px }
#ck_gd[data-fit="s"] .gd-cool { font-size:12.5px; flex-wrap:nowrap } #ck_gd[data-fit="s"] .gd-cool > b { font-size:13.5px }
#ck_gd[data-fit="s"] .gd-cool #ck_ledge { flex:0 0 auto; margin:0; padding:3px 9px; font-size:12px; gap:6px } #ck_gd[data-fit="s"] #ck_ledge .t { font-size:12px }
#ck_gd[data-fit="s"] .gd-ref > summary { padding:3px 8px } #ck_gd[data-fit="s"] .gd-ref .tp-ms { display:none }
#ck_gd[data-fit="s"] .gd-ref .tp-mt { font-size:10.5px }
/* Position: the stop as three states, the compact card shows the first position only */
#ck_ps .np-stop { font:600 14px var(--f-body); color:var(--c-text) } #ck_ps .np-stop small { font:500 12.5px var(--f-num); color:var(--c-muted) }
#ck_ps .np-stop.np-no { color:var(--c-down) } #ck_ps .np-stop.np-unk { color:var(--c-warn); font-weight:500 } #ck_ps .np-stop.np-cl { color:var(--c-muted); font-weight:500 }
#ck_ps:is([data-fit="m"], [data-fit="l"]) .np-stop { font-size:16px } #ck_ps .np-why { font-size:12px; color:var(--c-faint) } #ck_ps .ck-big.ck-flat { font-size:24px } #ck_ps .ck-big.np-nc { color:var(--c-faint); font-size:20px }
/* (owner 2026-11-17: the P&L, its note and the stop read squeezed together) a little air between the three lines */
#ck_ps .ck-big.ck-npl { line-height:1.15 } #ck_ps .np-pln { margin:2px 0 6px } #ck_ps .np-pln + .np-stop { margin-top:0 }
#ck_ps .np-more { display:none } #ck_ps .np-lk { font:500 13px var(--f-body); color:var(--c-faint) } #ck_ps .np-paused { color:var(--c-warn) }
#ck_ps[data-fit="s"] .np-why, #ck_ps[data-fit="s"] .ck-np + .ck-np { display:none } #ck_ps[data-fit="s"] .np-pln { font-size:11px; margin-top:2px; line-height:1.3 } #ck_ps[data-fit="s"] .np-more { display:block }
#ck_ps[data-fit="s"] .ck-np .ck-rows { gap:1px 10px; font-size:12.5px } #ck_ps[data-fit="s"] .ck-np .ck-rows b { font-size:14px }
#ck_ps[data-fit="s"] .ck-big.ck-npl { font-size:clamp(15px, 6.4cqi, 22px) } #ck_ps[data-fit="s"] .ck-big.ck-flat { font-size:20px }
#ntpos b.np-unk { color:var(--c-warn) }
.ptoast.up-held { display:flex; align-items:center; gap:12px } .ptoast.up-held button { flex:none; font-weight:600 }
#ck_coolbar { display:block; width:100%; height:3px; margin-top:-2px; border:0; border-radius:99px; background:var(--c-raised); overflow:hidden; -webkit-appearance:none; appearance:none }
#ck_coolbar[hidden] { display:none } #ck_coolbar::-webkit-progress-bar { background:var(--c-raised) } #ck_coolbar::-webkit-progress-value { background:var(--calm) } #ck_coolbar::-moz-progress-bar { background:var(--calm) }
#ck_ledge { margin-top:auto; padding:10px 14px; border-radius:var(--r-ctl); border:1px solid color-mix(in srgb, var(--calm) 45%, var(--c-border)); background:color-mix(in srgb, var(--calm) 12%, var(--c-card));
  color:var(--c-text); font:600 16px var(--f-body); display:flex; justify-content:space-between; align-items:center; gap:10px }
#ck_ledge:hover { background:color-mix(in srgb, var(--calm) 20%, var(--c-card)) }
#ck_ledge[aria-pressed="true"] { border-color:var(--calm); color:color-mix(in srgb, var(--calm) 75%, var(--c-text)) }
#ck_ledge .t { font:500 18px var(--f-num); font-variant-numeric:tabular-nums }
/* position, risk */
#ck_ps { grid-area:ps } #ck_rk { grid-area:rk }
#ck_ps .ck-side { font:600 13px var(--f-body); letter-spacing:.06em; text-transform:uppercase }
#ck_ps .ck-side.up { color:var(--c-up) } #ck_ps .ck-side.down { color:var(--c-down) }
.ck-in { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13.5px; color:var(--c-muted) }
.ck-in input { width:88px; padding:6px 8px; font:500 16px var(--f-num); font-variant-numeric:tabular-nums } .ck-in select { padding:6px 8px; font-size:13.5px }
.ck-fit { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px }
.ck-fit > div { background:var(--c-raised); border:1px solid var(--c-border); border-radius:var(--r-ctl); padding:10px 12px; min-width:0 }
.ck-fit .k { font:600 11.5px var(--f-body); letter-spacing:.06em; color:var(--c-muted) }
.ck-fit .n { font:500 30px/1.15 var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums } .ck-fit .n.zero { color:var(--c-faint) }
.ck-fit .s { font-size:12.5px; color:var(--c-faint) }
/* plan, feed, next */
#ck_pl { grid-area:pl } #ck_fd { grid-area:fd } #ck_nx { grid-area:nx } #ck_tw { grid-area:tw }
/* (owner 2026-11-03) What Atlas is watching for you: his own proven triggers (triggers.py), the one that just fired on top */
.tw-l { display:grid; gap:10px; margin:0; padding:0; list-style:none }
.tw-i { display:grid; grid-template-columns:8px 1fr; gap:10px; align-items:start; font-size:13.5px; line-height:1.45; color:var(--c-text) }
.tw-d { width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--c-faint) }
.tw-i small { display:block; margin-top:1px; color:var(--c-muted); font-size:12.5px }
.tw-i.on { padding:10px 11px; border-radius:10px; border:1px solid color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 8%, var(--c-card)) }
.tw-i.on .tw-d { background:var(--c-warn); box-shadow:0 0 0 3px color-mix(in srgb, var(--c-warn) 25%, transparent) }
.tw-i.on b { color:var(--c-warn) }
.tw-n { margin:12px 0 0; font-size:12px; color:var(--c-faint) } .tw-lead { margin:0 0 10px; font-size:13px; color:var(--c-muted) }
/* (launch push 11-14, B2) the default layout's compact row under the verdict: the items side by side, the notes on one line */
#ck_tw.tw-row { overflow:hidden } #ck_tw.tw-row .tw-l { grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:8px 14px }
#ck_tw.tw-row .tw-lead { margin:0 0 6px; font-size:12.5px } #ck_tw.tw-row .tw-n { margin:6px 0 0 } #ck_tw.tw-row .tw-i small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.cp-watch { margin-top:6px; font-size:12.5px; color:var(--c-muted) } .cp-watch[hidden] { display:none }
/* (hb-polish 11-15) the Atlas card's status line (twStatus: the mentor, the next-order check, history loading, in the
   coverage strip's words and colors) and a small square's compact list (no lead-in: "learning" sits in the header) */
.tw-st { display:flex; flex-wrap:wrap; gap:4px 14px; margin:0 0 8px; font-size:12.5px; color:var(--c-muted) } .tw-st[hidden] { display:none }
.tw-st .tw-sp { display:inline-flex; align-items:center; gap:6px; min-width:0 } .tw-st .tw-sp b { color:var(--c-text); font-weight:600 }
.tw-st .tw-sp i { width:7px; height:7px; border-radius:50%; flex:none; background:var(--c-faint) }
.tw-st .tw-sp[data-st="ok"] i { background:var(--c-up) } .tw-st .tw-sp[data-st="warn"] i { background:var(--c-warn) } .tw-st .tw-sp[data-st="off"] i { background:var(--c-down) }
.tw-st .tw-sp[data-st="warn"] { color:var(--c-warn) } .tw-st .tw-sp[data-st="off"] { color:var(--c-down) }
.tw-lead .tw-ls { display:none } #ck_tw.tw-mini .tw-lead .tw-lf { display:none } #ck_tw.tw-mini .tw-lead .tw-ls { display:inline }
#ck_tw.tw-mini .tw-lead { margin:0 0 6px; font-size:12.5px } #ck_tw.tw-mini .tw-l { gap:6px } #ck_tw.tw-mini .tw-n { margin-top:6px }
#ck_feed li.ck-fd-empty { display:block } #ck_feed li.ck-fd-empty .x { color:var(--c-muted) }
.ck-guide { margin:4px 0 0; padding:0; list-style:none; display:grid; gap:8px; font-size:13px; line-height:1.45; color:var(--c-muted) }
.ck-guide b { color:var(--c-text); font-weight:600 } .ck-guide a { white-space:nowrap }
#ck_tw.tw-mini #ck_tw_mm:not([hidden]) { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
#ck_tw.tw-mini .tw-i small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
#ck_tw.tw-row .tw-st { display:none }   /* the one-row card sits right under the coverage strip, which says the same */
/* More (2026-10-18, round 3): the risk calculator, the alerts feed and the chart, collapsed by default (remembered) */
.ck-mo { grid-area:mo; min-width:0; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card) }
.ck-mo > summary { display:flex; align-items:baseline; gap:10px; padding:10px 16px; cursor:pointer; list-style:none; font:600 11.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted) }
.ck-mo > summary::-webkit-details-marker { display:none }
.ck-mo > summary::before { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); transition:transform .15s; align-self:center }
.ck-mo[open] > summary::before { transform:rotate(45deg) }
.ck-mo > summary:hover { color:var(--c-text) } .ck-mo > summary:focus-visible { outline:2px solid var(--c-accent); outline-offset:-2px; border-radius:var(--r-card) }
.ck-mo > summary .ck-sub { font:400 12px var(--f-body); letter-spacing:0; text-transform:none; color:var(--c-faint) }
.ck-mo-grid { display:grid; gap:12px; padding:0 12px 12px; grid-template-columns:repeat(3, minmax(0, 1fr)); grid-template-areas:"ch ch ch" "rk fd fd"; grid-auto-rows:minmax(300px, auto) }
.ck-mo-grid > .ck-card { background:var(--c-raised) }
/* More open: the top cards keep their full height and the Cockpit scrolls (never squeezes the verdict); the More cards are one even height, each scrolling inside */
#cockpit:has(#ck_mo[open]) { align-content:start; grid-template-rows:auto minmax(280px, auto) auto } #cockpit:has(#ck_mo[open]) > .ck-card { min-height:auto; overflow:visible }
@media (min-width:1181px) { .ck-mo-grid { grid-auto-rows:380px } .ck-mo-grid > .ck-card { overflow:hidden } #ck_rk { overflow-y:auto } #ck_ch #ck_chartbox { flex:1 1 auto; min-height:0 } }
/* the connection badge: LIVE / Reconnecting / Offline (or Replay); never stale numbers shown as current */
.ck-hl { display:flex; align-items:center; gap:10px; min-width:0 }
.ck-conn { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; border:1px solid var(--c-border-strong); font:700 12px var(--f-body); letter-spacing:.08em; color:var(--c-muted); background:var(--c-raised); white-space:nowrap }
.ck-conn i, #livebadge .ldot { flex:none }
.ck-conn i { width:8px; height:8px; border-radius:50%; background:var(--c-faint) }
.ck-conn.c-live { color:var(--c-up); border-color:color-mix(in srgb, var(--c-up) 50%, var(--c-border)) } .ck-conn.c-live i { background:var(--c-up); animation:lpulse 1.6s ease-in-out infinite }
.ck-conn.c-recon { color:var(--c-warn); border-color:color-mix(in srgb, var(--c-warn) 55%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 10%, var(--c-card)) } .ck-conn.c-recon i { background:var(--c-warn) }
.ck-conn.c-live.c-part { color:var(--c-warn); border-color:color-mix(in srgb, var(--c-warn) 55%, var(--c-border)) } .ck-conn.c-live.c-part i { background:var(--c-warn) }
body.notlive #chart canvas { filter:saturate(.25) brightness(.8) }   /* (pol3-states) candles TiltLab got, not live ones */
.ck-conn.c-off { color:var(--c-down); border-color:color-mix(in srgb, var(--c-down) 55%, var(--c-border)); background:color-mix(in srgb, var(--c-down) 10%, var(--c-card)) } .ck-conn.c-off i { background:var(--c-down) }
#livebadge.c-live { color:var(--c-up) } #livebadge.c-recon { color:var(--c-warn) } #livebadge.c-off { color:var(--c-down) }
header #rctl_t.c-recon { color:var(--c-warn) } header #rctl_t.c-off { color:var(--c-down) } header #rctl_t:is(.c-recon, .c-off) #rctl_s .ldot { color:inherit; animation:none }   /* the pill: "Live · Reconnecting" / "Live · Offline" (owner 2026-11-08) */
#livebadge.c-live .ldot { background:var(--c-up) } #livebadge.c-recon .ldot { background:var(--c-warn); animation:none } #livebadge.c-off .ldot { background:var(--c-down); animation:none }
#tpanel .tp-stale { display:none; font:600 12px var(--f-body); color:var(--c-warn) } body.notlive #tpanel .tp-stale { display:block }
/* one "Not live" bar across the top of the Cockpit (2026-10-19; was a line on three cards); the cards still grey out */
.ck-nlbar { grid-area:nl; display:none; margin:0; padding:8px 14px; border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-warn) 12%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); color:var(--c-text); font:600 14px var(--f-body) }
#cockpit.stale .ck-nlbar { display:block }
#cockpit.stale { grid-template-areas:"nl nl nl" "vd vd nx" "gd ps pl" "mo mo mo"; grid-template-rows:auto auto minmax(280px, 1fr) auto }
/* (pol3-states, owner 11-16) offline the cards stay READABLE: no opacity / grayscale over them (safety lines, timestamps,
   status words and controls keep full contrast); only the stale money values are muted, and each card says "(last known)" */
#cockpit.stale :is(#ck_gd, #ck_ps) :is(.ck-big, .ck-npl, .np-ent, .ck-rows b, .gd-room b) { color:var(--c-muted) !important }
#cockpit.stale #ck_vd .ck-word { color:var(--c-muted) }
#cockpit.stale #ck_vd { border-left-color:var(--c-border-strong); background:var(--c-card) }
body.notlive #guard > :not(#rpop) { filter:grayscale(1); opacity:.55 }   /* fade the chip, not its quick-log pop (a faded pop let the toolbar show through) */
/* I'm done today + the calm end-of-day / tough-day card (they replace the verdict until the next session) */
.ck-done { flex:none; margin-left:auto; align-self:flex-start; border:1px solid var(--c-border-strong); background:transparent; color:var(--c-muted); border-radius:var(--r-ctl); padding:6px 12px; font:600 13px var(--f-body) }
.ck-done:hover { color:var(--c-text); background:var(--c-raised) }
#ck_vd.v-end { border-left-color:var(--calm); background:color-mix(in srgb, var(--calm) 9%, var(--c-card)) }
#ck_vd.v-end > .ck-vtext, #ck_vd.v-end:not(.v-tough) > :is(.ck-word, .ck-done) { display:none }
.ck-end { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 }
.ck-end .ck-endh { font:600 26px/1.15 var(--f-body); color:color-mix(in srgb, var(--calm) 70%, var(--c-text)); margin:0 }
.ck-end .ck-endl { font:500 16px/1.4 var(--f-num); color:var(--c-text); margin:0; font-variant-numeric:tabular-nums }
.ck-end ul { margin:0; padding-left:18px; font-size:15px; color:var(--c-text) }
.ck-end .ck-endf { font:500 16px var(--f-body); color:color-mix(in srgb, var(--calm) 70%, var(--c-text)); margin:2px 0 0 }
.ck-end .ck-x { align-self:flex-start }
/* the tough-day card (2026-10-18 app round): your note first, then your own record, then the facts; a deliberate
   I Understand folds it; the rest of the Cockpit greys a little (Position stays as it is: always visible and usable) */
.ck-end .ck-you { margin:2px 0; padding:10px 14px; border-left:3px solid var(--calm); border-radius:0 var(--r-ctl) var(--r-ctl) 0; background:color-mix(in srgb, var(--calm) 10%, var(--c-card)) }
.ck-end .ck-youl { display:block; font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted); margin-bottom:4px }
.ck-end blockquote { margin:0; font:500 17px/1.45 var(--f-body); color:var(--c-text); white-space:pre-line; overflow-wrap:anywhere }
.ck-end .ck-endp { margin:0; font-size:14px; color:var(--c-muted) } .ck-end .ck-endp a { color:var(--c-text) }
.ck-end .ck-persp { list-style:none; padding:0; display:grid; gap:3px; font-size:14.5px; line-height:1.4; color:var(--c-text) }
.ck-end .ck-reload { margin:0; font:600 13.5px var(--f-body); color:var(--c-warn) }
.ck-end .ck-endacts { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-top:4px } .ck-end .ck-endacts .grow { flex:1 }
.ck-end .ck-endacts a { font-size:14px; color:var(--c-text) }
.ck-end #ck_tcool[aria-pressed="true"] { color:var(--c-muted) }
.ck-end .ck-endf.sm { font-size:13.5px; color:var(--c-muted) }
.ck-tmini { margin-top:6px; padding:3px 10px; font:600 12.5px var(--f-body); border-radius:999px; border:1px solid color-mix(in srgb, var(--calm) 50%, var(--c-border)); background:color-mix(in srgb, var(--calm) 8%, var(--c-card)); color:var(--c-text) }
.ck-tmini[hidden] { display:none }
#cockpit.tough > .ck-card:not(#ck_vd, #ck_ps), #cockpit.tough > .ck-mo { opacity:.72; filter:saturate(.3); transition:opacity .3s, filter .3s }
.ck-list { list-style:none; margin:0; padding:0; display:grid; gap:5px; overflow-y:auto; min-height:0; font-size:13.5px }
.ck-list li { display:flex; gap:8px; align-items:baseline; min-width:0 }
.ck-list li.done { color:var(--c-faint); text-decoration:line-through }
.ck-list li::before { content:""; flex:none; width:8px; height:8px; border-radius:2px; border:1.5px solid var(--c-border-strong); transform:translateY(-1px) }
.ck-list li.done::before { background:var(--c-up); border-color:var(--c-up) }
.ck-pills { display:flex; flex-wrap:wrap; gap:6px } .ck-pills span { padding:3px 9px; border-radius:999px; background:var(--c-raised); border:1px solid var(--c-border); font:500 13px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums }
.ck-pills span i { font-style:normal; font:600 11px var(--f-body); color:var(--c-muted); margin-right:5px }
#ck_feed { list-style:none; margin:0; padding:0; overflow-y:auto; min-height:0; display:grid; align-content:start; gap:0 }
#ck_feed li { display:grid; grid-template-columns:52px minmax(0, 1fr); gap:10px; padding:7px 0; border-bottom:1px solid var(--c-border); font-size:14px; line-height:1.35 }
#ck_feed li:last-child { border-bottom:0 }
#ck_feed .t { font:500 13px var(--f-num); color:var(--c-faint); font-variant-numeric:tabular-nums } #ck_feed .w { font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted); display:block }
#ck_feed li.coach .w { color:var(--c-warn) } #ck_feed li.imp .x { color:var(--c-text) } #ck_feed .x { color:var(--c-muted); overflow-wrap:anywhere }
#ck_nx .ck-big { font-size:34px }
/* today's calendar (the Cockpit card and the News chip's popover share the list) */
.cal-list { list-style:none; margin:0; padding:0; display:grid; align-content:start; gap:2px; overflow-y:auto; min-height:0 } .cal-list:empty { display:none }
.cal-row { display:grid; grid-template-columns:42px 38px minmax(0, 1fr) auto; column-gap:8px; align-items:baseline; padding:5px 8px; border-radius:var(--r-ctl); border-left:3px solid transparent; font-size:13.5px; color:var(--c-text) }
.cal-t { font:500 13px var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums }
.cal-imp { display:inline-grid; place-items:center; width:22px } .cal-fold { width:18px; height:15px; fill:currentColor }
.cal-row.hi .cal-imp { color:#e5484d } .cal-row.md .cal-imp { color:#f08c2e }   /* red / orange folders, the same in both themes */
/* news on the chart (nwPaint): the folder's tooltip and the last-5-minutes pulse ring, in the chart theme's colours (#stage carries them) */
.nw-tip { position:absolute; z-index:6; pointer-events:none; max-width:360px; padding:7px 10px; border-radius:8px; background:var(--c-card); color:var(--c-text);
  border:1px solid var(--c-border-strong); box-shadow:var(--c-shadow-sm); font:12px/1.4 var(--f-body); display:grid; gap:2px }
.nw-tip[hidden] { display:none } .nw-tip b { display:flex; align-items:center; gap:6px; font-weight:600 } .nw-tip b i { width:8px; height:8px; border-radius:2px; flex:none }
.nw-tip span { color:var(--c-muted); font-family:var(--f-num); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums }
.nw-pulse { position:absolute; z-index:5; width:24px; height:24px; border-radius:50%; pointer-events:none; border:2px solid var(--nw, #e5484d); opacity:0; animation:nwpulse 1.6s ease-out infinite }
.nw-pulse[hidden] { display:none }
@keyframes nwpulse { 0% { transform:scale(.55); opacity:.75 } 100% { transform:scale(1.35); opacity:0 } }
@media (prefers-reduced-motion: reduce) { .nw-pulse { animation:none; opacity:.6 } }
#chart.nw-hover { cursor:help }
.cal-row.past .cal-imp:not(#x) { color:inherit; opacity:1 } .cal-row.past.hi .cal-imp:not(#x) { color:#e5484d; opacity:.45 } .cal-row.past.md .cal-imp:not(#x) { color:#f08c2e; opacity:.45 }
.cal-nm { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500 } .cal-nm small { font:500 11.5px var(--f-num); color:var(--c-faint); font-variant-numeric:tabular-nums }
.cal-cd { font:500 13px var(--f-num); color:var(--c-faint); white-space:nowrap; font-variant-numeric:tabular-nums }
.cal-x { grid-column:3 / -1; display:grid; gap:1px; min-width:0; font:400 12px var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums } .cal-x:empty { display:none }
.cal-x > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.cal-x .cal-firm { color:var(--c-warn); font-family:var(--f-body); font-weight:600 } .cal-row.past .cal-x .cal-firm { color:var(--c-faint) }
.cal-x i { font-style:normal; font-family:var(--f-body); color:var(--c-faint) } .cal-x b { font-weight:600; color:var(--c-text) }
.cal-row.past { color:var(--c-faint) } .cal-row.past :is(.cal-t, .cal-imp, .cal-x) { color:var(--c-faint) } .cal-row.past .cal-x b { color:var(--c-muted) }
.cal-row.next { background:var(--c-raised); border-left-color:var(--c-accent) } .cal-row.next .cal-cd { color:var(--c-text); font-weight:600 }
.cal-row.next.soon { border-left-color:var(--c-down); background:color-mix(in srgb, var(--c-down) 10%, var(--c-card)) } .cal-row.next.soon .cal-cd { color:var(--c-down) }
#ck_nx.soon { border-color:color-mix(in srgb, var(--c-down) 55%, var(--c-border)) }
#ck_cal { flex:1 1 auto; max-height:240px }
@keyframes calPulse { 0%, 100% { box-shadow:0 0 0 0 color-mix(in srgb, var(--c-down) 0%, transparent) } 50% { box-shadow:0 0 0 4px color-mix(in srgb, var(--c-down) 40%, transparent) } }
.cal-pulse { animation:calPulse 1.1s ease-in-out 6 }
@media (prefers-reduced-motion: reduce) { .cal-pulse { animation:none } }
.ptoast-news b { color:var(--c-down) }
.chip-btn { display:flex; align-items:center; gap:8px; border:0; background:none; padding:0; margin:0; color:inherit; font:inherit; min-height:0; cursor:pointer }
.chip-btn:focus-visible { outline:2px solid var(--c-accent); outline-offset:3px; border-radius:4px }
.cal-pop.cal-pop-r { left:auto; right:0 }
body > #calpop { position:fixed; z-index:45 }   /* moved to <body> when opened (top / left set beside the News chip): above the side panels */
.cal-pop { left:0; right:auto; width:min(380px, calc(100vw - 24px)); padding:12px; display:flex; flex-direction:column; gap:8px; white-space:normal; font:400 13px var(--f-body); color:var(--c-text); max-height:min(70vh, 520px) }
/* the real chart, moved into the corner card */
#ck_ch { grid-area:ch; padding:10px }
#ck_chartbox { position:relative; flex:1 1 auto; min-height:120px; border-radius:var(--r-ctl); overflow:hidden; background:var(--c-bg) }
#ck_chartbox > #chart, #ck_chartbox > #ovc { position:absolute; inset:0 }
/* (pol2-truth 2026-11-15) the chart widget never shows a silent black box: loading / no data / failure in words */
#ck_chst { position:absolute; inset:0; z-index:3; display:grid; place-items:center; padding:16px; text-align:center; pointer-events:none; color:var(--c-muted); font-size:13px; line-height:1.5 }
#ck_chst[hidden] { display:none }
#ck_chst > div { max-width:420px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:12px 16px; box-shadow:var(--c-shadow-sm) }
#ck_chst b { display:block; color:var(--c-text); font-size:14px; margin-bottom:2px }
#ck_chst .cs-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:1px; background:var(--c-muted) }
#ck_chst.cs-loading .cs-dot { background:var(--c-accent); animation:ladp 1.4s ease-in-out infinite }
#ck_chst.cs-fail .cs-dot { background:var(--c-down) } #ck_chst.cs-unavail .cs-dot { background:var(--c-warn) }
#ck_chst.cs-paused { place-items:start end; padding:8px 64px 0 0 } #ck_chst.cs-paused > div { padding:4px 10px; font-size:12px; border-color:var(--c-warn) }
#ck_chst.cs-paused b { display:inline; font-size:12px; margin:0 }
#ck_ch.off #ck_chartbox { display:none } #ck_ch.off { grid-area:ch; justify-content:flex-start }
/* (pol3-tf 2026-11-16) the timeframe row in the Home Base chart widget's header: the same #tfrow as the Chart layout's, compact,
   scrolls sideways inside the header on a narrow widget (never pushes the header wider); the note beside it shortens first */
#ck_ch > .ck-h { justify-content:flex-start; min-width:0 }
#ck_ch > .ck-h > span:first-child { flex:none }
#ck_tfslot { display:flex; min-width:0; flex:0 1 auto }
#ck_tfslot:empty { display:none }
#ck_tfslot > #tfrow { max-width:100%; overflow-x:auto; scrollbar-width:none; text-transform:none; letter-spacing:0; flex:none }
#ck_tfslot > #tfrow::-webkit-scrollbar { display:none }
#ck_tfslot > #tfrow .tfb { height:24px; flex:none }
#ck_tfslot > #tfrow .tfb:focus-visible { outline:2px solid var(--c-accent); outline-offset:-2px }
#ck_tfnote { flex:1 1 0; min-width:0 } #ck_tfnote[hidden] { display:none }
#ck_ch > .ck-h > #ck_chx { margin-left:auto }
#ck_chartbox.tfshort #chart canvas, #stage.tfshort > #chart canvas { opacity:.35 }   /* (pol5) the Trade room's Chart view too */
#clock #htfnote.htf-short { color:var(--c-muted); font-weight:600 }
#ck_chst.cs-short .cs-dot { background:var(--c-warn) }
.ck-x { border:1px solid var(--c-border-strong); background:transparent; color:var(--c-muted); border-radius:var(--r-ctl); padding:3px 9px; font:500 12px var(--f-body); letter-spacing:0; text-transform:none }
.ck-x:hover { color:var(--c-text); background:var(--c-raised) }
#ck_plan { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:6px } #ck_plan .ck-list { overflow:visible; flex:none }
#ck_pos { min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:6px; container-type:inline-size }
/* the open P&L "-10.50 pts · -0.2R · -$84.00" is ~12.5 em wide: it scales with the card so it stays on one line (a phone too) */
#ck_ps .ck-big.ck-npl { font-size:clamp(16px, 7.6cqi, 30px) }
@media (min-width:761px) and (max-height:1000px) { #ck_vd .ck-word { font-size:46px } #ck_why { font-size:17px } .ck-big { font-size:26px } #ck_nx .ck-big { font-size:26px } .ck-fit .n { font-size:26px }
  .ck-card { padding:10px 13px; gap:5px } #cockpit { gap:10px; padding:10px } .ck-rows { gap:3px 12px; font-size:13px } .ck-rows b { font-size:15px } #ck_ledge { padding:8px 12px; font-size:14.5px } #ck_bar { height:8px } }
@media (min-width:761px) and (max-width:1180px) {
  #cockpit { grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-rows:none; grid-auto-rows:auto; grid-template-areas:"vd vd" "nx gd" "tw tw" "ps pl" "mo mo"; overflow-y:auto; align-content:start }
  #cockpit.stale { grid-template-rows:none; grid-template-areas:"nl nl" "vd vd" "nx gd" "tw tw" "ps pl" "mo mo" }
  .ck-mo-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-areas:"ch ch" "rk fd" }
  #cockpit .ck-card { overflow:visible; min-height:auto }
  #ck_chartbox { min-height:260px }
}
@media (max-width:760px) {
  .ck-mo-grid { grid-template-columns:minmax(0, 1fr); grid-template-areas:"ch" "rk" "fd"; grid-auto-rows:auto; padding:0 10px 10px }
  .ck-done { margin-left:0 }
  #cockpit.stale { grid-template-rows:none; grid-template-areas:"nl" "vd" "ps" "gd" "nx" "tw" "pl" "mo" }
  #cockpit { inset:0; grid-template-columns:minmax(0, 1fr); grid-template-rows:none; grid-auto-rows:auto; grid-template-areas:"vd" "ps" "gd" "nx" "tw" "pl" "mo";
    overflow-y:auto; align-content:start; padding:46px 10px 16px; gap:10px }
  #cockpit .ck-card { overflow:visible; min-height:auto }
  /* (hunt 2026-11-11 #10) the room starts 10 px under the Home Base | Chart switch (top 1 / 45 / 79 px, 36 px tall): the
     96 / 150 / 186 px kept a row for a Buy / Sell row Home Base doesn't show, an empty ~60 px band */
  body.cooloff #cockpit { padding-top:90px } body.cooloff.cooloff-auto #cockpit { padding-top:124px }
  #ck_vd { flex-direction:column; align-items:flex-start; gap:8px } #ck_vd .ck-word { font-size:44px } #ck_why { font-size:16px }
  #ck_chartbox { min-height:240px } #ck_feed { max-height:320px } .ck-list { max-height:260px }
  .ck-in input, .ck-in select, #ck_ledge, .ck-x, .ck-done, .ck-mo > summary { min-height:44px }
}
/* Check This Trade (2026-10-18): buttons in the Cockpit verdict card + the trade panel, the answer card (#ctd), the
   Cockpit flash, the phone's big button (#ctfab) and the About you settings card (#ct_set) */
.ct-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:2px }
.ct-row .ct-l { font:600 11.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted); margin-right:2px }
.ct-row button { border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); border-radius:var(--r-ctl); padding:5px 11px; font:600 13px var(--f-body) }
.ct-row button:hover { background:color-mix(in srgb, var(--c-accent) 12%, var(--c-raised)) }
.ct-row button:disabled { opacity:.5 }
@keyframes ckFlash { 0% { box-shadow:0 0 0 0 var(--ctf, var(--c-accent)) } 30% { box-shadow:0 0 0 6px var(--ctf, var(--c-accent)) } 100% { box-shadow:0 0 0 0 transparent } }
/* a data attribute, not a class: the Cockpit's renderer rewrites #ck_vd's className every few seconds */
#ck_vd[data-ctf] { animation:ckFlash .9s ease-out 3 }
#cockpit #ck_vd[data-ctf="clear"] { --ctf:color-mix(in srgb, var(--c-up) 55%, transparent); border-left-color:var(--c-up) }
#cockpit #ck_vd[data-ctf="caution"] { --ctf:color-mix(in srgb, var(--c-warn) 60%, transparent); border-left-color:var(--c-warn) }
#cockpit #ck_vd[data-ctf="stop"] { --ctf:color-mix(in srgb, var(--c-down) 60%, transparent); border-left-color:var(--c-down) }
@media (prefers-reduced-motion: reduce) { #ck_vd[data-ctf] { animation:none } }
#ctd { position:fixed; z-index:60; top:calc(var(--hh, 46px) + 14px); left:50%; transform:translateX(-50%); width:min(520px, calc(100vw - 24px)); max-height:calc(100vh - var(--hh, 46px) - 28px); overflow-y:auto;
  background:var(--c-card); color:var(--c-text); border:1px solid var(--c-border); border-left:6px solid var(--c-border-strong); border-radius:var(--r-card); box-shadow:0 18px 48px rgba(0,0,0,.35); padding:14px 16px 16px }
#ctd.v-clear { border-left-color:var(--c-up) } #ctd.v-caution { border-left-color:var(--c-warn) } #ctd.v-stop { border-left-color:var(--c-down) }
#ctd .ct-h { display:flex; justify-content:space-between; align-items:center; gap:8px; font:600 11.5px var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted) }
#ctd .ct-h button { border:0; background:transparent; color:var(--c-faint); font-size:22px; line-height:1; padding:0 4px } #ctd .ct-h button:hover { color:var(--c-text) }
#ctd .ct-word { font:600 52px/1.05 var(--f-body); margin:6px 0 2px; color:var(--c-muted) }
#ctd.v-clear .ct-word { color:var(--c-up) } #ctd.v-caution .ct-word { color:var(--c-warn) } #ctd.v-stop .ct-word { color:var(--c-down) }
#ctd .ct-meta { font:500 13px var(--f-num); color:var(--c-faint); font-variant-numeric:tabular-nums }
#ctd .ct-why { font:500 18px/1.35 var(--f-body); margin:8px 0 4px }
#ctd ul { margin:0 0 6px; padding-left:18px; font-size:14px; color:var(--c-muted) } #ctd ul:empty { display:none }
#ctd .ct-pick { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:10px 0 6px }
#ctd .ct-pick button, #ctd .ct-out button { min-height:52px; border-radius:var(--r-ctl); border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); font:600 16px var(--f-body) }
#ctd .ct-pick .lg { border-color:color-mix(in srgb, var(--c-up) 55%, var(--c-border)); color:var(--c-up) } #ctd .ct-pick .sh { border-color:color-mix(in srgb, var(--c-down) 55%, var(--c-border)); color:var(--c-down) }
#ctd .ct-out { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin:10px 0 4px }
#ctd .ct-note { font-size:12.5px; color:var(--c-faint); margin:6px 0 0 }
#ctd .ct-msg { font:500 14px var(--f-body); color:var(--c-muted); margin:6px 0 0 } #ctd .ct-msg:empty { display:none }
#ctfab { display:none }
body.ct-phone #ctfab { display:flex; position:fixed; z-index:40; right:12px; padding:0 24px; bottom:calc(var(--rb, 0px) + 12px); justify-content:center; align-items:center; min-height:56px; border-radius:999px;
  border:1px solid color-mix(in srgb, var(--c-accent) 60%, var(--c-border)); background:var(--c-accent); color:var(--c-on-accent); font:700 18px var(--f-body); box-shadow:0 10px 28px rgba(0,0,0,.35) }   /* (G-2 a11y, owner 11-21) the accent's own ink: white on the dark theme's light purple was 2.7:1 */
body.ct-phone.h-smpl #ctfab { bottom:calc(var(--rb, 0px) + var(--smpl-h, 46px) + 12px) }   /* (hunt 2026-11-11) above the sample strip: it hid Leave Sample on Trade and Prep */
body.ct-phone #ctd { top:auto; bottom:calc(var(--rb, 0px) + 10px); width:calc(100vw - 20px) }
body.ct-phone #ctd .ct-word { font-size:60px }
body.ct-phone #ctd .ct-why { font-size:19px }
#ct_set .ct-keys { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:8px 12px; align-items:center; margin:10px 0 }
#ct_set .ct-keys input { width:170px; font:500 14px var(--f-mono); padding:6px 8px }
#ct_set .ct-st { font-size:12.5px; color:var(--c-muted); grid-column:2 } #ct_set .ct-st.bad { color:var(--c-down) } #ct_set .ct-st.ok { color:var(--c-up) }
#ct_set .ct-ch { display:grid; gap:6px; margin-top:8px } #ct_set .ct-ch label { display:flex; gap:8px; align-items:flex-start; font-size:13px }
#ct_set .ct-copy { font-size:14px; line-height:1.45; margin:6px 0 }
#ct_set .err { color:var(--c-down); font-size:13px }
/* indicators: the panel (a floating card like Chart settings) and the lower-pane labels */
.ind-card .ind-list { display:grid; gap:8px }
.ind-row { border:1px solid var(--c-border); border-radius:var(--r-ctl); padding:8px 10px; display:grid; gap:6px; background:var(--c-card) }
.ind-row.off { opacity:.65 }
.ind-top { display:flex; align-items:center; gap:8px } .ind-top .nm { font:600 13px var(--f-body); flex:1; min-width:0 }
.ind-top button { border:0; background:none; color:var(--c-faint); font-size:18px; line-height:1; padding:0 4px } .ind-top button:hover { color:var(--c-text) }
.ind-set { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:12.5px; color:var(--c-muted) }
.ind-set input[type=number] { width:62px; padding:3px 6px; font:500 12.5px var(--f-num); font-variant-numeric:tabular-nums } .ind-set select { padding:3px 6px; font-size:12.5px }
.ind-sw { display:flex; gap:4px } .ind-sw button { width:18px; height:18px; padding:0; border-radius:50%; border:2px solid transparent; min-height:0; min-width:0 }
.ind-sw button[aria-pressed="true"] { border-color:var(--c-text) }
.sw-orange { background:var(--i-orange) !important } .sw-teal { background:var(--i-teal) !important } .sw-blue { background:var(--i-blue) !important }
.sw-pink { background:var(--i-pink) !important } .sw-gold { background:var(--i-gold) !important } .sw-grey { background:var(--i-grey) !important }
.sw-accent { background:var(--c-accent) !important } .sw-vwap { background:var(--vwap) !important }
.ind-add { display:flex; gap:8px; align-items:center } .ind-add select { flex:1; min-width:0 }
@media (max-width:760px) { .ind-sw button { width:28px; height:28px } }
/* layout utilities (were inline styles) */
.fair-list { margin:6px 0 2px; padding-left:18px; display:grid; gap:2px; font-size:12.5px; line-height:1.45; color:var(--c-muted) }
/* the two ways into Pro (2026-10-20): free trial | founder, side by side (stacked when narrow) */
.pp-paths { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0 4px } @media (max-width:640px) { .pp-paths { grid-template-columns:1fr } }
.pp-card { border:1px solid var(--c-border); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; background:var(--c-raised) }
.pp-card.pp-founder { border-color:color-mix(in srgb, var(--c-accent) 45%, var(--c-border)) }
.pp-t { font:600 14px var(--f-body); line-height:1.35 } .pp-d { font-size:12.5px; line-height:1.45; color:var(--c-muted) } .pp-card .row { margin-top:auto; padding-top:6px }
/* (launch push B5 2026-11-14) outcome first: three capability lines, the buttons, then the full table folded */
.pro-caps { margin:2px 0 4px; padding:0 !important; list-style:none; display:grid; gap:6px } .pro-caps li { position:relative; padding-left:20px; font-size:14px; line-height:1.45 }
.pro-caps li::before { content:"\2713"; position:absolute; left:0; top:0; color:var(--c-accent); font-weight:700 }
.pl-compare, .up-more { border:1px solid var(--c-border); border-radius:10px } .pl-compare > summary, .up-more > summary { cursor:pointer; padding:8px 12px; font:600 13px var(--f-body) }
.pl-compare[open] > summary, .up-more[open] > summary { border-bottom:1px solid var(--c-border) } .pl-compare .plans-grid { border:0; border-radius:0 0 10px 10px } .up-more > .meta { padding:8px 12px; margin:0 }
.tr-ready { font-size:12.5px; line-height:1.45; background:color-mix(in srgb, var(--c-accent) 8%, transparent); border-radius:8px; padding:6px 9px }
.pp-note { font-size:12px; color:var(--c-muted); margin:2px 0 6px }
.mt2{margin-top:2px} .mt4{margin-top:4px} .mt6{margin-top:6px} .mt8{margin-top:8px} .mt10{margin-top:10px} .txt14{font-size:14px;line-height:1.5} .txt135{font-size:13.5px;line-height:1.55} .row6{display:flex;gap:6px} .row8c{display:flex;align-items:center;gap:8px} .jstart{justify-self:start} .abs-fill{position:absolute;inset:0}
/* first run: the platform choice + steps (onboard()), the Tradovate walkthrough, the Prep note / morning-after cards */
.modal.ob-card { width:min(600px, 100%); box-sizing:border-box } .modal.ob-card > * { min-width:0 }
.ob-opts { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px }
.ob-opt { display:grid; gap:4px; align-content:start; text-align:left; padding:12px 14px; border-radius:12px; border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); font:14px/1.45 var(--f-body); cursor:pointer }
.ob-opt b { font:600 15.5px var(--f-body) } .ob-opt span { color:var(--c-muted); font-size:13px }
.ob-opt .ob-tag { justify-self:start; padding:1px 8px; border-radius:999px; background:color-mix(in srgb, var(--c-up) 16%, transparent); color:var(--c-up); font:700 11px var(--f-body); letter-spacing:.05em; text-transform:uppercase }
.ob-opt[aria-checked="true"] { border-color:var(--c-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 45%, transparent); background:color-mix(in srgb, var(--c-accent) 9%, var(--c-card)) }
.ob-opt:focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
.ob-steps { display:flex; gap:6px; font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint) } .ob-steps b { color:var(--c-accent) }
.ob-skip { font-size:13.5px; text-align:center } .ob-skip a { color:var(--c-muted) }
.ob-rec { display:grid; gap:8px; padding:12px 14px; border-radius:12px; border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); background:color-mix(in srgb, var(--c-accent) 6%, var(--c-card)) }
.ob-rec-h { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center } .ob-rec-h b { font:600 15.5px var(--f-body) }
.ob-rec .ob-tag { padding:1px 8px; border-radius:999px; background:color-mix(in srgb, var(--c-up) 16%, transparent); color:var(--c-up); font:700 11px var(--f-body); letter-spacing:.05em; text-transform:uppercase }
.ob-rec .gd-steps { margin:0 }
/* Import My Trades (2026-10-19): the on-ramp drop zone + the summary of settings from his trades */
.or-drop .or-lead { font-size:14px; color:var(--c-text); max-width:46ch; line-height:1.45 } .or-drop b { font:600 16px var(--f-body) }
.or-drop.compact { padding:14px } .or-drop.compact .or-lead { display:none } .or-drop.busy { opacity:.6; pointer-events:none }
.modal.or-card { width:min(680px, 100%) } .or-sum { display:grid; gap:10px; min-width:0 }
.or-list { list-style:none; margin:0; padding:0; display:grid; gap:8px }
.or-item { display:grid; gap:4px; padding:10px 12px; border:1px solid var(--c-border); border-radius:var(--r-ctl); background:var(--c-raised); min-width:0 }
.or-item.on { border-color:color-mix(in srgb, var(--c-up) 45%, var(--c-border)) }
.or-top { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; justify-content:space-between } .or-top b { font:600 14.5px var(--f-body) }
.or-tag { padding:1px 8px; border-radius:999px; font:700 11px var(--f-body); letter-spacing:.04em; text-transform:uppercase; color:var(--c-muted); background:color-mix(in srgb, var(--c-muted) 14%, transparent) }
.or-tag.on { color:var(--c-up); background:color-mix(in srgb, var(--c-up) 15%, transparent) } .or-tag.own { color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent) }
.or-val { font:600 15px/1.35 var(--f-body) } .or-item.thin .or-val { color:var(--c-muted); font-weight:500 }
.or-why { font-size:13px; line-height:1.45; color:var(--c-muted) }
.or-acts { display:flex; flex-wrap:wrap; gap:6px } .or-acts button { padding:3px 10px; font-size:13px }
.or-edit { display:flex; flex-wrap:wrap; gap:6px; align-items:center } .or-edit input { width:110px } .or-edit .err { color:var(--c-down); font-size:13px; flex-basis:100% }
.or-r { display:inline-flex; gap:4px; align-items:center } .or-zone { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center }
.or-prep { display:grid; gap:10px } .or-prep-h { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; font-size:14px }
.or-prep-h .acts { display:flex; flex-wrap:wrap; gap:6px }
.dna-hl { list-style:none; margin:6px 0 8px; padding:0; display:grid; gap:8px }
.dna-hl li { display:grid; gap:2px; padding:8px 12px; border-radius:var(--r-ctl); background:var(--c-raised, var(--panel2)); font-size:14px; line-height:1.4 }
.dna-hl li b { font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted, var(--mut)) }
.dna-full > summary { cursor:pointer; font:600 13.5px var(--f-body); margin:2px 0 6px }
.mk .mk-tip { text-decoration:underline dotted; text-decoration-color:var(--c-faint, currentColor); text-underline-offset:3px; cursor:help }
.or-opts { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center } .or-opts .grow { flex:1 }
.or-just { display:flex; gap:8px; align-items:center; font-size:14px; cursor:pointer }
.ob-note { display:grid; gap:6px } .modal .ob-note { display:grid; grid-template-columns:minmax(0, 1fr); align-items:start } .modal .ob-note .ob-cnt { justify-self:end }
/* UX pass 2026-10-19: the main message on the first screen; one "Import My Trades" title in the onboarding; the summary's buttons stay in view */
.ob-msg { font:500 14px/1.45 var(--f-body); color:var(--c-muted) }
.ob-card #ob_in .or-drop > b { display:none }
/* Give your mentor your history (2026-10-22): the NinjaTrader card, the four preview cards with a lock, the multi-file drop */
.hx-nt { display:grid; gap:8px; padding:12px 14px; border-radius:12px; border:1px solid color-mix(in srgb, var(--c-accent) 45%, var(--c-border-strong)); background:color-mix(in srgb, var(--c-accent) 7%, var(--c-raised)); font-size:14px; line-height:1.45 }
.hx-nt.done { border-color:color-mix(in srgb, var(--c-up) 45%, var(--c-border)) }
.hx-cards { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px }
.hx-before { margin:-2px 0 2px; font-size:13px }
.hx-card { display:grid; gap:2px; padding:10px 10px 10px 30px; position:relative; border:1px solid var(--c-border); border-radius:10px; background:var(--c-raised); font-size:12.5px; line-height:1.4; color:var(--c-muted); min-width:0 }
.hx-card b { color:var(--c-text); font:600 13.5px var(--f-body) } .hx-card .hx-lock { position:absolute; left:9px; top:10px; font-size:13px; opacity:.75 }
.hx-card.on { border-color:color-mix(in srgb, var(--c-up) 45%, var(--c-border)) } .hx-card.on .hx-lock { color:var(--c-up); opacity:1 }
.hx-drop.busy { opacity:.6; pointer-events:none } .hx-drop b { font:600 16px var(--f-body) }
.hx-learned { font:600 14.5px/1.4 var(--f-body); color:var(--c-up) } .hx-insight { font-size:14px; line-height:1.5; padding:8px 12px; border-left:3px solid var(--c-accent); background:var(--c-raised); border-radius:0 8px 8px 0 }
.hx-how { margin-top:6px } .hx-how ol { margin:2px 0 0; padding-left:20px; display:grid; gap:2px } .hx-msg:empty { display:none }
@media (max-width:760px) { .hx-cards { grid-template-columns:repeat(2, minmax(0, 1fr)) } }
.ob-ct { display:grid; gap:8px; margin:10px 0 4px; padding:10px 12px; border:1px solid var(--c-border); border-radius:var(--r-ctl); background:var(--c-raised); font-size:14px; line-height:1.45 }
.ob-ct[hidden] { display:none } .ob-ct .row { margin:0 }
.modal .or-foot { position:sticky; bottom:-20px; margin:0 -22px -20px; padding:10px 22px 20px; background:var(--c-card); border-top:1px solid var(--c-border); z-index:1 }
@media (max-width:760px) { .modal .or-foot { bottom:-16px; margin:0 -14px -16px; padding:10px 14px 16px } }
.pr-cfg .pr-news { flex-wrap:wrap } .pr-cfg .pr-news select { flex:none; min-width:58px }
@media (min-width:761px) { body.ck:has(#sample_bar:not([hidden])) #cockpit { padding-top:var(--smpl-h, 50px) }
  body.ck #ledge_bar { left:0 } body.ck.cooloff #cockpit { padding-top:calc(var(--lbh, 40px) + 12px) } body.ck #tpanel > :is(#cpcard, #propcard, #mod_profile, #mod_today) { display:none }
  body.ck.tk-off { --rp:0px } body.ck.tk-off #tpanel { display:none } }   /* Live + connected: no Log a Trade, so the Cockpit takes the panel's width */
.ob-note textarea, .pp-tough textarea { width:100%; min-height:76px; box-sizing:border-box; font:14px/1.45 var(--f-body); padding:8px 10px }
.ob-cnt { font:500 12px var(--f-num); color:var(--c-faint); justify-self:end; font-variant-numeric:tabular-nums }
.tv-cost { padding:10px 12px; border-radius:var(--r-ctl); border:1px solid color-mix(in srgb, var(--c-warn) 45%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 9%, var(--c-card)); font-size:13.5px; line-height:1.5 }
.tv-walk { margin:0; padding-left:20px; display:grid; gap:5px; font-size:13.5px; line-height:1.5 }
.tv-check { display:grid; gap:6px; padding:10px 12px; border:1px dashed var(--c-border-strong); border-radius:var(--r-ctl); font-size:13.5px }
.tv-check .tvk-h { font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
.tv-check .tvk { display:flex; align-items:center; gap:10px } .tv-check .tvk span { flex:1 }
.tv-check i { flex:none; position:relative; width:34px; height:18px; border-radius:999px; background:var(--c-border-strong) }
.tv-check i::after { content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:var(--c-card) }
.tv-check i.on { background:var(--c-up) } .tv-check i.on::after { left:18px }
.tv-check b { flex:none; font:700 12px var(--f-body); letter-spacing:.05em } .tv-check b.on { color:var(--c-up) } .tv-check b.off { color:var(--c-muted) }
.tv-trust { font-size:13.5px; line-height:1.5; color:var(--c-text) }
.modal.cert-card { width:min(620px, 100%); box-sizing:border-box } .cert-prev { display:flex; justify-content:center; margin:6px 0 12px }
.cert-prev canvas { width:min(100%, 520px); height:auto; border-radius:8px; box-shadow:0 6px 24px rgba(0,0,0,.35) } .cert-prev.tall canvas { width:auto; height:min(62vh, 640px) }
.modal.cert-card .row button.on { border-color:var(--c-accent, #673ab7); color:var(--c-text) }
.tsx-wiz { display:grid; gap:12px; border:1px solid var(--c-line); border-radius:12px; padding:14px } .tsx-wiz[hidden] { display:none }
.tsx-prog { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--c-muted) } .tsx-prog i { width:22px; height:5px; border-radius:3px; background:rgba(127,127,127,.35) } .tsx-prog i.on { background:var(--c-accent, #673ab7) }
.tsx-pane { display:grid; gap:10px } .tsx-pane[hidden] { display:none } .tsx-pane h4 { margin:0; font:600 16px var(--f-body) } .tsx-pane p { margin:0; font-size:14px; line-height:1.5 }
.tsx-path { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:14px } .tsx-path b { border:1px solid rgba(127,127,127,.45); border-radius:8px; padding:3px 9px }
.tsx-code { display:flex; align-items:center; gap:8px; font-size:14px } .tsx-code code { font:600 15px ui-monospace, Consolas, monospace; border:1px dashed var(--c-line); border-radius:8px; padding:3px 10px }
.tsx-nav { display:flex; gap:8px; align-items:center } .tsx-list { margin:0; padding-left:20px; display:grid; gap:8px; font-size:14px; line-height:1.5 } .tsx-list .tsx-path, .tsx-list .tsx-code { display:inline-flex; margin-left:4px; vertical-align:middle } .tsx-warn { font-size:13px; color:var(--c-warn, #b26a00) } .tsx-warn[hidden], .tv-row[hidden] { display:none }
details.tv-how > summary { cursor:pointer; font:600 14px var(--f-body) } details.tv-how[open] > summary { margin-bottom:8px } details.tv-how > div { display:grid; gap:10px }
.pp-morning { border-left:3px solid var(--calm) } .pp-morning h3 { font-weight:600 } .pp-morning ul { margin:6px 0; padding-left:20px; font-size:14px; line-height:1.55 }
.pp-morning.used { padding:10px 14px; font-size:14px }
.pp-morning .pp-back { margin:8px 0 4px; font-size:15px; font-weight:600 } .pp-morning .pp-you { margin:6px 0 }
.pp-morning .pp-you blockquote { margin:2px 0 0; padding-left:10px; border-left:2px solid var(--calm); font-size:14px; line-height:1.5; white-space:pre-wrap }
.pp-morning .pp-spiral { margin:4px 0 }
.pp-tough .pt-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.pp-tough .pt-share { display:flex; gap:8px; align-items:flex-start; font-size:14px; margin-top:6px } .pp-tough .pt-share input { margin-top:3px }
@media (max-width:760px) { .ob-opts { grid-template-columns:minmax(0, 1fr) } }
/* Lock It In (2026-10-19): the morning lock ritual at the top of Prep, the one reminder chip, the Cockpit line */
.lk-card { border-left:3px solid var(--c-accent); display:grid; gap:12px } .lk-card > * { min-width:0 }
.lk-card h3 { margin:0; font-size:17px } .lk-card .sub { font-size:14px; line-height:1.5 }
.lk-sample { padding:8px 12px; border-radius:var(--r-ctl); border:1px dashed var(--c-border-strong); font-size:13.5px }
.lk-row { display:grid; gap:10px; padding:12px 14px; border:1px solid var(--c-border); border-radius:var(--r-ctl); background:var(--c-raised) } .lk-row > * { min-width:0 }
.lk-top { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline } .lk-top b { font:600 15.5px var(--f-body) } .lk-top .meta { font-size:13px }
.lk-plat { display:flex; gap:6px; align-items:center; font-size:13.5px; color:var(--c-muted) } .lk-plat select { font-size:13.5px }
.lk-nums { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px }
.lk-num { display:grid; gap:4px; align-content:start; font-size:13px; color:var(--c-muted) } .lk-num > span { font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase }
.lk-num input { width:100%; box-sizing:border-box; font:500 20px var(--f-num); padding:6px 8px; font-variant-numeric:tabular-nums }
.lk-num small { font-size:12.5px; line-height:1.45; color:var(--c-muted) }
details.lk-guide > summary { cursor:pointer; font:600 14px var(--f-body) } details.lk-guide[open] > summary { margin-bottom:8px }
.lk-steps { margin:0; padding:0; list-style:none; display:grid; gap:6px }
.lk-steps label { display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.5; color:var(--c-text); cursor:pointer } .lk-steps input { margin-top:4px; flex:none }
.lk-steps em { font-style:normal; font-size:11.5px; font-weight:600; padding:1px 7px; margin-left:6px; border-radius:999px; white-space:nowrap; background:color-mix(in srgb, var(--c-warn) 16%, transparent); color:var(--c-warn) }
.lk-steps input:checked + span { color:var(--c-muted); text-decoration:line-through; text-decoration-color:var(--c-border-strong) }
.lk-gnote { font-size:13px; line-height:1.5; color:var(--c-muted); margin-top:6px }
details.lk-own > summary { cursor:pointer; font-size:13.5px; color:var(--c-muted) } .lk-ownf { display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:8px; font-size:13.5px } .lk-ownf input { width:110px }
.lk-act { display:flex; flex-wrap:wrap; gap:10px; align-items:center } .lk-act .go { min-height:44px; padding:0 22px; font-size:15.5px }
.lk-done { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; font-size:14px } .lk-done b { color:var(--c-up) } .lk-done .lk-chg { margin-left:auto }
.lk-card.all { padding:12px 16px; gap:6px; border-left-color:var(--c-up) } .lk-card.all h3 { font-size:16px }
.lk-sum { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; font-size:15px } .lk-sum b { font:500 24px var(--f-num); color:var(--c-text); font-variant-numeric:tabular-nums } .lk-dot { color:var(--c-faint) }
.lk-why { font-size:13px; line-height:1.5; color:var(--c-muted) } .lk-edit { display:grid; gap:10px } .lk-edit[hidden] { display:none }
.lk-chl { font-size:13.5px; color:var(--c-muted) } .lk-chl:hover { color:var(--c-text) }
details.lk-adv > summary { cursor:pointer } details.lk-adv[open] > summary { margin-bottom:6px } .lk-foot details { margin-left:auto }
.lk-foot { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; font-size:13px; color:var(--c-muted) }
#lockchip { cursor:pointer; font:inherit } #lockchip .lab { color:var(--c-accent) } #lockchip.ok .lab { color:var(--c-up) }
.ck-lock { margin-top:6px; font-size:13px; color:var(--c-muted) } .ck-lock b { color:var(--c-text) } .ck-lock.ok b { color:var(--c-up) } .ck-lock button { font-size:12.5px; padding:2px 8px; margin-left:6px }
@media (max-width:760px) { .lk-nums { grid-template-columns:minmax(0, 1fr) } .lk-act .go { width:100% } }
/* private beta gate (beta_gate.py, 2026-10-19): the key, the agreement, offline and locked screens - over everything,
   in the app's own colours. Shown only by a beta build that isn't activated; never on the owner's install */
#betagate { position:fixed; inset:0; z-index:300; display:grid; place-items:center; padding:24px 16px; overflow-y:auto;
  background:radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 70%), var(--c-bg) }
#betagate .bg-card { width:min(540px, 100%); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:16px;
  box-shadow:var(--c-shadow); padding:30px 30px 24px; display:grid; gap:14px }
#betagate .bg-mark { display:flex; align-items:center; gap:8px; font:600 12px var(--f-body); letter-spacing:.14em; text-transform:uppercase; color:var(--c-accent) }
#betagate .bg-mark i { width:8px; height:8px; border-radius:50%; background:var(--c-accent) }
#betagate h2 { font:600 23px/1.25 var(--f-disp); margin:0; color:var(--c-text) }
#betagate p { margin:0; color:var(--c-muted); line-height:1.55 }
#betagate p b { color:var(--c-text); font-weight:600 }
#betagate .bg-key { font:500 19px var(--f-mono); letter-spacing:.1em; text-transform:uppercase; padding:12px 14px; width:100%;
  background:var(--c-raised); border:1px solid var(--c-border-strong); border-radius:10px; color:var(--c-text) }
#betagate .bg-key::placeholder { color:var(--c-faint); letter-spacing:.1em }
#betagate .bg-key.ok { border-color:var(--c-accent) }
#betagate .bg-agree { border:1px solid var(--c-border); border-radius:12px; background:var(--c-panel); padding:14px 16px 12px; display:grid; gap:10px }
#betagate .bg-agree > b { font:600 14px var(--f-body); color:var(--c-text) }
#betagate .bg-agree ol { margin:0; padding:0 0 0 18px; display:grid; gap:8px }
#betagate .bg-agree li { color:var(--c-muted); font-size:13.5px; line-height:1.5 } #betagate .bg-agree li b { color:var(--c-text); font-weight:600 }
#betagate .bg-go { background:var(--c-accent); color:var(--c-on-accent); border:1px solid transparent; font:600 15px var(--f-body);
  padding:11px 16px; border-radius:10px; width:100% }
#betagate .bg-go:hover:not(:disabled) { background:var(--c-accent-hover) }
#betagate .bg-go:disabled { opacity:.4; cursor:default }
#betagate .bg-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center } #betagate .bg-row .bg-go { width:auto; flex:1 1 200px }
#betagate .bg-lk { background:none; border:0; padding:0; color:var(--c-accent); font-size:13px; text-decoration:underline; text-underline-offset:2px }
#betagate .bg-err { color:var(--c-down); font-size:13px; min-height:1px } #betagate .bg-err:empty { display:none }
#betagate .bg-foot { font-size:12.5px; color:var(--c-faint) } #betagate .bg-foot a { color:var(--c-muted) }
#betagate .bg-data { font:12px/1.5 var(--f-mono); color:var(--c-muted); background:var(--c-raised); border-radius:8px; padding:8px 10px; word-break:break-all }
.beta-wm { font-size:11.5px; color:var(--c-faint); letter-spacing:.02em }
/* the first-run welcome screen (welcome.py, 2026-10-25): ONE screen instead of the key screen + the sign-in. Left: Atlas,
   the full figure, on a soft spotlight, with his captions and a small mute toggle; right: one airy card - the wordmark,
   sign in / create the account (Google or email), the beta key, what Atlas should call you, the agreement, Let's go.
   Over everything (like #betagate), dark and light from the app's own tokens; one column at phone width */
html.wl-open, html.wl-open body { overflow:hidden }
#welcome { position:fixed; inset:0; z-index:300; overflow-y:auto; color:var(--c-text); font-family:var(--f-body);
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); align-items:center; column-gap:clamp(16px, 4vw, 72px);
  padding:clamp(20px, 4vh, 48px) clamp(16px, 5vw, 80px);
  background:radial-gradient(820px 620px at 27% 52%, color-mix(in srgb, var(--c-accent) 15%, transparent), transparent 70%),
    radial-gradient(760px 520px at 100% -10%, color-mix(in srgb, var(--c-accent-deep) 11%, transparent), transparent 70%),
    radial-gradient(600px 420px at 0% 110%, color-mix(in srgb, var(--c-accent) 7%, transparent), transparent 70%), var(--c-bg);
  animation:wl-in .55s cubic-bezier(.2,.7,.3,1) both }
@keyframes wl-in { from { opacity:0 } to { opacity:1 } }
@keyframes wl-up { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:none } }
@keyframes wl-glow { 0%,100% { opacity:.75 } 50% { opacity:1 } }
@keyframes wl-spin { to { transform:rotate(360deg) } }
#welcome.wl-out { animation:none; opacity:0; transition:opacity .45s ease }
#welcome .wl-stage { position:relative; display:grid; justify-items:center; align-content:center; min-height:min(660px, 88vh); min-width:0 }
#welcome .wl-spot { position:absolute; left:50%; top:46%; width:min(500px, 96%); aspect-ratio:1; transform:translate(-50%, -50%); border-radius:50%;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--c-accent) 30%, transparent), color-mix(in srgb, var(--c-accent) 9%, transparent) 62%, transparent);
  pointer-events:none; animation:wl-glow 6s ease-in-out 2 }
#welcome .wl-beam { position:absolute; left:50%; top:-8%; width:min(380px, 80%); height:86%; transform:translateX(-50%); pointer-events:none;
  background:linear-gradient(180deg, transparent, color-mix(in srgb, var(--c-accent) 13%, transparent) 24%, transparent 88%); clip-path:polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter:blur(10px); opacity:.8 }
#welcome .wl-fig { position:relative; height:min(520px, 64vh); aspect-ratio:560 / 1380; animation:wl-up .7s .1s cubic-bezier(.2,.7,.3,1) both }
#welcome .wl-fig svg { display:block; width:100%; height:100%; overflow:visible }
#welcome .wl-cap { position:relative; margin-top:18px; width:min(440px, 100%); min-height:76px; display:grid; gap:4px; justify-items:center; text-align:center }
#welcome .wl-cap .wl-who { font:600 11px var(--f-body); letter-spacing:.16em; text-transform:uppercase; color:var(--c-accent); opacity:0; transition:opacity .35s }
#welcome .wl-cap .wl-t { font:500 17px/1.5 var(--f-body); color:var(--c-text); opacity:0; transform:translateY(6px); transition:opacity .4s, transform .4s; text-wrap:balance }
#welcome .wl-cap.on .wl-who, #welcome .wl-cap.on .wl-t { opacity:1; transform:none }
#welcome .wl-mute { position:absolute; top:0; left:0; width:38px; height:38px; border-radius:50%; display:grid; place-items:center; padding:0; cursor:pointer;
  background:color-mix(in srgb, var(--c-card) 70%, transparent); border:1px solid var(--c-border-strong); color:var(--c-muted); transition:color .2s, border-color .2s }
#welcome .wl-mute:hover, #welcome .wl-mute:focus-visible { color:var(--c-text); border-color:var(--c-accent) }
#welcome .wl-mute svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
#welcome .wl-mute .m-off, #welcome .wl-mute[aria-pressed="true"] .m-on { display:none } #welcome .wl-mute[aria-pressed="true"] .m-off { display:inline }
#welcome .wl-mute-t { position:absolute; top:9px; left:46px; font-size:12.5px; color:var(--c-muted); white-space:nowrap }
#welcome .wl-mute-t:empty { display:none }
#welcome .wl-card { width:min(448px, 100%); justify-self:start; min-width:0; display:grid; gap:14px; padding:30px 30px 22px; border-radius:22px;
  background:color-mix(in srgb, var(--c-card) 90%, transparent); border:1px solid var(--c-border-strong); box-shadow:var(--c-shadow), 0 1px 0 color-mix(in srgb, #fff 6%, transparent) inset;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); animation:wl-up .6s .05s cubic-bezier(.2,.7,.3,1) both }
#welcome .wl-wm { height:30px; display:flex; align-items:center } #welcome .wl-wm svg { height:30px; width:auto }
#welcome h2 { margin:4px 0 0; font:600 26px/1.2 var(--f-disp); letter-spacing:-.01em; color:var(--c-text) }
#welcome .wl-sub { margin:-6px 0 0; color:var(--c-muted); font-size:14.5px; line-height:1.5 }
#welcome .wl-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:11px 14px; border-radius:12px; cursor:pointer;
  background:var(--c-raised); border:1px solid var(--c-border-strong); color:var(--c-text); font:600 14.5px var(--f-body); transition:border-color .2s, background .2s }
#welcome .wl-google:hover:not(:disabled), #welcome .wl-google:focus-visible { border-color:var(--c-accent) }
#welcome .wl-google svg { width:18px; height:18px; flex:none }
#welcome .wl-or { display:flex; align-items:center; gap:12px; color:var(--c-faint); font-size:12px; letter-spacing:.08em; text-transform:uppercase }
#welcome .wl-or::before, #welcome .wl-or::after { content:""; flex:1; height:1px; background:var(--c-border) }
#welcome .wl-f { display:grid; gap:6px; min-width:0 }
#welcome .wl-f > span { font:500 13px var(--f-body); color:var(--c-muted) } #welcome .wl-f > span i { font-style:normal; color:var(--c-faint); font-weight:400 }
#welcome .wl-f input { width:100%; box-sizing:border-box; padding:11px 13px; border-radius:11px; background:var(--c-raised); border:1px solid var(--c-border-strong);
  color:var(--c-text); font:400 15px var(--f-body); outline:none; transition:border-color .2s, box-shadow .2s }
#welcome .wl-f input::placeholder { color:var(--c-faint) }
#welcome .wl-f input:focus { border-color:var(--c-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent) }
#welcome .wl-f input.wl-key { font:500 16px var(--f-mono); letter-spacing:.1em; text-transform:uppercase }
#welcome .wl-f input.wl-key::placeholder { letter-spacing:.1em }
#welcome .wl-f input.ok { border-color:color-mix(in srgb, var(--c-accent) 70%, var(--c-border-strong)) }
#welcome .wl-f input[aria-invalid="true"] { border-color:var(--c-warn) }
#welcome .wl-pair { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:10px; align-items:end }
#welcome .wl-pair.solo { grid-template-columns:minmax(0, 1fr) }
#welcome .wl-mini { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:12.5px; color:var(--c-faint); margin-top:-6px }
#welcome .wl-lk { background:none; border:0; padding:0; color:var(--c-accent); font:inherit; cursor:pointer; text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--c-accent) 40%, transparent); text-underline-offset:3px }
#welcome .wl-lk:hover { text-decoration-color:currentColor }
#welcome .wl-in { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; background:var(--c-raised); border:1px solid var(--c-border) }
#welcome .wl-in .wl-av { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; flex:none; background:var(--c-accent); color:var(--c-on-accent); font:600 15px var(--f-body) }
#welcome .wl-in div { display:grid; min-width:0; flex:1 } #welcome .wl-in b { font:600 13.5px var(--f-body) }
#welcome .wl-in div span { font-size:13px; color:var(--c-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#welcome .wl-keyok { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--c-muted) }
#welcome .wl-keyok i { width:18px; height:18px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb, var(--c-up) 20%, transparent); color:var(--c-up); font-style:normal; font-size:11px }
#welcome .wl-agree { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.45; color:var(--c-muted); cursor:pointer }
#welcome .wl-agree input { width:17px; height:17px; margin:1px 0 0; accent-color:var(--c-accent); flex:none }
#welcome .wl-agree-d { border:1px solid var(--c-border); border-radius:12px; background:var(--c-panel); padding:12px 14px; max-height:200px; overflow-y:auto }
#welcome .wl-agree-d ol { margin:0; padding:0 0 0 18px; display:grid; gap:7px } #welcome .wl-agree-d li { font-size:13px; line-height:1.5; color:var(--c-muted) }
#welcome .wl-agree-d li b { color:var(--c-text); font-weight:600 }
#welcome .wl-msg { display:flex; gap:10px; align-items:flex-start; padding:11px 13px; border-radius:12px; font-size:13.5px; line-height:1.5; color:var(--c-text);
  background:color-mix(in srgb, var(--c-warn) 10%, var(--c-card)); border:1px solid color-mix(in srgb, var(--c-warn) 32%, transparent); animation:wl-up .3s ease both }
#welcome .wl-msg.info { background:color-mix(in srgb, var(--c-accent) 9%, var(--c-card)); border-color:color-mix(in srgb, var(--c-accent) 30%, transparent) }
#welcome .wl-msg[hidden] { display:none }
#welcome .wl-msg > i { flex:none; width:18px; height:18px; margin-top:1px; border-radius:50%; display:grid; place-items:center; font:700 11px var(--f-body); font-style:normal;
  background:color-mix(in srgb, var(--c-warn) 24%, transparent); color:var(--c-warn) }
#welcome .wl-msg.info > i { background:color-mix(in srgb, var(--c-accent) 22%, transparent); color:var(--c-accent) }
#welcome .wl-msg a { color:inherit }
#welcome .wl-go { position:relative; width:100%; padding:14px 16px; border-radius:13px; border:0; cursor:pointer; font:600 16px var(--f-body); letter-spacing:.01em;
  color:var(--c-on-accent); background:linear-gradient(180deg, color-mix(in srgb, var(--c-accent) 88%, #fff), var(--c-accent));
  box-shadow:0 8px 22px color-mix(in srgb, var(--c-accent) 32%, transparent); transition:transform .15s, box-shadow .2s, filter .2s }
#welcome .wl-go:hover:not(:disabled) { filter:brightness(1.06); box-shadow:0 10px 26px color-mix(in srgb, var(--c-accent) 40%, transparent) }
#welcome .wl-go:active:not(:disabled) { transform:translateY(1px) }
#welcome .wl-go:disabled { cursor:default; filter:saturate(.7); opacity:.75 }
#welcome .wl-go.busy::after { content:""; position:absolute; right:18px; top:50%; width:16px; height:16px; margin-top:-8px; border-radius:50%;
  border:2px solid color-mix(in srgb, var(--c-on-accent) 35%, transparent); border-top-color:var(--c-on-accent); animation:wl-spin .8s linear infinite }
#welcome .wl-foot { font-size:12.5px; color:var(--c-faint); text-align:center } #welcome .wl-foot a { color:var(--c-muted) }
#welcome .wl-done { display:grid; justify-items:center; gap:10px; text-align:center; padding:26px 0 14px; animation:wl-up .45s ease both }
#welcome .wl-check { width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb, var(--c-up) 16%, transparent); color:var(--c-up) }
#welcome .wl-check svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round }
#welcome .wl-done .wl-sub { margin:0 }
#welcome .wl-wait { display:flex; align-items:center; gap:10px } #welcome .wl-wait::before { content:""; width:14px; height:14px; flex:none; border-radius:50%;
  border:2px solid color-mix(in srgb, var(--c-accent) 30%, transparent); border-top-color:var(--c-accent); animation:wl-spin .8s linear infinite }
@media (max-width:900px) {
  #welcome { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; padding:16px 16px 28px }
  #welcome .wl-stage { flex:none; min-height:0; padding-top:4px; width:100% } #welcome .wl-card { flex:none }
  #welcome .wl-fig { height:clamp(150px, 26vh, 230px) }
  #welcome .wl-spot { width:min(300px, 80%) } #welcome .wl-beam { display:none }
  #welcome .wl-cap { margin-top:8px; min-height:52px } #welcome .wl-cap .wl-t { font-size:15px }
  #welcome .wl-card { justify-self:center; padding:22px 18px 18px; border-radius:18px }
  #welcome h2 { font-size:22px }
}
@media (max-width:420px) { #welcome .wl-pair { grid-template-columns:minmax(0, 1fr) } }
@media (prefers-reduced-motion:reduce) { #welcome, #welcome * { animation:none !important; transition:none !important } }
/* in-app updates (updater.py, 2026-10-19): a small banner, never a blocking dialog; What's New once after an update */
#updbar, #upd_new { position:fixed; right:16px; bottom:16px; z-index:250; width:min(400px, calc(100vw - 32px)); background:var(--c-card);
  border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow); padding:12px 14px; display:grid; gap:8px; font-size:13.5px; color:var(--c-muted) }
#updbar b, #upd_new b { color:var(--c-text); font-weight:600 }
#updbar .upd-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center }
#updbar .upd-go, #upd_new .upd-go { background:var(--c-accent); color:var(--c-on-accent); border:1px solid transparent; border-radius:8px; padding:6px 14px; font:600 13.5px var(--f-body); cursor:pointer }
#updbar .upd-go:disabled { opacity:.45; cursor:default }
#updbar .upd-later { background:none; border:1px solid var(--c-border-strong); border-radius:8px; padding:6px 12px; color:var(--c-text); font:inherit; cursor:pointer }
#updbar .upd-err { color:var(--c-down) } #updbar .upd-err:empty { display:none }
#updbar details > summary { cursor:pointer; color:var(--c-muted) }
#updbar .upd-notes, #upd_new .upd-notes { white-space:pre-wrap; line-height:1.5; max-height:220px; overflow-y:auto; color:var(--c-text) }
#updbar .upd-bar { height:4px; border-radius:2px; background:var(--c-raised); overflow:hidden } #updbar .upd-bar i { display:block; height:100%; background:var(--c-accent) }
@media (max-width:560px) { #betagate .bg-card { padding:22px 18px 18px } #betagate h2 { font-size:20px } }
/* ---- rail and chart menu (2026-10-19): Sound is one rail button (voice on / off) with a small arrow for the sound
   settings; Ledge carries a little more weight; the chart tools live in the chart's right-click menu (#cmenu), also
   opened by the gear in the chart's top-right corner (#chartgear), with a one-time hint (#chint) */
#rail .snd { display:block; position:relative; flex:none }
#rail .rb-sub { position:absolute; top:1px; right:-3px; width:16px; height:16px; padding:0; border:0; border-radius:5px; background:transparent; color:var(--c-muted); display:grid; place-items:center }
#rail .rb-sub svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
#rail .rb-sub:hover, #rail .rb-sub[aria-expanded="true"] { background:var(--c-raised); color:var(--c-text) }
#ledgebtn:not([aria-pressed="true"]) { color:var(--calm); font-weight:600; background:color-mix(in srgb, var(--calm) 8%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--calm) 30%, transparent) }
#ledgebtn:not([aria-pressed="true"]):hover { background:color-mix(in srgb, var(--calm) 15%, transparent) }
#rail .sep-end:not(:has(~ .rb:not([hidden]))) { display:none }   /* Plan sits in the top bar on a PC and Demo is owner-only */
#chartgear { position:absolute; z-index:6; top:6px; right:calc(var(--rp) + 6px); width:26px; height:26px; padding:0; display:grid; place-items:center; border:1px solid var(--c-border);
  border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-card) 92%, transparent); color:var(--c-muted); box-shadow:var(--c-shadow-sm) }
#chartgear svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
#chartgear:hover, #chartgear[aria-expanded="true"] { color:var(--c-text); background:var(--c-raised) }
#stage.mtf #chartgear { right:calc(var(--rp) + var(--mtfw, 28%) + 6px) } #stage.mtf #chint { right:calc(var(--rp) + var(--mtfw, 28%) + 6px) }
/* (2026-11-09) Hide Mentor Drawings: an eye just left of the gear; pressed, it says so in words (a blank chart is never a mystery) */
#mdhbtn { position:absolute; z-index:6; top:6px; right:calc(var(--rp) + 38px); min-width:26px; height:26px; padding:0 5px; display:flex; align-items:center; justify-content:center; gap:5px;
  border:1px solid var(--c-border); border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-card) 92%, transparent); color:var(--c-muted); box-shadow:var(--c-shadow-sm); font:600 12px var(--f-body) }
#mdhbtn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none }
#mdhbtn .mdh-x, #mdhbtn .mdh-t { display:none }
#mdhbtn[aria-pressed="true"] { color:var(--c-text); border-color:var(--c-accent) } #mdhbtn[aria-pressed="true"] :is(.mdh-x, .mdh-t) { display:inline }
#mdhbtn:hover { color:var(--c-text); background:var(--c-raised) }
#stage.mtf #mdhbtn { right:calc(var(--rp) + var(--mtfw, 28%) + 38px) }
/* (hunt 2026-11-11 #12) nothing covers a price label: the gear and the eye sat ON the price axis's top, over its first label.
   They move just left of the axis (--psw: its live width), into the chart's empty top band (the price scale keeps a 12 %
   top margin: no candle there). The hint follows the gear. A phone has its own spot (below) */
@media (min-width:761px) {
  #chartgear { right:calc(var(--rp) + var(--psw, 70px) + 6px) } #mdhbtn { right:calc(var(--rp) + var(--psw, 70px) + 38px) } #chint { right:calc(var(--rp) + var(--psw, 70px) + 6px) }
  #stage.mtf #chartgear, #stage.mtf #chint { right:calc(var(--rp) + var(--mtfw, 28%) + var(--psw, 70px) + 6px) } #stage.mtf #mdhbtn { right:calc(var(--rp) + var(--mtfw, 28%) + var(--psw, 70px) + 38px) }
}
/* (floor step-up B 2026-11-11) creator plans, process badges, kind rooms, Bring Your Community */
#cpl_chip { position:absolute; z-index:6; top:66px; right:calc(var(--rp) + 112px); display:flex; align-items:center; gap:4px; height:26px; padding:0 4px 0 9px;
  border:1px solid var(--c-border); border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-card) 92%, transparent); color:var(--c-muted); font-size:12px; box-shadow:var(--c-shadow-sm) }
#cpl_chip[hidden] { display:none } #crl_chip[hidden] + #cpl_chip { top:36px } #stage.mtf #cpl_chip { right:calc(var(--rp) + var(--mtfw, 28%) + 112px) } body.ck #stage > #cpl_chip { display:none !important }
#cpl_chip .crl-ct { display:flex; align-items:center; gap:6px; white-space:nowrap } #cpl_chip .crl-ct i { width:14px; border-top:2px dotted #7e57c2 }
#cpl_chip button { height:20px; padding:0 7px; font-size:11.5px; border-radius:calc(var(--r-ctl) - 2px); border:1px solid transparent; background:transparent; color:var(--c-muted) }
#cpl_chip button:hover, #cpl_chip button:focus-visible { border-color:var(--c-border); color:var(--c-text); background:var(--c-raised) }
.cm-main:has(> #fsb_bar:not([hidden])) { grid-template-rows:auto auto minmax(0,1fr) auto auto }
.cm-main:has(> #fsb_bar:not([hidden])):has(> #cm_pulse) { grid-template-rows:auto auto auto minmax(0,1fr) auto auto }   /* with the room pulse (floor-1111) */
.fsb-bar { display:grid; gap:4px; padding:6px 12px; border-bottom:1px solid var(--c-border); background:var(--c-card); font-size:13px } .fsb-bar[hidden] { display:none }
.fsb-plan, .fsb-slow, .fsb-care { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; min-width:0 }
.fsb-tag { font:600 10.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:#7e57c2; padding:2px 6px; border-radius:4px; background:color-mix(in srgb, #7e57c2 12%, transparent) }
.fsb-slow .fsb-tag { color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 12%, transparent) } .fsb-slow, .fsb-care { color:var(--c-muted) }
.fsb-h, .fsb-meta { color:var(--c-muted) } .fsb-acts { margin-left:auto; display:flex; gap:6px }
.fsb-bar button, .fsb-top { height:24px; padding:0 9px; font-size:12px; border-radius:var(--r-ctl) } .fsb-bar button[aria-pressed="true"] { border-color:#7e57c2; color:#7e57c2 }
.fsb-top[aria-pressed="true"] { color:var(--c-muted) }
.fsb-pb { display:inline-flex; gap:3px; margin-left:5px; vertical-align:1px } .fsb-pb i { font:600 9.5px var(--f-body); font-style:normal; letter-spacing:.04em; padding:1px 4px; border-radius:3px; color:#2e7d32; border:1px solid color-mix(in srgb, #2e7d32 45%, transparent) }
.fsb-pb i { white-space:nowrap } #cm_members .fsb-pb i:not(:first-child) { display:none }
.fsb-pf { border-top:1px solid var(--rule); display:grid; gap:8px } .fsb-pf-b ul { list-style:none; margin:4px 0; padding:0; display:grid; gap:3px } .fsb-pf-b li i { font:600 9.5px var(--f-body); font-style:normal; padding:1px 4px; border-radius:3px; color:#2e7d32; border:1px solid color-mix(in srgb, #2e7d32 45%, transparent); margin-right:4px }
.fsb-pf .meta { display:block; margin:3px 0 6px; line-height:1.4 } .fsb-row { display:flex; gap:6px; flex-wrap:wrap }
.fsb-form { display:grid; gap:10px } .fsb-form label { display:grid; gap:4px; font-size:13px } .fsb-form input, .fsb-form textarea { width:100%; box-sizing:border-box }
.fsb-form fieldset { border:1px solid var(--c-border); border-radius:var(--r-ctl); padding:6px 10px; display:flex; flex-wrap:wrap; gap:6px 14px } .fsb-form fieldset label { display:flex; gap:6px; align-items:center }
.fsb-form .fsb-tpl { display:grid; grid-template-columns:18px auto minmax(0,1fr); gap:8px; width:100% } .fsb-fine { font-size:12px; color:var(--c-faint); margin:0 }
/* (layout sweep 2026-11-12) the full-width field rule above stretched radios and checkboxes and stacked a lone checkbox over its
   words: a box keeps its own size and sits left of its text; a channel row reads "[x] #name  topic" and wraps under itself */
.fsb-form input[type=checkbox], .fsb-form input[type=radio] { width:auto; margin:0; flex:none }
.fsb-form > label:not([class]):has(> input[type=checkbox], > input[type=radio]) { grid-template-columns:18px minmax(0,1fr); gap:8px; align-items:start; justify-items:start; text-align:left }
.fsb-form > label:not([class]):has(> input[type=checkbox], > input[type=radio]) > input { margin-top:1px }
.fsb-form fieldset.fsb-bias { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px 14px }
.fsb-form .fsb-tpl { display:block; position:relative; padding-left:26px; line-height:1.45; text-align:left; box-sizing:border-box }
.fsb-form .fsb-tpl > input { position:absolute; left:0; top:3px }
.fsb-form .fsb-tpl > b { margin-right:8px; overflow-wrap:anywhere } .fsb-form .fsb-tpl > .chp-ilk { margin-left:8px; white-space:nowrap }
.fsb-wide { max-width:min(560px, calc(100vw - 32px)) } .fsb-pv ul.fsb-sc { margin:4px 0 0; padding-left:18px } .fsb-notes { white-space:pre-wrap }
.fsb-lv li { display:grid; grid-template-columns:96px minmax(0,1fr); gap:8px; padding:4px } .fsb-link { display:flex; flex-wrap:wrap; gap:6px } .fsb-link input { flex:1 1 180px; min-width:0 }
.fsb-qr { width:150px; height:150px; background:#fff; border-radius:6px; padding:4px } .fsb-qr svg { width:100%; height:100% }
.fsb-why summary { cursor:pointer; font-weight:600 } .fsb-why ul { margin:6px 0; padding-left:18px } .fsb-invl { list-style:none; padding:0; display:grid; gap:3px; font-size:12px } .fsb-invl code { display:block; color:var(--c-muted); overflow-wrap:anywhere }
.fsb-invl li { display:flex; justify-content:space-between; gap:8px; align-items:center } .fsb-invl { max-height:240px; overflow-y:auto } .fsb-open { display:grid; gap:4px; border-top:1px solid var(--c-border); padding-top:8px }
.fsb-tools { position:relative; display:inline-flex } #fsb_tbtn { min-width:30px; height:26px; padding:0 8px; font-size:15px; line-height:1 }
.fsb-menu { position:fixed; z-index:320; display:grid; min-width:210px; padding:4px; border:1px solid var(--c-border); border-radius:var(--r-ctl); background:var(--c-panel); box-shadow:var(--c-shadow-sm) } .fsb-menu[hidden] { display:none }
.fsb-menu .fsb-mi { height:auto; min-height:32px; text-align:left; border:0; background:transparent; padding:6px 10px; font-size:13px; border-radius:calc(var(--r-ctl) - 2px) } .fsb-menu .fsb-mi:hover, .fsb-menu .fsb-mi:focus-visible { background:var(--c-raised) }
.fsb-care-l { list-style:none; padding:0; margin:0; display:grid; gap:6px } .fsb-care-l li { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center }
.fsb-lines { padding:8px 10px; border-radius:var(--r-ctl); border:1px solid var(--c-border) } .fsb-lines ul { margin:4px 0; padding-left:18px }
/* (Floor QA 2026-11-12) under dialogs (90): it sat over the cohort / pulse cards' darkened backdrop */
.fsb-note { position:fixed; left:16px; bottom:16px; z-index:85; width:min(400px, calc(100vw - 32px)); background:var(--c-panel); color:var(--c-text); border:1px solid var(--c-border); border-radius:10px; padding:12px 14px; box-shadow:var(--c-shadow-sm) }
.fsb-note p { margin:0 0 8px; line-height:1.45 } .fsb-moon { margin-left:auto; color:var(--c-faint); font-size:12px } #crisis .fsb-ask button { margin-right:8px } #crisis .fsb-ask .meta { font-size:12px }
@media (max-width:760px) { .fsb-acts { margin-left:0 } .fsb-bar button, .fsb-top { min-height:36px } }
/* (owner 2026-11-03) creator levels: the chip on the chart (hide / clear), the button under a creator's picture, the confirm list */
#crl_chip { position:absolute; z-index:6; top:36px; right:calc(var(--rp) + 112px); display:flex; align-items:center; gap:4px; height:26px; padding:0 4px 0 9px;
  border:1px solid var(--c-border); border-radius:var(--r-ctl); background:color-mix(in srgb, var(--c-card) 92%, transparent); color:var(--c-muted); font-size:12px; box-shadow:var(--c-shadow-sm) }
#stage.mtf #crl_chip { right:calc(var(--rp) + var(--mtfw, 28%) + 112px) }
#crl_chip .crl-ct { display:flex; align-items:center; gap:6px; white-space:nowrap } #crl_chip .crl-ct i { width:14px; border-top:2px dashed #c2185b }
#crl_chip button { height:20px; padding:0 7px; font-size:11.5px; border-radius:calc(var(--r-ctl) - 2px); border:1px solid transparent; background:transparent; color:var(--c-muted) }
#crl_chip button:hover, #crl_chip button:focus-visible { border-color:var(--c-border); color:var(--c-text); background:var(--c-raised) }
body.ck #stage > #crl_chip { display:none !important }
.crl-btn { display:inline-flex; align-items:center; gap:6px; margin-top:6px; padding:4px 10px; font-size:12.5px; border-radius:var(--r-ctl); border:1px solid var(--c-border); background:var(--c-card); color:var(--c-text); cursor:pointer }
.crl-btn:hover, .crl-btn:focus-visible { border-color:#c2185b } .crl-btn svg { width:14px; height:14px; fill:none; stroke:#c2185b; stroke-width:2 }
.crl-card { max-width:min(460px, calc(100vw - 32px)) } .crl-body { display:grid; gap:10px } .crl-body p { margin:0 }
.crl-src { font-weight:600; color:var(--c-text) } .crl-what, .crl-fine { font-size:13px; color:var(--c-muted) } .crl-fine { font-size:12px; color:var(--c-faint) }
.crl-warn { font-size:13px; color:var(--c-warn); padding:8px 10px; border-radius:var(--r-ctl); border:1px solid color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 8%, var(--c-card)) }
.crl-list { list-style:none; margin:0; padding:0; display:grid; gap:2px; max-height:min(46vh, 380px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--c-border) transparent }
.crl-list label { display:grid; grid-template-columns:18px 96px minmax(0, 1fr); gap:8px; align-items:center; padding:6px 4px; border-radius:var(--r-ctl); cursor:pointer; font-size:13.5px }
.crl-list label:hover { background:var(--c-raised) } .crl-list b { font:500 14px var(--f-num); font-variant-numeric:tabular-nums; color:var(--c-text); text-align:right }
.crl-list span { color:var(--c-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.crl-list .crl-why { display:block; font-size:11.5px; color:var(--c-warn); white-space:normal }
.crl-acts { display:flex; gap:8px; flex-wrap:wrap } .crl-wait { color:var(--c-muted) }
@media (max-width:760px) { .crl-btn { min-height:40px } .crl-list label { min-height:40px } .modal.crl-card .crl-acts button { flex:1 } }
#chint { position:absolute; z-index:7; top:40px; right:calc(var(--rp) + 6px); width:min(250px, calc(100% - 24px)); padding:10px 34px 10px 12px; background:var(--c-card); color:var(--c-text);
  border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-radius:12px; box-shadow:var(--c-shadow); font:400 13px/1.45 var(--f-body) }
#chint::before { content:""; position:absolute; top:-7px; right:12px; width:12px; height:12px; background:var(--c-card); transform:rotate(45deg);
  border-left:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); border-top:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)) }
#chint .nh-x { position:absolute; top:5px; right:5px; padding:2px 7px; border:0; background:transparent; color:var(--c-muted); font-size:18px; line-height:1 }
#chint .nh-x:hover { color:var(--c-text) }
/* (chart hunt 2026-11-10) up to ~950 px tall with the P&L box rows: at 1280x720 / 1366x768 its bottom third (Price Box,
   Chart Key, Stream Mode) was below the window. It now stops 8 px from each edge and scrolls inside */
#cmenu { position:fixed; z-index:72; min-width:220px; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow-y:auto; overscroll-behavior:contain; display:grid; gap:1px; padding:5px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow) }
#cmenu[hidden] { display:none }
#cmenu button { display:grid; grid-template-columns:16px 1fr; align-items:center; gap:6px; width:100%; min-height:0; padding:7px 12px 7px 6px; border:0; border-radius:8px; text-align:left; background:transparent;
  color:var(--c-text); box-shadow:none; font:400 13px var(--f-body); white-space:nowrap }
#cmenu button:hover:not([aria-disabled="true"]), #cmenu button:focus-visible { background:var(--c-raised); outline:none }
#cmenu button[aria-disabled="true"] { color:var(--c-muted); cursor:default; white-space:normal }
#cmenu .ck { color:var(--c-accent); font-weight:700; text-align:center }
#cmenu [role="separator"] { height:1px; margin:4px 4px; background:var(--c-border) }
#key_ict .kr.kc { grid-template-columns:14px 34px 1fr 16px; cursor:pointer; margin:0 -4px; padding:2px 4px; border-radius:6px }
#key_ict .ksw { width:14px; height:14px; padding:0; border-radius:4px; border:1px solid var(--c-border); cursor:pointer; opacity:.85 }
#key_ict .ksw.set { box-shadow:0 0 0 1.5px var(--c-accent) } #key_ict .ksw:hover { opacity:1; transform:scale(1.1) }
#key_ict .ktf { display:flex; gap:3px; margin-top:2px } #key_ict .ktf button { font-size:10px; line-height:1; padding:2px 4px; border-radius:4px; border:1px solid var(--c-border); background:none; color:var(--mut); cursor:pointer }
#key_ict .ktf button[aria-pressed="true"] { background:var(--c-raised); color:var(--ink); border-color:var(--c-accent) } #key_ict .ktf button:disabled { opacity:.4; cursor:default }
#key_ict .kr.kc:hover { background:var(--c-raised) }
#key_ict .kc input { width:13px; height:13px; margin:0; accent-color:var(--c-accent); cursor:pointer }
#key_ict .kc:has(input:not(:checked)) :is(svg, span) { opacity:.45 }
@media (max-width:760px) {
  #chartgear { top:auto; bottom:44px; right:calc(var(--psw, 70px) + 8px); width:40px; height:40px }
  #mdhbtn { top:auto; bottom:44px; right:calc(var(--psw, 70px) + 54px); min-width:40px; height:40px }
  #mdhbtn[aria-pressed="true"] .mdh-t { display:none }   /* (hunt 2026-11-09) the slashed eye alone: "Mentor drawings hidden" grew it over the timeframes */
  #chint { top:auto; bottom:92px; right:8px; left:8px; width:auto } #chint::before { display:none } #chint .nh-x { min-width:40px; min-height:40px }
  #rail .rb-sub { width:24px; height:24px; top:0; right:-2px }
  #cmenu button { min-height:44px }
  #key_ict .kr.kc { min-height:34px }
}
/* ---- the status ladder (2026-10-20): the connector's setup in words, a step at a time; the corner pills (ladder, Tour) */
.lad { list-style:none; margin:0; padding:0; display:grid; gap:6px; font:400 14px/1.4 var(--f-body) }
.lad li { display:grid; grid-template-columns:18px 1fr; gap:8px; align-items:start; color:var(--c-muted) }
.lad li i { width:16px; height:16px; margin-top:2px; border-radius:50%; border:1.5px solid var(--c-border-strong); display:grid; place-items:center; font:700 11px/1 var(--f-body); font-style:normal; box-sizing:border-box }
.lad li.l-ok { color:var(--c-text) } .lad li.l-ok i { border-color:var(--c-up); background:color-mix(in srgb, var(--c-up) 18%, transparent); color:var(--c-up) }
.lad li.l-cur { color:var(--c-text); font-weight:600 } .lad li.l-cur i { border-color:var(--c-accent) }
.lad-pulse { animation:ladp 1.4s ease-in-out infinite } @keyframes ladp { 50% { box-shadow:0 0 0 4px color-mix(in srgb, var(--c-accent) 25%, transparent) } }
.lad .sr, #tour_bub .sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
.lad-box { padding:10px 12px; border-radius:var(--r-ctl); background:var(--c-raised); border:1px solid var(--c-border) } .lad-box:empty { display:none }
.lad-empty { margin:12px auto 0; max-width:440px; text-align:left }
#cornerpills { position:fixed; left:12px; bottom:12px; z-index:80; display:flex; flex-direction:column; align-items:flex-start; gap:8px; pointer-events:none }
#cornerpills > * { pointer-events:auto } body.tour-on #cornerpills { z-index:9002 }
/* Trade: the corner sits on the bottom tabs and the drawing tools (the Tour pill stays until the tour is done, hiding Trades), so the pills use the strip's free middle */
/* (launch hunt B 2026-11-09) 1040, not 1100: a 1366x768 laptop at 125% is 1093 px wide, and there the Tour pill sat on
   TODAY / Trades for every new trader who skipped the tour (the strip's free middle is wide enough from about 1040 px) */
@media (min-width:1040px) { body.room-trade:not(.tour-on) #cornerpills { left:380px; bottom:3px } }
@media (min-width:1040px) and (max-width:1279px) { body.room-trade:not(.tour-on) #ladpill { max-width:280px } }   /* stops short of Discipline */
#ladpill, #tourpill { display:flex; align-items:center; gap:8px; max-width:min(420px, calc(100vw - 24px)); padding:7px 12px; border-radius:999px; border:1px solid var(--c-border-strong);
  background:var(--c-card); color:var(--c-text); box-shadow:var(--c-shadow); font:500 13px/1.3 var(--f-body); text-align:left; cursor:pointer }
#ladpill > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
/* on the sample day the connect pill sat on top of the "Sample data" strip (its label and half of Leave Sample); the tour shows it on purpose */
body:not(.tour-on):has(#sample_bar:not([hidden])) #ladpill { display:none }
.lp-dots { display:flex; gap:3px; flex:none } .lp-dots i { width:7px; height:7px; border-radius:50%; background:var(--c-border-strong) }
.lp-dots i.l-ok { background:var(--c-up) } .lp-dots i.l-cur { background:var(--c-accent); animation:ladp 1.4s ease-in-out infinite }
#tourpill { border-color:color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); font-weight:600 } #tourpill b { color:var(--c-accent) }
body.room-community #tourpill, body.room-community #ladpill { display:none }   /* (owner 2026-11-02) it covered the room's own bottom-left buttons; More > Tour still starts it; owner 11-12: the NinjaTrader pill covered his name the same way, and the connection still shows in the top bar and Accounts */
@media (max-width:760px) { #cornerpills { bottom:calc(var(--rb, 56px) + 10px) } }
/* (new-trader test A3 2026-11-13) outside Trade the pills sat on room content ("No feed? Type today's P&L", Settings,
   Lock It In): there they shrink to their icon (the label comes back on hover / focus) and the rooms scroll clear of them */
body:not(.room-trade):not(.tour-on) #ladpill:not(:hover, :focus-visible) > span:last-child,
body:not(.room-trade):not(.tour-on) #tourpill:not(:hover, :focus-visible) > .tp-t { display:none }
body:not(.room-trade):not(.tour-on) :is(#ladpill, #tourpill) { padding:7px 10px }
body:has(#cornerpills > *):not(.tour-on) :is(#room_prep, #room_protect, #room_mentor, #room_bottom) { padding-bottom:110px !important }
/* (owner 2026-11-18: "why is there this big blue bar at the bottom of backtesting that cuts off the bottom of the screen")
   Backtest is a full-height chart: the 110 px kept clear for the pills was an empty band under it. On a PC the pills sit
   in the chart's own bottom-left corner instead, right of the drawing tools and above the time axis; one column (phone /
   narrow window) scrolls, so the room keeps its clear space there */
@media (max-width:900px) { body:has(#cornerpills > *):not(.tour-on) #room_train { padding-bottom:110px !important } }
@media (min-width:901px) { body.room-train:not(.tour-on) #cornerpills { left:calc(var(--dtw, 44px) + 8px); bottom:34px } }
.ob-strip { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; padding:8px 12px; border-radius:10px; background:#15121c; color:#ece8f4; font:500 13px var(--f-body); border:1px solid #332c42 }
.ob-strip b { color:#a78bfa } .ob-strip .os-v { padding:1px 10px; border-radius:999px; background:#0b7a66; color:#fff; font-weight:700 }
.ob-two, .pc-two { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px }
.ob-way, .pc-opt { display:grid; gap:8px; align-content:start; padding:12px 14px; border-radius:12px; border:1px solid var(--c-border-strong); background:var(--c-raised) }
.ob-way .ob-tag, .pc-tag { padding:1px 8px; border-radius:999px; background:color-mix(in srgb, var(--c-accent) 14%, transparent); color:var(--c-accent); font:700 11px var(--f-body); letter-spacing:.05em; text-transform:uppercase }
.ob-way .tv-walk, .pc-opt ul { margin:0; padding-left:18px; display:grid; gap:4px; font-size:13.5px; line-height:1.45 }
.ob-dl { font-weight:600 }
@media (max-width:760px) { .ob-two, .pc-two { grid-template-columns:minmax(0, 1fr) } }
.pr-conn { display:grid; gap:10px } .pr-conn[hidden] { display:none }
.pc-top { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline } .pc-top h3 { margin:0 }
.pc-h { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center } .pc-h b { font:600 15.5px var(--f-body) }
.pc-st { margin-left:auto; font:600 12.5px var(--f-body); color:var(--c-muted) } .pc-opt.on { border-color:color-mix(in srgb, var(--c-up) 55%, var(--c-border)) } .pc-opt.on .pc-st { color:var(--c-up) }
.pc-acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.pc-acts .btnlink { display:inline-flex; align-items:center; padding:6px 12px; border-radius:var(--r-ctl); text-decoration:none; background:var(--c-accent); color:var(--c-on-accent); font-weight:600 }
.pc-csv { font-size:13px } .pc-why { margin:0; font-size:13.5px; line-height:1.45 }
#ledgelbl .lg-t { display:block; font:500 10px/1 var(--f-num, var(--f-body)); margin-top:1px; font-variant-numeric:tabular-nums }
/* polish B (owner test 2026-10-23 #11): every top-bar chip that opens something looks and feels clickable - a small chevron,
   a hover state, the hand cursor, a focus ring and a tooltip naming what it opens */
.chip.clk { cursor:pointer; transition:border-color .12s, background-color .12s }
.chip.clk:hover { border-color:var(--c-border-strong); background:color-mix(in srgb, var(--c-accent) 9%, var(--c-raised)) }
.chip.clk:focus-visible, .chip.clk .chip-btn:focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
.chip .chev { width:9px; height:9px; flex:none; margin-left:-3px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; opacity:.55 }
.chip.clk:hover .chev, .chip.clk[aria-expanded="true"] .chev, .chip-btn[aria-expanded="true"] .chev { opacity:1 }
/* #12: the guard chip shows the guard only ("Trades 1 of 4 · -0.1R today"): neutral, amber at the last trade / near a
   stop, red when done. The verdict and its reason live in the Co-Pilot card */
#guard .lab, #guard #gtext { color:var(--c-muted) }
#guard.near { border-color:color-mix(in srgb, var(--c-warn) 55%, transparent) } #guard.near #gtext { color:var(--c-warn) }
#guard.done { border-color:color-mix(in srgb, var(--c-down) 55%, transparent) } #guard.done #gtext { color:var(--c-down) }
#rpop { display:block; width:280px; cursor:default; white-space:normal; font:400 13px/1.45 var(--f-body) }
#rpop .gd-h { font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted); margin:0 0 6px }
#rpop .gd-rows { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:0 0 6px } #rpop .gd-rows b { font:500 13px var(--f-num); text-align:right; font-variant-numeric:tabular-nums }
#rpop .gd-n { font-size:12px; color:var(--c-muted); margin:0 }
#gqlog { border-top:1px solid var(--c-border); margin-top:8px; padding-top:8px } #gqlog .gq-h { font:600 12.5px var(--f-body); margin-bottom:6px }
#gqlog .gq-row { display:flex; gap:5px; flex-wrap:wrap; font-family:var(--f-num); font-variant-numeric:tabular-nums } #gqlog button { padding:3px 9px; font-size:12.5px }
#gqlog .l { color:var(--c-down) } #gqlog .w { color:var(--c-up) } #gqlog input { width:62px; padding:3px 6px; font-size:12.5px }
.pp-check { display:grid; gap:8px } .pp-check ul { list-style:none; margin:0; padding:0; display:grid; gap:6px }
/* (new-trader test F8, 11-14) on a short laptop screen I'm Ready sat below the fold on the first morning: the optional
   checklist is one line, and the import card (once seen: the tour shows it, or an earlier visit) sits under the morning card,
   above the sections. Wide windows keep their two columns */
@media (min-width:761px) and (max-height:900px) {
  .pp-check { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding-top:8px; padding-bottom:8px }
  .pp-check .pp-ck-h { display:contents } .pp-check .pp-ck-h .meta { display:none }
  .pp-check ul { display:flex; flex-wrap:wrap; gap:6px; order:1 } .pp-check li button { width:auto; padding:5px 10px; font-size:13.5px }
  .pp-check .pp-ck-h .grow { order:2 } .pp-check #pp_ck_x { order:3 }
}
@media (min-width:761px) and (max-width:1599px) and (max-height:900px) {
  #room_prep.imp-seen > #pp_imp { order:1 } #room_prep.imp-seen > .pp-wcol-r > * { order:2 }
}
.pp-check li button { display:flex; gap:10px; align-items:center; width:100%; text-align:left; padding:8px 12px; border-radius:10px; border:1px solid var(--c-border); background:var(--c-raised); color:var(--c-text); font:14px var(--f-body) }
.pp-check li.done button { color:var(--c-muted); text-decoration:line-through } .pp-check .pp-ck-h { display:flex; align-items:center; gap:8px } .pp-check .pp-ck-h .grow { flex:1 }
/* ---- Prep, co-pilot driven (2026-10-21): the 30-second morning check up top, everything else one tap below, collapsed */
.pp-mc { display:grid; gap:14px; border-left:3px solid var(--c-accent) } .pp-mc > * { min-width:0 }
.pp-mc .pp-hello { font:600 20px var(--f-body); margin:0 }
.pp-mc h4 { margin:0 0 6px; font:600 12px var(--f-body); letter-spacing:.04em; text-transform:uppercase; color:var(--c-muted) }
.pp-mc-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px } @media (max-width:760px) { .pp-mc-grid { grid-template-columns:minmax(0, 1fr) } }
.pp-mc-b { font-size:14px; line-height:1.5 } .pp-mc-b ul { list-style:none; margin:0; padding:0; display:grid; gap:4px }
.pp-mc-b li { display:flex; gap:8px; align-items:baseline } .pp-mc-b li b { font-variant-numeric:tabular-nums; white-space:nowrap }
.pp-mc-b .im { width:8px; height:8px; border-radius:50%; flex:none; align-self:center; background:var(--c-warn) } .pp-mc-b .im.High { background:var(--c-down) }
.pp-mc-b .pp-win { color:var(--c-muted) } .pp-mc-b .pp-win.past { text-decoration:line-through }
.pp-mc-b .lim-left { margin-left:auto; font-weight:600; font-variant-numeric:tabular-nums } .pp-mc-b .lim-left.bad { color:var(--c-down) }
.pp-focus p { margin:0; font-size:16px; line-height:1.45 }
/* (launch push 11-14, B2) Today's One Thing: the line, the one thing to try, his numbers as the why */
.pp-focus { display:grid; gap:4px } .pp-focus h4 { margin:0 0 2px } .pp-focus .pp-one-try { font-weight:600; font-size:15px }
.pp-focus .pp-one-why { font-size:13.5px; color:var(--c-muted) } .pp-focus .pp-stat-f { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; margin-top:2px; font-size:12.5px } .pp-focus .pp-stat-f .meta { font-size:12px }
/* the armed block after I'm Ready */
.pp-arm { display:grid; gap:6px; padding:12px 14px; border-radius:10px; border:1px solid color-mix(in srgb, var(--c-up) 35%, var(--c-border)); background:color-mix(in srgb, var(--c-up) 6%, var(--c-card)) }
.pp-arm.off { border-color:color-mix(in srgb, var(--c-warn) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-warn) 7%, var(--c-card)) }
.pp-arm h4 { margin:0 } .pp-arm p { margin:0; font-size:14px; line-height:1.45 } .pp-arm .pp-arm-via { font-size:12px }
.pp-arm-l { list-style:none; margin:2px 0 0; padding:0; display:grid; gap:5px } .pp-arm-l li { display:grid; grid-template-columns:88px minmax(0, 1fr); gap:10px; font-size:14px; line-height:1.4 }
.pp-arm-k { font:600 11.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted); padding-top:2px }
.pp-arm .pp-acts { margin-top:4px; flex-wrap:wrap }
@media (max-width:560px) { .pp-arm-l li { grid-template-columns:1fr; gap:0 } }
/* (0.9.36) One Stat for Today: the stats breakdown's one line for this morning, under the focus; calm, never red */
.pp-stat { display:grid; gap:4px; padding:10px 12px; border-radius:10px; background:color-mix(in srgb, var(--c-accent) 6%, transparent); border:1px solid color-mix(in srgb, var(--c-accent) 22%, var(--c-border)) }
.pp-stat h4 { margin:0 0 2px } .pp-stat p { margin:0; line-height:1.45 } .pp-stat .pp-stat-l { font-size:15px } .pp-stat .pp-stat-t { color:var(--c-text); font-weight:600 }
.pp-stat .pp-stat-f { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; margin-top:2px; font-size:12.5px } .pp-stat .pp-stat-f .meta { font-size:12px }
/* "This is your <name> pattern": a small text link after an Atlas note (a warning, a check), never a button */
.sbd-plink { font-size:12.5px; font-weight:500; color:var(--c-accent); text-decoration:underline; text-underline-offset:2px; white-space:normal; cursor:pointer }
.ct-sbd { margin:4px 0 0; font-size:12.5px }
/* the Morning Envelope note (2026-10-21, envelope.py): its paper, replay chart, lines, value block and milestone card, shown in the full-window reveal (#envpop) */
.pp-env { --ea:var(--c-accent); display:grid; gap:10px }
.env-paper { display:grid; gap:8px; padding:12px 14px; border-radius:var(--r-card); background:var(--c-card); border:1px solid var(--c-border); box-shadow:var(--c-shadow-sm); transform-origin:top; animation:envOut .5s var(--ease) both }
.env-paper h5 { margin:0; font:600 12px var(--f-body); letter-spacing:.04em; text-transform:uppercase; color:var(--ea) }
.env-paper .env-cap { margin:0; font-size:16px; line-height:1.45 }
.env-paper ul { margin:0; padding:0; list-style:none; display:grid; gap:3px; font-size:13.5px }
.env-paper li { opacity:0; transform:translateY(4px); transition:opacity .4s, transform .4s } .env-paper li.on { opacity:1; transform:none }
.env-paper li::before { content:"\2713"; color:var(--ea); margin-right:6px }
.env-paper .env-mentor { margin:0; font-size:13.5px; color:var(--c-muted); font-style:italic }
.env-paper .env-sample { font-size:12px; color:var(--c-muted) }
.env-paper .env-kick { font-size:12.5px; color:var(--c-muted) }
.env-val { display:grid; gap:4px; padding:8px 10px; border-radius:8px; background:color-mix(in srgb, var(--ea) 8%, transparent); animation:envOut .5s .9s var(--ease) both }
.env-val p { margin:0; font-size:14px; line-height:1.45 } .env-val p:first-child { font-weight:600 }
.env-paper .env-note { font-size:12px; color:var(--c-faint) }
@media (prefers-reduced-motion: reduce) { .env-val { animation:none } }
.env-chart { width:100%; max-width:640px; height:auto; display:block; border-radius:8px; background:var(--c-raised); cursor:pointer }
.env-chart .cd { opacity:0; transition:opacity .25s } .env-chart .cd.on { opacity:1 }
.env-chart .mk { opacity:0; transition:opacity .35s } .env-chart .mk.on { opacity:1 }
.env-acts { display:flex; gap:8px; align-items:center; flex-wrap:wrap }
.env-ms { display:grid; gap:4px; padding:10px 12px; border-radius:var(--r-card); border:1px dashed color-mix(in srgb, var(--ea) 50%, var(--c-border)); animation:envOut .5s .2s var(--ease) both }
.env-ms b { font-size:14px } .env-ms span { font-size:13px; color:var(--c-muted) }
/* the Morning Envelope's full-window moment (2026-10-21): the envelope flies in to the middle with a soft glow over a
   dimmed backdrop; a click pops the flap and the note unravels; Later shrinks it into the top-bar envelope (#envbtn) */
#envpop { --ea:var(--c-accent); position:fixed; inset:0; z-index:95; display:grid; place-items:center; padding:16px; overflow:hidden }
#envpop[hidden] { display:none }
#envpop .ep-bg { position:absolute; inset:0; background:var(--c-veil); backdrop-filter:blur(3px); opacity:0; transition:opacity .5s ease }
#envpop.in .ep-bg { opacity:1 }
#envpop .ep-stage { position:relative; display:grid; justify-items:center; gap:14px; width:min(680px, 100%); max-height:100%; transition:transform .5s var(--ease), opacity .5s ease }
#envpop .ep-env { position:relative; width:150px; height:100px; padding:0; border:0; background:none; cursor:pointer; perspective:400px;
  opacity:0; transform:translateY(-45vh) scale(.25) rotate(-8deg); transition:transform .8s cubic-bezier(.2,1.25,.35,1), opacity .4s ease;
  filter:drop-shadow(0 0 22px color-mix(in srgb, var(--ea) 55%, transparent)) }
#envpop.in .ep-env { opacity:1; transform:none; animation:epGlow 2.6s ease-in-out .9s infinite }
#envpop .ep-env:hover, #envpop .ep-env:focus-visible { transform:scale(1.05) }
#envpop .ep-body { position:absolute; inset:0; border-radius:10px; background:linear-gradient(160deg, color-mix(in srgb, var(--ea) 32%, var(--c-raised)), color-mix(in srgb, var(--ea) 14%, var(--c-card)));
  border:1px solid color-mix(in srgb, var(--ea) 55%, var(--c-border)) }
#envpop .ep-flap { position:absolute; left:0; right:0; top:0; height:58%; transform-origin:top; clip-path:polygon(0 0, 100% 0, 50% 100%);
  background:color-mix(in srgb, var(--ea) 45%, var(--c-raised)); transition:transform .6s var(--ease) }
#envpop .ep-wax { position:absolute; left:50%; top:52%; width:18px; height:18px; margin:-9px 0 0 -9px; border-radius:50%; background:var(--ea);
  box-shadow:0 0 10px color-mix(in srgb, var(--ea) 70%, transparent); transition:opacity .3s, transform .3s }
#envpop .ep-head { display:grid; justify-items:center; gap:6px; text-align:center; opacity:0; transform:translateY(8px); transition:opacity .5s .5s, transform .5s .5s }
#envpop.in .ep-head { opacity:1; transform:none }
#envpop .ep-t { margin:0; font:600 21px var(--f-body); color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.35) }
:root[data-theme="light"] #envpop .ep-t { color:var(--c-text); text-shadow:none }
#envpop .ep-sub { margin:0; font-size:13.5px; color:color-mix(in srgb, #fff 78%, transparent) } :root[data-theme="light"] #envpop .ep-sub { color:var(--c-muted) }
#envpop .ep-acts { display:flex; gap:8px; justify-content:center; margin-top:4px }
#envpop .ep-acts button { min-height:38px; padding:6px 18px }
#envpop.opening .ep-flap, #envpop.open .ep-flap { transform:rotateX(180deg) }
#envpop.opening .ep-wax, #envpop.open .ep-wax { opacity:0; transform:scale(.4) }
#envpop.opening .ep-env { animation:epPop .6s var(--ease) both }
#envpop.open .ep-env, #envpop.open .ep-head { display:none }
#envpop .ep-note { --ea:var(--c-accent); width:100%; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow:auto; display:grid; gap:10px;
  padding:4px; animation:epUnravel .75s var(--ease) both; transform-origin:top center }
#envpop .ep-note .env-paper { animation:none; box-shadow:var(--c-shadow) }
#envpop .ep-close { justify-content:flex-end }
#envpop.away .ep-stage { transform:translate(var(--tx, 0), var(--ty, 0)) scale(.06); opacity:0 }
#envpop.away .ep-bg, #envpop.out .ep-bg { opacity:0 } #envpop.out .ep-stage { opacity:0; transform:scale(.97) }
@keyframes epGlow { 0%, 100% { filter:drop-shadow(0 0 14px color-mix(in srgb, var(--ea) 40%, transparent)) } 50% { filter:drop-shadow(0 0 30px color-mix(in srgb, var(--ea) 75%, transparent)) } }
@keyframes epPop { 0% { transform:none } 40% { transform:scale(1.12) } 100% { transform:scale(.9) translateY(-10px); opacity:.6 } }
@keyframes epUnravel { from { clip-path:inset(0 0 100% 0); opacity:.3; transform:translateY(-10px) } to { clip-path:inset(0 0 0 0); opacity:1; transform:none } }
/* prefers-reduced-motion: a plain fade, nothing flies, pops or unravels */
#envpop.still .ep-env, #envpop.still .ep-head, #envpop.still .ep-stage, #envpop.still .ep-flap, #envpop.still .ep-wax { transition:opacity .3s ease; transform:none !important; animation:none !important }
#envpop.still .ep-note { animation:none } #envpop.still .ep-bg { transition:opacity .3s ease }
@media (prefers-reduced-motion: reduce) { #envpop *, #envpop { animation:none !important; transition:opacity .3s ease !important } #envpop .ep-env, #envpop .ep-stage { transform:none !important } }
@media (max-width:760px) { #envpop { padding:0; place-items:stretch } #envpop .ep-stage { width:100%; height:100%; align-content:center; padding:12px }
  #envpop.open .ep-stage { align-content:start } #envpop .ep-note { max-height:calc(100dvh - 24px) } }
/* the top-bar envelope: a soft glow and a dot while today's is unopened, quiet after (Read Again) */
#envbtn { position:relative; flex:none; display:inline-grid; place-items:center; width:30px; height:28px; padding:0; border-radius:999px; color:var(--c-muted) }
#envbtn[hidden] { display:none }
/* the one-row header: muted AND an envelope today, the wordmark steps down to the mark (as it does under 1320 px) */
@media (min-width:761px) and (max-width:1600px) { header:has(#envbtn:not([hidden])):has(#mutepill:not([hidden])) h1.wm .wm-svg { display:none }
  header:has(#envbtn:not([hidden])):has(#mutepill:not([hidden])) h1.wm .wm-mark-only { display:block } }
#envbtn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round }
#envbtn .dot { position:absolute; top:2px; right:2px; width:8px; height:8px; border-radius:50%; background:var(--c-accent); border:1.5px solid var(--c-panel); display:none }
#envbtn.new { color:var(--c-accent); animation:envGlowBtn 2.6s ease-in-out infinite } #envbtn.new .dot { display:block }
@keyframes envGlowBtn { 0%, 100% { box-shadow:0 0 0 0 transparent } 50% { box-shadow:0 0 12px 1px color-mix(in srgb, var(--c-accent) 45%, transparent) } }
@media (prefers-reduced-motion: reduce) { #envbtn.new { animation:none; box-shadow:0 0 8px color-mix(in srgb, var(--c-accent) 35%, transparent) } }
.pp-env a { font-size:13px }
@keyframes envOut { from { opacity:0; transform:translateY(-6px) scaleY(.96) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) { .env-paper, .env-ms, .env-paper li, .env-chart .cd, .env-chart .mk { transition:none; animation:none } }
.env-ul { display:grid; gap:6px; margin-top:8px } .env-ul h4 { margin:0 }
/* Atlas's closet (2026-10-25, Prep > Settings): his full figure beside the slots; earned pieces are buttons, locked ones
   dashed and dimmed with how they're earned */
.cl-wrap { display:flex; gap:16px; align-items:flex-start; margin-top:6px }
.cl-fig { flex:none; width:92px; height:228px; position:sticky; top:8px } .cl-fig > svg { display:block; width:100%; height:100%; overflow:visible }
.cl-slots { flex:1; min-width:0; display:grid; gap:10px }
.cl-slot > b { display:block; font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--c-muted); margin-bottom:4px }
.cl-its { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:6px }

.cl-it { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:44px; padding:7px 10px; border-radius:10px; border:1px solid var(--c-border); background:var(--c-card, var(--panel)); color:var(--c-text); font:inherit; text-align:left; cursor:pointer }
.cl-it:not([disabled]):hover { border-color:color-mix(in srgb, var(--c-accent) 55%, var(--c-border)) }
.cl-it .cl-n { font-weight:600; font-size:13.5px } .cl-it .cl-h { font-size:11.5px; line-height:1.35; color:var(--c-muted) }
.cl-it[aria-pressed="true"] { border-color:var(--c-accent); box-shadow:inset 0 0 0 1px var(--c-accent); background:color-mix(in srgb, var(--c-accent) 10%, var(--c-card, var(--panel))) }
.cl-it[disabled] { cursor:default; border-style:dashed; background:transparent } .cl-it[disabled] .cl-n { color:var(--c-muted) }
@media (max-width:560px) { .cl-wrap { flex-direction:column; align-items:center } .cl-slots { width:100% } .cl-fig { position:static } }
.pp-plan .plan { font-size:14px; line-height:1.5 } .pp-plan details > summary { cursor:pointer; font-size:13px; color:var(--c-muted); margin-top:6px }
.pp-plan .fomc { margin:0 0 6px }
#pp_lockline { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; font-size:14px; padding:8px 12px; border-radius:10px; background:var(--c-raised) }
/* (launch push 11-14, B2) Lock It In rows on the morning card, above I'm Ready */
#pp_lockline { display:grid; gap:6px; align-items:stretch } #pp_lockline .pp-lk-h { font-weight:600 } #pp_lockline .pp-lk-h .meta { font-weight:400; margin-left:6px; font-size:12.5px }
#pp_lockline .pp-lk-r { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; justify-content:space-between; min-width:0 } #pp_lockline .pp-lk-r > span:first-child { min-width:0; overflow-wrap:anywhere }
#pp_lockline .pp-lk-a { display:inline-flex; gap:12px; align-items:center } #pp_lockline .pp-lk-r.ok { color:var(--c-up) } #pp_lockline .pp-lk-r.firm { color:var(--c-muted) }
#pp_lockline .pp-lk-st { font-size:12.5px; font-weight:600; color:var(--c-muted) }
#pp_lockline.done { background:transparent; padding:0; color:var(--c-muted) }
/* (design quick win 2026-11-10) All Set is a state, not an action: an outlined toggle (an empty box), green "Set ✓" once
   it's on; I'm Ready stays the morning card's one filled button */
#pp_lockline .pp-tog { display:inline-flex; align-items:center; gap:7px; background:transparent; color:var(--c-text); border:1.5px solid var(--c-border-strong); font-weight:600 }
#pp_lockline .pp-tog:hover { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 8%, transparent) }
#pp_lockline .pp-tog i { width:14px; height:14px; border-radius:4px; border:1.5px solid currentColor; opacity:.7; flex:none }
#pp_lockline .pp-tog[aria-pressed="true"], #pp_lockline .pp-tog[aria-pressed="true"]:disabled { color:var(--c-up); border-color:var(--c-up); background:color-mix(in srgb, var(--c-up) 10%, transparent); opacity:1; cursor:default }
.pp-ready { display:grid; gap:8px } .pp-ready .pp-acts { margin-top:0 } .pp-ready .go { min-width:140px; min-height:40px; font-size:15px }
.pp-ready details > summary, .pp-more > summary { cursor:pointer } .pp-ready details > summary { font-size:13px; color:var(--c-muted) }
.pp-ready .pp-done { font-size:15px; color:var(--c-up); font-weight:600 } .pp-ready .pp-day { color:var(--c-muted); font-weight:400; margin-left:4px }
.pp-ready .pp-set-line { font-size:14px } .pp-mc .pp-caught { margin:-8px 0 0; font-size:14px; color:var(--c-muted) }
.pp-more { border:1px solid var(--c-border); border-radius:var(--r-card); background:var(--c-card); padding:0 16px }
.pp-more > summary { padding:12px 0; font:600 15px var(--f-body); list-style-position:outside } .pp-more > summary .meta { font-weight:400; font-size:12.5px; margin-left:6px }
/* Prep > Settings in tabs (layout hunt 2026-11-10): only the picked tab's parts show (ppSetShow) */
.pp-set-tabs { flex-wrap:wrap; width:max-content; max-width:100%; margin:2px 0 6px } .pp-set-what { margin:0 0 12px }
#pp_d_set:not([data-sett="copilot"]) [data-sett-pane="copilot"], #pp_d_set:not([data-sett="num"]) [data-sett-pane="num"],
#pp_d_set:not([data-sett="acct"]) [data-sett-pane="acct"], #pp_d_set:not([data-sett="nt"]) [data-sett-pane="nt"],
#pp_d_set:not([data-sett="closet"]) [data-sett-pane="closet"], #pp_d_set:not([data-sett="privacy"]) [data-sett-pane="privacy"] { display:none !important }
/* Contribute anonymously (2026-11-12): Settings > Privacy, the quiet Include me row, the What's shared sheet */
.ins-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin:10px 0 0; font-size:13px; color:var(--c-muted) }
.ins-row label { display:inline-flex; align-items:center; gap:6px; color:var(--c-text, inherit) } .ins-row .meta { font-size:12px }
.ins-soon { margin:8px 0 0; font-size:13px; color:var(--c-muted) }
.ins-l { margin:6px 0 0; padding-left:18px; display:grid; gap:3px; font-size:13px } .ins-words .ins-l { max-height:40vh; overflow:auto }
.ins-d { margin-top:10px } .ins-d > summary { cursor:pointer; font-size:13px } .ins-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px }
.ins-sent { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:10px } .ins-sent button { margin-left:8px }
.modal.ins-sheet { max-width:640px } .ins-ask p { margin:6px 0 0; font-size:13.5px }
.pp-more[open] { padding-bottom:14px }.pp-more > div > .rv-card { border:0; padding:4px 0; background:transparent }
.px-list { list-style:none; margin:0; padding:0; display:grid; gap:8px }
.px-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:4px 12px; align-items:center; padding:10px 12px; border:1px solid var(--c-border); border-radius:10px; background:var(--c-raised) }
.px-row b { font-size:14px } .px-row .px-why { grid-column:1; font-size:13px; color:var(--c-muted); line-height:1.4 } .px-row .px-acts { grid-column:2; grid-row:1 / span 2; display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end }
.px-row .px-tag { font-size:11px; padding:0 6px; border-radius:8px; background:var(--c-card); color:var(--c-muted); margin-left:6px; font-weight:400 }
.px-row.on { border-color:var(--c-up) } .px-row.off { opacity:.6 }
.px-have { font-size:13.5px; color:var(--c-muted); margin:0 0 8px }
.px-ans button[aria-pressed="true"] { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent) }
.px-chips { display:flex; flex-wrap:wrap; gap:8px } .px-chips button { border-radius:18px; padding:7px 14px; font-size:14px }
.px-chips button[aria-pressed="true"] { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent) }
.px-sec { display:grid; gap:10px; margin-top:12px } .px-sec:first-child { margin-top:4px } .px-sec > h3 { margin:0; font:600 15px var(--f-body) }
.px-sec input[type=text], .px-sec textarea { width:100%; box-sizing:border-box; padding:8px; font:14px var(--f-body) }
.px-sub { border-top:1px solid var(--c-border); padding-top:10px } .px-sub > summary { cursor:pointer; font-size:13.5px; color:var(--c-muted) }
.px-set { display:grid; gap:16px } .px-set > div { display:grid; gap:6px }
@media (max-width:600px) {
  .px-row { grid-template-columns:minmax(0, 1fr) } .px-row .px-acts { grid-column:1; grid-row:auto; justify-content:flex-start }
  .px-row button, .px-chips button, .pp-ready .go, #pp_lockline button { min-height:44px }
  .pp-more { padding:0 12px } .pp-more > summary { min-height:44px; display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px }
}
/* ---- the spoken tour (2026-10-20, owner: watch and listen): spotlight, bubble, the visible click (glow + grow, ghost
   cursor, ripple). One overlay at a time: while it runs, every other hint, toast, key and banner is hidden */
body.tour-on :is(#navhint, #chint, .ptoast, #key, #key_ict, #key_gen, #sample_bar, #ntflash, #updbar, #empty, #demo_sub, #story, #plan) { display:none !important }
body.tour-on #key_ict.tour-key:not([hidden]) { display:block !important }   /* the tour's SMC Key beat (2026-11-04) */
#tour_veil { position:fixed; inset:0; z-index:9000; background:transparent }
#tour_spot { position:fixed; z-index:9001; border-radius:12px; pointer-events:none; outline:200vmax solid var(--tour-veil); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 70%, transparent);
  transition:left .35s ease, top .35s ease, width .35s ease, height .35s ease }
#tour_spot.none { box-shadow:none; left:50%; top:50%; width:0; height:0 }
:root { --tour-veil:rgba(8,6,14,.66) } :root[data-theme="light"] { --tour-veil:rgba(40,28,20,.42) }
#tour_bub { position:fixed; z-index:9003; width:min(380px, calc(100vw - 24px)); box-sizing:border-box; display:grid; gap:8px; padding:14px 16px 12px; border-radius:14px;
  background:var(--c-card); color:var(--c-text); border:1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-border)); box-shadow:var(--c-shadow); font:400 14px/1.5 var(--f-body);
  transition:left .3s ease, top .3s ease }
#tour_bub .tb-h .grow { flex:1 } #tour_bub .tb-h { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; font:600 11.5px var(--f-body); letter-spacing:.05em; text-transform:uppercase; color:var(--c-muted) }
#tour_bub .tb-tag { padding:1px 7px; border-radius:999px; background:var(--c-raised); text-transform:none; letter-spacing:0 }
#tour_bub .tb-name { font:600 17px/1.3 var(--f-body) } #tour_bub .tb-name:empty { display:none } #tour_bub .tb-name b { color:var(--c-accent) }
#tour_bub:not(.sheet-t):not(.sheet-b) { max-height:calc(100vh - 16px); overflow-y:auto }   /* walk 2026-11-08: never past a short window */
#tour_bub .tb-cap { margin:0; font-size:15px } #tour_bub .tb-extra:empty { display:none } #tour_bub .tb-extra { display:grid; gap:8px }
#tour_bub .tb-foot { display:flex; flex-wrap:wrap; align-items:center; gap:6px } #tour_bub .tb-foot .grow { flex:1 }
#tour_bub .tb-foot button { padding:5px 11px; font-size:13px }
#tour_bub .tb-dots { display:flex; gap:4px } #tour_bub .tb-dots i { width:7px; height:7px; border-radius:50%; background:var(--c-border-strong) }
#tour_bub .tb-dots i.on { background:var(--c-accent) } #tour_bub .tb-dots i.done { background:color-mix(in srgb, var(--c-accent) 45%, var(--c-border-strong)) }
#tour_bub .tb-soon { display:grid; gap:6px; padding:10px 12px; border-radius:10px; background:var(--c-raised); border:1px dashed var(--c-border-strong) }
#tour_bub .tb-soon form { display:flex; gap:6px } #tour_bub .tb-soon input { flex:1; min-width:0 }
#tour_bub .tb-way { display:grid; gap:3px; align-content:start; text-align:left; padding:11px 13px; border:1.5px solid color-mix(in srgb, var(--c-accent) 60%, var(--c-border)); background:color-mix(in srgb, var(--c-accent) 10%, var(--c-card)); color:var(--c-text) }
#tour_bub .tb-way b { font-size:16px } #tour_bub .tb-way:hover { background:color-mix(in srgb, var(--c-accent) 18%, var(--c-card)) }
#tour_bub .tb-way small { font-size:12.5px; line-height:1.4; color:var(--c-muted); font-weight:400; white-space:normal }
#tour_bub .tb-alt { min-height:0; padding:2px 2px; border:0; box-shadow:none; background:none; text-align:left; white-space:normal; font:400 12.5px/1.4 var(--f-body); color:var(--c-muted) }
#tour_bub .tb-alt u { text-decoration:underline; color:var(--c-text) } #tour_bub .tb-alt:hover { background:none; color:var(--c-text) }
.pc-alt { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; font-size:13px; color:var(--c-muted) } .pc-alt .lad-box, .pc-alt .pc-st { flex-basis:100%; margin:0 }
.pc-alt button { min-height:0; padding:3px 9px; font-size:12.5px } .pc-acts .pc-big, .ob-way .pc-big { font-size:15px; padding:10px 18px }
/* (0.9.43, owner 11-17) Accounts' connections: one list inside the card, a row per platform, every row the same shape:
   name + status | what it is | its own action. Rows are separated by a rule, not boxed (no boxes in a box) */
#pr_conn > .pc-row { grid-template-columns:minmax(140px, 180px) minmax(0, 1fr) auto; column-gap:20px; align-items:start; padding:12px 2px 2px; border:0; border-top:1px solid var(--c-border); border-radius:0; background:none }
#pr_conn > .pc-row.on { border-color:var(--c-border) }
#pr_conn > .pc-row > .pc-h { display:grid; gap:2px; justify-items:start; align-content:start } #pr_conn > .pc-row .pc-st { margin-left:0; font-weight:500 }
#pr_conn > .pc-row > .pc-body { display:grid; gap:6px; min-width:0; align-content:start } #pr_conn > .pc-row .pc-body > p { margin:0 }
#pr_conn > .pc-row .pc-cost { font-size:12.5px; line-height:1.45 }
#pr_conn > .pc-row > .pc-acts { justify-content:flex-end; align-self:start } #pr_conn > .pc-row > .pc-acts:empty { display:none }
#pr_conn > .pc-row .pc-acts button, #pr_conn > .pc-row .pc-acts .btnlink:not(.go) { min-height:0; padding:5px 11px; font-size:13px }
#pr_conn > .pc-row .pc-acts .btnlink:not(.go) { background:transparent; color:var(--c-text); border:1px solid var(--c-border-strong); font-weight:500 }
#pr_conn > .pc-row .tvn button { min-height:0; padding:3px 9px; font-size:12.5px } #pr_conn > .pc-row .tvn .meta { font-size:12.5px }
#pr_conn > .pc-csv { margin:0; padding-top:10px; border-top:1px solid var(--c-border); color:var(--c-muted) }
@media (max-width:760px) {
  #pr_conn > .pc-row { grid-template-columns:minmax(0, 1fr); row-gap:8px }
  #pr_conn > .pc-row > .pc-h { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline }
  #pr_conn > .pc-row > .pc-acts { flex-direction:column; align-items:flex-start }   /* a phone: each action on its own line (the big Download, How to Connect under it) */
}
/* Tradovate on day 1 (TVSOON, owner 2026-11-13): works today through NinjaTrader / a CSV; its own sign-in is coming; one notify button */
.tv-soon { display:grid; gap:6px; align-content:start } .tv-soon p { margin:0 } .tvs-q { font-size:14.5px; line-height:1.45 } .tvs-n { font-size:13.5px; line-height:1.45; color:var(--c-muted) }
.tvs-acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.modal .tv-soon { padding:12px 14px; border-radius:12px; border:1px solid var(--c-border-strong); background:var(--c-raised) }
.tvn { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:13px; margin:0 } .tvn .tvn-l { display:flex; flex:1 1 200px; max-width:280px; min-width:0 } .tvn input { width:100%; min-width:0 }
.tvn button { white-space:nowrap } .tvn-msg { flex-basis:100%; font-size:13px } .tvn-msg:empty { display:none } .tvn-msg.err { color:var(--dn) } .tvn-done { color:var(--c-muted) }
.imp-card .tvs-compact { flex-basis:100%; gap:4px; padding-top:8px; border-top:1px solid var(--rule) }
.ob-nta { margin-top:8px } .ob-nta-l { display:flex; gap:8px; align-items:center; font-size:13.5px; font-weight:600; cursor:pointer } .ob-nta .meta:empty { display:none }
.ob-alt { font-size:13px; color:var(--c-muted) } .ob-alt > summary { cursor:pointer } .ob-alt > div { display:grid; gap:8px; margin-top:8px }
#tour_ghost { position:fixed; z-index:9004; width:18px; height:18px; margin:-9px 0 0 -9px; border-radius:50%; pointer-events:none; background:var(--c-accent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--c-accent) 30%, transparent), 0 2px 8px rgba(0,0,0,.35); transition:left .65s cubic-bezier(.3,.7,.3,1), top .65s cubic-bezier(.3,.7,.3,1), transform .15s ease }
#tour_ghost.tap { transform:scale(.7) }
.tour-ripple { position:fixed; z-index:9004; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; pointer-events:none; border:2px solid var(--c-accent); animation:tripple .5s ease-out forwards }
@keyframes tripple { to { transform:scale(5); opacity:0 } }
.tour-press { position:relative; z-index:9002 !important; animation:tpress .8s ease-in-out; box-shadow:0 0 0 3px var(--c-accent), 0 0 18px 4px color-mix(in srgb, var(--c-accent) 60%, transparent) !important; border-radius:8px }
@keyframes tpress { 0% { transform:scale(1) } 45% { transform:scale(1.15) } 100% { transform:scale(1) } }
/* the NinjaTrader auto-open moment: the tick drawn over the box, a gentle pulse on the card (reduced motion: the tick appears) */
.tour-tick { position:fixed; z-index:9004; width:30px; height:30px; margin:-15px 0 0 -15px; pointer-events:none; color:var(--c-accent); filter:drop-shadow(0 1px 3px rgba(0,0,0,.35)) }
.tour-tick path { stroke-dasharray:24; stroke-dashoffset:24; animation:ttick .45s ease-out .05s forwards } .tour-tick.still path { animation:none; stroke-dashoffset:0 }
@keyframes ttick { to { stroke-dashoffset:0 } }
.tour-pulse { animation:tpulse 1.1s ease-in-out 2 } @keyframes tpulse { 50% { box-shadow:0 0 0 6px color-mix(in srgb, var(--c-accent) 35%, transparent) } }
#tour_bub .tb-cap2 { margin:4px 0 0; font-size:12.5px; line-height:1.45; color:var(--c-muted) }
@media (prefers-reduced-motion: reduce) { .tour-press, .tour-pulse { animation:none } .tour-tick path { animation:none; stroke-dashoffset:0 } #tour_spot, #tour_bub { transition:none } .lad-pulse, .lp-dots i.l-cur { animation:none } }
@media (max-width:760px) {
  #tour_bub { left:8px !important; right:8px; width:auto; border-radius:14px; max-height:46vh; overflow-y:auto }
  #tour_bub.sheet-b { top:auto !important; bottom:calc(var(--rb, 56px) + 8px) } #tour_bub.sheet-t { bottom:auto; top:8px !important }
}
body:has(.modal-bg) :is(#tour_veil, #tour_spot, #tour_bub, #tour_ghost) { visibility:hidden }
.modal.tw-card { width:min(460px, 100%); box-sizing:border-box; text-align:center; display:grid; gap:14px; justify-items:center }
.tw-card .tw-logo svg { width:min(220px, 70vw); height:auto } .tw-card .tw-line { margin:0; font:600 19px/1.4 var(--f-body) }
.tw-card .tw-snd { display:flex; gap:10px; align-items:center; justify-content:center } .tw-card .tw-start { min-width:200px; padding:12px 28px; font-size:17px }
.tw-card .sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
/* ---- in-app asks (askOk / tell / askText): the app's own dialog instead of the browser's "127.0.0.1 says" box */
.modal.dl-card { width:min(440px, 100%) } .modal.pr-autopsy { width:min(560px, 100%); max-height:86vh; overflow:auto }
.bl-mcard { display:grid; gap:8px; padding:12px; margin:10px 0; border:1px solid var(--line); border-radius:10px; background:var(--c-card) } .bl-mcard p { margin:0 }
.bl-mrow { display:grid; grid-template-columns:minmax(160px, 1fr) minmax(200px, 2fr) auto; gap:8px; align-items:center } .bl-mname { display:grid } .bl-mrow select { min-width:0; width:100% }
@media (max-width:640px) { .bl-mrow { grid-template-columns:1fr } }
.bl-ins { margin:10px 0 0 } .bl-ins .meta { margin:2px 0 0 } .bl-insn { display:grid; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--c-card) } .bl-insn p { margin:0 }
.pr-ak { margin:6px 0 0; font-size:13px; color:var(--mut); font-weight:600 } .pr-al { margin:0; padding-left:18px; display:grid; gap:4px }
.pr-apo { display:grid; grid-template-columns:auto 1fr; gap:2px 8px; align-items:baseline; padding:6px 0 } .pr-apo .meta { grid-column:2 } .pr-apd { display:flex; gap:8px; align-items:center } .dl-msg { display:grid; gap:8px; font-size:14.5px; line-height:1.5 } .dl-p { margin:0 } .dl-p:first-child { font-weight:600 }
.dl-in { width:100%; box-sizing:border-box; font:14px var(--f-num, var(--f-body)); font-variant-numeric:tabular-nums } .dl-card .row { margin-top:4px }
/* (0.9.47) Account Intelligence: a workspace in the Accounts room (the room's own content steps aside while it's open) */
#room_protect.ai-on > :not(#pr_ai) { display:none !important }
.pr-ai-ws { display:grid; gap:16px; align-content:start; min-width:0 } .pr-ai-ws[hidden] { display:none }
.pr-ai-top { display:flex } .pr-ai-back { padding:6px 12px; font-weight:600 }
.pr-ai-hd h2 { margin:2px 0 6px; font:700 26px/1.2 var(--f-head, var(--f-body)); color:var(--c-text) }
.pr-ai-kick { margin:0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut) }
.pr-ai-id { margin:0; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; font-size:13px; color:var(--mut) }
.pr-ai-pill { padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700 } .pr-ai-pill.on { color:var(--up); background:color-mix(in srgb, var(--up) 14%, transparent) }
.pr-ai-pill.arch { color:var(--mut); background:var(--c-raised, var(--panel)) }
.pr-ai-tabs { justify-self:start; flex-wrap:wrap }
.pr-ai-p { display:grid; gap:14px; align-content:start; min-width:0 } .pr-ai-p[hidden] { display:none } .pr-ai-p:focus { outline:none }
.pr-ai-col { display:grid; gap:14px }
#pr_ai_card > .pr-det { margin:0 } #pr_ai #pr_journey { display:none }   /* (M1) the live card in the Account tab; it is already this workspace */
#pr_ai #pr_info, #pr_ai #pr_money_l { display:none }   /* (M3) Account Details is always open there; Overview shows the Bottom Line money */
.pr-ai-tiles.n3 { grid-template-columns:repeat(3, minmax(0, 1fr)) } @media (max-width:900px) { .pr-ai-tiles.n3 { grid-template-columns:repeat(2, minmax(0, 1fr)) } }
.pr-pf-h { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px } .pr-pf-h .pr-ak { margin:0 }
.pr-pf-f { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px } .pr-pf-f label { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--c-muted) }
/* (owner 11-20) Trading Performance: A) the finding, B) the payoff and the result drawn, C) the supporting numbers. Color means
   something: green / red = $ won / lost, amber = incomplete evidence or a caution, purple = neutral emphasis. Never a verdict */
#pr_ai_perf { gap:14px }
#pr_ai_perf .up-t { color:var(--c-up) } #pr_ai_perf .dn-t { color:var(--c-down) }
.pf-insight { --tone:var(--c-accent); display:grid; gap:8px; padding:18px 20px 16px; border-radius:14px; border:1px solid color-mix(in srgb, var(--tone) 45%, var(--c-border));
  background-color:color-mix(in srgb, var(--tone) 7%, var(--c-card)); background-image:linear-gradient(120deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 62%) }
.pf-insight.positive { --tone:var(--c-up) } .pf-insight.caution { --tone:var(--c-warn) }
.pf-kick { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--tone) }
.pf-chip { letter-spacing:.02em; text-transform:none; font-weight:600; font-size:11px; padding:2px 9px; border-radius:999px; border:1px solid var(--c-warn); color:var(--c-warn) }
.pf-head { margin:0; font-size:23px; line-height:1.25; font-weight:750; color:var(--c-text); letter-spacing:-.01em; max-width:62ch }
.pf-ctx { margin:0; color:var(--c-text); font-size:14px; line-height:1.5; max-width:86ch }
.pf-ask { margin:0; color:var(--c-muted); font-size:13px; line-height:1.5 } .pf-ask b { color:var(--c-text); font-weight:650 }
.pf-viz { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:14px }
.pf-panel { display:grid; gap:14px; align-content:start; padding:16px 18px; border-radius:12px; background:var(--c-raised); border:1px solid var(--c-border); min-width:0 }
.pf-ph { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--c-muted) }
.pf-bar-row { display:grid; grid-template-columns:132px minmax(0, 1fr) auto; align-items:center; gap:12px }
.pf-bar-row .l { font-size:13px; color:var(--c-muted) } .pf-bar-row .v { font-size:21px; font-weight:750; text-align:right; min-width:92px; font-variant-numeric:tabular-nums }
.pf-track { height:14px; border-radius:7px; background:color-mix(in srgb, var(--c-border-strong) 55%, transparent); overflow:hidden }
.pf-bar { height:100%; border-radius:7px; min-width:4px } .pf-bar.up { background:var(--c-up) } .pf-bar.dn { background:var(--c-down) }
.pf-cap { margin:0; font-size:13px; color:var(--c-muted) } .pf-cap b { color:var(--c-text) }
#pr_pf_ex .l { font-size:12px; color:var(--c-muted) } #pr_pf_ex .v { font-size:40px; line-height:1.05; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums }
#pr_pf_ex .s { font-size:12px; color:var(--c-muted) }
.pf-out { display:flex; gap:2px; height:10px; border-radius:5px; overflow:hidden } .pf-out i { display:block; min-width:3px }
.pf-out .w { background:color-mix(in srgb, var(--c-up) 80%, var(--c-raised)) } .pf-out .lo { background:color-mix(in srgb, var(--c-down) 80%, var(--c-raised)) } .pf-out .be { background:var(--c-border-strong) }
.pf-key { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--c-muted) } .pf-key b { color:var(--c-text) }
.pf-stats { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); padding:12px 0 2px; border-top:1px solid var(--c-border) }
.pf-stat { display:grid; gap:2px; align-content:start; padding:0 16px; border-left:1px solid var(--c-border); min-width:0 } .pf-stat:first-child { padding-left:2px; border-left:0 }
.pf-stat .l { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--c-muted) }
.pf-stat .v { font-size:19px; font-weight:750; color:var(--c-text); font-variant-numeric:tabular-nums } .pf-stat .s { font-size:12px; color:var(--c-muted) }
.pf-stat.thin .v { color:var(--c-muted); font-weight:600 } .pf-stat.thin .l::after { content:" · partial"; color:var(--c-warn); letter-spacing:.04em }
.pf-foot { display:grid; gap:4px } .pf-foot .meta { margin:0 }
.pf-empty { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:16px; align-items:center; padding:22px 20px; border-radius:14px; border:1px dashed var(--c-border-strong); background:var(--c-raised) }
.pf-empty-i { display:flex; align-items:flex-end; gap:4px; height:34px } .pf-empty-i i { display:block; width:8px; border-radius:3px; background:color-mix(in srgb, var(--c-accent) 45%, transparent) }
.pf-empty b { display:block; font-size:17px; color:var(--c-text); margin-bottom:4px } .pf-empty p { margin:0; color:var(--c-muted); font-size:13px }
@media (max-width:980px) { .pf-viz { grid-template-columns:1fr } }
@media (max-width:640px) { .pf-stats { grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:12px } .pf-stat:nth-child(3) { border-left:0; padding-left:2px } .pf-bar-row { grid-template-columns:96px minmax(0, 1fr) auto } .pf-head { font-size:19px } }
.pr-ai-card { background:var(--c-card, var(--panel)); border:1px solid var(--c-border, var(--rule)); border-radius:12px; padding:14px 16px; display:grid; gap:8px; align-content:start; min-width:0 }
.pr-ai-card p { margin:0 } .pr-ai-card .pr-ak:first-child { margin-top:0 }
.pr-ai-hero { border-left:3px solid var(--key) } .pr-ai-lead { margin:0; font-size:18px; line-height:1.45; font-weight:600; color:var(--c-text) }
.pr-ai-tiles { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px } .pr-ai-tiles .tile .v { font-size:22px }
.pr-ai-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px } .pr-ai-wide { grid-column:1 / -1 }
.pr-ai-dl { grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:12px }
.pr-tl { list-style:none; margin:0 0 0 6px; padding:0 0 0 16px; border-left:2px solid var(--c-border, var(--rule)); display:grid; gap:12px }
.pr-tl li { position:relative; display:grid; grid-template-columns:118px 1fr; gap:2px 12px }
.pr-tl li::before { content:""; position:absolute; left:-23px; top:5px; width:8px; height:8px; border-radius:50%; background:var(--c-card, var(--panel)); border:2px solid var(--key) }
.pr-tl-d { color:var(--mut); font-size:13px; font-variant-numeric:tabular-nums } .pr-tl-t { color:var(--c-text) } .pr-ev { grid-column:2; font-size:12px; color:var(--mut) }
.pr-ht-w { overflow-x:auto } .pr-ht { width:100%; border-collapse:collapse; font-size:13.5px }
.pr-ht th { text-align:left; font-weight:600; font-size:12px; color:var(--mut); padding:4px 8px; border-bottom:1px solid var(--c-border, var(--rule)) }
.pr-ht td { padding:6px 8px; border-bottom:1px solid color-mix(in srgb, var(--c-border, #888) 45%, transparent); vertical-align:top } .pr-ht td.num { font-variant-numeric:tabular-nums; white-space:nowrap }
.pr-ht-tight td:last-child { color:var(--liq) } .pr-ht-limit td:last-child, .pr-ht-out td:last-child { color:var(--dn) } .pr-ht-missing td { color:var(--mut) }
.pr-hr { display:block } .pr-hb { display:block; height:5px; margin-top:5px; max-width:220px; border-radius:3px; background:color-mix(in srgb, var(--mut) 22%, transparent); overflow:hidden }
.pr-hb i { display:block; height:100%; border-radius:3px; background:var(--up) } .pr-hb-tight i { background:var(--liq) } .pr-hb-limit i, .pr-hb-out i { background:var(--dn) }
.pr-how { border:1px solid var(--c-border, var(--rule)); border-radius:8px; padding:6px 10px } .pr-how summary { cursor:pointer; font-weight:600; font-size:13px; color:var(--mut) } .pr-how[open] summary { margin-bottom:6px }
@media (max-width:900px) { .pr-ai-tiles { grid-template-columns:repeat(2, minmax(0, 1fr)) } .pr-ai-grid { grid-template-columns:1fr } }
@media (max-width:640px) { .pr-tl li { grid-template-columns:1fr } .pr-ev { grid-column:1 } .pr-ai-hd h2 { font-size:21px } }
/* ---- "Why?" (2026-10-20, why.py): a small button next to every verdict, warning and alert line, and its popover (one plain
   sentence + the numbers behind it). A popover, never a modal: nothing behind it is blocked */
.why-b { display:inline-flex; align-items:center; min-height:0; margin:0 0 0 6px; padding:1px 7px; border:1px solid var(--c-border-strong); border-radius:999px;
  background:transparent; color:var(--c-muted); font:600 11.5px/1.5 var(--f-body); letter-spacing:.01em; cursor:pointer; box-shadow:none; vertical-align:baseline }
.why-b::after { content:"Why?" }
.why-b:hover, .why-b:focus-visible, .why-b[aria-expanded="true"] { color:var(--c-text); border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 12%, transparent) }
#whypop { position:fixed; z-index:400; width:min(360px, calc(100vw - 24px)); max-height:min(70vh, 460px); overflow-y:auto; background:var(--c-card); color:var(--c-text);
  border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow); padding:12px 14px 10px; display:grid; gap:8px; font:400 13.5px/1.45 var(--f-body) }
#whypop[hidden] { display:none }
#whypop .wp-h { display:flex; align-items:center; justify-content:space-between; gap:8px; font:600 11px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
#whypop .wp-x { min-height:0; padding:2px 8px; border:1px solid var(--c-border-strong); border-radius:8px; background:transparent; color:var(--c-text); font:500 12px var(--f-body); box-shadow:none; cursor:pointer }
#whypop .wp-s { margin:0; font-size:14px; color:var(--c-text) }
#whypop .wp-n { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:3px 12px; margin:0; font-size:13px }
#whypop .wp-n dt { color:var(--c-muted) } #whypop .wp-n dd { margin:0; font:500 13px var(--f-num); color:var(--c-text); overflow-wrap:anywhere; font-variant-numeric:tabular-nums }
#whypop .wp-also { margin:0; padding-left:16px; font-size:12.5px; color:var(--c-muted) } #whypop .wp-also li { margin:2px 0 }
#whypop .wp-f { margin:0; font-size:11.5px; color:var(--c-faint) }
/* ---- Help & Status (2026-10-20, helpdesk.py): one row per item with a dot, the guided NinjaTrader check, Send Diagnostics */
.modal.hs-dlg { width:min(620px, 100%) }
.hs-rows { display:grid; gap:2px; margin:0; padding:0; list-style:none }
.hs-row { display:grid; grid-template-columns:14px 120px minmax(0, 1fr) auto; gap:4px 10px; align-items:start; padding:8px 0; border-bottom:1px solid var(--c-border); font-size:13.5px }
.hs-row:last-child { border-bottom:0 }
.hs-row b { font-weight:600; color:var(--c-text) } .hs-row .hs-l { color:var(--c-muted); overflow-wrap:anywhere }
.hs-dot { width:10px; height:10px; margin-top:5px; border-radius:50%; background:var(--c-faint) }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
.hs-dot.na { background:transparent; border:1px solid var(--c-border-strong) } .hs-done { margin:4px 0 0; font-size:13px; color:var(--c-muted) } .hs-done.ok { color:var(--c-up) }
.hs-dot.pro { background:transparent; border:1px solid var(--c-faint) } .hs-pro { margin-left:6px; padding:0 6px; border-radius:8px; border:1px solid var(--c-border-strong); font-size:11px; font-weight:600; color:var(--c-muted) }
.hs-dot.ok { background:var(--c-up) } .hs-dot.warn { background:var(--c-warn) } .hs-dot.bad { background:var(--c-down) } .hs-dot.wait { background:var(--c-faint); animation:hsPulse 1.2s ease-in-out infinite }
@keyframes hsPulse { 50% { opacity:.35 } } @media (prefers-reduced-motion: reduce) { .hs-dot.wait { animation:none } }
.hs-row .hs-fix { min-height:0; padding:4px 10px; font-size:12.5px; white-space:nowrap }
.hs-sec { display:grid; gap:8px; padding-top:6px; border-top:1px solid var(--c-border) }
.hs-sec h4 { margin:0; font:600 14px var(--f-body); color:var(--c-text) }
.hs-sec p { margin:0; font-size:13px; color:var(--c-muted) }
.hs-steps { margin:0; padding:0; list-style:none; display:grid; gap:2px }
.hs-steps li { display:grid; grid-template-columns:14px minmax(0, 1fr); gap:2px 10px; padding:6px 0; font-size:13.5px }
.hs-steps li .hs-sl { color:var(--c-muted) } .hs-steps li .hs-sfix { grid-column:2; color:var(--c-text); font-size:13px }
.hs-steps li details { grid-column:2; font-size:12.5px; color:var(--c-muted) } .hs-steps li details summary { cursor:pointer }
.hs-steps li details dl { display:grid; gap:4px; margin:6px 0 0 } .hs-steps li details dt { color:var(--c-text) } .hs-steps li details dd { margin:0 0 4px }
.hs-steps li .hs-sact { grid-column:2; justify-self:start; min-height:0; padding:4px 10px; font-size:12.5px }
.hs-diag ul { margin:0; padding-left:18px; font-size:12.5px; color:var(--c-muted) }
.hs-acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
/* (layout hunt 2026-11-10) Send Diagnostics looked like a stray link under the other sections' buttons: a button like them */
.hs-acts .btnlink { display:inline-flex; align-items:center; padding:6px 12px; border-radius:var(--r-ctl, 8px); border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); text-decoration:none; font:inherit; font-size:13.5px }
.hs-acts .btnlink:hover { background:color-mix(in srgb, var(--c-text) 6%, var(--c-raised)); border-color:color-mix(in srgb, var(--c-accent) 40%, var(--c-border-strong)) }
.ob-ntc { display:grid; gap:6px }
@media (max-width:560px) { .hs-row { grid-template-columns:14px minmax(0, 1fr) } .hs-row .hs-l, .hs-row .hs-fix { grid-column:2 } }
/* ---- one overlay lane (audit 2026-10-21 #2): on a PC the mentor's newest card (the hourly story OR an alert, never both)
   sits in ONE place, the bottom of the chart left of the price axis, and the chart keeps its candles above that lane
   (laneMargin: the price scale's bottom margin), so a card never covers the price. The key is a small Key chip by the
   clock; the room-tabs hint only shows in the Trade room */
@media (min-width:761px) {
  body:not(.demo) #stage > #story { left:auto !important; right:calc(var(--rp) + var(--psw, 70px) + 8px) !important; top:auto !important;
    bottom:calc(var(--sbh) + 30px) !important; width:min(460px, calc(100% - var(--rp) - var(--dtw) - 120px)) !important; max-width:none; min-width:0; margin:0; transform:none;
    max-height:34vh; overflow-y:auto }
  body:not(.demo) #stage.mtf > #story { right:calc(var(--rp) + var(--mtfw, 28%) + 70px) !important }   /* as specific as the rule above: the card stays left of the side charts */
}
#keychip { margin-left:4px; padding:1px 9px; min-height:0; border:1px solid var(--c-border); border-radius:999px; background:color-mix(in srgb, var(--c-card) 85%, transparent);
  color:var(--c-muted); font:600 11.5px var(--f-body); cursor:pointer; align-self:center }
#keychip:hover, #keychip:focus-visible { color:var(--c-text); border-color:var(--c-border-strong) } #keychip[aria-pressed=true] { color:var(--c-accent); border-color:color-mix(in srgb, var(--c-accent) 50%, var(--c-border)) }
#keychip[hidden] { display:none }
body:not(.room-trade) #navhint { display:none }
/* (bug hunt 2026-11-02) one thing at a time: a card that arrives while a first-run tip shows takes the screen; the tip comes back after it */
body:has(:is(#alert, #story, #plan, #grd):not([hidden])) :is(#navhint, #chint, #kbtip) { display:none !important }
/* the rail's More (audit #5): a small menu beside the rail (above it on a phone) */
#rail #rmore_pop { position:fixed; top:auto; right:60px; width:min(260px, calc(100vw - 24px)); display:grid; gap:2px; padding:6px; z-index:60 }
#rmore_pop .rm-i { display:grid; grid-template-columns:22px minmax(0, 1fr) auto; gap:10px; align-items:center; width:100%; padding:8px 10px; border:0; border-radius:var(--r-ctl, 8px);
  background:transparent; color:var(--c-text); text-align:left; font:500 13.5px var(--f-body); cursor:pointer; position:relative }
#rmore_pop .rm-i:hover, #rmore_pop .rm-i:focus-visible { background:var(--c-raised) }
#rmore_pop .rm-i[hidden] { display:none }
#rmore_pop .rm-i svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; color:var(--c-muted) }
#rmore_pop .rm-i b { display:block; font-weight:600 } #rmore_pop .rm-i small { display:block; color:var(--c-muted); font-size:12px }
#rmore_pop #chatbadge { position:static }
#rmore_pop .rl { display:none } #rail > .rm-i > .rt { display:none }
#rail > .rm-i.rb .rl { display:block; max-width:48px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#rmore[hidden], #rail > .rm-i[hidden] { display:none !important }
#rmore { position:relative } #rmore .badge { position:absolute; top:-2px; right:2px; min-width:17px; height:17px; border-radius:9px; background:var(--c-down); color:var(--c-on-accent); font:700 10.5px/17px var(--f-body); text-align:center; padding:0 4px }
@media (max-width:760px) { #rail #rmore_pop { right:8px; left:auto; bottom:calc(var(--rb, 56px) + 8px); top:auto !important } }
/* one Settings home (audit 2026-10-21, navigation #3): a gear at the right of the top bar; each row opens the panel that
   already holds those settings (nothing moved, so every saved setting stays as it was) */
#set_w { position:relative; flex:none; display:flex; order:99 }
#themebtn { order:98; flex:none; width:32px; height:30px; padding:0; display:grid; place-items:center; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px); background:var(--c-raised); color:var(--c-muted); cursor:pointer }
#themebtn:hover { color:var(--c-text) } #themebtn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
#themebtn .th-moon { display:none } :root[data-theme="light"] #themebtn .th-sun { display:none } :root[data-theme="light"] #themebtn .th-moon { display:block }   /* 2026-10-24: the site's sun / moon toggle (App Theme left Chart Settings) */
#setbtn { width:32px; height:30px; padding:0; display:grid; place-items:center; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px); background:var(--c-raised); color:var(--c-muted) }
#setbtn:hover, #setbtn[aria-expanded=true] { color:var(--c-text); border-color:var(--c-border-strong) }
#setbtn svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
#set_menu { position:fixed; z-index:90; width:min(290px, calc(100vw - 16px)); display:grid; gap:2px; padding:6px; max-height:calc(100vh - 70px); overflow-y:auto }
#set_menu button { display:block; width:100%; text-align:left; padding:7px 10px; border:0; border-radius:var(--r-ctl, 8px); background:transparent; color:var(--c-text); font:500 13.5px var(--f-body); cursor:pointer }
#set_menu button:hover, #set_menu button:focus-visible { background:var(--c-raised) } #set_menu button[hidden] { display:none }
#set_menu b { display:block; font-weight:600 } #set_menu small { display:block; color:var(--c-muted); font-size:12px }
#propchip.none .lab { color:var(--c-muted) } #propchip.none #propsum { color:var(--c-accent) } #propchip.none.nacct #propsum { color:var(--c-text) }
@media (min-width:761px) { body header > #set_w:not(#x1):not(#x2):not(#x3):not(#x4) { display:flex !important } }   /* in every room */
/* the Sample banner in the Trade room on a PC: a small pill at the bottom-left of the chart (the lane's other end), never
   across the top of the candles (audit #2) */
@media (min-width:761px) { body.room-trade:not(.ck) #sample_bar { top:auto !important; bottom:calc(var(--sbh) + 30px); left:calc(var(--dtw) + 12px); transform:none; font-size:12.5px } }
#sample_bar.tight small { display:none }   /* beside the mentor's card on a narrower chart (sampleFit) */
/* the 60-second demo's Review beat: only the Discipline card (sample week), and the Ledge button it points at */
body.demo #room_review :is(#execp, #rv_recap, #rv_dna, .rv-top, #rv_body) { display:none !important }
body.demo #room_review { grid-template-columns:minmax(0, 760px) !important }
@media (min-width:761px) { body.demo.room-review:has(#demo_chip:not([hidden])) #room_review:not([hidden]) { padding-top:44px !important } }   /* (hunt 2026-11-11) the beat's chip, under the Sample strip, never on the week's headline */
#ledgebtn.demo-hl { box-shadow:0 0 0 3px color-mix(in srgb, var(--calm) 60%, transparent), 0 0 24px color-mix(in srgb, var(--calm) 45%, transparent) !important; animation:dmPulse 1.2s ease-in-out infinite }
@keyframes dmPulse { 50% { transform:scale(1.08) } } @media (prefers-reduced-motion: reduce) { #ledgebtn.demo-hl { animation:none } }
#demo_card .go { pointer-events:auto }
/* ---- the top bar on one calm row (audit 2026-10-21 #8): on a PC, Replay / Live, the day, timeframe, speed and the
   instrument fold into one pill ("Replay · 10-20 · 1m · MNQ"), as on a phone; Play stays one click beside it. The last
   price is on the chart's axis, so the "NQ 21,805" chip goes */
@media (min-width:761px) {
  body.room-trade header::before { display:none !important }
  body.room-trade :is(#modesw, #replay, #mentor, #inst, #layoutsw) { order:0 !important; margin-block:0 !important }
  body.room-trade #mentor, body.room-trade #inst { margin-left:0 !important }
  header #rctl_t { display:inline-flex; align-items:center; gap:5px; height:32px; padding:0 11px; font:600 13px var(--f-body); white-space:nowrap;
    border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px); background:var(--c-raised); color:var(--c-text) }
  header #rctl_t[aria-expanded="true"] { border-color:var(--c-accent); color:var(--c-accent) }
  body:not(.room-trade) header #rctl_t, body:not(.room-trade) header #hbar > #play, body:not(.room-trade) header #hbar > #inst { display:none }
  header #hbar > #inst { height:32px; padding:0 8px; border-radius:var(--r-ctl, 8px) }
  header #rctl { display:none }
  header.rctl-open #rctl { display:flex; flex-wrap:wrap; align-items:center; gap:8px; position:fixed; z-index:41; top:calc(var(--hh, 48px) + 4px); max-width:min(560px, calc(100vw - 24px));
    padding:10px 12px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow) }
  header.rctl-open #rctl #replay { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
  header #instchip { display:none !important }
  header #hbar > #play { height:32px; padding:0 14px }
}
/* the Cockpit is a glance (audit 2026-10-21 #7): on a PC it takes the whole width; the Log a Trade panel beside it goes
   (Check This Trade is in the verdict card; the chart layout keeps the ticket) */
@media (min-width:761px) { body.ck { --rp:0px } body.ck #tpanel { display:none !important } }
@media (min-width:761px) { body.room-trade header #mentor { width:auto; max-width:160px } header { column-gap:6px } }
#rm_set { display:none !important }
@media (max-width:760px) {
  header #set_w:not(#x1):not(#x2):not(#x3):not(#x4) { display:none !important }      /* a phone: Settings is in the rail's More */
  #rmore_pop #rm_set { display:grid !important }
  #set_menu { top:auto !important; bottom:calc(var(--rb, 56px) + 8px); left:8px !important; right:8px; width:auto !important }
  body.ck #tkcard, body.ck #stage > #alert { display:none !important }     /* the phone Cockpit is the glance: no ticket, no card on top (notes: Today) */
}
/* the Cockpit glance's grid without Today's Plan (it's under Extras now): verdict + calendar line, then guard + position */
#cockpit { grid-template-areas:"vd vd nx" "gd ps tw" "mo mo mo" }
#cockpit.stale { grid-template-areas:"nl nl nl" "vd vd nx" "gd ps tw" "mo mo mo" }
.ck-mo-grid { grid-template-areas:"ch ch ch" "pl rk fd" }   /* the chart first: it matters more than the extras (owner 2026-10-22) */
@media (min-width:761px) and (max-width:1180px) {
  #cockpit { grid-template-areas:"vd vd" "nx gd" "tw tw" "ps ps" "mo mo" } #cockpit.stale { grid-template-areas:"nl nl" "vd vd" "nx gd" "tw tw" "ps ps" "mo mo" }
  .ck-mo-grid { grid-template-areas:"ch ch" "pl rk" "fd fd" } }
@media (max-width:760px) {
  #cockpit { grid-template-areas:"vd" "ps" "gd" "nx" "tw" "mo" } #cockpit.stale { grid-template-areas:"nl" "vd" "ps" "gd" "nx" "tw" "mo" }
  .ck-mo-grid { grid-template-areas:"ch" "pl" "rk" "fd" } }
/* phones (owner 2026-10-21: "I can't toggle from the cockpit to the main chart"): the Cockpit | Chart switch lived in the
   header's second row, which scrolls sideways under a fade with the guard chip pinned over its right end, so it sat off
   screen behind CLEAR / +. On a phone layoutHome() moves the same element to the top right of the Trade room, over both
   layouts, in the band the clock row uses (above the Sell / Buy row; it follows the clock down under a cool-off bar) */
@media (max-width:760px) {
  #stage > #layoutsw { position:absolute; z-index:9; top:1px; right:calc(var(--psw, 70px) + 6px); display:inline-flex; padding:2px; gap:2px;
    background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:999px; box-shadow:var(--c-shadow) }
  body.ck #stage > #layoutsw { right:10px }
  body.cooloff #stage > #layoutsw { top:45px } body.cooloff.cooloff-auto #stage > #layoutsw { top:79px }
  #stage > #layoutsw button { min-height:30px; min-width:62px; padding:0 12px; border:0; border-radius:999px; font:600 13px var(--f-body); background:transparent; color:var(--c-muted); box-shadow:none }
  #stage > #layoutsw button[aria-pressed="true"] { background:var(--c-accent); color:var(--c-on-accent) }
  /* polish B (owner 2026-10-23, #10): Check This Trade left the Co-Pilot cards; on a phone its floating button stays (the
     platforms without a TiltLab connection), so the Cockpit keeps room under its last card for it */
  body.ck.ct-phone #cockpit { padding-bottom:84px }
  body.ck.ct-phone.h-smpl #cockpit { padding-bottom:calc(var(--smpl-h, 46px) + 84px) }   /* (G-2 a11y) the Sample strip under it too: the last card scrolls clear of the button (as Prep does) */
  /* the top More menu: its own layer above the header's second row (the tab row is a scroller, a stacking context on iOS,
     and the masked chip row painted over it), and it scrolls inside the screen */
  #rooms { position:relative; z-index:3 }
}
header.more-open { z-index:62 }
/* (layout hunt 2026-11-10) every pop-up of the top bar (Settings, the account menu, the guard) above the tool rail: the header is its
   own layer (z-index 20) under the rail (34), so the Settings menu ran under the rail and its right edge was cut off at every width */
header:has(.pop:not([hidden])) { z-index:62 }
/* the price box (#now: the levels above / below the price with distances; owner 2026-10-21): never on a phone, where it sat
   over the candles; on a PC a Price Box toggle (chart menu, Chart Settings; nowBoxSet). The levels' own lines stay */
body.no-now #now { display:none !important }
@media (max-width:760px) { #now { display:none !important } }
#more_menu { overflow-y:auto; overscroll-behavior:contain }
/* ---- Review = one line, then three tabs (audit 2026-10-21 #6): This Week (the trial recap, Discipline, the Executions
   day picker) · Calendar (the monthly P&L calendar) · You (Habit Map) · All Numbers (Your Results). Nothing is removed; each tab shows its own cards */
#room_review.rvt-week :is(#rv_fp, #rv_tf, #rv_dna, .rv-top, #rv_body),
#room_review.rvt-you :is(#rv_recap, #rv_disc, #rv_models, #execp, .rv-top, #rv_body),
#room_review.rvt-all :is(#rv_recap, #rv_disc, #rv_models, #execp, #rv_fp, #rv_tf, #rv_dna) { display:none !important }
body #room_review:is(.rvt-you, .rvt-all) { grid-template-columns:minmax(0, 1200px) }
.rv-head { font:600 19px/1.35 var(--f-body); color:var(--c-text); margin:0 } .rv-head small { display:block; font:400 13px var(--f-body); color:var(--c-muted); margin-top:2px }
.rv-head .rv-hn { color:var(--c-accent) }
.rv-tabs { justify-self:start }
/* the account picker (a tester 2026-11-06): Review's account filter under the tabs, the top chip's account menu */
.rv-acct { justify-self:start; display:flex; align-items:center; gap:8px; font:500 13px var(--f-body); color:var(--c-muted) }
.rv-acct[hidden], body.demo #room_review .rv-acct { display:none }
.rv-acct select { max-width:min(360px, calc(100vw - 120px)); padding:4px 8px }
/* (2026-11-09) the filter's menu: search, All accounts, My / Older / Archived accounts with a checkbox each, Manage accounts */
.rv-acct { position:relative }
.ra-btn { display:inline-flex; align-items:center; gap:6px; max-width:min(360px, calc(100vw - 120px)); padding:4px 10px; font:500 13.5px var(--f-body); color:var(--c-text, var(--ink)); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.ra-btn.on { border-color:var(--c-accent, var(--key)) } .ra-btn .chev { width:10px; height:10px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6 }
.ra-pop { position:absolute; top:calc(100% + 6px); left:0; right:auto; z-index:40; width:min(340px, calc(100vw - 32px)); padding:8px; display:grid; gap:6px }
.ra-pop[hidden] { display:none }
.ra-pop input[type=search] { width:100%; box-sizing:border-box; padding:7px 9px; font:14px var(--f-body) }
#ra_rows { max-height:min(360px, 55vh); overflow-y:auto; overscroll-behavior:contain; display:grid; gap:1px } .ra-grp { display:grid; gap:1px }
.ra-row { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:var(--r-ctl, 8px); cursor:pointer; font:500 13.5px var(--f-body); color:var(--c-text, var(--ink)) }
.ra-row:hover { background:var(--c-raised, var(--panel2)) } .ra-row input { flex:none; margin:0 }
.ra-n { flex:1; min-width:0; overflow-wrap:anywhere } .ra-n small { display:block; color:var(--c-muted, var(--mut)); font:400 12px var(--f-body) }
.ra-c { color:var(--c-muted, var(--mut)); font:400 12px var(--f-body) }
.ra-gh { padding:8px 8px 2px; color:var(--c-muted, var(--mut)); font:600 11.5px var(--f-body); text-transform:uppercase; letter-spacing:.04em } .ra-gh small { text-transform:none; font-weight:400; letter-spacing:0 }
.ra-none { padding:4px 8px; color:var(--c-muted, var(--mut)); font-size:13px }
.ra-more { justify-self:start; border:0; background:transparent; padding:6px 8px; color:var(--c-accent, var(--key)); font:500 13px var(--f-body); cursor:pointer }
#ra_manage { width:100%; padding:7px 10px; font:600 13.5px var(--f-body) }
.ma-card { width:min(620px, 100%) } .ma-sub { margin:0; font-size:14px; line-height:1.5; color:var(--c-muted, var(--mut)) }
#ma_body { display:grid; gap:4px }
.ma-sim { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; padding:10px; border:1px solid var(--c-border, var(--rule)); border-radius:10px }
.ma-sim label { align-items:flex-start } .ma-sim small, .ma-n small { display:block; color:var(--c-muted, var(--mut)); font:400 12.5px var(--f-body) }
.ma-gh { padding:10px 2px 2px; color:var(--c-muted, var(--mut)); font:600 11.5px var(--f-body); text-transform:uppercase; letter-spacing:.04em } .ma-gh small { text-transform:none; font-weight:400; letter-spacing:0 }
.ma-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:8px 2px; border-top:1px solid var(--c-border, var(--rule)) }
.ma-n { flex:1 1 180px; min-width:0; overflow-wrap:anywhere } .ma-n b { font-weight:600; font-size:14px }
.ma-row button { padding:5px 10px; font-size:13px } .ma-in { font-size:13.5px !important; white-space:nowrap }
.ma-conf { display:grid; gap:8px; margin-top:8px; padding:12px; border:1px solid var(--c-down, var(--dn)); border-radius:10px; font-size:14px; line-height:1.5 }
.ma-conf p { margin:0 } .ma-conf.ok { border-color:var(--c-border, var(--rule)) } .ma-conf.err { color:var(--c-down, var(--dn)) }
.ma-msg { font-size:13.5px; color:var(--c-muted, var(--mut)) } .ma-msg:empty { display:none }
/* (acct-bulk 2026-11-11, a tester: ~20 prop accounts) a Select box per row, Select all / Clear, and the bar of actions for the
   ticked accounts: sticky at the bottom of the dialog's scroll, so it stays in reach with a long list (and on a phone) */
.ma-pick { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:6px 2px 0 } .ma-pick label { font-size:13.5px !important }
.ma-pick button { padding:4px 10px; font-size:13px } .ma-selc { color:var(--c-muted, var(--mut)); font-size:13px; margin-left:auto }
.ma-sel { display:inline-flex !important; padding:4px; margin:-4px 0 -4px -2px } .ma-sel input { width:18px; height:18px; margin:0 }
.ma-row.on { background:var(--c-accent-soft, rgba(120,90,40,.07)) }
.ma-bulk { position:sticky; bottom:-20px; z-index:2; margin:0 -22px -20px; padding:10px 22px 12px; display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  background:var(--c-card, var(--panel)); border-top:1px solid var(--c-border-strong, var(--rule)); box-shadow:0 -6px 14px rgba(40,25,15,.08) }
.ma-bulk[hidden] { display:none } .ma-bulk b { font-size:14px; margin-right:4px } .ma-bulk [data-mb=clr] { margin-left:auto } .ma-bulk button { padding:6px 11px; font-size:13px }
#ma_conf { scroll-margin-bottom:96px } .ma-list { margin:0; padding-left:18px; max-height:180px; overflow-y:auto } .ma-list li { margin:2px 0 }
@media (max-width:600px) { .ma-bulk { bottom:-16px; margin:0 -14px -16px; padding:10px 14px 12px } .ma-bulk b { flex-basis:100% } }
#ask_acct { max-width:180px; padding:3px 6px; font:500 12.5px var(--f-body) } #ask_acct[hidden] { display:none }
#propview { display:inline-flex; align-items:center; align-self:stretch; padding:0 2px }
#propview.on { cursor:pointer; margin:0 -7px 0 -4px; padding:0 7px 0 5px; border-radius:999px }
#propview.on .chev { margin-left:0; opacity:.85 }
#propview.on:hover, #propview.on:focus-visible, #propview.on[aria-expanded="true"] { background:var(--c-raised, var(--panel2)) }
#pv_menu { position:fixed; z-index:90; width:min(300px, calc(100vw - 16px)); display:grid; gap:2px; padding:6px }
#pv_menu[hidden] { display:none }
#pv_menu .pv-h, #pv_menu .pv-f { padding:6px 10px; color:var(--c-muted, var(--mut)); font:500 12px var(--f-body) }
#pv_menu .pv-f { border-top:1px solid var(--c-border, var(--rule)); margin-top:4px }
#pv_menu button { display:block; width:100%; text-align:left; padding:7px 10px 7px 28px; border:0; border-radius:var(--r-ctl, 8px); background:transparent; color:var(--c-text, var(--ink)); font:500 13.5px var(--f-body); cursor:pointer; position:relative }
#pv_menu button:hover, #pv_menu button:focus-visible { background:var(--c-raised, var(--panel2)) }
/* (0.9.43, tester 11-17: she didn't see the rows could be picked) every row shows a radio: an empty circle, filled when chosen */
#pv_menu button[role="menuitemradio"]::before { content:""; position:absolute; left:9px; top:10px; width:12px; height:12px; box-sizing:border-box; border-radius:50%; border:1.5px solid var(--c-border-strong, var(--mut)) }
#pv_menu button[aria-checked="true"]::before { border-color:var(--c-accent, var(--key)); background:radial-gradient(circle, var(--c-accent, var(--key)) 0 2.5px, transparent 3px) }
#pv_menu button b { display:block; font-weight:600 } #pv_menu button small { display:block; color:var(--c-muted, var(--mut)); font-size:12px }
#pv_menu .pv-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-left:6px; vertical-align:1px; background:var(--c-warn, var(--liq)) }
#pv_menu .pv-dot.bad { background:var(--c-down, var(--dn)) }
/* (pol3-acct) the chip's balance / equity, and the All Accounts overview at the top of the picker */
/* (pol5-acct, owner 2026-11-15) the money chip, three stacked cells: PRIMARY the equity (All prop accounts combined, or the
   picked account's), SECONDARY today's P&L with its source (R after the dollars), RISK the account closest to its daily
   limit with its room ("TF-REAL / $1,051 left today": .lab + #propsum). Each cell is a small label over its figure, so the
   three fit the 30 px chip and the 1280 top bar keeps one row. Safety (the strip, co-pilot, Position, Cool-Off) is below
   the bar and never moves for it */
#propbal { display:inline-flex; align-items:center; gap:9px; white-space:nowrap; font-variant-numeric:tabular-nums }
#propbal[hidden] { display:none }
#propchip .pb-c, #propchip.pc-2r .pc-risk { display:inline-flex; flex-direction:column; justify-content:center; line-height:1.05; min-width:0 }
#propchip .pc-risk { display:inline-flex; align-items:center; gap:8px; min-width:0 } #propchip.pc-2r .pc-risk { gap:0; align-items:flex-start }
#propchip .pb-c + .pb-c, #propchip.pc-2r .pc-risk { padding-left:9px; border-left:1px solid var(--c-border-strong, var(--rule)) }
#propchip .pb-l, #propchip.pc-2r .pc-risk .lab:not(#x1):not(#x2) { display:block; font:600 9.5px/1.15 var(--f-body); letter-spacing:.05em; text-transform:uppercase; color:var(--c-muted, var(--mut)); max-width:150px; overflow:hidden; text-overflow:ellipsis }
#propchip.pc-2r .pc-risk .lab:not(#x1):not(#x2) { color:var(--c-up, var(--fresh)) }
#propchip.pc-2r.warn .pc-risk .lab:not(#x1):not(#x2) { color:var(--c-warn, var(--liq)) } #propchip.pc-2r.bad .pc-risk .lab:not(#x1):not(#x2) { color:var(--c-down, var(--dn)) }
#propchip .pb-v, #propchip.pc-2r #propsum { font:600 13px/1.15 var(--f-num); color:var(--c-text, var(--ink)) }
#propchip .pb-v small { font:500 11px var(--f-num); color:var(--c-muted, var(--mut)); margin-left:4px }
#propchip .pb-v .up { color:var(--c-up, var(--fresh)) } #propchip .pb-v .down { color:var(--c-down, var(--dn)) }
#propchip .pb-na .pb-v { font-weight:500; font-size:12px; color:var(--c-muted, var(--mut)) }
#propchip .pb-old .pb-v, #propchip .pb-old .pb-v :is(.up, .down), #propchip.pc-2r .pc-risk.pb-old #propsum { color:var(--c-muted, var(--mut)) }
#propchip .pcr-v { display:inline-flex; align-items:baseline; min-width:0 }
#propchip:not(.pc-2r) :is(.pc-risk, .pcr-v):not(#x1) { display:contents }   /* no money cells: the chip lays out exactly as before */
#propchip .pb-old .pb-lk { color:var(--c-warn, var(--liq)); font-weight:600; margin-left:4px; font-size:10.5px } #propchip .pb-lk[hidden] { display:none }
body:is(.day-done, .dd-real) #propchip.pc-2r .pc-risk .lab:not(#x1):not(#x2):not(#x3) { color:var(--c-muted, var(--mut)) }
#propchip.pc-2r #propsum .ps-more { display:none }         /* "All prop accounts" already says it is every account */
#propchip .pl-m, #propchip .pl-s { display:none }
body.hb-squeeze #propchip .pl-f { display:none } body.hb-squeeze #propchip .pl-m { display:inline }
body.hb-compact #propchip .pl-m { display:none } body.hb-compact #propchip .pl-s { display:inline }
/* tight top bar (1280): "last known" becomes an amber dot (the words stay for screen readers and in the chip's tooltip; Today's
   Guard says them in full), the R steps aside (in the tooltip), so the room tabs keep their names */
body.hb-compact #propchip .pb-old .pb-lk { font-size:0 } body.hb-compact #propchip .pb-old .pb-lk::before { content:"\25CF"; font-size:9px }
body.hb-compact #propchip .pb-v .pb-r { display:none }
body.hb-compact #propchip .pb-l, body.hb-compact #propchip.pc-2r .pc-risk .lab:not(#x1):not(#x2) { max-width:96px }
body.hb-compact #propbal { gap:6px } body.hb-compact #propchip .pb-c + .pb-c, body.hb-compact #propchip.pc-2r .pc-risk { padding-left:6px }
body.hb-compact header #propchip.pc-2r:not(#x1) { padding-left:8px; padding-right:8px; gap:6px } body.hb-compact #propchip .pb-l { letter-spacing:.03em }
@media (max-width:760px) { #propbal:not(#x1) { display:none } }
#pv_menu { max-height:calc(100vh - 72px); overflow-y:auto }
#pv_menu .pv-tot { display:grid; gap:2px; padding:8px 10px; border-bottom:1px solid var(--c-border, var(--rule)) }
#pv_menu .pv-tot .mt-v { font:700 18px var(--f-num, inherit); font-variant-numeric:tabular-nums; color:var(--c-text, var(--ink)) }
#pv_menu .pv-tot .mt-na { font-weight:600; color:var(--c-muted, var(--mut)) }
#pv_menu .pv-tot .mt-note { font-style:italic }
#pv_menu .pv-tot small { display:block; color:var(--c-muted, var(--mut)); font-size:12px; line-height:1.35 }
#pv_menu .pv-oth { padding:6px 10px; border-bottom:1px solid var(--c-border, var(--rule)) }
#pv_menu .pv-oh { font:600 10.5px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-faint, var(--mut)); margin-bottom:2px }
#pv_menu .pv-o { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:6px; align-items:baseline; padding:2px 0; font-size:12.5px; color:var(--c-text, var(--ink)) }
#pv_menu .pv-k { font:600 10px var(--f-body); letter-spacing:.04em; text-transform:uppercase; padding:1px 6px; border-radius:999px; border:1px solid var(--c-border-strong, var(--rule)); color:var(--c-muted, var(--mut)) }
#pv_menu .pv-on { overflow:hidden; text-overflow:ellipsis; white-space:nowrap } #pv_menu .pv-ov { font-variant-numeric:tabular-nums }
#pv_menu .pv-ov small { color:var(--c-warn, var(--liq)); font-size:11px }
:is(#propcard, #ck_gd) .mn-parts { font-size:11.5px; line-height:1.35; color:var(--c-muted, var(--mut)) }
:is(#propcard, #ck_gd) .mn-lk { font-size:11px; color:var(--c-warn, var(--liq)); white-space:nowrap }
:is(#propcard, #ck_gd) .mn-old .rn-hv { color:var(--c-muted, var(--mut)) }
:is(#propcard, #ck_gd) .rn-hv.mn-nav { font-size:15px; font-weight:600; color:var(--c-muted, var(--mut)) }
#ck_gd[data-fit="s"] .mn-parts { display:none }
/* a small Guard has no room for "Balance unavailable" beside the state line: the top chip says it (the day-log figure is never shown in its place) */
#ck_gd[data-fit="s"] .rn-hb.mn-na { display:none }
#rn_other { color:var(--c-warn, var(--liq)) }
body.demo #room_review .rv-tabs { display:none }
/* ---- Review -> Calendar: the monthly P&L calendar (pnl_calendar.py, owner test 2026-10-23 #22). Calm and airy: soft tints
   capped by his own typical day (--pct, set per cell: 7% for a small day up to 32% at twice his typical day, never more),
   flat days grey, no animation anywhere. Phones: six narrow columns, the value only */
#room_review:not(.rvt-cal) #rv_cal, #room_review.rvt-cal :is(#rv_recap, #rv_disc, #rv_models, #execp, #rv_fp, #rv_tf, #rv_dna, .rv-top, #rv_body) { display:none !important }
body #room_review.rvt-cal { grid-template-columns:minmax(0, 1200px) }
/* ---- Review -> Trades (owner 2026-11-03): a card per closed trade, its chart beside Atlas Review. Phones: one column */
#room_review:not(.rvt-trades) #rv_trades, #room_review.rvt-trades :is(#rv_recap, #rv_disc, #rv_models, #execp, #rv_fp, #rv_tf, #rv_dna, .rv-top, #rv_body) { display:none !important }
body #room_review.rvt-trades { grid-template-columns:minmax(0, 1200px) }
#rv_trades { display:grid; gap:14px }
.tt-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap } .tt-bar .meta { margin-left:4px }
.tt-card { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:16px; background:var(--c-card); border:1px solid var(--c-border); border-radius:var(--r-card); padding:14px }
.tt-top { grid-column:1 / -1; display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; font-size:14px }
.tt-top .tt-acct { font-size:11.5px; color:var(--c-faint) }   /* (0.9.43) which account, small like the Position card's */
.tt-top .side { font-weight:700 } .tt-top .t { color:var(--c-muted); font-variant-numeric:tabular-nums }
.tt-top .r { margin-left:auto; font:700 16px var(--f-num); font-variant-numeric:tabular-nums }
.tt-tag { font-size:11.5px; padding:2px 8px; border-radius:999px; border:1px solid var(--c-border-strong); color:var(--c-muted) }
.tt-tag.warn { border-color:color-mix(in srgb, var(--c-warn) 45%, var(--c-border)); color:var(--c-warn) }
.tt-cw { display:grid; gap:6px; align-content:start; min-width:0 }
.tt-cbar .linkbtn { background:none; border:0; padding:0; min-height:0; font-size:12px; color:var(--c-accent); cursor:pointer }
.tt-cbar { display:flex; align-items:center; gap:10px; justify-content:flex-end; flex-wrap:wrap } .tt-hint { font-size:11.5px; margin-right:auto }
.tt-tfs { justify-self:end }
.tt-exp { font-size:11.5px; padding:2px 9px; min-height:0 }
.tt-chart.tt-sel { box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 55%, transparent) }
.modal.tt-bigm { width:min(1400px, 94vw); max-width:none; padding:14px } .tt-bigw { display:grid; gap:8px }
.tt-chart.tt-big { height:min(76vh, 820px) } .tt-x { background:none; border:0; font-size:22px; line-height:1; padding:0 4px; color:var(--c-muted); cursor:pointer; min-height:0 } .tt-tfs button { font-size:11.5px; padding:2px 9px; min-height:0 }
.tt-chart { height:300px; border-radius:10px; overflow:hidden; border:1px solid var(--c-border); position:relative; cursor:grab } .tt-chart:active { cursor:grabbing }
.tt-chart.none { display:grid; place-items:center; color:var(--c-muted); font-size:13px; padding:12px; text-align:center }
.tt-pro { grid-template-columns:minmax(0, 640px) } .tt-pro h3 { margin:0 0 6px; font:600 17px var(--f-body) } .tt-pro p { margin:0 0 12px; line-height:1.55 }
.tt-rev { display:grid; gap:10px; align-content:start }
.tt-rev h4 { margin:0; font:600 11px var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
.tt-sec { display:grid; gap:3px } .tt-sec b { font:600 12px var(--f-body); color:var(--c-text) }
.tt-sec p { margin:0; font-size:13.5px; line-height:1.5; color:var(--c-muted) } .tt-sec p em { font-style:normal; color:var(--c-text) }
.tt-note { margin-top:4px; padding-top:10px; border-top:1px solid var(--c-border) } .tt-note b { display:flex; gap:8px; align-items:baseline } .tt-saved { font-weight:400; font-size:11.5px }
.tt-note textarea { width:100%; box-sizing:border-box; min-height:52px; resize:vertical; font:13.5px/1.5 var(--f-body); color:var(--c-text); background:var(--c-raised); border:1px solid var(--c-border); border-radius:8px; padding:7px 9px; overflow:hidden }
.tt-note textarea:focus { outline:none; border-color:var(--c-accent) }
/* Trade Stars (owner 2026-11-09): Atlas's process rating under each trade; half stars are a two-tone glyph */
.ts { display:grid; gap:6px; padding:10px 12px; border:1px solid var(--c-border); border-radius:10px; background:var(--c-raised) }
.ts-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap } .ts-head b { font:600 12px var(--f-body); color:var(--c-text) }
.ts-stars { display:inline-flex; gap:1px; font-size:19px; line-height:1; letter-spacing:0 } .ts-stars i { font-style:normal; color:var(--c-border-strong) }
.ts-stars i.f { color:var(--c-gold-ink) }
.ts-stars i.h { background:linear-gradient(90deg, var(--c-gold-ink) 50%, var(--c-border-strong) 50%); -webkit-background-clip:text; background-clip:text; color:transparent }
.ts-stars.ts-mini { font-size:12px; vertical-align:-1px }
.ts-checks { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12.5px; line-height:1.45; color:var(--c-muted) }
.ts-checks li.ok { color:var(--c-text) } .ts-checks li.ok::before { content:"\2713\00a0"; color:var(--c-up) }
.ts-checks li.note::before { content:"\2022\00a0"; color:var(--c-faint) }
.ts-why, .ts-thin { font-size:11.5px }
@media (max-width:760px) { .tt-card { grid-template-columns:minmax(0, 1fr) } .tt-chart { height:240px } }
.pc { padding:24px 26px 20px; display:grid; gap:20px }
.pc-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap }
.pc-kick { font:600 11px var(--f-disp); letter-spacing:.12em; text-transform:uppercase; color:var(--c-faint); margin:0 0 8px 2px }
.pc-nav { display:flex; align-items:center; gap:8px }
.pc-nav h2 { margin:0 4px; font:600 28px/1.1 var(--f-disp); letter-spacing:-.01em; color:var(--c-text); min-width:9ch }
.pc-arr { width:34px; height:34px; border-radius:50%; border:1px solid var(--c-border); background:transparent; color:var(--c-muted); display:grid; place-items:center; padding:0; cursor:pointer; flex:none }
.pc-arr:hover:not(:disabled), .pc-arr:focus-visible { color:var(--c-text); border-color:var(--c-border-strong) } .pc-arr:disabled { opacity:.3; cursor:default }
.pc-arr svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.pc-sum { text-align:right; margin-left:auto }
.pc-tot { font:500 36px/1 var(--f-num); letter-spacing:-.02em; color:var(--c-text); font-variant-numeric:tabular-nums } .pc-tot.up { color:var(--c-up) } .pc-tot.down { color:var(--c-down) }
.pc-meta { margin-top:8px; font-size:13px; color:var(--c-muted) }
.pc-bar { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap }
.pc-bar .grow { flex:1 }
.pc-bar .seg button:disabled { opacity:.4; cursor:default }
.pc-hab { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--c-muted); cursor:pointer; user-select:none }
.pc-hab input { accent-color:var(--c-accent); width:15px; height:15px; margin:0 }
.pc-i { width:18px; height:18px; min-width:0 !important; min-height:0 !important; flex:none; border-radius:50%; border:1px solid var(--c-border-strong); background:transparent; color:var(--c-muted); font:600 11px/1 var(--f-body); padding:0; cursor:help; display:inline-grid; place-items:center; vertical-align:middle }
.pc-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)) minmax(96px, .78fr); gap:8px }
.pc-wd { font:600 11px var(--f-disp); letter-spacing:.1em; text-transform:uppercase; color:var(--c-faint); padding:0 4px 2px }
.pc-c { position:relative; min-height:100px; border-radius:12px; border:1px solid var(--c-border); background:var(--c-card); padding:10px 12px 11px; display:flex; flex-direction:column; justify-content:space-between; gap:4px; text-align:left; font:inherit; color:var(--c-text); min-width:0; box-sizing:border-box }
button.pc-c { cursor:pointer } button.pc-c:hover { border-color:var(--c-border-strong) } button.pc-c:focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
.pc-c.up { background:color-mix(in srgb, var(--c-up) var(--pct, 12%), var(--c-card)); border-color:color-mix(in srgb, var(--c-up) calc(var(--pct, 12%) + 8%), var(--c-border)) }
.pc-c.down { background:color-mix(in srgb, var(--c-down) var(--pct, 12%), var(--c-card)); border-color:color-mix(in srgb, var(--c-down) calc(var(--pct, 12%) + 8%), var(--c-border)) }
.pc-c.flat { background:var(--c-raised) }
.pc-c.none { background:transparent; border-style:dashed; border-color:color-mix(in srgb, var(--c-border) 80%, transparent) }
.pc-c.out { background:transparent; border-color:transparent } .pc-c.out .pc-dn { opacity:.3 }
.pc-c.today .pc-dn { color:var(--c-accent); font-weight:700 }
.pc-c.show { box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--c-accent) 70%, transparent) }
.pc-play { display:inline-block; vertical-align:middle; margin:-2px 0 0 6px; width:0; height:0; border-left:7px solid var(--c-accent); border-top:4.5px solid transparent; border-bottom:4.5px solid transparent }
.pc-dn { font:500 12px var(--f-num); color:var(--c-muted); font-variant-numeric:tabular-nums }
.pc-v { font:500 20px/1.1 var(--f-num); letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; font-variant-numeric:tabular-nums } .pc-c .pc-n { text-align:center }
.pc-n { font-size:12px; color:var(--c-muted); white-space:nowrap } .pc-ns { display:none }
.pc-dot { position:absolute; top:12px; right:12px; width:7px; height:7px; border-radius:50%; background:var(--c-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent) }
.pc-w { border-radius:12px; padding:10px 14px; display:flex; flex-direction:column; justify-content:center; gap:4px; background:color-mix(in srgb, var(--c-raised) 70%, transparent); min-width:0; box-sizing:border-box }
.pc-wl { font:600 10.5px var(--f-disp); letter-spacing:.1em; text-transform:uppercase; color:var(--c-faint) }
.pc-w b { font:500 16px var(--f-num); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--c-text); font-variant-numeric:tabular-nums } .pc-w b.up { color:var(--c-up) } .pc-w b.down { color:var(--c-down) } .pc-w b.none { color:var(--c-faint); font-weight:500 }
.pc-w small { font-size:11.5px; color:var(--c-muted) }
.pc-foot { display:flex; gap:8px 18px; flex-wrap:wrap; align-items:center; font-size:12.5px; color:var(--c-muted) }
.pc-foot .pc-key { display:inline-flex; align-items:center; gap:6px } .pc-foot .pc-key i { width:7px; height:7px; border-radius:50%; background:var(--c-accent); display:inline-block }
.pc-empty { justify-items:start } .pc-empty h2 { margin:0; font:600 22px var(--f-disp) } .pc-empty p { margin:0; color:var(--c-muted); max-width:60ch; line-height:1.5 }
.pc-acts { display:flex; gap:10px; flex-wrap:wrap }
.modal.pc-daym { width:min(620px, 100%); gap:14px }
.pc-dh { display:flex; align-items:flex-start; justify-content:space-between; gap:12px } .pc-dk { font:600 11px var(--f-disp); letter-spacing:.1em; text-transform:uppercase; color:var(--c-faint); margin-bottom:4px }
.pc-x { border:0; background:transparent; font-size:22px; line-height:1; color:var(--c-muted); padding:2px 6px; cursor:pointer }
.pc-dsum { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap } .pc-dsum b { font:500 30px/1 var(--f-num); font-variant-numeric:tabular-nums } .pc-dsum b.up { color:var(--c-up) } .pc-dsum b.down { color:var(--c-down) } .pc-dsum span { color:var(--c-muted); font-size:13px }
/* the money: --f-num is the clean chart sans now (2026-10-26; the old mono left the comma in a wide gap, "+$2 , 363") */
.pc-tot, .pc-v, .pc-w b, .pc-dsum b { font-family:var(--f-num); font-variant-numeric:tabular-nums }
.pc-dhab { display:flex; gap:8px; align-items:center; font-size:13.5px; color:var(--c-text); background:color-mix(in srgb, var(--c-accent) 9%, transparent); border-radius:10px; padding:8px 12px }
.pc-dhab i { width:7px; height:7px; border-radius:50%; background:var(--c-accent); flex:none }
.pc-daym h4 { margin:4px 0 0; font:600 11.5px var(--f-disp); letter-spacing:.09em; text-transform:uppercase; color:var(--c-muted) }
.pc-atl { list-style:none; margin:0; padding:0; display:grid; gap:8px }
.pc-atl li { display:grid; grid-template-columns:64px minmax(0, 1fr); gap:10px; font-size:13.5px; line-height:1.45 } .pc-atl time { font:500 12px var(--f-num); color:var(--c-muted); padding-top:1px; font-variant-numeric:tabular-nums }
.pc-atl li.k-stop span::before, .pc-atl li.k-caution span::before, .pc-atl li.k-break span::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; margin:0 7px 1px 0; background:var(--c-warn) }
.pc-atl li.k-stop span::before { background:var(--c-down) } .pc-atl li.k-break span::before { background:var(--c-accent) }
.pc-tt { width:100%; border-collapse:collapse; font-size:13px } .pc-tt th { text-align:left; font-weight:600; color:var(--c-muted); font-size:11.5px; padding:4px 6px; border-bottom:1px solid var(--c-border) }
.pc-tt td { padding:6px; border-bottom:1px solid color-mix(in srgb, var(--c-border) 60%, transparent); font-family:var(--f-num); white-space:nowrap; font-variant-numeric:tabular-nums } .pc-tt td.up { color:var(--c-up) } .pc-tt td.down { color:var(--c-down) }
.pc-ttw { overflow-x:auto }
.modal.pc-sharem { width:min(760px, 100%) }
.pc-prev { display:grid; place-items:center; background:var(--c-raised); border-radius:12px; padding:12px }
.pc-prev canvas { display:block; width:100%; height:auto; max-height:46vh; object-fit:contain; border-radius:10px; box-shadow:var(--c-shadow-sm) }
.pc-prev.tall canvas { width:auto; max-width:100% }
.pc-opts { display:grid; gap:10px } .pc-or { display:flex; align-items:center; gap:12px; flex-wrap:wrap } .pc-or > span { width:48px; font-size:13px; color:var(--c-muted) }
.pc-or .seg button:disabled { opacity:.4; cursor:default }
/* Day Replay (roadmap 3.1b): the day square grows into the middle of the screen (FLIP from the cell; reduced motion = a fade) */
.dr-bg { position:fixed; inset:0; z-index:95; display:grid; place-items:center; padding:24px; background:transparent; transition:background-color .42s var(--ease) }
.dr-bg.on { background:var(--c-veil); backdrop-filter:blur(3px) }
.dr { width:min(1040px, 100%); height:min(700px, calc(100vh - 48px)); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:18px; box-shadow:var(--c-shadow); overflow:hidden; outline:none; will-change:transform }
.dr-bg.grow .dr { transition:transform .52s cubic-bezier(.2,.8,.2,1), border-radius .52s } .dr-bg.shut .dr { transition:transform .32s cubic-bezier(.4,0,.6,1), opacity .32s; opacity:.4 }
.dr-in { height:100%; display:grid; grid-template-rows:auto minmax(0, 1fr) auto auto; gap:12px; padding:18px 20px 16px; opacity:0; transition:opacity .28s ease .18s }
.dr-bg.on .dr-in { opacity:1 } .dr-bg.shut .dr-in { opacity:0; transition-delay:0s }
.dr-bg.fade .dr { opacity:0; transition:opacity .3s ease } .dr-bg.fade.on .dr { opacity:1 } .dr-bg.fade .dr-in { transition:none; opacity:1 }
.dr-top { display:flex; align-items:flex-start; gap:14px } .dr-top h3 { margin:0; font:600 20px/1.15 var(--f-disp) } .dr-top > div:first-child { flex:1; min-width:0 } .dr-shift { font-size:12px; margin-top:3px }
.dr-sum { display:flex; align-items:baseline; gap:10px; font-size:13px; color:var(--c-muted); padding-top:6px } .dr-sum b { font:600 24px/1 var(--f-disp); font-variant-numeric:tabular-nums; color:var(--c-text) } .dr-sum b.up { color:var(--c-up) } .dr-sum b.down { color:var(--c-down) }
.dr-sum .dr-fees { font-size:12px; color:var(--c-muted); text-decoration:underline dotted; text-underline-offset:3px; white-space:nowrap } .dr-sum .dr-fees:hover { color:var(--c-text) }
.dr-tone { width:12px; height:12px; border-radius:50%; background:var(--c-raised); align-self:center } .dr-tone.up { background:var(--c-up) } .dr-tone.down { background:var(--c-down) }
.dr-stage { position:relative; min-height:0; border-radius:12px; overflow:hidden; background:var(--c-bg) } .dr-stage canvas { display:block; width:100%; height:100% }
.dr-msg { position:absolute; inset:0; display:grid; place-content:center; gap:8px; text-align:center; padding:24px; color:var(--c-muted); font-size:14px; background:var(--c-bg) } .dr-msg b { color:var(--c-text); font:600 18px var(--f-disp) } .dr-msg span { max-width:46ch; line-height:1.5 }
.dr-note { position:absolute; left:12px; top:10px; font-size:12px; color:var(--c-muted); background:color-mix(in srgb, var(--c-bg) 80%, transparent); padding:3px 8px; border-radius:6px }
.dr-ctl, .dr-savebox { display:flex; align-items:center; gap:10px; flex-wrap:wrap } .dr-ctl .grow, .dr-savebox .grow { flex:1 }
.dr-ic { width:36px; height:36px; padding:0; border-radius:50%; display:grid; place-items:center; flex:none } .dr-ic svg { width:15px; height:15px; fill:currentColor }
.dr-prog { flex:1; min-width:80px; height:4px; border-radius:2px; background:color-mix(in srgb, var(--c-muted) 22%, transparent); overflow:hidden } .dr-prog i { display:block; height:100%; width:0; background:var(--c-accent); border-radius:2px }
.dr-savebox { padding:10px 12px; border-radius:10px; background:var(--c-raised) } .dr-savebox .meta { font-size:12.5px }
.dr-ctl .seg button:disabled { opacity:.4; cursor:default }
.dr-ctl .dr-tg { display:inline-flex; align-items:center; gap:6px; min-height:36px; font-size:13px; white-space:nowrap } .dr-ctl #dr_heat { min-height:36px }
@media (max-width:760px) {
  .dr-bg { padding:0 } .dr { width:100%; height:100%; border-radius:0; border:0 }
  .dr-in { padding:12px 10px 12px; gap:10px; grid-template-rows:auto auto auto auto auto; align-content:start } .dr-stage { height:max(300px, calc(100dvh - 250px)) } .dr-top h3 { font-size:17px } .dr-sum b { font-size:19px }
  .dr-ctl { gap:8px } .dr-prog { order:-1; flex-basis:100% } .dr-ctl #dr_show { order:5; flex-basis:100%; justify-content:center } .dr-ctl #dr_save { margin-left:auto }
  .dr-savebox #dr_st { flex-basis:100%; order:5 }
}
@media (prefers-reduced-motion: reduce) { .dr-bg.grow .dr, .dr-bg.shut .dr, .dr-in { transition:opacity .3s ease !important } }
/* Trade-Cam + the Highlight Reel (roadmap 3.1d): a small badge on a Trade-Cam day, the month's reel button, the overlay's switch */
.pc-tc { display:inline-block; width:10px; height:10px; border-radius:50%; border:2px solid var(--c-accent); box-sizing:border-box; position:relative; flex:none }
.pc-tc::after { content:""; position:absolute; inset:2px; border-radius:50%; background:var(--c-accent) }
.pc-c > .pc-tc { position:absolute; top:12px; right:12px } .pc-c.has-tc > .pc-dot { right:28px }
.pc-reel { display:inline-flex; align-items:center; gap:8px }
.dr-tcb[aria-pressed="true"] { border-color:var(--c-accent); color:var(--c-text) }
@media (max-width:760px) {
  .pc { padding:16px 10px 14px; gap:14px }
  .pc-head { align-items:center } .pc-kick { display:none }
  .pc-nav { gap:4px } .pc-nav h2 { font-size:19px; min-width:0 } .pc-arr { width:40px; height:40px }
  .pc-tot { font-size:24px } .pc-meta { font-size:12px; margin-top:4px }
  .pc-grid { grid-template-columns:repeat(5, minmax(0, 1fr)) minmax(0, .92fr); gap:4px }
  .pc-wd { font-size:9.5px; letter-spacing:.04em; padding:0 2px }
  .pc-c { min-height:60px; padding:5px 5px 6px; border-radius:9px; gap:2px }
  .pc-v { font-size:11px; letter-spacing:-.02em } .pc-n { font-size:9.5px; line-height:1 } .pc-nl { display:none } .pc-ns { display:inline } .pc-dn { font-size:10px }
  .pc-dot { top:6px; right:5px; width:5px; height:5px; box-shadow:none }
  .pc-w { padding:5px 4px; border-radius:9px } .pc-w b { font-size:10.5px } .pc-w small { display:none } .pc-wl { font-size:8.5px; letter-spacing:.04em }
  .pc-bar { gap:8px } .pc-bar .grow { display:none } .pc-i { width:24px; height:24px }
  .pc-atl li { grid-template-columns:56px minmax(0, 1fr) }
}
.smc-pre { display:grid; gap:8px; margin:4px 0 12px } .smc-pre .seg button { min-width:96px }
.smc-adv { margin:4px 0 10px } .smc-adv > summary { cursor:pointer; font:600 13.5px var(--f-body); color:var(--c-muted); padding:4px 0 }
/* ---- Step Away (2026-10-21, stepaway.py): during a cool-off TiltLab's whole window becomes a calm screen - no chart, prices
   or P&L. A slow breathing guide, the countdown, his calm note, one gentle line; an optional 2-minute breathing game.
   "I Need the Chart" / Esc always ends it (the cool-off keeps running). Under the dialogs (z 90), over everything else */
#stepaway { position:fixed; inset:0; z-index:85; display:grid; place-items:center; padding:24px 16px; overflow:auto;
  background:radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--calm) 16%, var(--c-bg)) 0%, var(--c-bg) 70%); color:var(--c-text);
  font:400 15px/1.5 var(--f-body); opacity:1; transition:opacity 1.2s ease }
#stepaway[hidden] { display:none }
#stepaway.in { animation:saIn 1s ease both } #stepaway.fade { opacity:0 }
@keyframes saIn { from { opacity:0 } to { opacity:1 } }
#stepaway .sa-in { width:min(520px, 100%); display:grid; justify-items:center; gap:14px; text-align:center }
/* the rain you can see (Rain Sound on, owner 2026-10-23): soft slanted streaks behind the calm screen, two depths. Only
   transforms move (compositor-only), only while the rain is on (#stepaway.rain, and its 0.8 s fade-out); off = a hidden,
   still layer. Reduced motion: still streaks */
#stepaway { --rain-c:color-mix(in srgb, var(--calm) 62%, var(--c-text)) }
#stepaway .sa-in { position:relative; z-index:1 }
#stepaway .sa-rainfx { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; opacity:0; visibility:hidden;
  transition:opacity .8s ease, visibility 0s linear .8s }
#stepaway.rain .sa-rainfx { opacity:1; visibility:visible; transition:opacity 2.5s ease, visibility 0s }
#stepaway .sa-rainfx::before, #stepaway .sa-rainfx::after { content:""; position:absolute; left:-18%; right:-18%; top:-260px; bottom:-90px; transform:rotate(8deg) }
#stepaway .sa-rainfx::before { --s:color-mix(in srgb, var(--rain-c) 52%, transparent);
  background:radial-gradient(1px 15px at 11px 20px, var(--s), transparent) 0 0 / 53px 170px, radial-gradient(1px 15px at 40px 95px, var(--s), transparent) 0 0 / 71px 170px,
    radial-gradient(1px 15px at 63px 140px, var(--s), transparent) 0 0 / 89px 170px, radial-gradient(1px 15px at 90px 55px, var(--s), transparent) 0 0 / 113px 170px,
    radial-gradient(1px 15px at 17px 120px, var(--s), transparent) 0 0 / 131px 170px }
#stepaway .sa-rainfx::after { --s:color-mix(in srgb, var(--rain-c) 34%, transparent);
  background:radial-gradient(.8px 9px at 8px 30px, var(--s), transparent) 0 0 / 37px 230px, radial-gradient(.8px 9px at 30px 150px, var(--s), transparent) 0 0 / 61px 230px,
    radial-gradient(.8px 9px at 70px 90px, var(--s), transparent) 0 0 / 97px 230px, radial-gradient(.8px 9px at 120px 200px, var(--s), transparent) 0 0 / 149px 230px }
#stepaway:is(.rain, .rain-out) .sa-rainfx::before { animation:saRainN 1.25s linear infinite }
#stepaway:is(.rain, .rain-out) .sa-rainfx::after { animation:saRainF 2s linear infinite }
@keyframes saRainN { from { transform:rotate(8deg) translateY(0) } to { transform:rotate(8deg) translateY(170px) } }
@keyframes saRainF { from { transform:rotate(8deg) translateY(0) } to { transform:rotate(8deg) translateY(230px) } }
#stepaway.walk .sa-rainfx { display:none }
#stepaway .sa-top { font:500 13px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:color-mix(in srgb, var(--calm) 75%, var(--c-text)) }
#stepaway .sa-top b { font:500 30px var(--f-num, var(--f-body)); letter-spacing:0; text-transform:none; display:block; color:var(--c-text); font-variant-numeric:tabular-nums }
#stepaway .sa-breath { width:190px; height:190px; display:grid; place-items:center; position:relative }
#stepaway .sa-orb { width:190px; height:190px; border-radius:50%; background:radial-gradient(circle, color-mix(in srgb, var(--calm) 55%, transparent) 0%, color-mix(in srgb, var(--calm) 18%, transparent) 62%, transparent 72%);
  transform:scale(.55); animation:saBreath 10s ease-in-out infinite }
@keyframes saBreath { 0% { transform:scale(.55) } 40% { transform:scale(1) } 100% { transform:scale(.55) } }   /* 4 s in, 6 s out */
#stepaway .sa-cue { position:absolute; font:500 16px var(--f-body); color:var(--c-text) }
#stepaway .sa-line { margin:0; font:500 17px/1.45 var(--f-body); max-width:440px }
#stepaway .sa-note { margin:0; max-width:440px; padding:10px 14px; border-left:3px solid color-mix(in srgb, var(--calm) 60%, transparent); text-align:left;
  color:color-mix(in srgb, var(--c-text) 85%, var(--c-muted)); font-style:italic; white-space:pre-wrap; max-height:30vh; overflow:auto }
#stepaway .sa-nt { margin:0; font-size:13.5px; color:var(--c-muted) }
#stepaway .sa-acts { display:flex; gap:8px; flex-wrap:wrap; justify-content:center }
#stepaway button { min-height:40px; padding:6px 14px; border-radius:var(--r-ctl, 8px); font:500 14px var(--f-body); color:var(--c-text);
  background:color-mix(in srgb, var(--c-card) 70%, transparent); border:1px solid color-mix(in srgb, var(--calm) 35%, var(--c-border)); cursor:pointer }
#stepaway button:hover { background:color-mix(in srgb, var(--calm) 14%, var(--c-card)) }
#stepaway .sa-chart { margin-top:6px; border-color:var(--c-border-strong) }
#stepaway .sa-sub { font-size:12.5px; color:var(--c-muted); margin-top:-8px }
#stepaway .sa-game { display:grid; justify-items:center; gap:10px; width:100% }
#stepaway .sa-ring { width:200px; height:200px; display:grid; place-items:center }
#stepaway .sa-ring i { display:block; width:200px; height:200px; border-radius:50%; border:3px solid color-mix(in srgb, var(--calm) 55%, transparent);
  transform:scale(.5); transition:box-shadow .8s ease, border-color .8s ease }
#stepaway .sa-ring.step i { border-color:var(--calm); box-shadow:0 0 34px color-mix(in srgb, var(--calm) 45%, transparent), inset 0 0 24px color-mix(in srgb, var(--calm) 25%, transparent) }
#stepaway .sa-hold { min-width:200px; min-height:54px; font-size:15px; touch-action:none; user-select:none }
#stepaway .sa-hold.on { background:color-mix(in srgb, var(--calm) 22%, var(--c-card)) }
#stepaway .sa-done-h { font:500 26px var(--f-body); margin:0 }
#stepaway .sa-over { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; font:500 15px var(--f-body); margin:0 0 10px }   /* the cool-off ended mid-game (2026-10-30) */
#stepaway.mini .sa-in { gap:10px } #stepaway.mini .sa-mini { font:500 18px var(--f-body) }
/* round 2: Walk Away first; the optional menu; the dimmed walk view; the setup ping; the brain games */
#stepaway .sa-walk-go { min-height:58px; padding:10px 26px; font:600 17px var(--f-body); border:1px solid var(--calm);
  background:color-mix(in srgb, var(--calm) 26%, var(--c-card)); box-shadow:0 0 0 4px color-mix(in srgb, var(--calm) 12%, transparent) }
#stepaway .sa-walk-go:hover { background:color-mix(in srgb, var(--calm) 34%, var(--c-card)) }
#stepaway .sa-menu { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; align-items:center; max-width:560px }
#stepaway .sa-menu .sa-sub { margin:0; width:100% }
#stepaway .sa-menu button { min-height:36px; padding:4px 12px; font-size:13px }
#stepaway .sa-menu button[aria-pressed="true"] { border-color:var(--calm); background:color-mix(in srgb, var(--calm) 20%, var(--c-card)) }
#stepaway .sa-in.act .sa-quiet { display:none }
#stepaway.walk { background:#050507; transition:background 1.5s ease }   /* always the night screen: light-theme text would vanish on it (fixed light text below) */
#stepaway.walk .sa-big { font:300 84px var(--f-num, var(--f-body)); color:color-mix(in srgb, #ece8f4 55%, #000); font-variant-numeric:tabular-nums; letter-spacing:.02em }
#stepaway.walk .sa-line { color:color-mix(in srgb, #ece8f4 60%, #000); font-weight:400 }
#stepaway.walk .sa-sub { color:color-mix(in srgb, #ece8f4 40%, #000) }
#stepaway.walk button { color:color-mix(in srgb, #ece8f4 60%, #000); background:transparent; border-color:color-mix(in srgb, #ece8f4 18%, #000) }
#stepaway .sa-offer { font-size:13px; color:color-mix(in srgb, var(--c-text) 50%, #000); max-width:440px }
#stepaway .sa-offer button { margin-top:6px; min-height:34px; font-size:12.5px }
#stepaway .sa-ping { max-width:460px; padding:12px 16px; border-radius:10px; border:1px solid color-mix(in srgb, var(--calm) 45%, transparent);
  background:color-mix(in srgb, var(--calm) 12%, var(--c-card)); color:var(--c-text) }
#stepaway .sa-ping p { margin:0 0 8px; font:500 15px/1.45 var(--f-body) }
#stepaway .sa-ping button, #stepaway.walk .sa-ping button { color:var(--c-text); background:color-mix(in srgb, var(--c-card) 80%, transparent); border:1px solid color-mix(in srgb, var(--calm) 45%, var(--c-border)) }
#stepaway .sa-st { display:grid; justify-items:center; gap:8px; max-width:440px }
#stepaway .sa-st-ic { width:96px; height:96px; fill:none; stroke:var(--calm); stroke-width:3; stroke-linecap:round; stroke-linejoin:round }
#stepaway .sa-st-n { font-size:13px; color:var(--c-muted) } #stepaway .sa-st-t { margin:0; font:500 16px/1.45 var(--f-body) }
#stepaway .sa-st-bar { width:240px; height:4px; border-radius:2px; background:color-mix(in srgb, var(--calm) 15%, transparent); overflow:hidden }
#stepaway .sa-st-bar i { display:block; height:100%; width:0; background:var(--calm); transition:width .25s linear }
#stepaway .sa-wr { display:grid; gap:8px; width:min(440px, 100%); text-align:left }
#stepaway .sa-wr textarea { width:100%; padding:10px; font:15px/1.45 var(--f-body); color:var(--c-text); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:8px; resize:vertical }
#stepaway .sa-pz { display:grid; justify-items:center; gap:8px }
#stepaway .sa-ut { width:min(320px, 86vw); height:auto; touch-action:none; border-radius:10px; background:color-mix(in srgb, var(--calm) 6%, transparent) }
#stepaway .sa-ut line { stroke:color-mix(in srgb, var(--calm) 70%, transparent); stroke-width:2.5 } #stepaway .sa-ut line.x { stroke:#d9a46a }
#stepaway .sa-ut circle { fill:var(--calm); stroke:var(--c-bg); stroke-width:2; cursor:grab } #stepaway .sa-ut.ok line { stroke:var(--calm) }
#stepaway .sa-num { display:grid; grid-template-columns:repeat(4, 52px); gap:4px }
#stepaway .sa-num-c { width:52px; height:52px; min-height:0; padding:0; display:grid; place-items:center; font:500 20px var(--f-body); border-radius:8px }
#stepaway .sa-num-c.fx { background:color-mix(in srgb, var(--calm) 18%, transparent); color:var(--c-text) }
#stepaway .sa-num > :nth-child(4n+2) { margin-right:6px } #stepaway .sa-num > :nth-child(n+5):nth-child(-n+8) { margin-bottom:6px }
#stepaway .sa-num.ok .sa-num-c { border-color:var(--calm) }
body.sa-phone #phoned { z-index:95 }
/* ---- Step Away 2 (2026-10-22): big, calm targets for shaking hands; nothing competitive */
#stepaway .sa-hands-go { min-height:52px; padding:8px 22px; font:500 16px var(--f-body); border-color:color-mix(in srgb, var(--calm) 55%, var(--c-border)) }
#stepaway .sa-hands-go[aria-pressed="true"] { background:color-mix(in srgb, var(--calm) 20%, var(--c-card)) }
#stepaway .sa-hands { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; width:min(500px, calc(100vw - 32px)) }
#stepaway .sa-hands button { min-height:76px; display:grid; align-content:center; gap:3px; padding:10px 12px; border-radius:12px; text-align:center }
#stepaway .sa-hands button b { font:500 16px var(--f-body) } #stepaway .sa-hands button small { font-size:12.5px; color:var(--c-muted) }
#stepaway .sa-zoom { margin:-6px 0 0; font-size:14px; color:color-mix(in srgb, var(--c-text) 70%, var(--c-muted)); font-style:italic }
#stepaway .sa-self .sa-from { display:block; font-style:normal; font-size:12.5px; color:var(--c-muted); margin-bottom:4px }
#stepaway .sa-meter { display:grid; justify-items:center; gap:6px; width:min(320px, 100%) }
#stepaway .sa-mlbl { font-size:12.5px; letter-spacing:.04em; color:color-mix(in srgb, var(--calm) 70%, var(--c-text)) }
#stepaway .sa-mbar { display:block; width:100%; height:6px; border-radius:3px; background:color-mix(in srgb, var(--calm) 14%, transparent); overflow:hidden }
#stepaway .sa-mbar i { display:block; height:100%; width:0; border-radius:3px; background:color-mix(in srgb, var(--calm) 75%, transparent); transition:width 1s linear }
#stepaway .sa-meter .sa-sub { margin:0 } #stepaway .sa-hyd, #stepaway .sa-tog { margin:0; font-size:14px; color:color-mix(in srgb, var(--c-text) 80%, var(--c-muted)) }
#stepaway .sa-foot { margin-top:4px; align-items:center } #stepaway .sa-foot button { min-height:44px } #stepaway .sa-foot .sa-chart { margin-top:0 }
#stepaway .ch-wrap .seg button[aria-pressed="true"] { border-color:var(--calm); background:color-mix(in srgb, var(--calm) 22%, var(--c-card)) }
#stepaway .sa-box { width:170px; height:170px; position:relative; border:2px solid color-mix(in srgb, var(--calm) 55%, transparent); border-radius:14px; margin:12px }
#stepaway .sa-box i { position:absolute; left:0; top:100%; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; background:var(--calm);
  box-shadow:0 0 18px color-mix(in srgb, var(--calm) 60%, transparent); animation:saBox 16s linear infinite }
@keyframes saBox { 0% { left:0; top:100% } 25% { left:0; top:0 } 50% { left:100%; top:0 } 75% { left:100%; top:100% } 100% { left:0; top:100% } }
#stepaway .sa-bcue { font:500 18px var(--f-body) }
#stepaway .sa-sn { width:min(300px, 80vw); height:auto; border-radius:12px; background:color-mix(in srgb, var(--calm) 7%, transparent) }
#stepaway .sa-pad { display:grid; grid-template-columns:repeat(3, 60px); grid-template-rows:repeat(2, 52px); gap:6px }
#stepaway .sa-pad button { min-height:0; font-size:20px; border-radius:12px }
#stepaway .sa-pad [data-d=up] { grid-column:2 } #stepaway .sa-pad [data-d=left] { grid-column:1; grid-row:2 }
#stepaway .sa-pad [data-d=down] { grid-column:2; grid-row:2 } #stepaway .sa-pad [data-d=right] { grid-column:3; grid-row:2 }
#stepaway #sa_snmsg button { min-height:34px; margin-left:6px }
#stepaway .sa-lad { display:grid; justify-items:center; gap:10px; width:min(420px, 100%) }
#stepaway .sa-lad-goal { font-size:15px } #stepaway .sa-lad-goal b { letter-spacing:.12em }
#stepaway .sa-lad-chain { list-style:none; margin:0; padding:0; display:grid; gap:4px; justify-items:center }
#stepaway .sa-lad-chain li { font:500 22px var(--f-mono); letter-spacing:.3em; padding:4px 14px; border-radius:8px; background:color-mix(in srgb, var(--calm) 10%, transparent) }
#stepaway .sa-lad-chain li.goal { opacity:.45; background:none; border:1px dashed color-mix(in srgb, var(--calm) 40%, transparent) }
#stepaway .sa-lad-f { display:flex; gap:8px } #stepaway .sa-lad-f input { width:8ch; min-height:48px; font:500 22px var(--f-mono); letter-spacing:.3em; text-align:center; text-transform:uppercase;
  color:var(--c-text); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:10px }
#stepaway .sa-lad-f button { min-height:48px; padding:6px 20px }
#stepaway .sa-sand { border-radius:12px; touch-action:none; cursor:crosshair; box-shadow:0 2px 14px rgba(0,0,0,.18) }
/* Calm Chess (Step Away on a break he chose, and Train's modal) */
.ch-card { width:min(560px, 96vw) } .ch-card:has(.ch-wrap.big) { width:min(900px, 96vw) }
/* the board fits the window: bigger by default (2026-10-23, owner: "the chess board is small"), Bigger Board for more */
.ch-wrap { display:grid; justify-items:center; gap:10px; --chs:min(56px, 10.5vw, 6.4vh) }
.ch-wrap.big { --chs:min(92px, 11.5vw, 9.6vh) }
:is(#stepaway, #ch_train) .ch-board { display:grid; grid-template-columns:repeat(8, var(--chs)); border-radius:10px; overflow:hidden; box-shadow:0 0 0 1px color-mix(in srgb, var(--calm, #7fa7c9) 35%, transparent) }
:is(#stepaway, #ch_train) .ch-board .ch-sq { position:relative; width:var(--chs); height:var(--chs); min-height:0; padding:0; margin:0; border:none; border-radius:0; display:grid; place-items:center;
  font:400 calc(var(--chs) * .74)/1 "Segoe UI Symbol", "DejaVu Sans", serif; cursor:pointer; background:#ebe5d9; color:#2f2a36 }
:is(#stepaway, #ch_train) .ch-board .ch-sq.d { background:#a7b9a4 }
:is(#stepaway, #ch_train) .ch-board .ch-sq.last { background-image:linear-gradient(rgba(236,205,120,.38), rgba(236,205,120,.38)) }
:is(#stepaway, #ch_train) .ch-board .ch-sq.sel { box-shadow:inset 0 0 0 3px #6f8fb8 }
:is(#stepaway, #ch_train) .ch-board .ch-sq.hint { box-shadow:inset 0 0 0 3px #d9b36a }
:is(#stepaway, #ch_train) .ch-board .ch-sq.chk { background-image:radial-gradient(circle, rgba(230,170,120,.7) 0%, transparent 70%) }
:is(#stepaway, #ch_train) .ch-board .ch-sq.dest::after { content:""; position:absolute; width:26%; height:26%; border-radius:50%; background:rgba(55,75,105,.32) }
:is(#stepaway, #ch_train) .ch-board .ch-sq .w { color:#fbf8f2; text-shadow:0 0 1px #3a3542, 0 0 1px #3a3542, 0 0 2px #3a3542 }
:is(#stepaway, #ch_train) .ch-board .ch-sq .b { color:#2f2a36 }
:is(#stepaway, #ch_train) .ch-wrap .seg button { min-height:40px; min-width:76px }
.ch-msg { margin:0 !important; min-height:1.4em; text-align:center }
.ch-pzt { font-size:14px; color:var(--c-muted) }
#ch_train .sa-acts { display:flex; gap:8px; flex-wrap:wrap; justify-content:center }
.tr-calm { display:grid; gap:6px; margin-top:6px } .tr-calm button { justify-self:start }
.cself-cur { margin:6px 0; padding:8px 12px; border-left:3px solid var(--c-border-strong); font-style:italic; white-space:pre-wrap }
#pp_calmself textarea { width:100%; margin-top:6px; padding:8px; font:14px/1.45 var(--f-body); color:var(--c-text); background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:8px }
body:not(.sa-ok) #ledge_sa { display:none }
@media (prefers-reduced-motion: reduce) {
  #stepaway .sa-orb { animation:saBreathCalm 10s ease-in-out infinite; transform:scale(.8) }
  #stepaway, #stepaway.in { animation:none; transition:none }
  #stepaway .sa-rainfx::before, #stepaway .sa-rainfx::after { animation:none !important } }
@keyframes saBreathCalm { 0%, 100% { opacity:.45 } 40% { opacity:1 } }
@media (max-width:560px) { #stepaway .sa-breath, #stepaway .sa-orb { width:150px; height:150px } #stepaway .sa-ring, #stepaway .sa-ring i { width:160px; height:160px } }
/* entry models (2026-10-23): the chip right after a close, Review's By Entry Model, Prep's Your Entry Models */
#mchip { position:fixed; left:calc(var(--dtw) + 16px); bottom:calc(var(--sbh) + 16px); z-index:60; width:min(400px, calc(100vw - 32px)); background:var(--c-card);
  border:1px solid var(--c-border-strong); border-left:3px solid var(--c-accent); border-radius:var(--r-card); padding:12px 14px; box-shadow:var(--c-shadow-sm) }
#mchip .mq-h { font:600 15px var(--f-body); color:var(--c-text) } #mchip .mq-t { margin:2px 0 8px; font-size:12.5px }
.mq-b { display:flex; flex-wrap:wrap; gap:6px } .mq-b button { padding:5px 10px; font-size:13px } .mq-b .mq-pick { border-color:var(--c-accent); color:var(--c-text) }
.mq-b kbd, .mq-s kbd { color:var(--c-faint); font:11px var(--f-mono); margin-left:5px }
.mq-o { margin-top:8px } .mq-o input { width:100%; padding:6px 8px; font:14px var(--f-body); color:var(--c-text); background:var(--c-bg); border:1px solid var(--c-border-strong); border-radius:var(--r-ctl) }
.mq-s { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px } .mq-s button { padding:3px 9px; font-size:12.5px } .mq-s .mq-new { border-color:var(--c-accent) } .mq-s .mq-none { color:var(--c-muted) }
.mq-msg:empty { display:none } .mq-msg { margin-top:6px; font-size:12.5px }
#mchip .mq-stop { margin-top:8px; padding:0; border:0; background:none; color:var(--c-muted); font-size:12px; text-decoration:underline; cursor:pointer }
#mchip .mq-stops { display:flex; flex-wrap:wrap; gap:4px 16px }
#rv_models { margin-top:12px } .md-card h3 { margin:0 0 6px } .md-rng { margin:2px 0 8px }
.md-row { padding:8px 0; border-top:1px solid var(--c-border) } .md-n { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline }
.md-l { margin:4px 0 0; padding-left:18px; font-size:13.5px; color:var(--c-muted) } .md-l li { margin:1px 0 }
.md-u { display:flex; align-items:center; gap:10px; padding-top:10px; border-top:1px solid var(--c-border) }
.md-tr { padding:8px 0; border-top:1px dashed var(--c-border) } .md-tt { font:13px var(--f-num); margin-bottom:5px; font-variant-numeric:tabular-nums }
.md-recap { margin-top:8px; padding-top:6px; border-top:1px solid var(--c-border); font-size:13px } .md-recap .linkbtn { padding:0 4px }
#pp_models .ms-list, #pp_models .ms-own { display:grid; gap:6px; margin:6px 0 10px } #pp_models .ms-row { display:flex; gap:8px; align-items:flex-start }
#pp_models .ms-row .grow { flex:1 } #pp_models .ms-add { display:flex; gap:6px; margin:4px 0 } #pp_models .ms-add input, #pp_models .ms-row input[type=text] { flex:1; padding:5px 8px;
  font:14px var(--f-body); color:var(--c-text); background:var(--c-bg); border:1px solid var(--c-border-strong); border-radius:var(--r-ctl) }
#pp_models h4 { margin:12px 0 2px } #pp_models .ms-ask { margin:10px 0 14px } #pp_models .err:empty { display:none }
@media (max-width:560px) { #mchip { left:16px; right:16px; width:auto; bottom:calc(var(--sbh) + 64px) } }
/* ---- resource diet (2026-10-23): nothing decorative animates forever. An endless CSS animation repaints every frame
   (60 a second) even when nothing changes: on the owner's 8 GB laptop the envelope button's glow and the orb's rings
   alone kept a renderer core busy. Status dots pulse 3 times when they light, then stay lit; Atlas breathes 3 times when he
   shows, then stands still (his sound-wave rings run only while he speaks); the Stop edge glows 4 times, then stays red; the envelope glows 3 times. While TiltLab is
   in the background (hidden, minimized, or another window has the focus) every animation pauses except the orb and
   Step Away's breathing (html.calm-anim, set by calmAnim()) */
#livebadge.on .ldot, body.live #rctl_s .ldot, .ck-conn.c-live i, .mk-st.monitoring i { animation-iteration-count:3 }
#stage.cp-stop::after { animation-iteration-count:4 } #envbtn.new { animation-iteration-count:3 } #envpop.in .ep-env { animation-iteration-count:3 }
html.calm-anim *:not(#atlas *):not(#stepaway):not(#stepaway *):not(#welcome):not(#welcome *), html.calm-anim *:not(#welcome *)::before, html.calm-anim *:not(#welcome *)::after { animation-play-state:paused !important }
/* (the welcome screen keeps moving: its messages fade IN, so a paused fade would hide an error while another window has the focus) */
/* ---- Home Base widgets (owner 2026-10-24, item 25): on a PC every card is a widget on a 12-column grid, placed by
   hbPaint() (inline grid-column / grid-row; rows 1 and 2 are the slim header and the Not live bar). Edit Layout turns on
   the wiggle (3 times, then a quiet outline; reduced motion: a dashed outline only), drag to move, the corner to resize,
   the x to hide. Outside edit mode the controls don't exist on screen and nothing reacts to a drag. Phones keep the
   stacked layout (#cockpit never gets .hb there) */
.hb-bar, .hb-x, .hb-rs, .hb-ph, .hb-cov { display:none }
@media (min-width:761px) {
  #cockpit.hb:not(#x):not(#y) { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); grid-template-rows:auto auto auto; grid-auto-rows:var(--hb-row, 52px);
    grid-template-areas:none; align-content:start; overflow-y:auto; overflow-x:hidden }
  #cockpit.hb:not(#x) > .ck-card { grid-area:auto; position:relative; min-height:0; overflow:auto }
  #cockpit.hb:not(#x) > .ck-card[hidden], #cockpit.hb > .ck-mo { display:none !important }
  /* (pol2-layout 11-15) Mentor Notes with nothing yet (a new trader, the morning) is as tall as its one line, not a big empty
     box: its place stays the same (nothing else moves), and the log fills it once notes arrive */
  #cockpit.hb:not(#x):not(.hb-edit) > #ck_fd:has(> #ck_feed > .ck-fd-empty) { align-self:start }
  #cockpit.hb > .ck-nlbar { grid-column:1 / -1; grid-row:3 } #cockpit.hb:not(#x) > .ck-nlbar { display:none }   /* (hb-polish) said on the strip instead */
  /* (pol3-presets 11-15) Mentor Notes on Home Base is a log: the newest notes that fit, then one line for the older ones
     (hbFeedTrim), never a scrollbar inside the card. Companion's empty log is one short line */
  #cockpit.hb #ck_feed { overflow-y:hidden }
  .ck-pl-more { display:none } #cockpit.hb:not(.hb-edit) #ck_pl.ck-clip .ck-pl-more { display:block; flex:none; align-self:flex-start; border:0; background:none; padding:0;
    min-height:0; font:500 12.5px var(--f-body); color:var(--c-muted); text-decoration:underline; cursor:pointer }
  #cockpit.hb:not(.hb-edit) #ck_pl.ck-clip #ck_plan { overflow:hidden; -webkit-mask-image:linear-gradient(#000 calc(100% - 28px), transparent); mask-image:linear-gradient(#000 calc(100% - 28px), transparent) }
  #ck_feed li.ck-fd-more { display:block; padding:5px 0 0; border-bottom:0 }
  .ck-fd-mb { border:0; background:none; padding:0; min-height:0; font:500 12.5px var(--f-body); color:var(--c-muted); text-decoration:underline; cursor:pointer }
  .fd-s { display:none } #cockpit.hb[data-hbm="companion"] .fd-l { display:none } #cockpit.hb[data-hbm="companion"] .fd-s { display:inline }
  /* Companion, the calm glance: the calendar is the close (and the firm's flat-by) and the next release, no list; the Guard
     is the room left, the counters and the cool-off (the balance and the firm's rules are in Command Center); no
     explainers. Slightly larger only where the eye lands: the co-pilot's word, the room left, the position line. The
     co-pilot's safety lines and warnings are untouched (they show in full, as in every preset) */
  #cockpit.hb[data-hbm="companion"] #ck_nx .ck-rows > :nth-child(-n+2), #cockpit.hb[data-hbm="companion"] #ck_cal,
  #cockpit.hb[data-hbm="companion"] #ck_caln, #cockpit.hb[data-hbm="companion"] #ck_bal { display:none !important }
  #cockpit.hb[data-hbm="companion"] #ck_tw .tw-lead { display:none }
  #cockpit.hb[data-hbm="companion"] #ck_vd .ck-word { font-size:44px }
  #cockpit.hb[data-hbm="companion"] #ck_gd.has-acct .ck-room .ck-big { font-size:24px }
  #cockpit.hb[data-hbm="companion"] #ck_pos .ck-side { font-size:17px }
  /* (hb-modes 2026-11-16) the presets' switcher in the header row (the Home Base | Chart switch's look, a size smaller) and
     the Atlas coverage strip under it (row 2): small chips with a dot, the same up / warn / down colors as the Live pill */
  #cockpit.hb > .hb-bar .hb-modes { height:28px; flex:none }
  #cockpit.hb #ck_vd[data-narrow="1"] { flex-direction:column; align-items:flex-start; gap:6px }
  #cockpit.hb #ck_vd[data-narrow="1"] .ck-word { font-size:36px } #cockpit.hb #ck_vd[data-narrow="1"] #ck_why { font-size:15px }
  #cockpit.hb #ck_vd[data-narrow="1"] .ck-done { margin-left:0; padding:4px 10px; font-size:12.5px }
  /* (pol3-presets) a narrow co-pilot: "Co-Pilot" and its badge never break mid-word; "checked at" wraps under them instead */
  #cockpit.hb #ck_vd[data-narrow="1"] .ck-vtext > .ck-h { flex-wrap:wrap; row-gap:2px } #cockpit.hb #ck_vd[data-narrow="1"] .ck-hl { white-space:nowrap }
  /* (pol3-cf 11-15) ...and the badge and its "i" wrap under "Co-Pilot" when the row is too narrow for them: no sideways
     scrollbar (Chart Focus at 1440 with "LIVE · NO STOP DETECTED"); a badge wider than the card wraps inside itself */
  #cockpit.hb #ck_vd[data-narrow="1"] .ck-hl { flex-wrap:wrap; row-gap:4px; max-width:100% }
  /* (pol3-cf) hb-tight (hbFitNow, Chart Focus only when a critical line would still be cut): the co-pilot's amber qualifier
     steps aside (the coverage strip above says the same) and Position's padding is smaller */
  #cockpit.hb.hb-tight #ck_vd .ck-wq { display:none } #cockpit.hb.hb-tight #ck_ps { padding-top:8px; padding-bottom:8px; gap:4px }
  #cockpit.hb #ck_vd[data-narrow="1"] .ck-conn { white-space:normal; max-width:100% } #cockpit.hb #ck_vd[data-narrow="1"] .ck-vtext { max-width:100% }
  /* (pol3-cf 11-15) Today's Guard on one line (gdLineSet): the room left, the trades, Take a Cool-Off (a running cool-off's
     time left). The counters, the account state and the firm's rules come back when the box can hold them */
  #cockpit.hb #ck_gd.gd-line { flex-direction:row; flex-wrap:wrap; align-items:center; align-content:center; gap:4px 8px; padding-top:6px; padding-bottom:6px }
  #cockpit.hb #ck_gd.gd-line > :is(.ck-h, #ck_bar, .gd-state, #ck_coolbar, .gd-ref) { display:none !important } #cockpit.hb #ck_gd.gd-noref > .gd-ref { display:none !important }
  #cockpit.hb #ck_gd.gd-line > .ck-room { flex:1 1 auto; min-width:0; margin:0; padding:2px 8px }
  #cockpit.hb #ck_gd.gd-line > .ck-room .ck-big { font-size:17px; white-space:nowrap }
  #cockpit.hb #ck_gd.gd-line > .ck-room .ck-note { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
  #cockpit.hb #ck_gd.gd-line.has-acct > .ck-room .ck-note { display:none }
  /* (pol5-acct) the one-line Guard while the link isn't live: its room is what was last read, said in words (the full card says
     "(last known)" on its state line, which the one-line form folds away) */
  #cockpit.hb.stale #ck_gd.gd-line > .ck-room .gd-lk { display:inline; flex:none; font:600 11px var(--f-body); color:var(--c-warn) }   /* "$998 left" says it (the box's title explains it) */
  #cockpit.hb #ck_gd.gd-line.has-acct > .ck-room { flex:0 1 auto }
  #cockpit.hb #ck_gd.gd-line > .gd-cnt { display:flex; flex:none; gap:0 } #cockpit.hb #ck_gd.gd-line > .gd-cnt > div:not(:first-child) { display:none }
  #cockpit.hb #ck_gd.gd-line > .gd-cnt > div { flex-direction:row; align-items:baseline; gap:6px; padding:2px 8px }
  #cockpit.hb #ck_gd.gd-line > .gd-cnt b { font-size:14px }
  #cockpit.hb #ck_gd.gd-line > .gd-cool { flex:none; flex-wrap:nowrap; gap:6px; font-size:12.5px }
  #cockpit.hb #ck_gd.gd-line > .gd-cool > .gd-cl, #cockpit.hb #ck_gd.gd-line #ck_cool:not(.warn) { display:none }
  #cockpit.hb #ck_gd.gd-line > .gd-cool > b { font-size:13px; margin:0 }
  #cockpit.hb #ck_gd.gd-line > .gd-msg { flex:1 1 100%; order:5; padding:1px 8px } #cockpit.hb #ck_gd.gd-line > .gd-msg .gd-hum { display:none }
  #cockpit.hb #ck_gd.gd-line > .gd-msg .gd-fact { font-size:12px }
  #cockpit.hb #ck_gd.gd-line #ck_ledge { flex:0 0 auto; margin:0; padding:3px 9px; font-size:12px; gap:6px } #cockpit.hb #ck_gd.gd-line #ck_ledge .t { font-size:12px }
  /* (pol3-cf B2 11-15) ...and a second line when the box has the height for it (gd-two: Chart Focus at 1440 left one line in a
     tall box): the Day R and the losses in a row under the first line. The counters' own boxes become the card's items
     (display:contents) so Trades stays on line 1; ::after breaks the line */
  #cockpit.hb #ck_gd.gd-line.gd-two { row-gap:0 }
  #cockpit.hb #ck_gd.gd-line.gd-two > .gd-cnt { display:contents }
  #cockpit.hb #ck_gd.gd-line.gd-two > .gd-cnt > div:not(:first-child) { display:flex; order:2; margin-top:4px }
  #cockpit.hb #ck_gd.gd-line.gd-two::after { content:""; order:1; flex-basis:100%; height:0 }
  /* (hb-polish 11-15) a slim co-pilot row (Review & Prep): the word and its line side by side, smaller; the safety lines stay */
  #cockpit.hb #ck_vd[data-short="1"] { gap:16px; padding-top:6px; padding-bottom:6px } #cockpit.hb #ck_vd[data-short="1"] .ck-word { font-size:30px }
  #cockpit.hb #ck_vd[data-short="1"] #ck_why { font-size:14.5px } #cockpit.hb #ck_vd[data-short="1"] .ck-vtext { gap:2px }
  #cockpit.hb #ck_vd[data-short="1"] .ck-done { padding:3px 10px; font-size:12.5px }
  /* (hb-polish 11-15) a narrow co-pilot that is also short (Companion / Chart Focus on a 720 px screen): a size smaller */
  @media (max-height:800px) { #cockpit.hb #ck_vd[data-narrow="1"] { gap:5px } #cockpit.hb #ck_vd[data-narrow="1"] .ck-word { font-size:30px } #cockpit.hb #ck_vd[data-narrow="1"] #ck_why { font-size:14px } }
  #cockpit.hb > .hb-bar .hb-modes button { height:22px; min-height:0; padding:0 10px; font:500 12.5px var(--f-body); border:0; border-radius:6px; white-space:nowrap }
  #cockpit.hb > .hb-bar .hb-modes button:disabled { opacity:.55; cursor:default }
  #cockpit.hb > .hb-cov:not([hidden]) { grid-column:1 / -1; grid-row:2; display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; min-height:30px; padding:4px 12px; box-sizing:border-box;
    border:1px solid var(--c-border); border-radius:var(--r-ctl); background:var(--c-card); font-size:12.5px; color:var(--c-muted) }
  #cockpit.hb > .hb-cov[data-st="off"] { border-color:color-mix(in srgb, var(--c-down) 45%, var(--c-border)) }
  #cockpit.hb > .hb-cov[data-st="warn"] { border-color:color-mix(in srgb, var(--c-warn) 45%, var(--c-border)) }
  .hb-cov .hb-cv { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; min-width:0 }
  .hb-cov .hb-cv b { color:var(--c-text); font-weight:600 }
  .hb-cov .hb-cv i { width:7px; height:7px; border-radius:50%; flex:none; background:var(--c-faint) }
  .hb-cov .hb-cv[data-st="ok"] i { background:var(--c-up) }
  .hb-cov .hb-cv[data-st="warn"] i { background:var(--c-warn) } .hb-cov .hb-cv[data-st="warn"] > span { color:var(--c-warn) }
  .hb-cov .hb-cv[data-st="off"] i { background:var(--c-down) } .hb-cov .hb-cv[data-st="off"] > span { color:var(--c-down) }
  .hb-cov .hb-cv[data-k="atlas"] b { font-weight:700 }
  .hb-cov .hb-cv[data-k="atlas"] { padding-right:10px; border-right:1px solid var(--c-border) }
  @media (max-width:1399px) { #cockpit.hb > .hb-bar .hb-modes button { padding:0 7px; font-size:12px } .hb-cov .hb-cv[data-k="accts"] > span { display:none } }
  #cockpit.hb > .hb-bar { display:flex; grid-column:1 / -1; grid-row:1; align-items:center; gap:8px; min-height:26px; margin:-4px 0 -4px; font-size:12.5px; color:var(--c-muted) }
  .hb-bar .grow { flex:1 } .hb-bar .hb-hint { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
  .hb-bar button { padding:3px 10px; font:500 12.5px var(--f-body); border-radius:var(--r-ctl); min-height:26px }
  .hb-editb { border:1px solid var(--c-border); background:transparent; color:var(--c-muted) } .hb-editb:hover { color:var(--c-text); background:var(--c-raised) }
  .hb-ectl { display:none; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end }
  #cockpit.hb-edit .hb-ectl { display:flex } #cockpit.hb-edit #hb_edit { display:none }
  .hb-pre { display:inline-flex; gap:4px; padding-left:6px; border-left:1px solid var(--c-border) }
  .hb-addw { position:relative }
  .hb-addpop { position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:220px; display:grid; gap:2px; padding:6px; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:var(--r-card); box-shadow:var(--c-shadow) }
  .hb-addpop[hidden] { display:none } .hb-addpop button { text-align:left; border:0; background:transparent; color:var(--c-text); padding:7px 10px } .hb-addpop button:hover, .hb-addpop button:focus-visible { background:var(--c-raised) }
  .hb-addpop .meta { padding:6px 10px; font-size:12.5px }
  #cockpit.hb #ck_chx { display:none }
  #cockpit.hb:not(#x) #ck_chartbox { flex:1 1 auto; min-height:0 }
  #cockpit.hb #ck_cal { max-height:none }
  /* edit mode */
  @keyframes hbWiggle { 0%, 100% { transform:rotate(0) } 25% { transform:rotate(-.5deg) } 75% { transform:rotate(.5deg) } }
  #cockpit.hb-edit > .ck-card { cursor:grab; touch-action:none; user-select:none; outline:2px solid color-mix(in srgb, var(--c-accent) 35%, transparent); outline-offset:-1px;
    animation:hbWiggle .45s ease-in-out 3 }
  #cockpit.hb-edit > .ck-card > :not(.hb-x, .hb-rs) { pointer-events:none }
  #cockpit.hb-edit > .ck-card:focus-visible { outline:2px solid var(--c-accent); outline-offset:1px }
  #cockpit.hb-edit > .ck-card[data-hbdrag] { animation:none; z-index:6; cursor:grabbing; box-shadow:0 12px 32px rgba(0,0,0,.28); opacity:.94 }
  #cockpit.hb-edit > .ck-card[data-hbdrag="rs"] { cursor:nwse-resize }
  #cockpit.hb-edit .hb-x { display:grid; place-items:center; position:absolute; top:6px; right:6px; z-index:2; width:26px; height:26px; min-height:0; padding:0; border-radius:50%;
    border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); font:500 17px/1 var(--f-body); cursor:pointer }
  #cockpit.hb-edit .hb-x:hover { background:color-mix(in srgb, var(--c-down) 18%, var(--c-raised)) }
  #cockpit.hb-edit .hb-rs { display:block; position:absolute; right:2px; bottom:2px; z-index:2; width:20px; height:20px; cursor:nwse-resize;
    background:linear-gradient(135deg, transparent 0 52%, var(--c-muted) 52% 58%, transparent 58% 68%, var(--c-muted) 68% 74%, transparent 74%) }
  #cockpit.hb-edit > .hb-ph { display:block; z-index:1; border:2px dashed color-mix(in srgb, var(--c-accent) 60%, transparent); border-radius:var(--r-card); background:color-mix(in srgb, var(--c-accent) 6%, transparent) }
  #cockpit.hb-edit > .hb-ph[hidden] { display:none }
}
/* (floor-widgets 11-16; fw-polish 11-15) the Floor on Home Base: a Floor Channel / Partner DM widget (fwRender). One
   header like a Home Base card (who: the channel's mark or the partner's avatar, the name big, "Floor channel · active
   2 min ago" under it, the new count, Change / Open in the Floor). Compact under 5 rows: the newest lines that fit, one
   per line, a click opens it in the Floor. Taller (.fw-big): the conversation (grouped like the Floor: one name and
   avatar per run of messages), earlier messages, replies, reactions, a message box. Width: container queries (.ck-fw).
   Phones: none (the phone app's Floor tab) */
#cockpit:not(.hb) > .ck-fw { display:none !important }
.ck-fw { gap:8px; container-type:inline-size }
.ck-fw .fw-h { display:flex; align-items:center; justify-content:flex-start; gap:10px; min-width:0; text-transform:none; letter-spacing:0; font-weight:400 }
.ck-fw .fw-ic { flex:none; width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:var(--c-raised); border:1px solid var(--c-border); color:var(--c-muted); font:700 15px/1 var(--f-body) }
.ck-fw .fw-ic:empty { display:none } .ck-fw .fw-ic .av { width:30px; height:30px; font-size:13px } .ck-fw .fw-ic:has(.av) { background:none; border:0 }
.ck-fw .fw-hd { display:flex; flex-direction:column; min-width:0; flex:1 1 auto; gap:1px }
.ck-fw .fw-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 15px/1.25 var(--f-body); color:var(--c-text) }
.ck-fw .fw-sub { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 10.5px/1.3 var(--f-body); letter-spacing:.07em; text-transform:uppercase; color:var(--c-muted) }
.ck-fw .fw-sub i { font-style:normal; font-weight:400; letter-spacing:0; text-transform:none; color:var(--c-faint) } .ck-fw .fw-sub .rc { color:var(--c-warn) }
.ck-fw .fw-u { flex:none; padding:0 8px; border-radius:10px; background:var(--c-accent); color:var(--c-on-accent, #fff); font:700 11.5px/20px var(--f-body); white-space:nowrap }
.ck-fw .fw-u::after { content:" new" } .ck-fw .fw-u[hidden] { display:none }
.ck-fw .fw-acts { display:inline-flex; gap:4px; flex:none }
.ck-fw .fw-acts button, .ck-fw .fw-row button, .ck-fw .fw-older { padding:3px 9px; min-height:26px; font:500 12.5px var(--f-body); text-transform:none; letter-spacing:0; border:1px solid var(--c-border); background:transparent; color:var(--c-muted); border-radius:var(--r-ctl); white-space:nowrap }
.ck-fw .fw-acts button:hover, .ck-fw .fw-row button:hover, .ck-fw .fw-older:hover { color:var(--c-text); background:var(--c-raised); border-color:var(--c-border-strong) }
.ck-fw .fw-row .go { background:var(--c-accent); color:var(--c-on-accent); border-color:var(--c-accent); font-weight:600 } .ck-fw .fw-row .go:hover { background:var(--c-accent-hover); color:var(--c-on-accent) }
.ck-fw .fw-acts .fw-s { display:none }
@container (max-width:520px) { .ck-fw .fw-acts .fw-l2 { display:none } .ck-fw .fw-acts .fw-s { display:inline } }
@container (max-width:330px) { .ck-fw .fw-sub i { display:none } }
@container (max-width:300px) { .ck-fw .fw-ic { display:none } }
.ck-fw .fw-b { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; gap:6px }
/* states: one short title, one line, at most two buttons */
.ck-fw .fw-st { margin:auto 0; display:flex; flex-direction:column; align-items:flex-start; gap:6px; max-width:44ch; padding:2px 0 }
.ck-fw:not(.fw-big) .fw-st { margin:0; gap:4px }
.ck-fw .fw-st b { font:600 14px/1.3 var(--f-body); color:var(--c-text) }
.ck-fw .fw-st p, .ck-fw .fw-note { margin:0; font-size:13px; line-height:1.4; color:var(--c-muted) } .ck-fw .fw-note[hidden] { display:none }
.ck-fw .fw-st.warn b { color:var(--c-warn) }
.ck-fw .fw-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:2px }
.ck-fw .fw-rc { flex:none; display:flex; align-items:center; gap:8px; padding:5px 10px; border-radius:var(--r-ctl); font-size:12.5px; color:var(--c-warn); background:color-mix(in srgb, var(--c-warn) 10%, transparent); border:1px solid color-mix(in srgb, var(--c-warn) 30%, transparent) }
.ck-fw .fw-rc[hidden] { display:none } .ck-fw .fw-rc::before { content:""; flex:none; width:7px; height:7px; border-radius:50%; background:currentColor; animation:fwPulse 1.4s ease-in-out infinite }
@keyframes fwPulse { 50% { opacity:.3 } }
@media (prefers-reduced-motion: reduce) { .ck-fw .fw-rc::before { animation:none } }
/* the picker */
.ck-fw .fw-pick { display:grid; gap:2px; overflow-y:auto; min-height:0; margin:0 -6px; align-content:start }
.ck-fw .fw-pick button { text-align:left; border:0; background:transparent; color:var(--c-text); padding:6px 8px; border-radius:var(--r-ctl); font-size:13.5px; display:flex; gap:8px; align-items:center; min-width:0 }
.ck-fw .fw-pick button > span:nth-child(2) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.ck-fw .fw-pick button:hover, .ck-fw .fw-pick button[aria-current="true"] { background:var(--c-raised) }
.ck-fw .fw-pick .av { width:22px; height:22px; font-size:10.5px } .ck-fw .fw-pick .fw-pi { flex:none; width:22px; text-align:center; color:var(--c-muted); font-weight:700 }
.ck-fw .fw-pu { margin-left:auto; flex:none; min-width:18px; padding:0 6px; border-radius:9px; background:var(--c-accent); color:var(--c-on-accent, #fff); font:700 11px/18px var(--f-body); text-align:center }
/* the messages */
.ck-fw .fw-list { flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; display:flex; flex-direction:column; padding-right:4px; scrollbar-width:thin; overscroll-behavior:contain }
.ck-fw.fw-big .fw-list > :first-child { margin-top:auto }          /* a short conversation sits by the message box, like any chat */
.ck-fw .fw-older { align-self:center; margin:4px 0 6px }
.ck-fw .fw-start { padding:4px 0 10px; margin-bottom:4px; border-bottom:1px solid var(--c-border); font-size:12.5px; color:var(--c-faint) } .ck-fw .fw-start b { display:block; font:600 14px var(--f-body); color:var(--c-text); margin-bottom:2px }
.ck-fw .fw-day, .ck-fw .fw-new { display:flex; align-items:center; gap:10px; margin:12px 0 2px; color:var(--c-faint); font:600 11px var(--f-body); letter-spacing:.04em }
.ck-fw .fw-day::before, .ck-fw .fw-day::after, .ck-fw .fw-new::after { content:""; flex:1; height:1px; background:var(--c-border) }
.ck-fw .fw-new { color:var(--c-accent) } .ck-fw .fw-new::after { background:color-mix(in srgb, var(--c-accent) 55%, transparent) }
.ck-fw .fw-m { position:relative; display:grid; grid-template-columns:30px minmax(0, 1fr); column-gap:10px; padding:2px 6px; margin:0 -6px; border-radius:6px; min-width:0 }
.ck-fw .fw-m.first { margin-top:10px } .ck-fw .fw-day + .fw-m, .ck-fw .fw-new + .fw-m, .ck-fw .fw-start + .fw-m, .ck-fw .fw-older + .fw-m { margin-top:4px }
.ck-fw.fw-big .fw-m:hover { background:color-mix(in srgb, var(--c-raised) 70%, transparent) }
.ck-fw .fw-m.men { background:color-mix(in srgb, var(--c-accent) 9%, transparent); box-shadow:inset 2px 0 var(--c-accent) }
.ck-fw .fw-g { padding-top:2px } .ck-fw .fw-g .av { width:30px; height:30px; font-size:13px }
.ck-fw .fw-g time { display:block; visibility:hidden; font-size:10.5px; line-height:21px; color:var(--c-faint); text-align:right; white-space:nowrap }
.ck-fw .fw-m:hover .fw-g time { visibility:visible }
.ck-fw .fw-l { display:flex; align-items:baseline; gap:8px; min-width:0 }
.ck-fw .fw-n { font:600 13.5px var(--f-body); color:var(--c-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0 }
.ck-fw .fw-tm { flex:none; font-size:11.5px; color:var(--c-faint); white-space:nowrap } .ck-fw .fw-ed { font-size:11px; color:var(--c-faint) }
.fw-pic { margin:2px 0 } .fw-pic .ci-img { display:inline-block; padding:0; border:0; background:none; cursor:zoom-in; max-width:100% }
.fw-pic .ci-img img { display:block; max-width:100%; max-height:200px; width:auto; height:auto; border-radius:8px }
.fw-cap { white-space:pre-wrap; overflow-wrap:anywhere }
.ck-fw .fw-x { font-size:14px; line-height:1.45; color:var(--c-text); overflow-wrap:anywhere; min-width:0 } .ck-fw .fw-x .men { color:var(--c-accent); font-weight:600 } .ck-fw .fw-x small { color:var(--c-faint) }
.ck-fw .fw-rp { font-size:12px; color:var(--c-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-left:8px; border-left:2px solid var(--c-border-strong); margin:2px 0 }
.ck-fw .fw-rx { display:flex; gap:4px; flex-wrap:wrap; align-items:center; margin:3px 0 1px }
.ck-fw .fw-rx button { padding:0 7px; min-height:22px; font-size:12px; border:1px solid var(--c-border); background:var(--c-raised); border-radius:11px; color:var(--c-text) }
.ck-fw .fw-rx button.mine { border-color:var(--c-accent); background:color-mix(in srgb, var(--c-accent) 14%, transparent) }
.ck-fw .fw-ma { position:absolute; right:6px; top:-8px; display:inline-flex; gap:2px; padding:2px; border-radius:8px; border:1px solid var(--c-border); background:var(--c-card); box-shadow:var(--c-shadow-sm); opacity:0; pointer-events:none; transition:opacity .12s }
.ck-fw .ck-fw .fw-pick { display:flex; flex-wrap:wrap; gap:2px; margin:2px 0 6px 40px } .ck-fw .fw-pick button { min-height:28px; padding:0 6px; font-size:16px; border:0; background:transparent; border-radius:6px }
.ck-fw .fw-pick button:hover { background:var(--c-raised) }
.fw-ma button { padding:0 7px; min-height:22px; font-size:12px; border:0; background:transparent; border-radius:6px; color:var(--c-muted) }
.ck-fw .fw-ma button:hover { color:var(--c-text); background:var(--c-raised) }
.ck-fw .fw-m:hover .fw-ma, .ck-fw .fw-m:focus-within .fw-ma { opacity:1; pointer-events:auto }
/* (owner 2026-11-18: every ability of the Floor) the hover row never runs past a narrow card; pinned, threads, the thread view */
.ck-fw .fw-ma { max-width:calc(100% - 12px); flex-wrap:wrap; justify-content:flex-end }
.ck-fw .fw-pn { flex:none; font-size:11px; color:var(--c-faint); white-space:nowrap } .ck-fw .fw-x > .fw-pn { margin-right:6px }
.ck-fw .fw-thb { justify-self:start; margin:4px 0 2px; padding:2px 10px; min-height:24px; font:500 12.5px var(--f-body); border:1px solid var(--c-border); background:transparent; color:var(--c-accent); border-radius:var(--r-ctl); white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis }
.ck-fw .fw-thb:hover { background:var(--c-raised); border-color:var(--c-border-strong) }
.ck-fw .fw-th { flex:none; display:flex; align-items:center; gap:8px; min-width:0; padding-bottom:6px; border-bottom:1px solid var(--c-border) }
.ck-fw .fw-th button { flex:none; padding:2px 9px; min-height:24px; font:500 12.5px var(--f-body); border:1px solid var(--c-border); background:transparent; color:var(--c-muted); border-radius:var(--r-ctl) }
.ck-fw .fw-th button:hover { color:var(--c-text); background:var(--c-raised) }
.ck-fw .fw-th b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 13.5px var(--f-body); color:var(--c-text) }
.ck-fw .fw-tpar { padding-bottom:6px; margin-bottom:2px; border-bottom:1px solid var(--c-border) } .ck-fw .fw-tpar .rvc { max-width:100%; padding:8px 10px; margin:6px 0 0 } .ck-fw .fw-tpar .rvc-bs { display:none }
.ck-fw .fw-list > .fw-empty { margin:10px 0 0 }
.ck-fw .fw-c { position:relative } .ck-fw .fw-c .cm-mp { left:0; right:0; max-width:none }
.ck-fw .fw-tools { display:flex; gap:6px; align-items:flex-end; flex:none }
.ck-fw .fw-send .fw-gif, .ck-fw .fw-send .fw-trd { background:transparent; border:0; color:var(--c-muted) } .ck-fw .fw-send .fw-trd { font-size:15px } .fw-send .fw-gif:hover, .fw-send .fw-trd:hover { color:var(--c-text) }
.ck-fw .gi-pan .gi-grid { max-height:150px; grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)) } .ck-fw .gi-pan .gi-it { height:72px }
@container (max-width:400px) { .ck-fw .fw-send { flex-wrap:wrap } .ck-fw .fw-send textarea { flex-basis:100% } .ck-fw .fw-tools { margin-left:auto } }
.ck-fw .fw-empty { margin:auto 0; font-size:13px; color:var(--c-muted) } .ck-fw .fw-empty b { display:block; font:600 14px var(--f-body); color:var(--c-text); margin-bottom:2px }
/* compact: one line per message, the newest at the bottom, only whole lines; a click opens it in the Floor */
.ck-fw:not(.fw-big) .fw-list { overflow:hidden; gap:1px; padding-right:0 }
.ck-fw:not(.fw-big) .fw-m { display:flex; align-items:baseline; gap:8px; padding:3px 6px; cursor:pointer; white-space:nowrap }
.ck-fw:not(.fw-big) .fw-m:hover { background:var(--c-raised) }
.ck-fw:not(.fw-big) .fw-n { flex:none; max-width:38%; font-size:13px } .ck-fw:not(.fw-big) .fw-x { flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; font-size:13.5px; line-height:1.35; color:var(--c-muted) }
.ck-fw:not(.fw-big) .fw-m.unr .fw-x { color:var(--c-text) } .ck-fw:not(.fw-big) .fw-m.unr .fw-n::before { content:""; display:inline-block; width:6px; height:6px; margin:0 6px 1px 0; border-radius:50%; background:var(--c-accent) }
.ck-fw:not(.fw-big) .fw-tm { margin-left:auto; font-size:11px }
.ck-fw:not(.fw-big) .fw-empty { margin:0 }
/* the message box */
.ck-fw .fw-c:empty { display:none } .ck-fw .fw-c { display:flex; flex-direction:column; gap:4px }
.ck-fw .fw-send { display:flex; gap:6px; align-items:flex-end; padding:4px 4px 4px 10px; border:1px solid var(--c-border-strong); border-radius:10px; background:var(--c-raised) }
.ck-fw .fw-send:focus-within { border-color:color-mix(in srgb, var(--c-accent) 70%, var(--c-border)) }
.ck-fw .fw-send textarea { flex:1; min-width:0; resize:none; height:28px; max-height:96px; padding:5px 0; font:14px/1.3 var(--f-body); background:transparent; color:var(--c-text); border:0; outline:none; box-shadow:none }
.ck-fw .fw-send .fw-pic, .ck-fw .fw-send .fw-emo { background:transparent; border:0; color:var(--c-muted); font-size:15px } .fw-send .fw-pic:hover, .fw-send .fw-emo:hover { color:var(--c-text) }
.ck-fw .ci-pend { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-size:12.5px; color:var(--c-muted) } .ck-fw .ci-pend img { max-height:48px; max-width:80px; border-radius:6px }
.ck-fw .ci-pend span { flex:1; min-width:0 } .ck-fw .ci-drop { outline:2px dashed var(--c-accent); outline-offset:-4px }
.fw-send button { flex:none; width:32px; height:30px; min-height:30px; padding:0; border-radius:7px; display:grid; place-items:center }
.ck-fw .fw-cn { margin:0; padding:7px 10px; border-radius:var(--r-ctl); background:var(--c-raised); font-size:12.5px; color:var(--c-muted) }
.ck-fw .fw-rpb { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:0 4px; font-size:12px; color:var(--c-muted) } .ck-fw .fw-rpb button { border:0; background:transparent; color:var(--c-muted); padding:0 6px; min-height:20px }
.ck-fw .fw-err { font-size:12px; color:var(--c-down) } .ck-fw .fw-err:empty { display:none }
.ck-fw .cm-calm { font-size:12px; display:flex; flex-direction:column; gap:4px }
@media (min-width:761px) and (prefers-reduced-motion: reduce) {
  #cockpit.hb-edit > .ck-card { animation:none; outline:2px dashed color-mix(in srgb, var(--c-accent) 60%, transparent) }
}
/* ---- the top bar with four room tabs (2026-10-24: Prep, Trade, Review, Backtest + More). On a PC it stays one row from
   1920 down to 1024 px (1280 at 125% Windows scale): as the window narrows, the bar sheds words in steps. Every piece keeps
   its title / tooltip and its click; the words that go are in the menus or the tooltips, and the sun / moon button becomes
   a Settings row (setOpen) */
@media (min-width:761px) and (max-width:1679px) {                    /* the chip labels and the wordmark fold sooner: one more tab */
  #propchip .lab, #newschip .lab, #planchip .lab, #instchip .lab { display:none } header h1.wm .wm-svg { display:none } header h1.wm .wm-mark-only { display:block }
}
@media (min-width:761px) and (max-width:1599px) {
  #rooms button { padding-left:10px; padding-right:10px } #rooms #more_btn { padding-left:10px; padding-right:8px }
  #gnums .g-today { display:none }                                   /* "Trades 0 of 3 · 0.0R" (the title says today) */
  body.room-trade header #mentor { max-width:136px }
}
@media (min-width:761px) and (max-width:1366px) {
  header { column-gap:5px }
  header > #planbtn #planlbl { display:none } header > #planbtn:not(#x1) { padding:0 9px }   /* the plan: its star (title: Your plan) */
  header #themebtn:not(#x1) { display:none }                         /* Settings -> Light / Dark Theme */
  #rooms button { padding-left:8px; padding-right:8px }
  body.room-trade header #mentor { max-width:118px }
}
@media (min-width:761px) and (max-width:1180px) {
  header { column-gap:4px; padding-left:8px; padding-right:8px }
  #rooms { margin-right:4px } #rooms button, #rooms #more_btn { font-size:12.5px } #rooms button { padding-left:7px; padding-right:7px } #rooms #more_btn { padding-left:7px; padding-right:6px }
  #rctl_s .rs-day { display:none }                                   /* the day is one click away in the pill's menu */
  #rctl_s .rs-live { display:none }                                  /* "Live · Reconnecting": the colored dot + "Reconnecting" (the top bar keeps one row at 1100 px) */
  body.room-trade header #mentor { max-width:120px }                 /* "Mentor: ORB" still reads */
  #layoutsw button { padding:4px 6px }
  body:not(.notlive) #guard:not(.done):not(.near) #gtext { display:none }   /* "0 of 3 · 0.0R"; Done / Not Live keep their word */
  header #hbar > #play { width:36px; padding:0; font-size:0; display:inline-grid; place-items:center }   /* Play / Pause: the icon (its word is its name) */
  header #hbar > #play::before { content:"\25B6"; font-size:12px } header #hbar > #play.on::before { content:"\275A\275A"; font-size:10px; letter-spacing:-1px }
}
@media (min-width:761px) and (max-width:1060px) {
  #rooms button { padding-left:6px; padding-right:6px } #rooms #more_btn { padding-left:6px; padding-right:4px }
  header #rctl_t { padding:0 8px } header #hbar > #play { width:32px } #envbtn { width:28px } #layoutsw button { padding:4px 5px }
  /* the mentor: its icon, as on a phone (a click still opens the list, the current one checked) */
  body.room-trade #mentor_w { position:relative; display:inline-flex; align-items:center; justify-content:center }
  body.room-trade #mentor_w svg { display:block; position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; pointer-events:none; color:var(--c-text) }
  body.room-trade header #hbar #mentor { width:32px; min-width:32px; max-width:32px; padding:0; color:transparent; text-indent:-999px; -webkit-appearance:none; appearance:none; background-image:none; cursor:pointer }
  body.room-trade header #hbar #mentor option { color:var(--c-text); text-indent:0 }
  #propsum { max-width:96px }
}
/* ---- button style (owner pick 2026-10-24 from docs/prototypes/button-styles: D's icons, E's even sizing and gentle hover,
   and a tinted active tab). Shared tokens: every control in the top bar is --ctl-h tall with --ctl-r corners on a PC; the
   primary lavender buttons, the ghost secondaries and the Long / Short colours stay as they were */
:root { --ctl-h:32px; --ctl-r:8px; --ctl-pad:2px; --ctl-in-r:calc(var(--ctl-r) - var(--ctl-pad));
  --ctl-hover-bd:color-mix(in srgb, var(--c-accent) 55%, var(--c-border-strong)); --ctl-hover-bg:color-mix(in srgb, var(--c-text) 5%, var(--c-raised)) }
/* the active tab: a soft lavender tint, lavender icon and label (label contrast on the tint: 5.7:1 dark, 6.1:1 light) */
:root, :root[data-theme="dark"] { --tab-on-bg:color-mix(in srgb, var(--c-accent) 16%, var(--seg-bg)); --tab-on-fg:var(--c-accent); --tab-on-bd:color-mix(in srgb, var(--c-accent) 34%, transparent);
  --ctl-drop:0 1px 2px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.22) }
:root[data-theme="light"] { --tab-on-bg:color-mix(in srgb, var(--c-accent) 11%, var(--seg-bg)); --tab-on-fg:var(--c-accent-hover); --tab-on-bd:color-mix(in srgb, var(--c-accent) 26%, transparent);
  --ctl-drop:0 1px 2px rgba(60,40,25,.12), 0 2px 8px rgba(60,40,25,.08) }
/* the line icons: one size and stroke everywhere (the drill buttons' a touch bigger) */
svg.ico { width:15px; height:15px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
button > svg.ico { vertical-align:-3px; margin-right:6px }
.tr-btns > button > svg.ico { width:16px; height:16px; stroke-width:1.9; margin-right:8px }
#rooms > button[data-room] { display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap }
#rooms > button[data-room] > svg.ico { margin:0; opacity:.8 }
#rooms > button[data-room][aria-pressed="true"], #rooms #more_btn.cur { background:var(--tab-on-bg); color:var(--tab-on-fg); font-weight:600; box-shadow:inset 0 0 0 1px var(--tab-on-bd) }
#rooms > button[data-room][aria-pressed="true"] > svg.ico { opacity:1 }
@media (hover:hover) {
  #rooms > button[data-room]:not([aria-pressed="true"]):hover, #rooms #more_btn:not(.cur):hover { color:var(--c-text); box-shadow:inset 0 0 0 1px var(--c-border-strong) }
}
#rooms > button[data-room]:focus-visible, #rooms #more_btn:focus-visible { outline:2px solid var(--c-accent); outline-offset:1px }
@media (max-width:760px) { #rooms > button[data-room] > svg.ico { display:none } }               /* the phone tab row: words only (no hover tooltips on a phone; five tabs fit 360 px) */
/* the icons cost about 80 px, so the one-row steps fold a little sooner (room kept for the muted pill and a long account
   chip): the tabs take a bit less padding; below 1800 the full wordmark goes and the sun / moon button is a Settings row
   (it was below 1367); below 1600 the tabs show their icons only (the word stays the button's name
   for a screen reader, and its title is the tooltip; More keeps its word and chevron) and "Home Base | Chart"
   says "Home | Chart" (it did below 1367); below 1367 the account chip's text ellipsizes sooner (its title has it all) */
@media (min-width:761px) and (max-width:1799px) { header h1.wm .wm-svg { display:none } header h1.wm .wm-mark-only { display:block } header #themebtn:not(#x1) { display:none } }
@media (min-width:1600px) {
  #rooms > button[data-room] { gap:5px; padding-left:10px; padding-right:10px } #rooms #more_btn { padding-left:10px; padding-right:8px } }
@media (min-width:761px) and (max-width:1366px) { header #rooms > button[data-room]:not(#x1):not(#x2) { padding-left:7px; padding-right:7px } }
@media (min-width:1181px) and (max-width:1366px) { #propsum { max-width:150px } }   /* as below 1181 (and less further down) */
@media (min-width:761px) and (max-width:1599px) {
  header #rooms > button[data-room]:not(#x1) { position:relative; padding-left:8px; padding-right:8px }
  #rooms > button[data-room] > svg.ico { display:none }   /* owner 2026-10-24: the tab names stay; below 1600 the icons give way (words + icons wrapped the bar) */
}
@media (min-width:761px) {   /* any PC width: 1600-1919 px wrapped too (Pro + the gear on a row of their own; hunt 2026-11-08) */
  body.tabs-tight #rooms > button[data-room]:not([aria-pressed="true"]) > .tab-l { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap }
  body.tabs-tight #rooms > button[data-room]:not([aria-pressed="true"]) > svg.ico { display:inline-block; width:16px; height:16px }
  body.tabs-tight :is(#propchip, #newschip, #planchip) .lab { display:none }   /* 1680+ px: the chip's account name goes too, as below 1680 */
  /* (11-18) the Lock It In chip shows up a few seconds after start: at 1100 px with it the gear took a second row even with
     every step on. Its words go last (kept for screen readers; its tooltip says it in full), "Not set" / the limit stays */
  body.tabs-tight #lockchip .lab { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap }
}
@media (min-width:1680px) {   /* a long account name (APEX-PA-0012345678-01...) never pushes the bar onto a second row: cut with "..." (full name in the menu) */
  #propchip .lab { display:inline-block; max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom }
}
@media (min-width:1181px) and (max-width:1599px) {   /* room for the tab names at 1440 / 1280 (below 1181 the rules further up already fold more) */
  header { column-gap:6px } #rooms { margin-right:4px }
  #rooms button, #rooms #more_btn { font-size:12.5px } header #rooms > button[data-room]:not(#x1):not(#x2) { padding-left:7px; padding-right:7px }
  header #hbar > #play { width:36px; padding:0; font-size:0; display:inline-grid; place-items:center }   /* Play / Pause: the icon (as below 1181) */
  header #hbar > #play::before { content:"\25B6"; font-size:12px } header #hbar > #play.on::before { content:"\275A\275A"; font-size:10px; letter-spacing:-1px }
}
/* even sizing on a PC: the tab group, Live / Replay, Play, the instrument and mentor, the icon buttons, the chips (plan,
   prop, news, guard, Lock It In), Sign In / the account, the theme and Settings: one height, one corner (the :not()s only
   lift the specificity past the rooms' and the plan chip's id chains) */
@media (min-width:761px) {
  header #rooms:not(#x1) { box-sizing:border-box; height:var(--ctl-h); padding:var(--ctl-pad); border-radius:var(--ctl-r); align-items:stretch }
  header #rooms > button[data-room]:not(#x1), header #rooms #more_btn:not(#x1) { height:auto; min-height:0; padding-top:0; padding-bottom:0; border-radius:var(--ctl-in-r) }
  header #rooms > #more_w { align-items:stretch }
  header :is(#rctl_t, #hbar > #play, #inst, #mentor, #smc_set, #layoutsw, #envbtn, #mutepill, .chip, #acct_in, #acct_btn, #planbtn, #themebtn, #setbtn):not(#x1):not(#x2):not(#x3):not(#x4):not(#x5):not(#x6) {
    box-sizing:border-box; height:var(--ctl-h); min-height:var(--ctl-h); border-radius:var(--ctl-r) }
  header #layoutsw button:not(#x1) { border-radius:var(--ctl-in-r) }
  header :is(#envbtn, #themebtn, #setbtn, #smc_set):not(#x1):not(#x2) { width:var(--ctl-h) }
  header #smc_set:not(#x1) { border:1px solid var(--c-border); background:var(--c-raised); padding:0 }
  header #mutepill:not(#x1) { padding:0 9px }
}
/* the gentle hover (option E): a crisper border, a hint brighter, and a 1 px lift on the plain buttons (never on a chip
   that holds a popup: a transform would move its popup) */
header :is(#rctl_t, #hbar > #play, #inst, #mentor, #smc_set, #envbtn, #mutepill, .chip, #acct_in, #acct_btn, #planbtn, #themebtn, #setbtn) {
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease) }
@media (hover:hover) {
  header :is(#rctl_t, #hbar > #play:not(:disabled), #inst, #mentor, #smc_set, #envbtn, .chip.clk, #acct_btn, #planbtn, #themebtn, #setbtn):hover { border-color:var(--ctl-hover-bd); box-shadow:var(--ctl-drop) }
  header :is(#rctl_t, #hbar > #play:not(:disabled), #inst, #mentor, #smc_set, #envbtn, #themebtn, #setbtn, #acct_btn):hover { background-color:var(--ctl-hover-bg) }
  header :is(#rctl_t, #hbar > #play:not(:disabled), #inst, #mentor, #smc_set, #envbtn, #mutepill, #lockchip, #acct_in, #acct_btn, #planbtn, #themebtn, #setbtn):hover { transform:translateY(-1px) }
  :is(.tr-btns > button, #tr_place_go, #sp_done, #pc_share, #ds_share):not(:disabled):hover { box-shadow:var(--ctl-drop) }   /* the key buttons: a soft shadow, their colours as they were */
}
@media (prefers-reduced-motion: reduce) { header :is(#rctl_t, #play, #inst, #mentor, #smc_set, #envbtn, #mutepill, #lockchip, #acct_in, #acct_btn, #planbtn, #themebtn, #setbtn):hover { transform:none !important } }
/* a clear keyboard ring on every top-bar control */
header :is(#rctl_t, #hbar > #play, #inst, #mentor, #smc_set, #envbtn, #mutepill, .chip, .chip-btn, #acct_in, #acct_btn, #planbtn, #themebtn, #setbtn, #layoutsw button):focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
/* the OHLC legend (ohlcLegend, owner 2026-10-27): one line at a chart's top-left, never clickable; tabular figures and a
   minimum width per field, so nothing moves as it updates; the change and the four prices in the up / down text colors */
.ohlc { position:absolute; left:10px; top:6px; z-index:4; pointer-events:none; display:flex; align-items:baseline; gap:0 10px; white-space:nowrap; overflow:hidden;
  max-width:calc(100% - 80px); padding:1px 6px; border-radius:4px; background:color-mix(in srgb, var(--bg) 72%, transparent);
  font:400 12px/18px var(--f-chart); font-variant-numeric:tabular-nums; color:var(--mut) }
/* style A (owner 2026-10-26): one system with the price axis - the tags' font (--f-chart, the same Segoe UI design as the axis), tabular figures, commas, numbers at
   400 like the axis, the symbol and the O / H / L / C letters at 500 like the tags, colors from the chart's own tokens */
.ohlc[hidden] { display:none }
.ohlc .oh-s { font:500 12px/18px var(--f-chart); color:var(--ink); min-width:7ch }
.ohlc i { font-style:normal; font-weight:500; color:var(--faint); margin-right:4px }
.ohlc .oh-n { display:inline-block; min-width:9ch; text-align:right }
.ohlc .oh-c { display:inline-block; min-width:16ch }
.ohlc .oh-v > span { display:inline-block; min-width:6ch } .ohlc.oh-nv .oh-v { display:none }
.ohlc .oh-t { color:var(--faint); min-width:5ch }
.ohlc.up :is(.oh-n, .oh-c) { color:var(--up) } .ohlc.dn :is(.oh-n, .oh-c) { color:var(--dn) }
.ohlc.oh-sm { gap:0 5px; padding:1px 5px; font-size:11px } .ohlc.oh-sm .oh-x { display:none } .ohlc.oh-sm i { margin-right:1px }
#stage > .ohlc.oh-main { left:calc(var(--dtw) + 12px); top:40px; max-width:calc(100% - var(--dtw) - var(--rp) - var(--psw, 70px) - 24px) }
/* (chart hunt 2026-11-10) the Price Box sits at the same height on the right: at 1280-1366 px the legend's volume and time
   ran under it (1h+ adds the date). Beside it, the legend stops at its left edge (and goes compact when the full line won't fit) */
@media (min-width:761px) {
  #stage:is(.h-now, #now:not([hidden])) > .ohlc.oh-main { max-width:calc(100% - var(--dtw) - var(--rp) - var(--psw, 70px) - var(--noww, 230px) - 36px) }
  #stage.mtf:is(.h-now, #now:not([hidden])) > .ohlc.oh-main { max-width:calc(100% - var(--dtw) - var(--rp) - var(--mtfw, 28%) - 70px - var(--noww, 230px) - 36px) }
}
/* a PC: under the timeframe row; the cards that open there (#trade: the chart key, ...) start below it */
@media (min-width:761px) {
  #stage:has(> .ohlc.oh-main:not([hidden])) > #trade { --tt:64px; top:var(--tt) }
  body.cooloff #stage > .ohlc.oh-main { top:82px } body.cooloff #stage:has(> .ohlc.oh-main:not([hidden])) > #trade { --tt:106px; top:var(--tt) }
}
/* a phone: the Buy / Sell cards sit under the clock, so it rides just above the Draw button and the timeframe row */
@media (max-width:760px) { #stage > .ohlc.oh-main { top:auto; bottom:88px; left:8px; max-width:calc(100% - var(--psw, 70px) - 16px) } }
body.ck #stage > .ohlc { display:none }
#tr_chartwrap > .ohlc.oh-tr { left:calc(var(--trl) + 12px); top:42px; max-width:calc(100% - var(--trl) - var(--tra, 0px) - 24px) }
@media (max-width:760px) {
  /* (G-2, owner 11-21) a phone: the drill's line wrapped over the OHLC legend and the top of the price scale. It stays
     left of the scale (--tra: the price scale's width, set with --trl), at most two short lines, the legend under it */
  #tr_chartwrap #tr_info { max-width:calc(100% - var(--trl) - var(--tra, 0px) - 20px); font-size:11.5px; line-height:16px; padding:3px 8px }
  #tr_chartwrap > .ohlc.oh-tr { top:58px }
}
#mtf .ohlc.oh-mtf { left:6px; top:30px }
/* the day change (dayChg, owner 2026-10-26): "+142.25 pts · +0.49%" vs the prior session's 4:00 pm close, top-right of the main
   chart on the timeframe row's line - left of the price box (#now) when it shows, else against the price axis (its right edge
   is set by dcFit). The legend's look: the chart font, tabular figures, a soft pill of the chart's background */
#daychg { position:absolute; z-index:5; top:14px; right:calc(var(--rp) + var(--psw, 70px) + 8px); display:flex; align-items:baseline; gap:0 6px; white-space:nowrap;
  padding:1px 7px; border-radius:4px; background:color-mix(in srgb, var(--bg) 72%, transparent); cursor:default;
  font:500 12px/18px var(--f-chart); font-variant-numeric:tabular-nums; color:var(--mut) }
#daychg[hidden], #daychg.dc-off { display:none }
#daychg .dc-p { display:inline-block; min-width:11ch; text-align:right } #daychg .dc-s { color:var(--faint) } #daychg .dc-c { display:inline-block; min-width:6.5ch; text-align:right }
#daychg.up { color:var(--c-up) } #daychg.dn { color:var(--c-down) }
#daychg.dc-sm :is(.dc-s, .dc-c) { display:none }
body.cooloff #daychg { top:56px }
@media (max-width:760px) { #daychg { display:none } }   /* a phone: hidden (the Buy / Sell row and the price box own its top) */
body.ck #stage > #daychg { display:none }
/* the Review room (2026-10-30 "flight recorder", owner 2026-11-03: it matches the rest of the app now). It takes the app's
   palette, fonts and corners in both themes (no graphite / orange set, no serif or monospace, no dot grid). Kept from the
   recorder: the ruled tabs, the segmented gauges and the calendar's ruled page with a signal bar along each day's foot */
#room_review { background:var(--c-bg); color:var(--c-text) }
/* the tabs: a ruled index, no pill */
#room_review .rv-tabs { background:none; border:0; border-bottom:1px solid var(--c-border); border-radius:0; padding:0; gap:22px; box-shadow:none }
#room_review .rv-tabs button { background:none; border:0; border-radius:0; padding:8px 1px 10px; margin-bottom:-1px; border-bottom:2px solid transparent; color:var(--c-muted); box-shadow:none;
  font:600 13px var(--f-body) }
#room_review .rv-tabs button:hover { color:var(--c-text) }
#room_review .rv-tabs button[aria-selected="true"] { background:none; color:var(--c-text); border-bottom-color:var(--c-accent) }
/* (hunt 2026-11-11 #11) a phone: the five tabs on one row ("This / Week", "All / Numbers" wrapped at 390 px); a narrower
   screen scrolls the row sideways instead of wrapping */
@media (max-width:760px) {
  #room_review .rv-tabs { justify-self:stretch; min-width:0; max-width:100%; flex-wrap:nowrap; gap:12px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain }
  #room_review .rv-tabs::-webkit-scrollbar { display:none }
  #room_review .rv-tabs button { flex:none; white-space:nowrap; margin-bottom:0; font-size:12.5px }
}
/* (walk 2026-11-13) a 375 px phone: "All Numbers" was cut off by 8 px; a slightly tighter row fits all five */
@media (max-width:400px) { #room_review .rv-tabs { gap:9px } }
/* (rc-0936) six tabs with Breakdown: on a phone the ruled row runs under the card's side padding (its words still line up
   with the page), the tabs drop the square 40 px minimum (40 px tall stays), and below 481 px "This Week" / "All Numbers"
   read "Week" / "Numbers" (the full words stay on a wider screen), so all six fit a 375 px phone without a sideways scroll */
@media (max-width:760px) {
  #room_review .rv-tabs { width:calc(100% + 44px); max-width:none; margin-left:-22px; margin-right:-22px; padding-left:22px; padding-right:0; box-sizing:border-box }
  #room_review .rv-tabs button { min-width:0 }
}
@media (max-width:480px) { #room_review .rv-tabs .rvt-lg { display:none } }
#room_review .rv-card { background:var(--c-card); border-color:var(--c-border) }
#room_review #rv_body { display:grid; gap:14px }
#room_review #rv_body > * + * { margin-top:0 }
#room_review .tile, #room_review .rv-card .tile { background:var(--c-raised); border-color:transparent }
/* the gauges: segmented, like an instrument */
#room_review .ds-ring svg { -webkit-mask:repeating-conic-gradient(#000 0 6deg, transparent 6deg 7.5deg); mask:repeating-conic-gradient(#000 0 6deg, transparent 6deg 7.5deg) }
#room_review .ds-ring circle { stroke-width:15 } #room_review .ds-ring .fg { stroke-linecap:butt }
#room_review .ds-part .dna-meter { border-radius:0; height:9px; -webkit-mask:repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px); mask:repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px) }
#room_review .ds-part .dna-meter > * { border-radius:0 }
/* Executions: a running log */
#room_review .rv-exec { background:var(--c-panel) }
#room_review .ex-t { border-left:3px solid var(--c-border-strong); background:var(--c-card) }
#room_review .ex-t[aria-current="true"] { border-left-color:var(--c-accent) }
/* the calendar: one ruled page. Each day's size is a signal bar along its foot, not a colored box */
#room_review .pc-kick, #room_review .pc-wd { font:600 11px var(--f-body); letter-spacing:.08em; color:var(--c-faint) }
#room_review .pc-nav h2 { font:600 28px/1.1 var(--f-disp) }
#room_review .pc-tot { font:500 44px/1 var(--f-num); font-variant-numeric:lining-nums tabular-nums }
#room_review .pc-grid { gap:1px; background:var(--c-border); border:1px solid var(--c-border); border-radius:var(--r-card); overflow:hidden }
#room_review .pc-wd { background:var(--c-raised); padding:7px 12px }
#room_review .pc-c, #room_review .pc-c.up, #room_review .pc-c.down, #room_review .pc-c.flat, #room_review .pc-c.none, #room_review .pc-c.out {
  background:var(--c-card); border:0; border-radius:0; min-height:96px; padding:10px 12px 14px; overflow:hidden; box-shadow:none }
#room_review .pc-c.out, #room_review .pc-c.none { background:color-mix(in srgb, var(--c-card) 55%, var(--c-bg)) }
#room_review .pc-c.up { background:color-mix(in srgb, var(--c-up) calc(var(--pct, 12%) * .2), var(--c-card)) } #room_review .pc-c.down { background:color-mix(in srgb, var(--c-down) calc(var(--pct, 12%) * .2), var(--c-card)) }
#room_review button.pc-c:hover { background:var(--c-raised) }
#room_review .pc-c.up .pc-v { color:var(--c-up) } #room_review .pc-c.down .pc-v { color:var(--c-down) }
#room_review .pc-c .pc-v { font-size:21px; text-align:left } #room_review .pc-c .pc-n { text-align:left }
#room_review .pc-c.up::after, #room_review .pc-c.down::after { content:""; position:absolute; left:0; bottom:0; height:4px; width:min(100%, calc(var(--pct, 12%) * 2.4)); background:var(--c-up); box-shadow:0 0 12px color-mix(in srgb, var(--c-up) 55%, transparent) }
#room_review .pc-c.down::after { background:var(--c-down); box-shadow:0 0 12px color-mix(in srgb, var(--c-down) 55%, transparent) }
#room_review .pc-c.today { box-shadow:inset 0 0 0 1px var(--c-accent) }
#room_review .pc-c.show { box-shadow:inset 0 0 0 1px var(--c-accent) }
#room_review .pc-w { border-radius:0; background:var(--c-raised) }
@media (max-width:760px) { #room_review .pc-c, #room_review .pc-c.up, #room_review .pc-c.down, #room_review .pc-c.flat, #room_review .pc-c.none, #room_review .pc-c.out { padding:6px 3px 8px; min-height:74px }
  #room_review .pc-c .pc-v { font-size:12.5px; letter-spacing:-.02em; text-overflow:clip } #room_review .pc-wd { padding:5px 2px; letter-spacing:0; font-size:10px; text-align:center } #room_review .pc-w { padding:6px 3px } }
/* web app (web week 2): the server injects window.TL_WEB + html.tl-web into <head> in a web cell (webcell.inject_flag);
   .desk-only marks the desktop-only controls (they need code on the trader's PC) */
html.tl-web .desk-only { display:none !important }
/* (owner 2026-11-12, after five LucidFlex accounts hit their max loss: "a little much to see all this bright red staring at you
   after losing an account") the calm done states. Red is for live danger only: once the day is over for him (max loss or the
   daily limit on every shown account, the guard done, or "I'm done today") AND he is flat, body.day-done turns the top bar,
   the right panel and the chart frame neutral; one calm card (#dd_card) leads the right panel and the rest folds under its
   "See the Details" (body.dd-open). In a position nothing here applies: the red stays (ddState) */
#dd_card { order:-1; border-color:color-mix(in srgb, var(--calm) 35%, var(--c-border)); background:color-mix(in srgb, var(--calm) 6%, var(--c-card)) }
#dd_card[hidden] { display:none }
#dd_card .dd-h { margin:0; font:600 17px/1.3 var(--f-body); color:var(--c-text) }
#dd_card .dd-p { margin:6px 0 0; font-size:13.5px; line-height:1.5; color:var(--c-muted) }
#dd_card .dd-you { margin:8px 0 0; padding:6px 10px; border-left:3px solid color-mix(in srgb, var(--calm) 60%, transparent); font-size:13.5px; line-height:1.45; color:var(--c-text); white-space:pre-line; overflow-wrap:anywhere }
#dd_card .dd-you small { display:block; font:600 10.5px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-faint); margin-bottom:2px }
#dd_card .dd-acts { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:9px }
#dd_card .dd-acts button { padding:2px 0; min-height:28px; border:0; background:none; color:var(--c-text); font:500 13px var(--f-body); text-decoration:underline; text-decoration-color:var(--c-border-strong); text-underline-offset:3px; cursor:pointer }
#dd_card .dd-acts button:hover { text-decoration-color:currentColor } #dd_card .dd-acts button:disabled { color:var(--c-muted); cursor:default; text-decoration:none }
#dd_card.mini .dd-p, #dd_card.mini .dd-you { display:none } #dd_card.mini .dd-h { font-size:14.5px }
body.ck #dd_card { display:none }                     /* Home Base has its own end-of-day card (ckEnd) */
/* the folded details: the firm's rule lines, the followers, the other-accounts line, the Active profile */
body.day-done:not(.dd-open) #propcard :is(#rn_firm, #rn_copy, #rn_other, #rn_behind2), body.day-done:not(.dd-open) #tpanel > #mod_profile, body.day-done #cp_tough { display:none !important }
body.day-done #cpcard.tough { border-color:var(--c-border) }
/* a setup alert card after the day is done is a nudge toward one more trade: it waits in Mentor Notes instead (owner 2026-11-12) */
body.day-done #alert { display:none !important }
/* neutral, not red: the chips, Co-Pilot's pill, Right Now and its room, the Today bar, the follower lines, the chart frame */
body.day-done :is(#propchip.bad, #propchip.warn, #guard.done, #guard.near) { border-color:var(--c-border-strong) }
body.day-done :is(#propchip.bad, #propchip.warn) .lab, body.day-done #propchip .ps-warn, body.day-done :is(#guard.done, #guard.near) :is(.lab, #gtext) { color:var(--c-muted) }
body.day-done .vbadge.v-done { color:var(--c-muted); background:var(--c-raised); border-color:var(--c-border-strong) }
/* (replay leak 2026-11-14) a replay open over a real done day: no done card, the real account's chip stays grey */
body.dd-real :is(#propchip.bad, #propchip.warn) { border-color:var(--c-border-strong) } body.dd-real :is(#propchip.bad, #propchip.warn) .lab, body.dd-real #propchip .ps-warn { color:var(--c-muted) }
body.day-done #tpanel .vbadge.v-done { box-shadow:none } body.day-done #tpanel .vbadge.v-done::before { box-shadow:none }
body.day-done #cpcard:is(.v-stop, .v-caution) { border-color:var(--c-border) }
body.day-done #propcard:is(.bad, .warn) { border-color:var(--c-border) }
body.day-done #propcard .rn-room, body.day-done #propcard.bad .rn-room, body.day-done #propcard .rn-room.bad { border-color:var(--c-border-strong); background:var(--c-raised); --rn-c:var(--c-muted) }
body.day-done #propcard .rn-rv { text-shadow:none; font-weight:600; font-size:14px; white-space:nowrap }
body.day-done #propcard .rn-copywarn, body.day-done #propcard .rn-other, body.day-done #propcard .rn-line .down, body.day-done #propcard .pc-row b.down { color:var(--c-muted) }
body.day-done #propcard .rn-firm :is(.fr-box, .fr-row, .fr-warn) { border-color:var(--c-border); background:transparent }
body.day-done #mod_today:is(.bad, .warn) .md-room { background:var(--c-raised) }
body.day-done #mod_today .md-lost { background:color-mix(in srgb, var(--c-muted) 55%, var(--c-raised)); box-shadow:none }
body.day-done #mod_today .md-prof { box-shadow:none }
body.day-done .md-kv b.down { color:var(--c-text) }
body.day-done #stage::after { opacity:0 !important; animation:none !important }
body.day-done #ck_vd.v-stop { border-left-color:var(--c-border-strong); background:var(--c-card) } body.day-done #ck_vd.v-stop .ck-word { color:var(--c-muted) }
@media (max-width:760px) {                            /* a phone: the right panel floats over the chart; the card stays small */
  #tpanel > #dd_card { padding:10px 12px; box-shadow:var(--c-shadow) }
  #tpanel > #dd_card .dd-p { font-size:13px }
}
/* FX:START the Floor's facets (floor 2026-11-12): the same rules in mothership/index.html and floor.css */
.cm-brand:has(> .fx-hd:not([hidden])) { position:relative; padding-right:92px }
.fx-hd { position:absolute; top:9px; right:10px; display:flex; gap:4px }
.fx-hb { position:relative; width:34px; height:30px; padding:0; display:inline-grid; place-items:center; font-size:15px; line-height:1; border-radius:8px; background:transparent; border:1px solid var(--rule) }
.fx-hb[aria-pressed="true"] { border-color:var(--key); background:color-mix(in srgb, var(--key) 12%, transparent) }
.fx-hb .cnt { position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--dn); color:#fff; font:700 10.5px/17px var(--f-body); text-align:center }
.fx-hb .cnt[hidden] { display:none }
.fx-list { list-style:none; margin:0; padding:10px 12px; display:grid; gap:4px }
.fx-it { display:grid; grid-template-columns:28px 1fr auto auto; gap:8px; align-items:start; width:100%; text-align:left; background:transparent; border:1px solid transparent; border-radius:8px; padding:8px 10px; color:var(--ink) }
.fx-it:hover { background:var(--panel2); border-color:var(--rule) }
.fx-it.new { background:color-mix(in srgb, var(--key) 8%, transparent) }
.fx-ic { font-size:16px; line-height:1.2; text-align:center }
.fx-tx { display:grid; gap:2px; min-width:0 } .fx-sn { color:var(--mut); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.fx-it time { color:var(--mut); font-size:12px; white-space:nowrap }
.fx-dot { width:8px; height:8px; border-radius:50%; background:var(--key); margin-top:6px }
.fx-q { display:grid; gap:8px; padding:0 8px } .fx-qt { display:flex; gap:10px; flex-wrap:wrap } .fx-qt input { width:auto }
.fx-help { padding:0 8px; line-height:1.5 }
.fx-thc { display:inline-flex; margin:4px 0 2px; padding:2px 8px; font-size:12.5px; border-radius:6px; background:transparent; border:1px solid var(--rule); color:var(--key) }
.fx-tpar { margin:0 10px 6px; padding:8px 10px; border-left:3px solid var(--key); background:var(--panel2); border-radius:0 6px 6px 0; font-size:13px; overflow-wrap:anywhere }
.fx-fol { margin-left:auto; margin-right:6px; padding:2px 10px; font-size:12.5px }
.fx-fol[aria-pressed="true"] { border-color:var(--key); color:var(--key) }
.fx-sf { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:12px 12px 4px } .fx-sf input[type=search] { flex:1 1 260px; min-width:0 }
.fx-sf label { display:inline-flex; gap:4px; align-items:center; font-size:13px } .fx-sn2 { padding:6px 14px 0 }
.fx-tx mark { background:color-mix(in srgb, var(--key) 22%, transparent); color:inherit; border-radius:3px; padding:0 1px }
.fx-more { text-align:center; padding:6px 0 14px }
.fx-lib { padding:12px 14px; display:grid; gap:10px } .fx-lib-add { display:flex; gap:8px }
.fx-lib-l { list-style:none; margin:0; padding:0; display:grid; gap:8px }
.fx-lib-i { border:1px solid var(--rule); border-radius:10px; padding:10px 12px; background:var(--panel); display:grid; gap:6px }
.fx-lib-h { display:flex; align-items:center; gap:8px; flex-wrap:wrap } .fx-lib-own { margin-left:auto; display:flex; gap:4px }
.fx-lib-own button { padding:2px 8px; font-size:12.5px } .fx-lib-a { overflow-wrap:anywhere; color:var(--key) }
.fx-lib-b { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13.5px; line-height:1.5 }
.fx-lib-f { display:grid; gap:8px; border:1px solid var(--rule); border-radius:10px; padding:12px; background:var(--panel2) }
.fx-lib-f label { display:grid; gap:4px; font-size:13px } .fx-lib-f [hidden] { display:none } .fx-lib-f .row { display:flex; gap:8px; justify-content:flex-end }
.cm-main:has(> #fx_bar:not([hidden])) { grid-template-rows:auto auto auto minmax(0,1fr) auto auto }
.cm-main:has(> #fx_bar:not([hidden])):has(> #fsb_bar:not([hidden])) { grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto }
.fx-bar { padding:6px 12px; border-bottom:1px solid var(--rule); max-height:42vh; overflow-y:auto }
.fx-bc { display:flex; gap:8px; flex-wrap:wrap } .fx-bt { display:none }
@media (max-width:760px) {
  .fx-bt { display:flex; width:100%; gap:6px; align-items:center; justify-content:space-between; padding:6px 10px; font-size:13px; text-align:left }
  .fx-bar:not(.open) .fx-bc { display:none } .fx-bar.open .fx-bc { margin-top:6px } .fx-bar { max-height:55vh } }
.fx-poll, .fx-ev { flex:1 1 280px; max-width:520px; border:1px solid var(--rule); border-radius:10px; padding:8px 10px; background:var(--panel); display:grid; gap:6px; font-size:13px }
.fx-ph { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline }
.fx-pl { list-style:none; margin:0; padding:0; display:grid; gap:4px } .fx-pl li { display:grid; gap:2px }
.fx-po { display:grid; grid-template-columns:20px 1fr auto; gap:6px; align-items:center; width:100%; text-align:left; padding:3px 8px; font-size:13px }
.fx-po.me { border-color:var(--key) } .fx-pc { font-variant-numeric:tabular-nums; color:var(--mut) }
.fx-pl progress { width:100%; height:4px; accent-color:var(--key) }
.fx-pf { display:grid; gap:8px } .fx-pf label { display:grid; gap:4px } .fx-pf fieldset { display:grid; gap:6px; border:1px solid var(--rule); border-radius:8px; padding:8px }
.fx-pf .fx-row { display:flex; gap:6px; align-items:center } .fx-pf .row { display:flex; gap:8px; justify-content:flex-end }
.fx-pf .fx-qt { display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:8px 10px; align-items:end } .fx-pf .fx-qt :is(input, select) { width:100%; box-sizing:border-box; min-height:34px }   /* (layout sweep 2026-11-12) Day / Starts / Length: even columns, one height */
.fx-ev.live { border-color:var(--key) } .fx-live { color:var(--key) }
.fx-er { display:flex; gap:8px; align-items:center; flex-wrap:wrap } .fx-er button { padding:3px 10px; font-size:12.5px }
.fx-ev button[aria-pressed="true"] { border-color:var(--key) }
.fx-stats { padding:12px 14px; display:grid; gap:12px } .fx-stats h4 { margin:6px 0 0 }
.fx-seg { display:flex; gap:4px } .fx-seg button[aria-pressed="true"] { border-color:var(--key); font-weight:600 }
.fx-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px }
.fx-tile { border:1px solid var(--rule); border-radius:10px; padding:10px 12px; background:var(--panel); display:grid; gap:2px }
.fx-tile span { font-size:12px; color:var(--mut) } .fx-tile b { font-size:20px; font-variant-numeric:tabular-nums } .fx-tile small { color:var(--mut) }
.fx-wk { border-collapse:collapse; max-width:420px } .fx-wk th, .fx-wk td { padding:4px 10px; text-align:left; border-bottom:1px solid var(--rule); font-variant-numeric:tabular-nums }
.fx-coh { margin:0; padding-left:18px; display:grid; gap:4px }
.fx-intro { position:fixed; right:16px; bottom:84px; z-index:40; width:min(330px, calc(100vw - 32px)); background:var(--panel); color:var(--ink); border:1px solid var(--rule);
  border-left:4px solid var(--key); border-radius:12px; padding:12px 14px; box-shadow:0 10px 30px rgba(0,0,0,.25); display:grid; gap:6px; font-size:13.5px; line-height:1.5 }
.fx-intro p { margin:0 } .fx-ih { display:flex; align-items:baseline; gap:8px; justify-content:space-between }
.fx-ib { display:flex; gap:8px; align-items:center } .fx-ib .grow { flex:1 }
@media (max-width:760px) { .fx-intro { left:12px; right:12px; bottom:76px; width:auto } }
/* FX:END */
/* creator paid rooms (2026-11-12): the Join card and the creator's settings */
.pr-card { margin:24px auto; max-width:460px; padding:18px; background:var(--panel); border:1px solid var(--rule); border-radius:10px; display:grid; gap:8px }
.pr-price { font-size:22px; font-weight:700 }
.pr-wyg { white-space:pre-wrap; margin:0 }
.pr-line { margin:0 }
.pr-form textarea, .pr-form input[type=number] { width:100%; box-sizing:border-box; font:inherit }
/* (layout sweep 2026-11-12) Paid Room Settings: each field under its label (side by side, the fields started at different
   places), Back is a small link at the top left, and the buttons get room between them */
.pr-form > label:has(> input[type=number], > textarea) { display:grid; gap:4px; align-items:start }
.pr-form > #pr_back { justify-self:start; width:auto } .pr-form .btnrow { display:flex; flex-wrap:wrap; gap:6px }
.pr-form > label:has(> input[type=checkbox]) { align-items:flex-start } .pr-form > label > input[type=checkbox] { margin:2px 0 0; flex:none }
.pr-form input[type=radio], .pr-form input[type=checkbox] { min-height:0 }   /* the phone's 40 px field height made the dot sit between two lines */
/* ==== WIDE:CSS-START wide windows (owner 2026-11-13: "utilize the entire space better"). From 1600 px wide: Prep in two
   columns (the morning on the left, its sections on the right), Accounts' cards side by side, All Numbers a little wider.
   Below 1600 px nothing here applies: the single column stays exactly as it was. Text lines stay ~70-90 characters */
.pp-wcol { display:contents }
@media (min-width:1600px) {
  body #room_prep, body #room_protect { --rw:1480px }
  #room_prep { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); column-gap:24px }
  #room_prep > .rv-top { grid-column:1 / -1 }
  #room_prep > #pp_imp { grid-column:2; grid-row:2; margin-top:0 }
  #room_prep > .pp-wcol { display:grid; gap:16px; align-content:start; min-width:0 }
  #room_prep > .pp-wcol > * { min-width:0 }
  #room_prep > .pp-wcol-l { grid-column:1; grid-row:2 / span 2 }
  #room_prep > .pp-wcol-r { grid-column:2; grid-row:3 }
  #room_prep:has(> #pp_imp[hidden]) > .pp-wcol-r { grid-row:2 / span 2 }
  #room_prep > .pp-wcol > .pp-sec { margin-top:0 }
  #room_prep { grid-template-rows:auto auto 1fr }   /* the left column spans rows 2-3: its extra height goes to row 3, never a gap under the Import card */
  /* Accounts: the accounts TiltLab found, two to a row (0.9.43: the connections stay one list, one row per platform) */
  #pr_detect:not(.pr-copy) { grid-template-columns:repeat(2, minmax(0, 1fr)) }
  #pr_detect:not(.pr-copy) > :not(.pr-found), #pr_detect:not(.pr-copy) > .pr-bulk { grid-column:1 / -1 }
  #pr_detect:not(.pr-copy) > .pr-found { align-content:start }   /* one height per row, the words and buttons at the top */
  body #room_review.rvt-all { grid-template-columns:minmax(0, 1440px) }   /* its tiles fill one row; the note under them stays a readable line */
  #room_review.rvt-all #rv_note { max-width:96ch }
}
/* ==== WIDE:CSS-END */


/* ---- Atlas's rig (2026-10-25, from docs/prototypes/atlas-rig/atlas.svg): every color a variable, the outfit as data-*
   attributes on the root svg (class "atlas": data-shades / suit / tie / ear / pocket / pin / watch / hat / outer),
   data-state = watching | speaking | listening | caution | stop | success, data-tone = the co-pilot's caution / stop
   (the glow's color while he speaks). Generic on purpose: atlasImage() inlines this block into the canvas pictures */
.atlas{
  --rim:#5b3fd4; --line:#0b0918;
  --suit:#1f1a3d; --suit-2:#16122e; --lapel:#221c44;
  --shirt:#efebfa; --shirt-2:#cfc6ef;
  --tie:#a084f5; --tie-2:#8668ee;
  --hand:#a088f6; --hand-2:#7f62e6;
  --shoe:#141127; --shoe-hi:#6a4de0;
  --orb-1:#fbf9ff; --orb-2:#ece6fd; --orb-3:#d3c7fa; --orb-4:#b8a3f6; --orb-5:#a084f2; --orb-edge:#7d5ee6;
  --glow:#a78bfa; --tint-a:0;
  --shade:#0e0c13; --glint:#5f42d8; --frame:#0e0c13;
  --wire:#cdc1f7; --bud:#b9a7f6;
  --pocket:#efebfa; --pin:#a78bfa; --watch:#c9c3dc; --watch-face:#1a1630;
  --hat:#4a4360; --hat-2:#3a3450;
  --coat:#3a3542; --coat-2:#2e2a36; --coat-lapel:#433e4d;
  --lvl:.5;
}
.atlas[data-suit="charcoal"]{--suit:#383640;--suit-2:#2b2a33;--lapel:#403e49;--line:#141319}
.atlas[data-suit="tan"]{--suit:#b39670;--suit-2:#9c7f5a;--lapel:#bfa27b;--line:#5f4a33;--shoe:#3a2a1e;--shoe-hi:#7a5a3e}
.atlas[data-suit="summer"]{--suit:#eceaf4;--suit-2:#d4d0e2;--lapel:#f5f3fa;--line:#8f88ad;--shirt:#f6f3ff;--shoe:#6b5040;--shoe-hi:#a78bfa}
.atlas[data-suit="tux"]{--suit:#121019;--suit-2:#0a0910;--lapel:#2b2838;--line:#000}
.atlas[data-outer="overcoat"]{--suit-under:var(--suit)}
.atlas[data-tie="seaglass"]{--tie:#4fd8b8;--tie-2:#33b596}
.atlas[data-tie="ember"]{--tie:#ff9466;--tie-2:#e2744a}
.atlas[data-tie="rain"]{--tie:#7fb0d8;--tie-2:#5f93bf}
.atlas[data-tie="bow-black"]{--tie:#17141f;--tie-2:#000}
.atlas[data-pocket="dusk"]{--pocket:#8f84d8}
.atlas[data-pocket="moss"]{--pocket:#7fa98a}
.atlas[data-pocket="ember"]{--pocket:#ff9466}
.atlas[data-pin="orb-gold"]{--pin:#f5c26b}
.atlas[data-watch="gold"]{--watch:#e2bd6e}
.atlas[data-shades="gold"]{--frame:#e0b866;--glint:#6b4fd9}
.atlas .it{display:none}
.atlas[data-shades="classic"] .sh-classic,.atlas[data-shades="aviator"] .sh-aviator,.atlas[data-shades="round"] .sh-round,
.atlas[data-shades="shield"] .sh-shield,.atlas[data-shades="gold"] .sh-classic,.atlas[data-shades="gold"] .sh-goldrim,
.atlas[data-tie="lavender"] .tie-long,.atlas[data-tie="seaglass"] .tie-long,.atlas[data-tie="ember"] .tie-long,.atlas[data-tie="rain"] .tie-long,
.atlas[data-tie^="bow"] .tie-bow,
.atlas[data-ear="coil"] .ear-coil,.atlas[data-ear="tube"] .ear-tube,.atlas[data-ear="wireless"] .ear-wireless,
.atlas:not([data-ear="wireless"]) .ear-bud,
.atlas:not([data-pocket="none"]) .acc-pocket,
.atlas:not([data-pin="none"]) .acc-pin,
.atlas:not([data-watch="none"]) .acc-watch,
.atlas[data-hat="ivy"] .acc-hat,
.atlas[data-outer="overcoat"] .acc-coat,
.atlas[data-shadow="on"] .shadow{display:inline}
.atlas[data-outer="overcoat"] .suit-lapels{display:none}
/* motion: watching = 3 slow breaths + 2 tiny sways, then still (the resource diet: nothing decorative runs forever) */
.atlas .fig{transform-box:view-box;transform-origin:512px 1425px;animation:atl-sway 7s ease-in-out 2}
.atlas .halo{opacity:.3;transform-box:view-box;transform-origin:512px 302px;animation:atl-breathe 4.6s ease-in-out 3}
.atlas .shades{transform-box:view-box;transform-origin:512px 300px;transition:transform .6s cubic-bezier(.3,.7,.3,1)}
.atlas .bright{opacity:0;transition:opacity .35s}
.atlas .tint{opacity:var(--tint-a);transition:opacity .5s}
.atlas .wave-ring{display:none;transform-box:view-box;transform-origin:512px 302px}
.atlas .glint-sweep{display:none}
@keyframes atl-sway{0%,100%{transform:rotate(-.45deg)}50%{transform:rotate(.45deg)}}
@keyframes atl-breathe{0%,100%{opacity:.22;transform:scale(.97)}50%{opacity:.46;transform:scale(1.03)}}
@keyframes atl-ring{0%{opacity:.55;transform:scale(1.02)}100%{opacity:0;transform:scale(1.42)}}
@keyframes atl-talk{0%,100%{opacity:.2}30%{opacity:.6}55%{opacity:.3}75%{opacity:.7}}
@keyframes atl-tip{0%,12%{transform:none}28%,70%{transform:translateY(30px) rotate(-3deg)}88%,100%{transform:none}}
@keyframes atl-sweep{0%,25%{transform:translateX(-260px)}60%,100%{transform:translateX(260px)}}
@keyframes atl-alert{0%,100%{opacity:.45;transform:scale(.99)}50%{opacity:.8;transform:scale(1.05)}}
/* the glow's color: the co-pilot's verdict (also while he speaks), listening green */
.atlas[data-tone="caution"]{--glow:#f5b54a} .atlas[data-tone="stop"]{--glow:#ff5a5f}
/* speaking: the shades tip down a little, the orb brightens with the voice's level (--lvl, from the TTS audio; a CSS
   pulse without it), two soft sound-wave rings */
.atlas[data-state="speaking"] .shades,.atlas[data-state="listening"] .shades{transform:translateY(14px) rotate(-2deg)}
.atlas[data-state="speaking"] .bright{opacity:calc(.15 + var(--lvl) * .65);transition:opacity .08s}
.atlas[data-state="speaking"]:not(.lvl-js) .bright{animation:atl-talk 1.1s ease-in-out infinite}
.atlas[data-state="speaking"] .halo{animation:none;opacity:calc(.35 + var(--lvl) * .5);transform:scale(calc(1 + var(--lvl) * .07))}
.atlas[data-state="speaking"] .wave-ring{display:inline;animation:atl-ring 1.8s ease-out infinite}
.atlas[data-state="speaking"] .wave-ring.w2{animation-delay:.9s}
/* listening (Voice Ask): a calm green glow, the shades tipped like speaking */
.atlas[data-state="listening"]{--glow:#5fe39a;--tint-a:.2}
.atlas[data-state="listening"] .halo{opacity:.6;animation:atl-alert 1.8s ease-in-out infinite}
.atlas[data-state="listening"] .bright{opacity:.3}
/* caution / stop: the glow changes color (3 pulses, then it stays lit); nothing else gets louder */
.atlas[data-state="caution"]{--glow:#f5b54a;--tint-a:.24}
.atlas[data-state="stop"]{--glow:#ff5a5f;--tint-a:.3}
.atlas[data-state="caution"] .halo,.atlas[data-state="stop"] .halo{opacity:.6}
.atlas[data-state="caution"] .halo{animation:atl-alert 3s ease-in-out 3}
.atlas[data-state="stop"] .halo{animation:atl-alert 1.9s ease-in-out 3}
/* success: the subtle shades tip ("nice") once, a glint crosses the lenses */
.atlas[data-state="success"] .shades{animation:atl-tip 4s ease-in-out 1}
.atlas[data-state="success"] .bright{opacity:.45}
.atlas[data-state="success"] .glint-sweep{display:inline;animation:atl-sweep 4s ease-in-out 1 both}
/* reduced motion: no animation at all, a still frame of each state */
@media (prefers-reduced-motion:reduce){
  .atlas *{animation:none !important;transition:none !important}
  .atlas[data-state="speaking"] .bright{opacity:.5}
  .atlas[data-state="speaking"] .wave-ring{opacity:.4;transform:scale(1.12)} .atlas[data-state="speaking"] .wave-ring.w2{opacity:.18;transform:scale(1.3)}
  .atlas[data-state="success"] .shades{transform:translateY(30px) rotate(-3deg)}
  .atlas[data-state="success"] .glint-sweep{display:none}
}
.atlas.still *{animation:none !important;transition:none !important}
.atlas.pose *{animation:none !important;transition:none !important}
.atlas.pose[data-state="speaking"] .bright{opacity:.6}
.atlas.pose[data-state="speaking"] .wave-ring{opacity:.4;transform:scale(1.12)}
.atlas.pose[data-state="speaking"] .wave-ring.w2{opacity:.18;transform:scale(1.3)}
.atlas.pose[data-state="success"] .shades{transform:translateY(30px) rotate(-3deg)}
.atlas.pose[data-state="success"] .glint-sweep{transform:translateX(-36px)}
.atlas.pose[data-state="caution"] .halo,.atlas.pose[data-state="stop"] .halo{opacity:.7}
.atlas .ln{stroke:var(--line);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.atlas .f-suit{fill:var(--suit)} .atlas .f-suit2{fill:var(--suit-2)} .atlas .f-lapel{fill:var(--lapel)}
.atlas .f-shirt{fill:var(--shirt)} .atlas .f-tie{fill:var(--tie)} .atlas .f-hand{fill:var(--hand)} .atlas .f-hand2{fill:var(--hand-2)}
.atlas .f-shoe{fill:var(--shoe)} .atlas .f-shoehi{fill:var(--shoe-hi)} .atlas .f-shade{fill:var(--shade)} .atlas .f-glint{fill:var(--glint)}
.atlas[data-outer="overcoat"] .f-suit{fill:var(--coat)} .atlas[data-outer="overcoat"] .f-suit2{fill:var(--coat-2)}


/* ---- design 2026-11-10 #4: one top bar in every room. Left: the logo and the rooms; the middle (Replay / Live, the
   instrument, the mentor, Home Base / Chart) is the Trade room's own; right, in every room in the same order and place:
   the status chips, the money chip, the Trades chip, the plan and Settings. Light / dark lives in Settings. The rail keeps
   the same buttons in every room (Ask and Sound included: both work from any room) */
body:not(.room-trade) header :is(#rctl_t, #rctl, #hbar > #play, #hbar > #inst, #mentor_w, #smc_set, #layoutsw, #instchip):not(#x1):not(#x2):not(#x3):not(#x4):not(#x5):not(#x6) { display:none !important }
header #themebtn:not(#x1):not(#x2):not(#x3) { display:none !important }
body.hb-squeeze #propsum .ps-more, body.hb-squeeze #guard #gtext, body.hb-squeeze #guard .g-today { display:none !important }
/* (new-trader test F9, 11-14) hbTight's step before the tabs lose their names (any PC width): the 1180 px give-ways */
body.hb-compact #rctl_s .rs-day, body.hb-compact #layoutsw .lw-b, body.hb-compact #propsum .ps-today { display:none !important }
body.hb-compact header > #planbtn:not(#x1):not(#x2):not(#x3):not(#x4):not(#x5):not(#x6) { display:none !important }
body.hb-compact #layoutsw button:not(#x1) { padding-left:6px !important; padding-right:6px !important }
body.hb-compact header #rooms > button[data-room]:not(#x1):not(#x2) { padding-left:6px; padding-right:6px }
/* below 1181 px (1280 / 1440 at 125%) the Trade room needs a little more for five named tabs: the chip's "today", the plan star
   (Settings -> Plan & Billing has it) and tighter Home Base / Chart buttons */
@media (min-width:761px) and (max-width:1180px) {
  body.hb-squeeze #propsum .ps-today { display:none !important }
  body.hb-squeeze header > #planbtn:not(#x1):not(#x2):not(#x3):not(#x4):not(#x5):not(#x6) { display:none !important }
  body.hb-squeeze #layoutsw button:not(#x1) { padding-left:6px !important; padding-right:6px !important }
}
/* (btnrow 2026-11-13) Home Base stays whole (design #10) beside the fifth tab, so the Trade room's row ran too wide at 1024 px
   (~22 px) and at 1100 px (the desktop app's smallest window, ~54 px), and every other tab lost its name. The bar now gives
   way in this order before that happens: a little air off the tabs, the two chips, Replay and Home Base / Chart (here); then
   from 1061 px up (any PC width: 1280 with four accounts too) the mentor picker turns to its icon, as below 1061 (hbTight
   sets .hb-mentor-ico), never a name cut short; only then the tabs (btnrow2 11-13) */
@media (min-width:761px) and (max-width:1180px) {
  body.hb-squeeze header #rooms > button[data-room]:not(#x1):not(#x2) { padding-left:5px; padding-right:5px }
  body.hb-squeeze header :is(#guard, #propchip):not(#x1):not(#x2) { padding-left:8px; padding-right:8px; gap:6px }
  body.hb-squeeze header #rctl_t:not(#x1):not(#x2) { padding-left:6px; padding-right:6px }
  body.hb-squeeze #layoutsw button:not(#x1) { padding-left:5px !important; padding-right:5px !important; font-size:12.5px }
}
@media (min-width:1061px) {
  body.room-trade.hb-mentor-ico #mentor_w { position:relative; display:inline-flex; align-items:center; justify-content:center }
  body.room-trade.hb-mentor-ico #mentor_w svg { display:block; position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; pointer-events:none; color:var(--c-text) }
  body.room-trade.hb-mentor-ico header #hbar #mentor:not(#x1) { width:32px; min-width:32px; max-width:32px; padding:0; color:transparent; text-indent:-999px; -webkit-appearance:none; appearance:none; background-image:none; cursor:pointer }
  body.room-trade.hb-mentor-ico header #hbar #mentor option { color:var(--c-text); text-indent:0 }
}
/* ---- design 2026-11-10 quick win: a secondary action as a text link (Chart Settings' Reset to Default; Done stays the one filled button) */
button.txtlink:not(#x1) { background:none !important; border:0 !important; box-shadow:none !important; padding:4px 2px !important; min-height:0; color:var(--c-accent); text-decoration:underline; text-underline-offset:3px; font-weight:500; transform:none !important }
button.txtlink:hover { color:var(--c-text) }
/* ---- design 2026-11-10 #9: the "?" shortcut sheet */
.modal.kb-sheet { width:min(920px, calc(100vw - 24px)); max-height:calc(100vh - 48px); overflow-y:auto }
.kb-sheet .kbs-cols { columns:2 340px; column-gap:28px; margin-top:12px }
.kb-sheet .kbs-g { break-inside:avoid; margin:0 0 14px } .kb-sheet .kbs-g h4 { margin:0 0 6px; font:600 12px var(--f-body); letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted) }
.kb-sheet .kb-r kbd { display:inline-block; justify-self:start; width:fit-content; padding:1px 6px; border:1px solid var(--c-border-strong); border-radius:5px; background:var(--c-raised) }
.kb-sheet .meta kbd, .set-kbd { font:500 11px var(--f-mono); padding:0 5px; border:1px solid var(--c-border-strong); border-radius:4px; margin-left:4px }
/* ---- design 2026-11-10 #5: the phone header on ONE 48 px row, the chart first. Left: the logo mark and a room dropdown
   ("Trade ▾": the room tabs drop down as a list); right: the money chip, the Trades chip and "⋯", whose panel holds
   the rest of the bar (Replay / Live and the day, the instrument, the mentor, the morning note, the status chips). Light
   / dark is in Settings. The Sample strip sits right of the Tour pill instead of on top of it */
#room_dd, #hmore_btn { display:none }
@media (max-width:760px) {
  header:not(#x1) { display:flex !important; flex-wrap:nowrap !important; align-items:center; gap:6px !important; height:48px; min-height:48px; max-height:48px; padding:0 8px !important; overflow:visible }
  header:not(#x1) > h1.wm { display:flex !important; order:0; flex:none; align-items:center; margin:0 }
  header h1.wm .wm-svg { display:none !important } header h1.wm .wm-mark-only { display:block !important; width:26px; height:auto }
  header #room_dd { display:inline-flex; order:1; flex:none; align-items:center; gap:4px; height:36px; padding:0 10px; margin-right:auto; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px);
    background:var(--c-raised); color:var(--c-text); font:600 14px var(--f-body); white-space:nowrap }
  header #room_dd svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.6 }
  header #room_dd[aria-expanded="true"] { border-color:var(--c-accent); color:var(--c-accent) }
  header.conn-bad > #rctl_t { display:inline-flex !important; order:1; flex:none; height:36px; min-height:36px; padding:0 8px; font-size:12.5px; white-space:nowrap }
  header.conn-bad > #guard { display:none !important } header.conn-bad > #propchip { overflow:hidden } header.conn-bad > #propchip #propsum { max-width:64px } header.conn-bad #room_dd { padding:0 8px }
  header.conn-bad h1.wm { display:none !important }
  header > #envbtn { order:2; flex:none; width:36px; height:36px; min-height:36px } header > #mutepill { order:2 } header > #propchip { order:3 } header > #guard { order:4 } header #hmore_btn { order:5 }
  header > #propchip, header > #guard { flex:0 1 auto; min-width:0; height:36px; min-height:36px; padding:0 8px; font-size:12.5px }
  header > #propchip #propsum { max-width:96px } header #propsum :is(.ps-today, .ps-more) { display:none }
  header > #guard #gtext, header > #guard .g-today { display:none !important }
  header #hmore_btn { display:inline-grid; place-items:center; flex:none; width:36px; height:36px; min-height:36px; padding:0; border:1px solid var(--c-border); border-radius:var(--r-ctl, 8px); background:var(--c-raised); color:var(--c-text) }
  header #hmore_btn svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round }
  header #hmore_btn[aria-expanded="true"] { border-color:var(--c-accent); color:var(--c-accent) }
  header #hmore_btn.hm-empty { display:none }   /* (walk 2026-11-13) nothing under it on this room (hmoreSync) */
  header #themebtn, header #acct_w, header #set_w, header > #planbtn { display:none !important }
  /* the room tabs: a list under the dropdown */
  header #rooms:not(#x1):not(#x2) { display:none !important }
  header.rooms-open #rooms:not(#x1):not(#x2) { display:flex !important; flex-direction:column; align-items:stretch; position:fixed; z-index:46; top:52px; left:8px; width:min(240px, calc(100vw - 16px));
    max-height:calc(100vh - 52px - var(--rb, 58px) - 8px); overflow-y:auto; gap:2px; padding:6px; margin:0; background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px;
    box-shadow:var(--c-shadow); -webkit-mask-image:none; mask-image:none }
  header.rooms-open #rooms::after { content:none }
  header.rooms-open #rooms > button[data-room], header.rooms-open #rooms #more_btn { justify-content:flex-start; width:100%; min-height:44px; padding:0 12px !important; font-size:15px }
  header.rooms-open #rooms > button[data-room] > svg.ico { display:inline-block !important; width:18px; height:18px; margin-right:10px }
  header.rooms-open #rooms .rm-sep { display:none }
  header.rooms-open #rooms #more_w { display:block } header.rooms-open #rooms #more_btn { display:flex; align-items:center; gap:8px }
  /* the rest of the bar: a panel under "⋯" */
  header #hbar:not(#x1) { display:none !important }
  header.hmore-open #hbar:not(#x1) { display:flex !important; flex-wrap:wrap; align-items:center; gap:8px; position:fixed; z-index:46; top:52px; right:8px; left:8px; padding:10px; overflow:visible;
    background:var(--c-card); border:1px solid var(--c-border-strong); border-radius:12px; box-shadow:var(--c-shadow); -webkit-mask-image:none; mask-image:none }
  header.hmore-open #hbar > * { flex:none }
  header.rctl-open #rctl { top:52px !important }
  /* Sample + Tour: side by side at the bottom (they sat on top of each other) */
  #sample_bar:not(#x1) { left:auto !important; right:8px !important; transform:none !important; max-width:calc(100vw - 150px); gap:6px; padding-left:10px }
  #sample_bar b { white-space:nowrap }
  #cornerpills { max-width:130px }
}
/* ==== BYC (floor-polish 2026-11-12): one room with channels, the layout import, the slim info line, pins, phone review card */
.byc-room { display:grid; grid-template-columns:minmax(0,1fr) }   /* (floorqa 11-13) a long channel name ellipses, no sideways scroll */
.byc-rh .nm { font-weight:700 }
.byc-grp { display:grid; grid-template-columns:minmax(0,1fr); margin-left:12px; padding-left:6px; border-left:1px solid var(--c-border, var(--rule)) }
.byc-cat { padding:6px 8px 2px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--c-muted, var(--mut)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
/* floor-sidebar 2026-11-12: rooms and headings fold (SBR block) */
.sbr-hid { display:none !important }
.sbr-car { display:inline-block; flex:none; width:12px; text-align:center; font-size:10px; line-height:1; opacity:.7; transition:transform .12s ease }
[aria-expanded="false"] > .sbr-car { transform:rotate(-90deg) }
[data-sbr-cat]::before { content:"\25BE"; display:inline-block; flex:none; width:12px; text-align:center; font-size:10px; line-height:1; opacity:.7; transition:transform .12s ease }
[data-sbr-cat][aria-expanded="false"]::before { transform:rotate(-90deg) }
.tlr-head[data-sbr] { cursor:pointer; border-radius:6px; user-select:none }
.tlr-head[data-sbr]:hover { background:color-mix(in srgb, currentColor 6%, transparent) }
.tlr-head[data-sbr]:focus-visible, .tlr-sec[data-sbr-cat]:focus-visible, .byc-cat[data-sbr-cat]:focus-visible { outline:2px solid var(--key, var(--c-accent)); outline-offset:1px }
.tlr-room.sbr-shut { padding-bottom:4px } .tlr-room.sbr-shut .tlr-head small { display:none }
.tlr-sec[data-sbr-cat], .byc-cat[data-sbr-cat] { display:flex; align-items:center; gap:4px; cursor:pointer; user-select:none; border-radius:4px }
.tlr-sec[data-sbr-cat]:hover, .byc-cat[data-sbr-cat]:hover { color:var(--ink, var(--c-text)) }
.sbr-cnt { margin-left:auto; flex:none; background:var(--dn, #b0473a); color:#fff; border-radius:8px; font:700 10px/16px var(--f-body); min-width:16px; padding:0 4px; text-align:center; letter-spacing:0 }
.tlr-head .sbr-cnt { margin-left:0 }
.tlr-head .grow .sbr-all { display:block; margin:2px 0 0 -4px }
.sbr-lock { flex:none; margin-left:4px; font-size:11px; opacity:.7 }
.sbr-all, .cm-sec .sbr-all { flex:none; min-width:0; min-height:0; width:auto; border:0; background:transparent; padding:2px 4px; margin-right:2px; color:var(--faint, var(--c-faint)); font:600 10.5px/1.2 var(--f-body); letter-spacing:.02em; text-transform:none; cursor:pointer; border-radius:4px }
.sbr-all:hover, .cm-sec .sbr-all:hover { color:var(--ink, var(--c-text)) }
.sbr-mut .nm { font-size:12px; color:var(--mut, var(--c-muted)) }
/* floor-sidebar 2026-11-12: the room rail (RL block). TiltLab's own look: rounded-square tiles, an accent ring for the room you're in */
#room_community.rl-on { grid-template-columns:308px minmax(0,1fr) 216px }
#room_community.rl-on.threaded { grid-template-columns:308px minmax(0,1fr) 380px }
@media (max-width:1000px) and (min-width:761px) { #room_community.rl-on { grid-template-columns:256px minmax(0,1fr) 190px } #room_community.rl-on.threaded { grid-template-columns:256px minmax(0,1fr) 300px } }
/* (rc 0.9.34 suite) a tablet with the room rail: the 58px rail left a 15-letter username cut off beside the invite button */
@media (max-width:1000px) and (min-width:761px) { .cm-side.rl-on .cm-me { gap:6px; padding:10px 8px } .cm-side.rl-on .cm-me > button { padding:3px 6px } }
.cm-side.rl-on { grid-template-columns:58px minmax(0,1fr) }
.cm-side.rl-on > * { grid-column:2; min-width:0 }
.cm-side.rl-on > .rl-rail { grid-column:1; grid-row:1 / -1 }
.rl-rail { display:flex; flex-direction:column; align-items:center; gap:8px; padding:10px 0 12px; overflow-y:auto; overflow-x:hidden; scrollbar-width:none;
  background:color-mix(in srgb, var(--c-accent, var(--key)) 5%, var(--c-bg, var(--bg))); border-right:1px solid var(--c-border, var(--rule)) }
.rl-rail::-webkit-scrollbar { display:none }
.rl-mine { display:flex; flex-direction:column; align-items:center; gap:8px }
.rl-sep { flex:none; width:24px; height:2px; border-radius:1px; background:var(--c-border, var(--rule)) }
.rl-tile { position:relative; flex:none; width:42px; height:42px; padding:0; border:0; background:transparent; border-radius:12px; cursor:pointer; outline:none }
.rl-face { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; overflow:hidden; color:#fff; font:700 14px/1 var(--f-body); letter-spacing:.02em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); transition:filter .12s ease, transform .12s ease }
.rl-face img { width:100%; height:100%; object-fit:cover; display:block }
.rl-tile:hover .rl-face { filter:brightness(1.1); transform:translateY(-1px) }
.rl-tile[aria-current="true"] .rl-face { box-shadow:0 0 0 2px var(--c-bg, var(--bg)), 0 0 0 4px var(--c-accent, var(--key)) }
.rl-tile:focus-visible .rl-face { box-shadow:0 0 0 2px var(--c-bg, var(--bg)), 0 0 0 4px var(--c-text, var(--ink)) }
.rl-tl { background:#15121f }
.rl-dm { background:color-mix(in srgb, var(--c-accent, var(--key)) 18%, var(--c-panel, var(--panel2))); color:var(--c-text, var(--ink)) }
.rl-add { background:transparent; color:var(--c-muted, var(--mut)); border:1.5px dashed var(--c-border, var(--rule)); box-shadow:none; font-size:22px; font-weight:500 }
.rl-tile:hover .rl-add { color:var(--c-accent, var(--key)); border-color:var(--c-accent, var(--key)) }
.rl-c0 { background:#7e57c2 } .rl-c1 { background:#0f8f7e } .rl-c2 { background:#b8650a } .rl-c3 { background:#c2416b }
.rl-c4 { background:#2f8a45 } .rl-c5 { background:#2a7aa8 } .rl-c6 { background:#c4521c } .rl-c7 { background:#5f6b7a }
.rl-cnt { position:absolute; right:-5px; bottom:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--dn, #b0473a); color:#fff;
  font:700 10.5px/17px var(--f-body); text-align:center; box-shadow:0 0 0 2px var(--c-bg, var(--bg)) }
.rl-dragging { opacity:.45 }
.rl-over .rl-face { box-shadow:0 0 0 2px var(--c-bg, var(--bg)), 0 0 0 4px var(--c-accent, var(--key)); transform:scale(.92) }
.rl-tip { position:fixed; z-index:200; transform:translateY(-50%); max-width:220px; padding:5px 9px; border-radius:7px; background:var(--c-text, var(--ink)); color:var(--c-bg, var(--bg));
  font:600 12.5px/1.3 var(--f-body); pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:0 4px 14px rgba(0,0,0,.25) }
.rl-tip[hidden] { display:none }
.rl-hid { display:none !important }
.rl-title { display:flex; align-items:center; gap:6px; padding:6px 8px 8px; margin-bottom:4px; border-bottom:1px solid var(--c-border, var(--rule)) }
.rl-title b { flex:1; min-width:0; font:700 14px var(--f-body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.rl-title .sbr-all { margin:0 }
.rl-acts { display:grid; gap:6px; padding:4px 6px 10px }
.rl-acts button { text-align:left; padding:7px 10px; border-radius:8px; border:1px solid var(--c-border, var(--rule)); background:transparent; color:inherit; font:600 13px var(--f-body); cursor:pointer }
.rl-acts button:hover { border-color:var(--c-accent, var(--key)) }
.cm-side.rl-on .byc-rh { display:none }
.cm-side.rl-on .byc-grp { margin-left:0; padding-left:0; border-left:0 }
.cm-side.rl-on .tlr-head[data-sbr] { cursor:default } .cm-side.rl-on .tlr-head[data-sbr]:hover { background:none } .cm-side.rl-on .tlr-head > .sbr-car { display:none }
@media (max-width:760px) { #room_community.rl-on > .cm-side, body .cm-side.rl-on { width:min(360px, 92vw) } }
@media (prefers-reduced-motion:reduce) { .rl-face { transition:none } }
.byc-add .nm, .byc-add .h { color:var(--c-muted, var(--mut)) }
.byc-rn { font-weight:600; color:var(--c-muted, var(--mut)); margin-right:2px } .byc-rn::after { content:" \203a" }
.byc-src { display:flex; gap:6px; flex-wrap:wrap; margin:2px 0 } .byc-src button[aria-pressed="true"] { border-color:var(--key); color:var(--key) }
#byc_imp[hidden], #byc_tpl[hidden] { display:none }
.byc-steps { margin:4px 0 8px; padding-left:20px; line-height:1.55; font-size:13px }
.byc-prev { display:grid; gap:4px; max-height:42vh; overflow-y:auto; padding:6px 0 } .byc-prev p { margin:4px 0 }
.byc-pins { display:flex; align-items:center; gap:6px 8px; min-width:0 }
.byc-pt { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.byc-pinl { margin:6px 0; padding-left:20px; display:grid; gap:10px } .byc-pbody { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:2px }
.byc-sl { display:flex; align-items:center; gap:8px; min-width:0 }
.fsb-bar .byc-slb { display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; height:26px; padding:0 6px; text-align:left; font-size:12.5px; border:1px solid transparent; background:transparent; color:inherit }
.fsb-bar .byc-slb:hover, .fsb-bar .byc-slb:focus-visible { border-color:var(--c-border, var(--rule)) }
/* "Include me" (owner 11-12): a small switch beside a room's process totals */
.byc-inc { display:inline-flex; align-items:center; gap:6px; flex:none; height:24px; padding:0 8px 0 4px; font-size:12px; border-radius:12px; white-space:nowrap }
.byc-sw { position:relative; width:26px; height:14px; border-radius:7px; background:var(--c-border, var(--rule)); transition:background .15s }
.byc-sw::after { content:""; position:absolute; top:2px; left:2px; width:10px; height:10px; border-radius:50%; background:#fff; transition:left .15s }
.byc-inc[aria-checked="true"] .byc-sw { background:var(--key) } .byc-inc[aria-checked="true"] .byc-sw::after { left:14px }
.byc-inc:focus-visible { outline:2px solid var(--key); outline-offset:1px }
@media (prefers-reduced-motion:reduce) { .byc-sw, .byc-sw::after { transition:none } }
/* the one ask (owner 11-12): a calm card the first time he opens the Floor; the anonymous line stands out */
.inca { display:grid; gap:10px } .inca p { margin:0 } .inca .pulse-l { margin:6px 0; padding-left:20px }
.inca-anon { padding:8px 10px; border-radius:8px; background:color-mix(in srgb, var(--key) 12%, transparent); color:var(--ink, inherit) }
.inca-what summary { cursor:pointer; font-size:12.5px; color:var(--key) } .inca-acts { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap }
.byc-slt { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap } .byc-sla { flex:none; color:var(--c-muted, var(--mut)); font-size:12px }
.cm-main.byc-slim > #fsb_bar > :not(.byc-sl) { display:none !important }
.cm-main.byc-slim > #cm_pulse, .cm-main.byc-slim > #fx_bar { height:0 !important; min-height:0 !important; max-height:0 !important; padding:0 !important; margin:0 !important; border:0 !important; overflow:hidden !important; visibility:hidden }
.byc-rvtop { margin:0 0 8px } .byc-rvtop .rvc { max-width:none; margin:0; padding:8px 10px; font-size:12.5px } .byc-rvtop svg { max-height:120px }
.byc-late { padding:6px 10px; border-radius:8px; background:color-mix(in srgb, var(--key) 10%, transparent) }
.byc-inv { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:10px 0 } .byc-inv label { flex-basis:100% } .byc-inv input { flex:1 1 220px; min-width:0 } .byc-inv .meta { flex-basis:100% }
.byc-chb { display:none }
@media (max-width:760px) {          /* the app's phone Floor: the room first, the channel list in a drawer (Floor QA 11-12 #4) */
  #room_community { grid-template-rows:minmax(0,1fr) !important; position:relative }
  #room_community > .cm-side { position:absolute; z-index:20; left:0; top:0; bottom:0; width:min(300px, 86vw); max-height:none; border-right:1px solid var(--c-border, var(--rule)); border-bottom:0;
    transform:translateX(-102%); transition:transform .18s ease-out; visibility:hidden }
  #room_community.byc-dr > .cm-side { transform:none; visibility:visible; box-shadow:12px 0 32px rgba(0,0,0,.28) }
  .byc-chb { display:inline-grid; place-items:center; flex:none; min-width:32px; height:32px; padding:0 }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce) { #room_community > .cm-side { transition:none } }
/* ==== BYC:CSS-END */
/* ==== CHP:CSS-START (channel-perms 2026-11-12: roles and channel settings; the same in index.html and floor.css) */
.chp-tag { --chp-c:var(--mut); display:inline-block; margin-left:6px; padding:0 6px; border-radius:999px; font-size:11px; line-height:17px; font-weight:600;
  color:var(--chp-c); border:1px solid color-mix(in srgb, var(--chp-c) 45%, transparent); background:color-mix(in srgb, var(--chp-c) 10%, transparent); vertical-align:1px; white-space:nowrap }
.chp-tag.chp-paid { --chp-c:var(--key) }
.chp-lk { margin-left:auto; font-size:11px; opacity:.75 }
.cm-ch.chp-tz .nm { color:var(--mut) }
.chp-ro { justify-content:flex-start }
.chp-back { justify-self:start }
.chp-body { display:grid; gap:10px }
.chp-pre { border:1px solid var(--rule); border-radius:8px; padding:8px 10px; display:grid; gap:6px; margin:0 }
.chp-pre legend { font-weight:600; padding:0 4px }
.chp-opt { display:flex; gap:8px; align-items:flex-start; cursor:pointer }
label.chp-opt { align-items:flex-start } label.chp-opt > input { margin:2px 0 0; flex:none }   /* (layout sweep) a form's or dialog's label rule centered the dot between two lines */
.chp-opt > span { display:grid } .chp-opt .meta { font-size:12px }
.fsb-form .chp-pre { display:grid; gap:10px; justify-items:stretch }
.fsb-form .chp-opt { display:grid; grid-template-columns:18px minmax(0,1fr); gap:8px; align-items:start; justify-items:start; text-align:left; width:100% }
.fsb-form .chp-opt input, .fsb-form .chp-pick input { width:auto; margin:2px 0 0 }
.fsb-form .chp-pow { display:grid; gap:8px }
.fsb-form .chp-pow label { display:grid; grid-template-columns:18px minmax(0,1fr); gap:0 8px; align-items:start; justify-items:start; text-align:left; width:100% }
.fsb-form .chp-pow input { width:auto; margin:2px 0 0; grid-row:span 2 } .fsb-form .chp-pow .meta { grid-column:2; font-size:12px }
.chp-col .sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
.chp-picks { display:flex; flex-wrap:wrap; gap:6px; padding-left:24px }
.chp-pick { display:inline-flex; align-items:center; gap:4px } .chp-pick .chp-tag { margin-left:0 }
.chp-adv summary { cursor:pointer; font-weight:600 }
.chp-tw { overflow-x:auto; margin-top:6px }
.chp-tbl { border-collapse:collapse; width:100%; font-size:12.5px }
.chp-tbl th, .chp-tbl td { padding:4px; border-bottom:1px solid var(--rule); text-align:left; white-space:nowrap }
.chp-tbl th[scope="row"] .chp-tag { margin-left:0 }
.chp-tbl select { padding:2px 4px; font-size:12px }
/* (layout sweep 2026-11-12) opening "Each role's switches" pushed the whole dialog wider than the screen (a grid item is as wide
   as its widest table): the table scrolls inside its own box, and the long headings wrap so it fits a desktop dialog */
.chp-body, .chp-body > *, #chp_cf > *, .chp-adv { min-width:0 } .chp-tbl thead th { white-space:normal; vertical-align:bottom; line-height:1.25 }
.chp-rl { list-style:none; margin:0; padding:0; display:grid; gap:6px }
.chp-rl li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:6px 8px; background:var(--panel2); border-radius:8px }
.chp-rl li .chp-tag { margin-left:0; font-size:12px }
.chp-ra { margin-left:auto; display:flex; gap:4px } .chp-ra button { padding:2px 8px; font-size:12px }
.chp-rf { border:1px solid var(--rule); border-radius:8px; padding:10px }
.chp-cols { display:flex; flex-wrap:wrap; gap:6px }
.chp-col { position:relative; cursor:pointer } .chp-col input { position:absolute; opacity:0; inset:0 }
.chp-sw { --chp-c:var(--mut); display:block; width:22px; height:22px; border-radius:50%; background:var(--chp-c); border:2px solid transparent }
.chp-col input:checked + .chp-sw { border-color:var(--ink); box-shadow:0 0 0 2px var(--panel) inset }
.chp-col input:focus-visible + .chp-sw { outline:2px solid var(--key); outline-offset:2px }
.chp-pow { border:1px solid var(--rule); border-radius:8px; padding:6px 10px; display:grid; gap:4px; margin:0 }
.chp-prof .chp-chips { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 }
.chp-prof .chp-tag { margin-left:0 }
.chp-chip { padding:0; border:0; background:transparent; border-radius:999px }
.chp-chip[aria-pressed="false"] .chp-tag { opacity:.55; border-style:dashed }
.chp-chip[aria-pressed="true"] .chp-tag::before { content:"\2713 " }
.chp-ilk { margin-left:6px; font-size:11.5px; color:var(--mut); white-space:nowrap }
/* ==== CHP:CSS-END */
/* ==== NX:CSS-START floor-next1 (2026-11-12): the same rules in mothership/index.html and floor.css */
.nx-bell fieldset { border:1px solid var(--rule); border-radius:10px; padding:8px 10px 10px; margin:0 0 10px; display:grid; gap:6px; min-width:0 }
.nx-bell legend { padding:0 6px; font-weight:700; overflow-wrap:anywhere }
.nx-opt { display:flex; gap:10px; align-items:flex-start; padding:6px 8px; border-radius:8px; cursor:pointer; line-height:1.35 }
label.nx-opt { align-items:flex-start }   /* (layout sweep 2026-11-12) the dialog's label rule centered the dot between the two lines; it sits on the first */
.nx-opt:hover { background:var(--panel2) } .nx-opt input { margin-top:3px; flex:none; width:auto }
.nx-opt span { display:grid; gap:2px; min-width:0 } .nx-opt small { color:var(--mut); font-size:12.5px }
.nx-opt:has(input:checked) { background:color-mix(in srgb, var(--key) 10%, transparent) }
.nx-row { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:8px }
.nx-row .nx-go { font-weight:600 }
.nx-jumps { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px }
.nx-jump { display:inline-flex; align-items:center; gap:4px; padding:2px 10px; font-size:12.5px; border-radius:999px; background:transparent; border:1px solid color-mix(in srgb, var(--key) 45%, var(--rule)); color:var(--key); cursor:pointer; min-height:0 }
.nx-jump:hover, .nx-jump:focus-visible { background:color-mix(in srgb, var(--key) 10%, transparent) }
#cm_msgs .cm-m.mention, #cm_tl .cm-m.mention { background:color-mix(in srgb, var(--key) 7%, transparent); box-shadow:inset 2px 0 color-mix(in srgb, var(--key) 75%, transparent) }
#cm_msgs .cm-m.mention:hover, #cm_tl .cm-m.mention:hover { background:color-mix(in srgb, var(--key) 11%, transparent) }
.nx-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }
.nx-tt { cursor:pointer; border-radius:6px } .nx-tt:hover, .nx-tt:focus-visible { text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--key) 60%, transparent); text-underline-offset:3px }
.nx-about { display:grid; gap:10px; min-width:0; overflow-wrap:anywhere }
.nx-about-pv { margin:4px 16px 14px; padding:14px 16px; border:1px solid var(--rule); border-left:3px solid var(--key); border-radius:10px; background:var(--panel) }
.nx-ah { display:flex; align-items:center; gap:8px; flex-wrap:wrap } .nx-ah b { font-size:15px }
.nx-tag { font-size:11.5px; padding:1px 8px; border-radius:999px; border:1px solid var(--rule); color:var(--mut) }
.nx-desc { margin:0; line-height:1.5 }
.nx-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(88px, 1fr)); gap:8px; margin:0 }
.nx-facts div { padding:8px 10px; border-radius:8px; background:var(--panel2); min-width:0 }
.nx-facts dt { font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--mut) } .nx-facts dd { margin:2px 0 0; font-weight:600 }
.nx-rules ol { margin:6px 0 0; padding-left:22px; display:grid; gap:4px; line-height:1.45 }
.nx-row-l { justify-content:flex-start; margin-top:0 }
.nx-rform { display:grid; gap:8px } .nx-rform textarea { width:100%; box-sizing:border-box; font:inherit; min-height:150px; resize:vertical }
/* ==== NX:CSS-END */
/* ==== FN2:CSS-START floor-next2 (2026-11-12): the same rules in mothership/index.html and floor.css */
.fn2-cool { border-left:3px solid var(--key) } .fn2-cool > span { display:grid; gap:4px; line-height:1.45 }
.fn2-why { color:var(--mut); font-size:12.5px; overflow-wrap:anywhere }
.fn2-prof { display:grid; gap:6px; justify-items:start }
.fn2-cf { display:grid; gap:8px } .fn2-cf textarea { width:100%; box-sizing:border-box; font:inherit; resize:vertical }
.fn2-len { border:1px solid var(--rule); border-radius:10px; padding:6px 8px 8px; margin:0; display:grid; gap:4px; min-width:0 }
.fn2-len legend { padding:0 6px; font-weight:700 }
.fn2-lg { max-height:min(60vh, 520px); overflow-y:auto }
.fn2-ll { list-style:none; margin:0; padding:0; display:grid; gap:2px }
.fn2-ll li { display:grid; grid-template-columns:minmax(120px, 160px) 1fr; gap:10px; padding:7px 4px; border-bottom:1px solid var(--rule); line-height:1.4; overflow-wrap:anywhere }
.fn2-ll time { color:var(--mut); font-size:12.5px; font-variant-numeric:tabular-nums }
@media (max-width:560px) { .fn2-ll li { grid-template-columns:1fr; gap:2px } }
.fn2-gate { border-left:3px solid var(--key) } .fn2-gate > span { line-height:1.45 } .fn2-gate .go { flex:none }
.fn2-rl { margin:6px 0 4px; padding-left:22px; display:grid; gap:6px; line-height:1.5; overflow-wrap:anywhere }
.fn2-ir { display:grid; gap:6px; margin:10px 0; padding:10px 12px; border:1px solid var(--rule); border-left:3px solid var(--key); border-radius:10px; background:var(--panel2) }
.fn2-ir textarea { width:100%; box-sizing:border-box; font:inherit; resize:vertical }
a.fn2-lk { color:var(--key); text-decoration:underline; text-decoration-color:color-mix(in srgb, var(--key) 50%, transparent); text-underline-offset:2px; overflow-wrap:anywhere; cursor:pointer }
a.fn2-lk:hover, a.fn2-lk:focus-visible { text-decoration-color:var(--key) }
.fn2-leave { display:grid; gap:8px } .fn2-url { margin:0; padding:8px 10px; border-radius:8px; background:var(--panel2); font:500 12.5px/1.4 ui-monospace, Consolas, monospace; overflow-wrap:anywhere }
.fn2-rem { display:flex; gap:8px; align-items:flex-start; font-size:13px; line-height:1.35 } .fn2-rem input { width:auto; margin:2px 0 0; flex:none }
label.fn2-rem { align-items:flex-start }   /* (layout sweep 2026-11-12) the box sits on the first line when the words wrap on a phone */
.fn2-qsbg { align-items:flex-start !important; padding-top:12vh }
.modal.fn2-qs { width:min(560px, calc(100vw - 32px)); padding:10px; display:grid; gap:6px }
.fn2-qs input { width:100%; box-sizing:border-box; font-size:16px; padding:10px 12px; border-radius:8px }
.fn2-ql { list-style:none; margin:0; padding:0; max-height:min(52vh, 420px); overflow-y:auto; display:grid; gap:1px }
.fn2-qo { display:flex; align-items:baseline; gap:10px; padding:7px 10px; border-radius:8px; cursor:pointer; min-width:0 }
.fn2-qo[aria-selected="true"], .fn2-qo:hover { background:color-mix(in srgb, var(--key) 14%, transparent) }
.fn2-ql1 { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0 } .fn2-ql2 { color:var(--mut); font-size:12.5px; white-space:nowrap; margin-left:auto }
.fn2-qg { padding:6px 10px 2px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut) }
.fn2-qn { padding:10px; color:var(--mut) } .fn2-qh { padding:2px 4px; font-size:12px }
.fn2-qh kbd, .fn2-ks kbd { font:500 11px ui-monospace, Consolas, monospace; padding:1px 5px; border:1px solid var(--rule); border-radius:4px }
.fn2-ks { display:grid; gap:6px; margin:10px 0 0 } .fn2-ks div { display:grid; grid-template-columns:minmax(150px, auto) 1fr; gap:12px; align-items:baseline } .fn2-ks dd { margin:0 }
.fn2-cbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 16px; border-bottom:1px solid var(--rule); position:sticky; top:0; z-index:2; background:var(--panel) }
.fn2-cbar .meta { margin-right:auto } .fn2-cbar-s { padding:6px 16px }
.fn2-sort { display:flex; align-items:center; gap:6px; font-size:13px } .fn2-sort select { width:auto }
.fn2-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:12px; padding:14px 16px }
.fn2-card { display:grid; gap:8px; align-content:start; padding:12px; border:1px solid var(--rule); border-radius:12px; background:var(--panel); cursor:pointer; min-width:0; transition:border-color .12s, box-shadow .12s }
.fn2-card:hover, .fn2-card:focus-visible { border-color:color-mix(in srgb, var(--key) 55%, var(--rule)); box-shadow:0 2px 10px color-mix(in srgb, var(--key) 12%, transparent); outline:none }
.fn2-ch { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap } .fn2-ch .up { color:var(--up, #2e7d5b) } .fn2-ch .dn { color:var(--dn, #b8473a) }
.fn2-thumb { border-radius:8px; overflow:hidden; background:var(--panel2); min-height:40px; display:grid; place-items:center }
.fn2-thumb svg { display:block; width:100%; height:auto; max-height:120px }
.fn2-q { margin:0; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere }
.fn2-flags { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px }
.fn2-flags li { font-size:11.5px; padding:2px 8px; border-radius:999px; border:1px solid color-mix(in srgb, var(--key) 40%, var(--rule)); background:color-mix(in srgb, var(--key) 8%, transparent) }
.fn2-flags-none { font-size:12px; min-height:0 }
.fn2-cf2 { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; color:var(--mut) } .fn2-n { font-weight:600; color:var(--key) } .fn2-n.zero { font-weight:400; color:var(--mut) }
.fn2-empty { margin:24px 16px; padding:18px; border:1px dashed var(--rule); border-radius:12px; display:grid; gap:6px }
@media (max-width:560px) { .fn2-cards { grid-template-columns:1fr; padding:10px } }
/* ==== FN2:CSS-END */
/* ==== SBD:CSS-START stats breakdown (2026-11-12): the same rules in mothership/index.html and floor.css */
.sbd-row .fx-thc { display:none }
/* (found here) on a phone the room rail's grid (.rl-on, floor-sidebar) beat the one-column phone grid: the channel sat in a 292px column with a blank strip */
@media (max-width:760px) { #room_community.rl-on, #room_community.rl-on.threaded { grid-template-columns:minmax(0,1fr) } }
/* (found here) a thread with its parent line (074) gave that line the stretchy row: a tall empty box over two replies */
.cm-thread:has(> .fx-tpar) { grid-template-rows:auto auto minmax(0,1fr) auto } .cm-thread > .fx-tpar { max-height:30vh; overflow-y:auto }
.sbd-post { display:grid; gap:10px; margin:4px 0 2px; padding:14px 16px 12px; max-width:640px; box-sizing:border-box; border:1px solid var(--rule); border-radius:14px; background:var(--panel); min-width:0; overflow-wrap:anywhere }
.sbd-kick { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--key) }
.sbd-title { margin:0; font-size:17px; line-height:1.3; font-weight:700 }
.sbd-pat { margin:0; color:var(--mut); line-height:1.45 }
.sbd-sec { display:grid; gap:6px; padding:10px 12px; border-radius:10px; background:var(--panel2); min-width:0 }
.sbd-sec h4 { margin:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--mut) }
.sbd-sec p { margin:0; line-height:1.5 }
.sbd-you { border-left:3px solid var(--key) }
.sbd-tag { font-size:11px; font-weight:600; letter-spacing:0; text-transform:none; padding:1px 8px; border-radius:999px; border:1px solid color-mix(in srgb, var(--key) 40%, var(--rule)); color:var(--key); background:color-mix(in srgb, var(--key) 8%, transparent) }
.sbd-fine { font-size:12px; color:var(--mut) }
.sbd-thin { color:var(--mut) }
.sbd-wait { font-style:italic }
.sbd-why, .sbd-try { background:transparent; padding:2px 0 }
.sbd-try { padding:10px 12px; border:1px dashed color-mix(in srgb, var(--key) 45%, var(--rule)); background:transparent }
.sbd-inc { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-top:6px; border-top:1px solid var(--rule); font-size:12.5px; color:var(--mut) }
.sbd-inc > span:first-child { flex:1 1 220px; min-width:0 }
.sbd-ins > .ins-row { flex:1 1 auto; min-width:0; margin:0 }
.sbd-soon { font-size:11px; padding:1px 8px; border-radius:999px; border:1px solid var(--rule); white-space:nowrap }
.sbd-lk { border:0; background:transparent; padding:0; min-height:0; color:var(--key); font:inherit; font-size:12.5px; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; cursor:pointer }
.sbd-foot { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.sbd-disc { font-weight:600 }
.sbd-foot .meta { font-size:12px }
.sbd-bar > span { line-height:1.45 } .sbd-bar button { flex:none }
/* (floorphone 11-13) a phone: the note on its own full-width line or two, the button under it (it was a narrow column of text
   beside the button, 5-8 lines tall); the weekly card uses the whole width (the avatar sits beside the name, not beside the card) */
.sbd-bar { flex-wrap:wrap } .sbd-bar > span { flex:1 1 260px; min-width:0 }
@media (max-width:560px) {
  .sbd-bar { gap:6px 10px; padding:8px 10px; font-size:12.5px } .sbd-bar > span { flex-basis:100%; line-height:1.35 } .sbd-bar button { min-height:34px; padding:4px 12px }
  .cm-m:has(> div > .tx > .sbd-post) { grid-template-columns:minmax(0,1fr); padding-left:8px; padding-right:8px }
  .cm-m:has(> div > .tx > .sbd-post) > .gut { position:absolute; left:8px; top:2px }
  .cm-m:has(> div > .tx > .sbd-post) .hd { padding-left:46px; min-height:38px; align-items:center }
}
.sbd-sheet { display:grid; gap:8px; line-height:1.5; max-width:520px } .sbd-sheet p { margin:0 }
@media (max-width:560px) { .sbd-post { padding:12px 12px 10px; border-radius:12px } .sbd-title { font-size:16px } .sbd-sec { padding:9px 10px } }
/* This Week: #stats-breakdown's own spot at the top of the TiltLab room (a calm highlight, never the red count) */
.tlr-sec .tlr-ic { margin-right:5px; letter-spacing:0; font-size:11px }
.tlr-sec.sbd-wk-h { color:var(--key) }
.cm-ch.sbd-wk-row { flex-wrap:wrap; row-gap:0; margin:2px 0 4px; border:1px solid color-mix(in srgb, var(--key) 22%, transparent); background:color-mix(in srgb, var(--key) 5%, transparent); transition:background .4s ease, border-color .4s ease }
.cm-ch.sbd-wk-row > .nm { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.cm-ch.sbd-wk-row > .cnt { display:none }
.sbd-wk-n { flex:none; margin-left:auto; padding:0 7px; border-radius:999px; border:1px solid color-mix(in srgb, var(--key) 35%, var(--rule)); color:var(--key); font-size:10.5px; font-weight:600; line-height:17px; white-space:nowrap }
.sbd-wk-sub { flex:1 0 100%; box-sizing:border-box; min-width:0; padding-left:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--mut); font-size:11.5px; font-weight:400; line-height:1.35 }
.cm-ch.sbd-wk-new { color:var(--ink); background:color-mix(in srgb, var(--key) 13%, transparent); border-color:color-mix(in srgb, var(--key) 50%, transparent); animation:sbd-wk-in 1.4s ease-out 1 }
.cm-ch.sbd-wk-new .sbd-wk-n { background:color-mix(in srgb, var(--key) 16%, transparent) }
@keyframes sbd-wk-in { from { box-shadow:0 0 0 0 color-mix(in srgb, var(--key) 45%, transparent) } to { box-shadow:0 0 0 6px transparent } }
.sbd-empty { margin:10px 0 4px }
.sbd-shape { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none }
.sbd-shape li { padding:3px 10px; border-radius:999px; border:1px dashed color-mix(in srgb, var(--key) 40%, var(--rule)); color:var(--mut); font-size:12px }
@media (prefers-reduced-motion: reduce) { .cm-ch.sbd-wk-new { animation:none } }
/* ==== SBD:CSS-END */
/* This week's stat in Prep (app only): one calm card on a Monday morning, out of the way after */
.sbdp { display:grid; gap:8px; padding:14px 16px; border-left:3px solid var(--key); animation:sbdp-in .45s ease-out 1 }
.sbdp-top { display:flex; align-items:center; gap:8px } .sbdp-top .sbd-kick { flex:1; min-width:0 }
.sbdp-x { flex:none; border:0; background:transparent; color:var(--mut); font-size:18px; line-height:1; padding:2px 6px; min-height:0; cursor:pointer } .sbdp-x:hover { color:var(--ink) }
.sbdp-t { margin:0; font-size:16px; line-height:1.3; font-weight:700 }
/* import first (2026-11-13): Prep's Import Your Past Trades card, its found-it state and its small link once he has enough */
.imp-card { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; border-left:3px solid var(--key); padding:14px 18px }
.imp-card .imp-body { flex:1 1 360px; min-width:0; display:grid; gap:4px }
.imp-card .imp-t { margin:0; font-size:18px; line-height:1.3; font-weight:700 }
.imp-card .imp-v { margin:0; font-size:15px; color:var(--ink) }
.imp-card p.meta { margin:0 }
.imp-acts { display:flex; flex-wrap:wrap; gap:8px; flex:0 1 auto }
.imp-done { display:grid; gap:8px } .imp-done .imp-top { display:flex; align-items:center; gap:8px } .imp-done .imp-top .sbd-kick { flex:1 } .imp-done .sbd-fine { margin:0 }
.imp-mini { margin:0; font-size:13px }
.tb-imp { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px }
.sbm-empty-acts { gap:8px; flex-wrap:wrap }
@media (max-width:760px) { .imp-card { padding:12px 14px } .imp-acts { width:100% } .imp-acts button { flex:1 1 auto } }
.sbdp p { margin:0; line-height:1.5 } .sbdp .sbd-fine { margin-top:-4px }
.sbdp-acts { display:flex; gap:8px; flex-wrap:wrap; margin-top:2px }
@keyframes sbdp-in { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) { .sbdp { animation:none } }
/* ==== SBM:CSS-START Your Breakdown (2026-11-12, statsbd_mine.py): Review > Breakdown and Your month in process. App only */
#room_review:not(.rvt-sbd) #rv_sbm, #room_review.rvt-sbd :is(#rv_recap, #rv_disc, #rv_models, #execp, #rv_fp, #rv_tf, #rv_dna, .rv-top, #rv_body) { display:none !important }
body #room_review.rvt-sbd { grid-template-columns:minmax(0, 1100px) }
.sbm { display:grid; gap:14px; max-width:860px; min-width:0; overflow-wrap:anywhere }
.sbm-hd { display:grid; gap:4px }
.sbm-kick { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--key) }
.sbm-kick .sbd-tag { letter-spacing:0; text-transform:none }
.sbm-head { margin:0; font-size:20px; line-height:1.35; font-weight:700; color:var(--ink) }
.sbm-sub { margin:0; font-size:13px; color:var(--mut) }
.sbm-sample { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; padding:8px 12px; border-radius:10px; border:1px dashed color-mix(in srgb, var(--key) 45%, var(--rule)); font-size:13px; color:var(--mut) }
.sbm-sample span { flex:1 1 240px; min-width:0 }
.sbm-top { display:grid; gap:12px }
.sbm-card { display:grid; gap:8px; padding:14px 16px; border:1px solid var(--rule); border-radius:14px; background:var(--panel); min-width:0; animation:sbm-in .5s ease-out both }
.sbm-top .sbm-card:nth-child(2) { animation-delay:.08s } .sbm-top .sbm-card:nth-child(3) { animation-delay:.16s }
.sbm-card.sbm-hero { border-left:3px solid var(--key); padding:16px 18px }
.sbm-card h3 { margin:0; font-size:16px; line-height:1.3; font-weight:700 }
.sbm-hero h3 { font-size:18px }
.sbm-w1 { font-size:12.5px; color:var(--key); line-height:1.45 }
.sbm-card p { margin:0; line-height:1.5 }
.sbm-find { font-weight:600; color:var(--ink) }
.sbm-more { color:var(--ink) }
.sbm-thin .sbm-find, .sbm-thin .sbm-more { font-weight:400; color:var(--mut) }
.sbm-sec { display:grid; gap:4px; padding:10px 12px; border-radius:10px; background:var(--panel2) }
.sbm-sec h4 { margin:0; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mut) }
.sbm-try { background:transparent; border:1px dashed color-mix(in srgb, var(--key) 45%, var(--rule)) }
.sbm-gd > summary, .sbm-all > summary, .sbm-row > summary { cursor:pointer; color:var(--key); font-size:13px; list-style:none }
.sbm-gd > summary::-webkit-details-marker, .sbm-all > summary::-webkit-details-marker, .sbm-row > summary::-webkit-details-marker { display:none }
.sbm-gd > summary::before, .sbm-all > summary::before { content:"\25B8"; display:inline-block; width:14px; transition:transform .2s ease }
.sbm-gd[open] > summary::before, .sbm-all[open] > summary::before { transform:rotate(90deg) }
.sbm-gd[open] { display:grid; gap:8px }
.sbm-ft { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--mut) }
.sbm-lk { border:0; background:transparent; padding:0; min-height:0; color:var(--key); font:inherit; font-size:12.5px; text-decoration:underline; text-underline-offset:2px; cursor:pointer }
.sbm-month { display:grid; gap:10px; padding:16px 18px; border:1px solid var(--rule); border-radius:14px; background:color-mix(in srgb, var(--key) 4%, var(--panel)); min-width:0; animation:sbm-in .5s ease-out .2s both }
.sbm-mh { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.sbm-mh h3 { flex:1 1 auto; margin:0; font-size:16px; font-weight:700 }
.sbm-seg button { font-size:12.5px; padding:4px 10px }
.sbm-mhead { margin:0; font-size:15px; line-height:1.45; font-weight:600 }
.sbm-ml { display:grid; gap:6px; margin:0; padding:0; list-style:none }
.sbm-ml li { display:grid; gap:2px; padding:8px 12px; border-radius:10px; background:var(--panel2) }
.sbm-ml li span { font-size:13px; color:var(--mut) }
.sbm-ml.sbm-up li { border-left:3px solid var(--c-up, var(--key)) }
.sbm-mt { margin:2px 0 0; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mut) }
.sbm-if { margin:0; line-height:1.5; padding:10px 12px; border-radius:10px; border:1px dashed color-mix(in srgb, var(--key) 45%, var(--rule)) }
.sbm-fine { margin:0; font-size:12px; color:var(--mut) }
.sbm-all { display:grid; gap:10px; padding:12px 16px; border:1px solid var(--rule); border-radius:14px; background:var(--panel) }
.sbm-all > summary { font-size:14px; font-weight:600 }
.sbm-gh { margin:6px 0 0; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mut) }
.sbm-row { border-top:1px solid var(--rule); padding:8px 0 }
.sbm-same { margin:2px 0 6px } .sbm-compact { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); column-gap:18px } .sbm-compact > .sbm-row[open] { grid-column:1 / -1 }
.sbm-row > summary { display:grid; gap:2px; color:var(--ink) }
.sbm-row > summary b { font-size:14px; font-weight:600 }
.sbm-row > summary span { font-size:12.5px; color:var(--mut); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.sbm-row[open] > summary span { display:none }
.sbm-row > .sbm-card { margin-top:8px; animation:none }
.sbm-empty { display:grid; gap:10px; padding:18px; border:1px solid var(--rule); border-radius:14px; background:var(--panel) }
.sbm-empty h3 { margin:0; font-size:17px }
.sbm-empty p { margin:0; line-height:1.5 }
.sbm-empty .go { justify-self:start }
.sbm-foot { margin:0; font-size:12px; color:var(--mut) }
.sbmp { display:grid; gap:8px; padding:14px 16px; border-left:3px solid var(--key); animation:sbdp-in .45s ease-out 1 }
.sbmp p { margin:0; line-height:1.5 }
@keyframes sbm-in { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) { .sbm-card, .sbm-month, .sbmp { animation:none } .sbm-gd > summary::before, .sbm-all > summary::before { transition:none } }
@media (max-width:560px) { .sbm-head { font-size:18px } .sbm-card, .sbm-card.sbm-hero, .sbm-month { padding:12px; border-radius:12px } .sbm-all { padding:10px 12px } }
.sbm-focus { box-shadow:0 0 0 2px color-mix(in srgb, var(--key) 55%, transparent); transition:box-shadow .6s ease }
@media (prefers-reduced-motion: reduce) { .sbm-focus { transition:none } }
/* ==== SBM:CSS-END */
/* ==== CHX:CSS-START floor-chanux (2026-11-12): the channel menu, drag and drop; the same rules in mothership/index.html and floor.css */
.chx-menu { min-width:200px; max-width:min(280px, calc(100vw - 16px)) }
.chx-menu .chx-mh { padding:6px 10px 4px; font-size:11.5px; font-weight:600; color:var(--mut); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chx-menu .chx-sep { height:1px; margin:4px 6px; background:var(--rule) }
.chx-menu .fsb-mi[disabled] { opacity:.45; cursor:default } .chx-menu .fsb-mi[disabled]:hover { background:transparent }
.chx-menu .chx-danger { color:var(--dn) }
.chx-menu.chx-mouse .fsb-mi:focus { outline:none }
#cm_chans .cm-ch.chx-ctx { background:var(--panel2); color:var(--ink) }
.byc-room.chx-arr > .byc-grp > .cm-ch[draggable="true"] { cursor:grab }
#cm_chans .chx-dragging { opacity:.45 }
#cm_chans .cm-ch.chx-over-t { box-shadow:inset 0 2px 0 var(--key) }
#cm_chans .cm-ch.chx-over-b { box-shadow:inset 0 -2px 0 var(--key) }
#cm_chans .byc-cat.chx-over-h { box-shadow:inset 0 -2px 0 var(--key); color:var(--key) }
.chx-prev { min-height:1.2em; overflow-wrap:anywhere }
.chx-cats { display:grid; gap:6px; border:0; padding:0; margin:0 } .chx-cats legend { padding:0 0 4px; font-weight:600 }
.chx-opt { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0 } .chx-opt > span { overflow-wrap:anywhere }
.chx-opt > input:not([type=radio]) { flex:1 1 160px; min-width:0 }
.byc-ebl { margin:6px 0 0; padding-left:18px; display:grid; gap:4px; overflow-wrap:anywhere }
@media (max-width:760px) { .chx-menu .fsb-mi { min-height:40px; font-size:14.5px } }
/* ==== CHX:CSS-END */
/* ==== CIX:CSS-START picture menu (2026-11-12): Copy / Save a picture in TiltLab's own window; the same rules in mothership/index.html and floor.css */
.fsb-menu.cix-menu { z-index:10001 }
/* ==== CIX:CSS-END */
/* ==== RST:CSS-START room settings (2026-11-12): one dialog for a room's owner settings; the same rules in mothership/index.html and floor.css */
.rst-tabs { gap:4px } .rst-tabs button { padding:4px 10px }
.rst-pick select { width:100% }
.rst-icon { display:flex; align-items:center; gap:10px }
.rst-face { flex:none; width:48px; height:48px }
.rst-rules { margin:0; padding-left:20px; display:grid; gap:4px; overflow-wrap:anywhere }
.modal .row.rst-acts { justify-content:flex-start }   /* (floorqa 11-13) .modal .row put them on the right */
.rst-danger { margin-top:14px; border:1px solid color-mix(in srgb, var(--dn) 55%, transparent); border-radius:8px; padding:10px 12px; display:grid; gap:8px }
.rst-danger h4 { margin:0; color:var(--dn); font-size:13px; text-transform:uppercase; letter-spacing:.04em }
.rst-danger .meta { margin:0 }
button.rst-del { color:var(--dn); border-color:color-mix(in srgb, var(--dn) 55%, transparent); justify-self:start }
button.rst-del:not([disabled]):hover { background:color-mix(in srgb, var(--dn) 12%, transparent) }
button.rst-del[disabled] { opacity:.5; cursor:default }
/* (floorqa 11-13) the name to type: a line, then the box, then the buttons; the Danger Zone sits outside the form, so it has its own rules */
.rst-danger .rst-conf { display:grid; gap:6px; font-size:13px; min-width:0 } .rst-danger .rst-conf > span { overflow-wrap:anywhere }
.rst-danger .rst-conf input { width:100%; min-width:0; box-sizing:border-box }
.rst-danger .crl-acts { justify-content:flex-start } #rst_dz { display:grid; gap:10px; justify-items:stretch } #rst_dz > .rst-del { justify-self:start }
/* (floorqa 11-13) the dialog keeps its top edge when a tab is picked (centered, the title and tabs jumped with each tab's height) */
@media (min-width:761px) and (min-height:640px) { #chp_dlg.modal-bg { place-items:start center } #chp_dlg > .modal { margin-top:min(12vh, 110px); max-height:calc(100vh - min(12vh, 110px) - 32px) } }
/* ==== RST:CSS-END */
/* ==== MLW:CSS-START member list (memberlist 2026-11-12): the name first, its badges on a compact second line when they
   don't fit; a handle on the list's left edge resizes it on desktop widths (the MLW block in the script) */
.cm-mem .mlw-c { flex:1 1 0; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:1px 6px }
.cm-mem .mlw-c > .who { flex:0 1 auto; min-width:0; max-width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:1px 5px }
.cm-mem .mlw-c > .who > .wn { flex:0 0 auto; min-width:0; max-width:100% }
.cm-mem .mlw-c > .who > :not(.wn), .cm-mem .mlw-c > :not(.who) { flex:none; margin-left:0; line-height:16px; white-space:nowrap }
.mlw-h { display:none }
#room_community { --mlw-l:236px } #room_community.rl-on { --mlw-l:308px }
@media (min-width:1001px) {
  #room_community:not(.threaded):not(.nonmember) > .cm-members { grid-column:3; grid-row:1 }
  #room_community:not(.threaded):not(.nonmember) > .mlw-h { display:block; grid-column:3; grid-row:1; justify-self:start; align-self:stretch; position:relative; z-index:4; width:10px; margin-left:-5px; cursor:col-resize; touch-action:none; outline:none }
  #room_community.mlw-on:not(.threaded):not(.nonmember) { grid-template-columns:var(--mlw-l) minmax(0,1fr) clamp(180px, var(--mlw-w, 216px), min(400px, calc(100% - var(--mlw-l) - 420px))) }
}
.mlw-h::after { content:""; position:absolute; top:0; bottom:0; left:4px; width:2px; border-radius:2px; background:var(--c-accent, var(--key)); opacity:0; transition:opacity .12s }
.mlw-h:hover::after, .mlw-h:focus-visible::after, body.mlw-drag .mlw-h::after { opacity:1 }
.mlw-h:focus-visible::after { left:3px; width:4px }
body.mlw-drag, body.mlw-drag * { cursor:col-resize !important; user-select:none }
@media (prefers-reduced-motion:reduce) { .mlw-h::after { transition:none } }
/* ==== MLW:CSS-END */
/* ==== RPS:CSS-START This Room's Process (sbd-rooms 2026-11-13): the same rules in mothership/index.html and floor.css */
.cm-top > .rps-btn { flex:none; white-space:nowrap }
@media (max-width:1000px) { .cm-top .rps-bl { display:none } }
.rps-card { display:grid; gap:10px; max-width:520px; line-height:1.45 } .rps-card p { margin:0 }
.rps-seg { display:inline-flex; justify-self:start; border:1px solid var(--rule); border-radius:8px; overflow:hidden }
.rps-seg button { border:0; border-radius:0; background:var(--panel); color:var(--mut); padding:5px 12px; font-size:13px }
.rps-seg button + button { border-left:1px solid var(--rule) }
.rps-seg button[aria-pressed="true"] { background:var(--panel2); color:var(--ink); font-weight:600 }
.rps-sub { font-size:12px }
.rps-sum { font-size:13.5px }
.rps-l { list-style:none; margin:0; padding:0; display:grid; gap:10px }
.rps-r { display:grid; gap:4px; padding:9px 12px; border-radius:10px; background:var(--panel2); min-width:0 }
.rps-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px } .rps-h span { min-width:0 } .rps-h b { font-size:15px; font-variant-numeric:tabular-nums }
.rps-thin .rps-h b { color:var(--mut) }
.rps-bar { height:6px; border-radius:999px; background:color-mix(in srgb, var(--key) 12%, transparent); overflow:hidden }
.rps-bar i { display:block; height:100%; border-radius:999px; background:color-mix(in srgb, var(--key) 65%, var(--panel)) }
.rps-w0 { width:0 } .rps-w1 { width:10% } .rps-w2 { width:20% } .rps-w3 { width:30% } .rps-w4 { width:40% } .rps-w5 { width:50% }
.rps-w6 { width:60% } .rps-w7 { width:70% } .rps-w8 { width:80% } .rps-w9 { width:90% } .rps-w10 { width:100% }
.rps-empty { display:grid; gap:6px; padding:12px 14px; border:1px dashed color-mix(in srgb, var(--key) 40%, var(--rule)); border-radius:10px }
.rps-you { padding-top:8px; border-top:1px solid var(--rule) }
.rps-what summary { cursor:pointer; font-size:12.5px; color:var(--key) }
@media (max-width:560px) { .rps-r { padding:8px 10px } .rps-seg button { padding:5px 10px } }
/* ==== RPS:CSS-END */
/* ==== SDM:CSS-START the TiltLab team's badge on their DMs in the list (staff-dm 2026-11-13): the same rule in index.html and floor.css */
.cm-ch .tlr-team { flex:none; margin-left:0 }
/* ==== SDM:CSS-END */
/* ==== BL:CSS-START The Bottom Line (owner 2026-11-18): the trader's own ledger - payouts, expenses, prop accounts */
body.room-bottom #stage { display:none }
#room_bottom { overflow-y:auto; padding:18px 22px 48px; display:grid; gap:14px; align-content:start; width:100%; max-width:none; margin-left:0 !important;
  --rw:1200px; padding-left:max(22px, calc((100% - 52px - var(--rw)) / 2 + 22px)); padding-right:max(22px, calc((100% - 52px - var(--rw)) / 2 + 22px)) }
#room_bottom:not([hidden]) { animation:roomIn .45s cubic-bezier(.2,.8,.2,1) }
#room_bottom > * { min-width:0 }
.bl-top { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 18px }
.bl-title { display:grid; gap:2px; margin-right:auto }
.bl-title h2 { margin:0; font:700 22px/1.15 var(--f-disp); letter-spacing:.08em; color:var(--c-text) }
.bl-title p { margin:0; color:var(--c-muted); font-size:14px }
.bl-add { display:flex; flex-wrap:wrap; gap:8px }
.bl-add button { white-space:nowrap }
.bl-sync { margin:-6px 0 0; display:flex; align-items:center; gap:6px }
.bl-sync::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--c-faint); flex:none }
.bl-sync.ok::before { background:var(--c-up) } .bl-sync.wait::before { background:var(--c-warn) }
.bl-sync button { padding:2px 8px; font-size:12px }
.bl-alert { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 14px; border-radius:var(--r-card); border:1px solid color-mix(in srgb, var(--c-warn) 45%, var(--c-border));
  background:color-mix(in srgb, var(--c-warn) 7%, var(--c-card)); font-size:13.5px }
.bl-alert > span { flex:1 1 260px; min-width:0; line-height:1.4 } .bl-alert .bl-acts { display:flex; gap:6px; flex-wrap:wrap }
.bl-first { display:grid; gap:12px; justify-items:start; padding:28px 26px; border-radius:16px; border:1px solid var(--c-border);
  background:radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-accent) 14%, var(--c-card)), var(--c-card) 60%) }
.bl-first { grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr); align-items:center; gap:18px 28px } .bl-first-l { display:grid; gap:12px; justify-items:start }
.bl-first-eq { display:grid; gap:8px; justify-self:stretch } .bl-first-eq > div { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px; background:var(--c-panel); border:1px solid var(--c-border); font-size:13.5px; color:var(--c-muted) }
.bl-first-eq span { flex:1 } .bl-first-eq b { font:600 20px var(--f-num); width:20px; text-align:center } .bl-first-eq .bl-first-sum { border-color:color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); color:var(--c-text); font-weight:600 }
.bl-first h3 { margin:0; font:700 22px/1.2 var(--f-disp); color:var(--c-text) }
.bl-first p { margin:0; color:var(--c-muted); font-size:14px; line-height:1.5; max-width:62ch }
.bl-first .bl-acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px } .bl-first .bl-acts button { padding:9px 16px; font-size:14px }
.bl-first ul { margin:2px 0 0; padding-left:18px; color:var(--c-muted); font-size:13px; line-height:1.6 }
.bl-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px }
.bl-filters .seg { flex-wrap:wrap }
.bl-filters label { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--c-muted) }
.bl-filters select, .bl-filters input { font-size:13px; padding:4px 8px; max-width:220px }
.bl-custom { display:flex; flex-wrap:wrap; gap:8px }
.bl-hero-row { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr); gap:12px }
.bl-hero { position:relative; padding:22px 24px 20px; border-radius:16px; border:1px solid var(--c-border-strong); background:var(--c-card); display:grid; gap:6px; overflow:hidden }
.bl-hero::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--c-faint) }
.bl-hero.pos::before { background:var(--c-up) } .bl-hero.neg::before { background:var(--c-down) }
.bl-hero.pos { background:linear-gradient(135deg, color-mix(in srgb, var(--c-up) 9%, var(--c-card)), var(--c-card) 55%) }
.bl-hero.neg { background:linear-gradient(135deg, color-mix(in srgb, var(--c-down) 9%, var(--c-card)), var(--c-card) 55%) }
.bl-k { font:600 11.5px var(--f-body); letter-spacing:.12em; text-transform:uppercase; color:var(--c-muted) }
.bl-per { letter-spacing:.02em; text-transform:none; font-weight:500; color:var(--c-faint); margin-left:6px } .bl-per::before { content:"· " }
.bl-hero .bl-v { font:600 46px/1.05 var(--f-num); font-variant-numeric:tabular-nums; color:var(--c-text); letter-spacing:-.01em; overflow-wrap:anywhere }
.bl-hero.pos .bl-v { color:var(--c-up) } .bl-hero.neg .bl-v { color:var(--c-down) }
.bl-hero .bl-eq { font-size:13.5px; color:var(--c-muted); font-variant-numeric:tabular-nums }
.bl-hero .bl-say { font-size:13px; color:var(--c-text) }
.bl-card { padding:14px 16px; border-radius:var(--r-card); border:1px solid var(--c-border); background:var(--c-card); display:grid; gap:4px; align-content:start; min-width:0 }
.bl-card .bl-v { font:600 24px/1.15 var(--f-num); font-variant-numeric:tabular-nums; color:var(--c-text) }
.bl-card .bl-s { font-size:12.5px; color:var(--c-muted); line-height:1.4 }
.bl-be { align-content:center; gap:8px }
.bl-be .bl-v { font-size:22px }
.bl-bar { display:block; width:100%; height:10px } .bl-bar rect { rx:5px }
.bl-bar .bg { fill:var(--c-raised) } .bl-bar .fg { fill:var(--c-accent) } .bl-bar .fg.done { fill:var(--c-up) }
.bl-money { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px }
.bl-life { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px }
.bl-life .bl-card { padding:11px 13px; background:var(--c-panel) } .bl-life .bl-v { font-size:20px }
.bl-life .bl-k { letter-spacing:.06em; font-size:10.5px }
.bl-tabs { justify-self:start; margin-top:4px }
.bl-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px }
.bl-grid > .bl-wide { grid-column:1 / -1 }
.bl-card h3 { margin:0; font:600 14px var(--f-body); color:var(--c-text) } .bl-card h3 + .bl-s { margin-bottom:6px }
.bl-months { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:4px; align-items:end; padding-top:6px }
.bl-mcol { display:grid; justify-items:center; gap:3px; min-width:0 }
.bl-mcol svg { display:block; width:min(100%, 56px); height:150px; border-bottom:1px solid var(--c-border-strong) }
.bl-ml { font-size:11px; color:var(--c-muted); white-space:nowrap } .bl-mn { font:600 11.5px var(--f-num); font-variant-numeric:tabular-nums; white-space:nowrap }
#bl_dash { display:grid; gap:12px }
.bl-chart .rx { fill:var(--c-up) } .bl-chart .ex { fill:var(--c-down); opacity:.8 } .bl-chart .bk { fill:none; stroke:var(--c-up); stroke-width:1.5; stroke-dasharray:3 2; vector-effect:non-scaling-stroke }
.bl-legend { display:flex; gap:14px; font-size:12px; color:var(--c-muted) } .bl-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; background:var(--c-up) }
.bl-legend i.ex { background:var(--c-down) } .bl-legend i.bk { background:transparent; border:1.5px dashed var(--c-up); box-sizing:border-box }
.bl-line { height:220px }
.bl-tw { overflow-x:auto; margin:0 -4px } .bl-t { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums }
.bl-t th { text-align:right; font:600 11px var(--f-body); letter-spacing:.04em; text-transform:uppercase; color:var(--c-muted); padding:6px 8px; border-bottom:1px solid var(--c-border); white-space:nowrap }
.bl-t td { text-align:right; padding:8px; border-bottom:1px solid var(--c-border); white-space:nowrap }
.bl-t th:first-child, .bl-t td:first-child { text-align:left }
.bl-t tr:last-child td { border-bottom:0 }
.up-t { color:var(--c-up) } .dn-t { color:var(--c-down) }
.bl-cats { display:grid; gap:8px }
.bl-cat { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 10px; font-size:13px } .bl-cat .bl-bar { grid-column:1 / -1; height:6px }
.bl-cat .bl-bar .fg { fill:var(--c-down); opacity:.75 } .bl-cat.rf .bl-bar .fg { fill:var(--c-up) }
.bl-mets { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px }
.bl-met { padding:10px 12px; border-radius:10px; background:var(--c-panel); border:1px solid var(--c-border); display:grid; gap:2px }
.bl-met .bl-v { font:600 18px var(--f-num); color:var(--c-text) } .bl-met .bl-s { font-size:12px; color:var(--c-muted) }
.bl-met.na .bl-v { color:var(--c-faint) }
.bl-list { display:grid; gap:0; border:1px solid var(--c-border); border-radius:var(--r-card); background:var(--c-card); overflow:hidden }
.bl-row { display:grid; grid-template-columns:96px minmax(0, 1fr) auto auto; gap:4px 14px; align-items:center; padding:11px 14px; border-bottom:1px solid var(--c-border); font-size:13.5px }
.bl-row:last-child { border-bottom:0 }
.bl-row .bl-d { color:var(--c-muted); font-size:12.5px; font-variant-numeric:tabular-nums }
.bl-row .bl-w { display:grid; gap:2px; min-width:0 } .bl-row .bl-w b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.bl-row .bl-w small { color:var(--c-muted); font-size:12px; overflow-wrap:anywhere }
.bl-row .bl-amt { font:600 15px var(--f-num); font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap }
.bl-row .bl-amt small { display:block; font:400 11.5px var(--f-body); color:var(--c-muted) }
.bl-row .bl-acts { display:flex; gap:4px } .bl-row .bl-acts button { padding:3px 9px; font-size:12px }
.bl-row.dim { opacity:.62 }
.bl-chip { display:inline-block; padding:1px 8px; border-radius:999px; font:600 11px/1.6 var(--f-body); background:var(--c-raised); color:var(--c-muted); border:1px solid var(--c-border); margin-left:6px; vertical-align:1px }
.bl-chip.ok { color:var(--c-up); border-color:color-mix(in srgb, var(--c-up) 40%, var(--c-border)) } .bl-chip.wait { color:var(--c-warn); border-color:color-mix(in srgb, var(--c-warn) 40%, var(--c-border)) }
.bl-chip.bad { color:var(--c-down); border-color:color-mix(in srgb, var(--c-down) 40%, var(--c-border)) }
.bl-src { color:var(--c-faint); font-size:11.5px }
.bl-empty { padding:22px 16px; text-align:center; color:var(--c-muted); font-size:13.5px; display:grid; gap:10px; justify-items:center }
.bl-note { margin:2px 0 0; font-size:12.5px } .bl-note b { font-weight:600; color:var(--c-text) }
.modal.bl-dlg { width:min(520px, 100%); box-sizing:border-box; gap:12px } .modal.bl-dlg > * { min-width:0 }
.bl-form { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 12px }
.bl-form > label, .bl-form > .bl-f { display:grid; gap:4px; font-size:12.5px; color:var(--c-muted); align-content:start; margin:0 }
.bl-form > .bl-full { grid-column:1 / -1 }
.bl-form input:not([type=checkbox]), .bl-form select, .bl-form textarea { width:100%; box-sizing:border-box; font-size:14px; color:var(--c-text) }
.bl-form textarea { min-height:54px; resize:vertical }
.bl-form label.bl-chk { display:flex; gap:8px; align-items:flex-start; color:var(--c-text); font-size:13px }
.bl-form label.bl-chk input { margin-top:2px; flex:none }
.bl-form .seg { justify-self:start; flex-wrap:wrap }
.bl-opt { font-weight:400; color:var(--c-faint) }
.bl-err { color:var(--c-down); font-size:13px; margin:0 } .bl-err:empty { display:none }
.bl-dlg .row { flex-wrap:wrap }
.bl-amtin { position:relative } .bl-amtin input { font-variant-numeric:tabular-nums }
.bl-link { padding:0; border:0; background:none; color:var(--c-muted); font-size:12.5px; text-decoration:underline; text-underline-offset:3px; cursor:pointer }
.bl-link:hover, .bl-link:focus-visible { color:var(--c-text) }
.bl-trashl { margin:0; display:flex; gap:8px; align-items:center }
.modal.bl-cmpd, .modal.bl-trashd { width:min(640px, 100%); box-sizing:border-box; gap:12px } .modal.bl-cmpd > *, .modal.bl-trashd > * { min-width:0 }
.bl-cmp { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; table-layout:fixed }
.bl-cmp th, .bl-cmp td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--c-border); vertical-align:top; overflow-wrap:anywhere }
.bl-cmp thead th { font:600 11px var(--f-body); letter-spacing:.05em; text-transform:uppercase; color:var(--c-muted) }
.bl-cmp thead th small { display:block; text-transform:none; letter-spacing:0; font-weight:400; color:var(--c-faint) }
.bl-cmp tbody th { font-weight:500; color:var(--c-muted); width:32% }
.bl-cmp tr.diff td { color:var(--c-text); font-weight:600; background:color-mix(in srgb, var(--c-warn) 9%, transparent) }
.bl-cmp tr.diff th::after { content:"changed"; display:inline-block; margin-left:6px; padding:0 6px; border-radius:999px; font:600 10px/1.6 var(--f-body);
  color:var(--c-warn); border:1px solid color-mix(in srgb, var(--c-warn) 40%, var(--c-border)) }
.bl-cmp tr.same td { color:var(--c-muted) }
.bl-cmpw { overflow-x:auto }
.bl-trl { display:grid; border:1px solid var(--c-border); border-radius:var(--r-card); max-height:min(52vh, 460px); overflow-y:auto }
.bl-trl > div { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 12px; align-items:center; padding:9px 12px; border-bottom:1px solid var(--c-border); font-size:13px }
.bl-trl > div:last-child { border-bottom:0 } .bl-trl small { color:var(--c-muted); font-size:12px } .bl-trl button { padding:3px 10px; font-size:12px }
.bl-hint { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:6px 14px; align-items:center; padding:12px 14px; border-radius:var(--r-card);
  border:1px solid color-mix(in srgb, var(--c-accent) 40%, var(--c-border)); background:color-mix(in srgb, var(--c-accent) 7%, var(--c-card)); font-size:13.5px }
.bl-hint[hidden] { display:none } .bl-hint b { color:var(--c-text) } .bl-hint p { margin:2px 0 0; color:var(--c-muted); line-height:1.45 }
.bl-hint .bl-acts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end }
@media (max-width:760px) { .bl-hint { grid-template-columns:minmax(0, 1fr) } .bl-hint .bl-acts { justify-content:flex-start } .bl-cmp tbody th { width:30% } }
@media (max-width:1100px) { .bl-life { grid-template-columns:repeat(3, minmax(0, 1fr)) } }
@media (max-width:860px) {
  .bl-hero-row, .bl-grid, .bl-first { grid-template-columns:minmax(0, 1fr) }
  .bl-money { grid-template-columns:repeat(2, minmax(0, 1fr)) } .bl-money > :first-child { grid-column:1 / -1 }
}
@media (max-width:760px) {
  #room_bottom { padding:12px 12px 24px !important; gap:12px }
  .bl-mcol svg { height:110px } .bl-ml, .bl-mn { font-size:10px } .bl-months { gap:2px }
  .bl-title h2 { font-size:19px } .bl-hero .bl-v { font-size:38px } .bl-hero { padding:18px 18px 16px }
  .bl-add { width:100% } .bl-add button { flex:1 1 auto }
  .bl-life { grid-template-columns:repeat(2, minmax(0, 1fr)) } .bl-life > :last-child { grid-column:1 / -1 }
  .bl-row { grid-template-columns:minmax(0, 1fr) auto; } .bl-row .bl-d { grid-column:1 / -1; order:-1 } .bl-row .bl-acts { grid-column:1 / -1; justify-content:flex-end }
  .bl-form { grid-template-columns:minmax(0, 1fr) }
  .bl-filters select, .bl-filters input { max-width:none; flex:1 1 auto; min-width:0 } .bl-filters > label { flex:1 1 100% }
  .bl-filters { order:1 } .bl-hero-row { order:0 } .bl-money { order:2 } .bl-life { order:3 } .bl-tabs { order:4 } #bl_panel { order:5 } #bl_note { order:6 }
}
@media (prefers-reduced-motion:reduce) { #room_bottom:not([hidden]) { animation:none } }
@media (min-width:1600px) { #room_bottom { --rw:1480px } }
/* six room tabs (Bottom Line, 11-18): at 761-1060 px the tabs are a little tighter so every name still fits on one row (at
   1024 px with the sample day the Settings gear wrapped by a few pixels; tabs-tight would then fold the names to icons) */
@media (min-width:761px) and (max-width:1060px) {
  header #rooms > button[data-room]:not(#x1):not(#x2):not(#x3) { padding-left:4px; padding-right:4px } header #rooms:not(#x1) { margin-right:2px } header #rooms > button[data-room], header #rooms #more_btn { font-size:12px }
}
/* ==== BL:CSS-END */
