/* Northstar v4 — "neon terminal". Tokens → base → shell → components → widgets → responsive.
   Spec: docs/UI_REDESIGN.md. Page layouts live in static/css/{flow,home,pages}.css. */

:root, :root[data-theme="dark"] {
  --bg: #06080c; --bg-2: #090c12;
  --surface: #0c1017; --surface-2: #10151e; --surface-3: #151b26;
  --line: #19202b; --line-2: #232c3a;
  /* text tokens hold WCAG AA (4.5:1) on --surface and --surface-2; --ink-4 is for borders and decoration, never text */
  --ink: #edf2f9; --ink-2: #a3afc2; --ink-3: #7d889c; --ink-4: #444f62;
  --brand: #7c7cff; --brand-2: #b08cff;
  --bull: #1ee69a; --bear: #ff4d6a; --amber: #ffb224; --sky: #4cb9ff; --violet: #a78bfa; --teal: #2dd4bf; --pink: #f472b6;
  --on-bull: #04140c; --on-bear: #1a0308;   /* text on a solid --bull / --bear fill (badges, buttons) */
  --bull-soft: rgba(30, 230, 154, .11); --bear-soft: rgba(255, 77, 106, .11); --amber-soft: rgba(255, 178, 36, .12);
  --sky-soft: rgba(76, 185, 255, .12); --violet-soft: rgba(167, 139, 250, .13); --brand-soft: rgba(124, 124, 255, .13);
  --brand-line: rgba(124, 124, 255, .38);
  --glass: rgba(12, 16, 23, .74);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-pop: 0 30px 70px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .05);
  --card-sheen: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0) 38%);
  --grid-dot: rgba(255, 255, 255, .035);
  --focus: 0 0 0 3px rgba(124, 124, 255, .32);
  color-scheme: dark;

  /* legacy aliases (pages written before v4 use these) */
  --panel: var(--surface); --panel-2: var(--surface-2); --border: var(--line); --border-2: var(--line-2);
  --text: var(--ink); --muted: var(--ink-2); --dim: var(--ink-3);
  --up: var(--bull); --down: var(--bear); --accent: var(--brand); --purple: var(--violet);
  --up-bg: var(--bull-soft); --down-bg: var(--bear-soft); --amber-bg: var(--amber-soft);
  --accent-bg: var(--brand-soft); --purple-bg: var(--violet-soft);
  --shadow: var(--shadow-2);

  --font-ui: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --side-w: 244px; --top-h: 56px; --status-h: 30px;
  --r-xs: 6px; --r-sm: 9px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --radius: var(--r); --radius-s: var(--r-xs);
  --fast: 140ms; --mid: 240ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --bg-2: #edeff3;
  --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #eff1f5;
  --line: #e7e9ee; --line-2: #d8dce4;
  /* AA on white: ink-3 5.4, bull 5.4, bear 5.4, amber 5.3, sky 5.3 (and >= 4.6 on their own soft chip fill) */
  --ink: #0b1220; --ink-2: #475264; --ink-3: #5f6b7d; --ink-4: #b7bfcb;
  --brand: #5856f2; --brand-2: #8b5cf6;
  --bull: #077a4c; --bear: #c92a3e; --amber: #966000; --sky: #0a6fb8; --violet: #7c4deb; --teal: #0c9a93; --pink: #d13c92;
  --on-bull: #ffffff; --on-bear: #ffffff;
  --bull-soft: rgba(7, 122, 76, .08); --bear-soft: rgba(201, 42, 62, .09); --amber-soft: rgba(150, 96, 0, .10);
  --sky-soft: rgba(10, 111, 184, .10); --violet-soft: rgba(124, 77, 235, .10); --brand-soft: rgba(88, 86, 242, .09);
  --brand-line: rgba(88, 86, 242, .3);
  --glass: rgba(255, 255, 255, .78);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-2: 0 10px 30px -12px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-pop: 0 28px 60px -18px rgba(15, 23, 42, .3), 0 4px 14px rgba(15, 23, 42, .06);
  --card-sheen: none;
  --grid-dot: rgba(15, 23, 42, .045);
  --focus: 0 0 0 3px rgba(88, 86, 242, .22);
  color-scheme: light;
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; color: var(--ink);
  background: radial-gradient(1200px 600px at 12% -10%, rgba(124, 124, 255, .07), transparent 60%), var(--bg);
  font: 500 13px/1.45 var(--font-ui); letter-spacing: -.005em; font-feature-settings: "cv11", "ss01", "tnum" 0;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: var(--top-h) minmax(0, 1fr) var(--status-h);
  grid-template-areas: "side top" "side main" "side status";
  height: 100vh; height: 100dvh; overflow: hidden;
  transition: grid-template-columns var(--mid) var(--ease);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* The rail state lives on body[data-side] (app.js applySide / the toggle). Until app.js boots, theme-init.js puts the same state on
   <html data-side> so a 761-1359 px screen paints the 68 px rail at once instead of animating the full sidebar shut. */
body[data-side="collapsed"], :root[data-side="collapsed"] > body { --side-w: 68px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.mono, .num, td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num, td.num, th.num { text-align: right; }
.muted { color: var(--ink-2); } .dim { color: var(--ink-3); } .faint { color: var(--ink-4); }
.up, .bull { color: var(--bull); } .down, .bear { color: var(--bear); }
.amber { color: var(--amber); } .accent, .brand { color: var(--brand); } .purple, .violet { color: var(--violet); } .sky { color: var(--sky); }
.hidden, [hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 6px 10px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }
.view:focus, .view:focus-visible { outline: none; box-shadow: none; border-radius: 0; }   /* the skip link's target: focus lands, no ring round the page */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: rgba(124, 124, 255, .35); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ── sidebar ────────────────────────────────────────────────────────────── */
.side {
  grid-area: side; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 30%), var(--bg-2);
  border-right: 1px solid var(--line); padding: 12px 10px 10px; gap: 6px; overflow: hidden; z-index: 20;
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 16.5px; letter-spacing: -.035em; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 0 10px rgba(124, 124, 255, .55)); }
.brand-name { white-space: nowrap; }
.side-toggle { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; transition: all var(--fast); }
.side-toggle:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.side-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--mid) var(--ease); }
:is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-toggle svg { transform: rotate(180deg); }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.side-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 5px; white-space: nowrap; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background var(--fast), color var(--fast);
}
.side-nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-nav a[aria-current="page"] { background: linear-gradient(90deg, var(--brand-soft), rgba(124, 124, 255, .04)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand-line); }
.side-nav a[aria-current="page"] svg { color: var(--brand); filter: drop-shadow(0 0 6px rgba(124, 124, 255, .6)); }
.side-nav a .side-badge { margin-left: auto; font: 700 9px/1 var(--font-mono); letter-spacing: .08em; padding: 3px 6px; border-radius: 5px; color: var(--bull); background: var(--bull-soft); border: 1px solid color-mix(in srgb, var(--bull) 35%, transparent); }
.side-nav a .side-badge.off { color: var(--ink-3); background: var(--surface-2); border-color: var(--line); }
.side-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(124, 124, 255, .16), rgba(176, 140, 255, .07)); border: 1px solid var(--brand-line); color: var(--ink);
}
.side-card:hover { text-decoration: none; filter: brightness(1.08); }
.side-card .sc-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 18px -6px var(--brand); }
.side-card .sc-ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.side-card .sc-t { display: flex; flex-direction: column; min-width: 0; }
.side-card .sc-t b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-card .sc-t small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-card .budget-bar { margin-top: 5px; width: 100%; }
.side-status { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.side-status .pill { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; line-height: 16px; padding: 3px 8px 3px 7px; letter-spacing: -.01em; }
.side-status .theme-toggle button { width: 26px; }
.side-status .pill::before { display: inline-block; vertical-align: 1px; margin-right: 6px; }
.theme-toggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.theme-toggle button { width: 28px; height: 24px; border: 0; background: transparent; border-radius: 999px; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.theme-toggle button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle button.on { background: var(--surface-3); color: var(--amber); box-shadow: var(--shadow-1); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 2px; min-width: 0; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-ui); color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--line-2); }
.side-user .su-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-user .su-t b { font-size: 13px; } .side-user .su-t small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .btn { margin-left: auto; }
/* collapsed 68 px rail: desktop only. Below 761 px the sidebar is the 260 px drawer, always laid out in full. */
@media (min-width: 761px) {
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .brand-name, :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-nav a span, :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-sec,
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-nav a .side-badge, :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-card .sc-t, :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-user .su-t,
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-user .btn, :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-status .pill { display: none; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-head { flex-direction: column; gap: 10px; padding-bottom: 6px; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-nav a { justify-content: center; padding: 10px 0; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-sec { display: block; height: 1px; padding: 0; margin: 10px 14px; background: var(--line); font-size: 0; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-card { justify-content: center; padding: 8px 0; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-status { justify-content: center; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .theme-toggle { flex-direction: column; border-radius: 12px; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-user { flex-direction: column; justify-content: center; gap: 6px; padding: 4px 0 0; }
  /* a guest keeps a compact Sign in button in the rail */
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-user #side-signin { display: inline-flex; margin: 0; height: 22px; padding: 0 6px; font-size: 10px; border-radius: 6px; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
}

/* ── top bar ────────────────────────────────────────────────────────────── */
.topbar { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 20px; min-width: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); z-index: 10; }
.menu-btn { display: none; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px 0 11px; min-width: 280px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; transition: all var(--fast); flex: none;
}
.search-btn:hover { border-color: var(--line-2); color: var(--ink-2); }
.search-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-btn span { flex: 1; text-align: left; font-size: 13px; }
.kbd, kbd { font: 600 10.5px/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-3); box-shadow: 0 1px 0 var(--line-2); white-space: nowrap; }
.tb-left, .tb-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1 1 auto; }
.page-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.page-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.tb-right { display: flex; align-items: center; gap: 16px; flex: none; }
.clock { display: flex; align-items: baseline; gap: 6px; }
.clock .mono { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.clock-tz { font-size: 9.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .12em; }
.clock-date { font-size: 11px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.open { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 40%, transparent); background: var(--bull-soft); }
.pill.open::before { box-shadow: 0 0 0 0 rgba(30, 230, 154, .6); animation: pulse 2s infinite; }
.pill.pre_open, .pill.post_close { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); }
.pill.cas { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: var(--violet-soft); }
.pill.closed { color: var(--ink-3); }
.pill.closed::before { background: var(--ink-4); }
.budget { display: flex; align-items: center; gap: 8px; }
.budget-label { font-size: 11px; color: var(--ink-3); }
.budget-bar { width: 96px; height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.budget-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s var(--ease); border-radius: 4px; }
.budget-bar i.warn { background: linear-gradient(90deg, var(--amber), #ffd27a); }
.budget-bar i.crit { background: linear-gradient(90deg, var(--bear), #ff8a9b); }
.budget-text { font-size: 11px; color: var(--ink-2); }
.sse { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-4); flex: none; }
.dot.live { background: var(--bull); box-shadow: 0 0 0 0 rgba(30, 230, 154, .7); animation: pulse 2s infinite; }
.dot.connecting, .dot.reconnecting { background: var(--amber); animation: blink 1s infinite; }
.dot.offline { background: var(--bear); }
.dot.stale { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 230, 154, .55); } 70% { box-shadow: 0 0 0 7px rgba(30, 230, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 230, 154, 0); } }
@keyframes blink { 50% { opacity: .35; } }

/* ── status bar (news ticker) ───────────────────────────────────────────── */
.statusbar { grid-area: status; display: flex; align-items: center; gap: 0; min-width: 0; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 11.5px; color: var(--ink-3); }
.sb-cell { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; border-right: 1px solid var(--line); white-space: nowrap; flex: none; }
.sb-cell:last-child { border-right: 0; border-left: 1px solid var(--line); }
.sb-cell b { color: var(--ink-2); font-weight: 600; }
.sb-disc .sb-short { display: none; }
.ticker { flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.ticker-track { display: inline-flex; gap: 30px; white-space: nowrap; padding-left: 100%; animation: marquee 110s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track.static { padding-left: 12px; animation: none; overflow-x: auto; }
.ticker-empty { padding-left: 12px; }
@keyframes marquee { to { transform: translateX(-100%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.tk:hover { text-decoration: none; color: var(--ink); }
.tk .sym { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.tk .ttl { color: var(--ink-3); max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.tk .chip { font-size: 9.5px; padding: 0 6px; }

/* ── main view ──────────────────────────────────────────────────────────── */
.view { grid-area: main; overflow: auto; padding: 20px 22px 48px; min-width: 0; min-height: 0; position: relative; scroll-behavior: smooth; }
.view > .page { animation: enter .3s var(--ease); max-width: 2400px; margin: 0 auto; }
.view > .page.leaving { opacity: 0; transform: translateY(4px); transition: opacity var(--fast), transform var(--fast); }
.view > .page.bleed { max-width: none; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack.lg { gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.mt { margin-top: 14px; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ── cards (panel = card) ───────────────────────────────────────────────── */
.panel, .card {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  background: var(--card-sheen), var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.panel-h, .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.panel-h h3, .card-h h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-2); font-weight: 700; display: flex; align-items: center; gap: 9px; min-width: 0; }
.panel-h h3 svg, .card-h h3 svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.panel-h .sub, .card-h .sub { font-size: 11.5px; color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.panel-b, .card-b { padding: 14px 16px; min-width: 0; }
.panel-b.flush, .card-b.flush { padding: 0; }
.panel-b.scroll, .card-b.scroll { overflow: auto; max-height: 520px; }
.panel.tight .panel-b, .card.tight .card-b { padding: 9px 12px; }
.card.flat, .panel.flat { box-shadow: none; }
.glow-bull { border-color: color-mix(in srgb, var(--bull) 36%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--bull) 14%, transparent), transparent 60%), var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bull) 10%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--bull) 45%, transparent); }
.glow-bear { border-color: color-mix(in srgb, var(--bear) 36%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--bear) 14%, transparent), transparent 60%), var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bear) 10%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--bear) 45%, transparent); }
.glow-brand { border-color: var(--brand-line); background: radial-gradient(120% 90% at 0% 0%, rgba(124, 124, 255, .14), transparent 60%), var(--surface); box-shadow: 0 24px 60px -30px rgba(124, 124, 255, .5); }
.corners { position: relative; }
.corners::before, .corners::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--ink-3); pointer-events: none; opacity: .7; }
.corners::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.corners::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

/* labels, tags, badges */
.kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.kicker.bull { color: var(--bull); } .kicker.bear { color: var(--bear); } .kicker.brand { color: var(--brand); } .kicker.amber { color: var(--amber); }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 700 9.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.tag.bull { color: var(--bull); background: var(--bull-soft); border-color: color-mix(in srgb, var(--bull) 32%, transparent); }
.tag.bear { color: var(--bear); background: var(--bear-soft); border-color: color-mix(in srgb, var(--bear) 32%, transparent); }
.tag.amber { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.tag.sky { color: var(--sky); background: var(--sky-soft); border-color: color-mix(in srgb, var(--sky) 32%, transparent); }
.tag.violet { color: var(--violet); background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 32%, transparent); }
.tag.ghost { background: transparent; }
.bias-badge { display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 7px; white-space: nowrap; }
.bias-badge.bull { color: var(--on-bull); background: var(--bull); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--bull) 70%, transparent); }
.bias-badge.bear { color: var(--on-bear); background: var(--bear); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--bear) 70%, transparent); }
.bias-badge.neutral { color: var(--ink-2); background: var(--surface-3); border: 1px solid var(--line-2); }
.bias-badge.sm { font-size: 9.5px; padding: 4px 7px; border-radius: 5px; }
.sym-ico { --h: 220; width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 800 12px/1 var(--font-ui); letter-spacing: -.02em; color: hsl(var(--h) 90% 82%); background: linear-gradient(145deg, hsl(var(--h) 55% 26%), hsl(var(--h) 45% 14%)); box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 40% / .45), 0 6px 16px -8px hsl(var(--h) 80% 50% / .6); }
:root[data-theme="light"] .sym-ico { color: hsl(var(--h) 70% 28%); background: linear-gradient(145deg, hsl(var(--h) 70% 92%), hsl(var(--h) 60% 84%)); box-shadow: inset 0 0 0 1px hsl(var(--h) 50% 70% / .6); }
.sym-ico.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 9.5px; }
.sym-ico.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
.dots5 { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots5 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }
.dots5 i.on { background: var(--dc, var(--bull)); box-shadow: 0 0 6px var(--dc, var(--bull)); }
.dots5.bear { --dc: var(--bear); }
.seg-bar { --n: 12; --on: 0; --c: var(--bull); display: inline-block; height: 8px; width: calc(var(--n) * 7px); background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); -webkit-mask: linear-gradient(90deg, #000 calc(var(--on) / var(--n) * 100%), rgba(0, 0, 0, .18) 0); mask: linear-gradient(90deg, #000 calc(var(--on) / var(--n) * 100%), rgba(0, 0, 0, .18) 0); vertical-align: middle; }
.seg-bar.bear { --c: var(--bear); }
.meter { position: relative; height: 4px; border-radius: 3px; background: var(--line-2); }
.meter > b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink-3); }
.meter.bull > b { background: linear-gradient(90deg, color-mix(in srgb, var(--bull) 30%, transparent), var(--bull)); box-shadow: 0 0 10px -2px var(--bull); }
.meter.bear > b { background: linear-gradient(90deg, color-mix(in srgb, var(--bear) 30%, transparent), var(--bear)); box-shadow: 0 0 10px -2px var(--bear); }
.meter > i { position: absolute; top: 50%; width: 2px; height: 12px; transform: translate(-50%, -50%); background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat > span { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.stat > b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.bull > span { color: color-mix(in srgb, var(--bull) 75%, var(--ink-3)); } .stat.bear > span { color: color-mix(in srgb, var(--bear) 75%, var(--ink-3)); }
.blob { position: absolute; width: 90px; height: 50px; border-radius: 50%; filter: blur(22px); opacity: .55; pointer-events: none; }
.blob.bull { background: var(--bull); } .blob.bear { background: var(--bear); }

/* ── tiles / KPIs ───────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--card-sheen), var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; position: relative; overflow: hidden; min-width: 0; transition: border-color var(--fast), transform var(--fast); box-shadow: var(--shadow-1); }
.tile:hover { border-color: var(--line-2); }
.tile.clickable { cursor: pointer; }
.tile.clickable:hover { transform: translateY(-1px); }
.tile .t-name { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; min-width: 0; }
.tile .t-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile .t-val { font-family: var(--font-mono); font-size: 21px; font-weight: 600; margin-top: 5px; letter-spacing: -.02em; }
.tile .t-val.sm { font-size: 16px; }
.tile .t-chg { font-family: var(--font-mono); font-size: 12px; margin-top: 2px; }
.tile .t-sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; font-family: var(--font-mono); display: flex; gap: 8px; }
.tile .t-spark { margin-top: 8px; height: 38px; opacity: .95; }
.tile .t-spark svg { display: block; width: 100%; height: 38px; }
.tile.up { box-shadow: inset 2px 0 0 var(--bull), var(--shadow-1); }
.tile.down { box-shadow: inset 2px 0 0 var(--bear), var(--shadow-1); }
.kpi { padding: 14px 16px; }
.kpi .t-val { font-size: 23px; }
.kpi .t-sub { font-family: var(--font-ui); display: block; overflow-wrap: anywhere; }
.kpi .t-sub:has(> .chip, > .bar, > .tag, > .imb) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
.flash-up { animation: flashUp .9s var(--ease); }
.flash-down { animation: flashDown .9s var(--ease); }
@keyframes flashUp { 0% { background: rgba(30, 230, 154, .32); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255, 77, 106, .32); } 100% { background: transparent; } }
td.flash-up, td.flash-down, .t-val.flash-up, .t-val.flash-down { border-radius: 4px; }

/* ── badges / chips ─────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge.v-STRONG { color: var(--violet); background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 45%, transparent); box-shadow: 0 0 14px -6px var(--violet); }
.badge.v-CANDIDATE { color: var(--bull); background: var(--bull-soft); border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.badge.v-WATCH { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.badge.v-AVOID { color: var(--bear); background: var(--bear-soft); border-color: color-mix(in srgb, var(--bear) 40%, transparent); }
.badge.v-none { color: var(--ink-3); background: var(--surface-2); border-color: var(--line-2); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); white-space: nowrap; line-height: 1.55; }
.chip.pos, .chip.positive { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 38%, transparent); background: var(--bull-soft); }
.chip.neg, .chip.negative { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 38%, transparent); background: var(--bear-soft); }
.chip.neu, .chip.neutral { color: var(--ink-3); }
.chip.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 38%, transparent); background: var(--amber-soft); }
.chip.info { color: var(--sky); border-color: color-mix(in srgb, var(--sky) 38%, transparent); background: var(--sky-soft); }
.chip.kill { color: var(--on-bear); background: var(--bear); border-color: var(--bear); font-weight: 800; box-shadow: 0 0 14px -4px var(--bear); }
.chip.tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-chip { cursor: pointer; user-select: none; transition: all var(--fast); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.filter-chip:hover { color: var(--ink); border-color: var(--brand-line); }
.filter-chip.on { color: var(--ink); background: var(--brand-soft); border-color: var(--brand-line); box-shadow: 0 0 16px -8px var(--brand); }
.filter-chip .n { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-left: 4px; }

/* ── buttons / inputs ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 12.5px; font-weight: 600; transition: all var(--fast); white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--brand-line); background: var(--surface-3); text-decoration: none; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { color: #fff; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px -10px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.primary:hover { filter: brightness(1.1); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.bull { color: var(--on-bull); background: var(--bull); border-color: var(--bull); box-shadow: 0 8px 22px -12px var(--bull); }
.btn.bear { color: var(--on-bear); background: var(--bear); border-color: var(--bear); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 26px; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.busy::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.input, select.input, textarea.input { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 11px; font: 500 13px/1.3 var(--font-ui); min-width: 0; transition: border-color var(--fast), box-shadow var(--fast); }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.45; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: var(--focus); }
.input::placeholder { color: var(--ink-3); }
.input.search { min-width: 220px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b778b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 14px; padding-left: 31px; }
input[type="range"] { accent-color: var(--brand); }
input[type="date"].input, input[type="datetime-local"].input { color-scheme: inherit; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); min-width: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background var(--fast); flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--fast) var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(14px); }

/* ── tables ─────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow: auto; max-width: 100%; }
.tbl td.ell, .tbl th.ell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1900px) { .page-brief [data-col="industry"] { display: none; } }
/* Long-term Picks (18 columns, ~1760 px in full): drop the least-used ones as the card narrows so the ranked table fits its
   card from ~1366 px up (expanded rail) or ~1024 px up (collapsed rail); narrower screens scroll it sideways inside the card */
@media (max-width: 2060px) { .page-picks [data-col="ret_1m"], .page-picks [data-col="ret_6m"] { display: none; } }
@media (max-width: 1910px) { .page-picks [data-col="pb"], .page-picks [data-col="div_yield"], .page-picks [data-col="pct_from_52w_high"] { display: none; } }
@media (max-width: 1720px) { .page-picks [data-col="industry"] { display: none; } }
@media (max-width: 1560px) { .page-picks [data-col="mcap"] { display: none; } }
@media (max-width: 1450px) { .page-picks [data-col="ret_12m"] { display: none; } }
@media (max-width: 1400px) { .page-picks [data-col="pe"] { display: none; } }
@media (max-width: 1100px) { .page-picks [data-col="pillars"] { display: none; } }
.page-picks #pick-table .tbl-wrap { max-height: max(360px, calc(100vh - 240px)); max-height: max(360px, calc(100dvh - 240px)); }
.page-picks td[data-col="industry"] > span { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; text-align: left; user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th[aria-sort="ascending"]::after { content: " ▲"; color: var(--brand); font-size: 8px; }
.tbl th[aria-sort="descending"]::after { content: " ▼"; color: var(--brand); font-size: 8px; }
.tbl tbody tr { transition: background var(--fast); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.slide-in { animation: slideIn .35s var(--ease); }
.tbl td.sym { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.tbl td.wrap { white-space: normal; min-width: 150px; max-width: 420px; line-height: 1.35; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl .sub { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tbl tfoot td { color: var(--ink-3); font-size: 11px; }
.tbl.dense th, .tbl.dense td { padding: 5px 9px; }
.tbl tbody tr.uncertain td { opacity: .62; }
.tbl tbody tr.uncertain td .chip.warn { opacity: 1; }
.tbl tbody tr.self td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
.tbl tbody tr.dim td { opacity: .72; }
.tbl tbody tr.dim td .chip, .tbl tbody tr.dim td a { opacity: 1; }
.tbl tbody tr.bt-sub td { color: var(--ink-3); } .tbl tbody tr.bt-sub td:first-child { padding-left: 26px; }
.tbl a.mono, .tbl td a[href^="#/stock"], .tbl td a[href^="#/blocks"] { color: var(--ink); }
.tbl a.mono:hover { color: var(--brand); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); background: var(--brand-soft); } to { opacity: 1; transform: none; } }

/* ── bars ───────────────────────────────────────────────────────────────── */
.bar { display: inline-block; width: 100%; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; position: relative; min-width: 40px; vertical-align: middle; }
.row > .bar, .t-sub > .bar { flex: 1 1 60px; width: auto; }
td .row > .bar { flex: 0 0 64px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .5s var(--ease); }
.bar > i.up { background: var(--bull); box-shadow: 0 0 8px -1px var(--bull); } .bar > i.down { background: var(--bear); box-shadow: 0 0 8px -1px var(--bear); }
.bar > i.amber { background: var(--amber); } .bar > i.purple { background: var(--violet); }
.bar.lg { height: 10px; }
.bar.center { background: linear-gradient(90deg, var(--line) 0 49.5%, var(--line-2) 49.5% 50.5%, var(--line) 50.5%); }
.bar.center > i { position: absolute; top: 0; }
.pillars { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; vertical-align: middle; }
.pillars i { width: 6px; background: var(--line-2); border-radius: 2px; display: block; }
.pillars i.q { background: var(--violet); } .pillars i.v { background: var(--sky); } .pillars i.t { background: var(--bull); } .pillars i.m { background: var(--amber); } .pillars i.c { background: var(--pink); }
.stack-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.stack-bar i { display: block; height: 100%; }
.imb { display: inline-flex; width: 110px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); vertical-align: middle; }
.imb i { height: 100%; display: block; }
.imb .b { background: var(--bull); } .imb .s { background: var(--bear); }

/* ── misc widgets ───────────────────────────────────────────────────────── */
.ring { display: inline-grid; place-items: center; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-txt { position: absolute; font-family: var(--font-mono); font-weight: 700; }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 40%, var(--surface) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; min-height: 14px; }
.skel.h2 { height: 28px; } .skel.h3 { height: 48px; } .skel.h6 { height: 120px; } .skel.h9 { height: 260px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.empty { padding: 30px 18px; text-align: center; color: var(--ink-2); font-size: 12.5px; }
.empty b { color: var(--ink); }
.empty .ico { font-size: 22px; display: block; margin-bottom: 8px; opacity: .6; }
.error-box { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--bear) 40%, transparent); background: var(--bear-soft); border-radius: var(--r); color: var(--ink); }
.banner { padding: 9px 14px; border-radius: var(--r-sm); font-size: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid; flex-wrap: wrap; }
.banner > b { flex: none; white-space: nowrap; }
.banner > .muted { flex: 1 1 320px; min-width: 0; }
.banner.info { background: var(--sky-soft); border-color: color-mix(in srgb, var(--sky) 35%, transparent); }
.banner.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.banner.danger { background: var(--bear-soft); border-color: color-mix(in srgb, var(--bear) 40%, transparent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; text-align: right; font-family: var(--font-mono); }
.kv.wide { grid-template-columns: 1fr auto; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 11px; }
.timeline li { position: relative; font-size: 12px; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.timeline li.pos::before { background: var(--bull); box-shadow: 0 0 8px var(--bull); } .timeline li.neg::before { background: var(--bear); box-shadow: 0 0 8px var(--bear); }
.timeline li.kill::before { background: var(--bear); box-shadow: 0 0 0 3px var(--bear-soft); }
.timeline li.dim { opacity: .6; }
.timeline .t { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timeline .ttl { margin-top: 2px; }
.toasts { position: fixed; right: 18px; bottom: calc(var(--status-h) + 14px); display: flex; flex-direction: column; gap: 8px; z-index: 80; pointer-events: none; }
.toast { pointer-events: none; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-left: 3px solid var(--brand); border-radius: 10px; padding: 9px 13px; font-size: 12.5px; box-shadow: var(--shadow-pop); animation: enter .2s var(--ease); max-width: 380px; }
.toast.err { border-left-color: var(--bear); } .toast.ok { border-left-color: var(--bull); }
details.drawer > summary { cursor: pointer; padding: 9px 16px; color: var(--ink-2); font-size: 12px; list-style: none; display: flex; justify-content: space-between; }
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary::after { content: "▸"; transition: transform var(--fast); }
details.drawer[open] > summary::after { transform: rotate(90deg); }
pre.raw { margin: 0; padding: 10px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); max-height: 240px; overflow: auto; white-space: pre; background: var(--bg-2); border-top: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: transparent; color: var(--ink-3); padding: 4px 11px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all var(--fast); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.svg-mount { display: block; width: 100%; min-width: 0; }
svg.chart { display: block; max-width: 100%; height: auto; }
svg.chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
svg.chart .axis { stroke: var(--line-2); stroke-width: 1; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.countdown { font-family: var(--font-mono); font-size: 36px; font-weight: 600; letter-spacing: -.01em; }
.lw-chart { width: 100%; height: 380px; border-radius: 10px; overflow: hidden; }
.lw-chart.sm { height: 240px; }
.lw-chart.tall { height: 460px; }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.heat .cell { padding: 8px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; transition: transform var(--fast), border-color var(--fast); }
.heat .cell:hover { transform: translateY(-1px); border-color: var(--line-2); }
.heat .cell .n { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat .cell .v { font-family: var(--font-mono); font-size: 13px; font-weight: 600; margin-top: 2px; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quad .q { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-height: 90px; background: var(--surface-2); }
.quad .q h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px; display: flex; justify-content: space-between; }
.quad .q ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.quad .q li { display: flex; justify-content: space-between; gap: 6px; }
.quad .q li a { color: var(--ink); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news-list li { padding: 10px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; transition: background var(--fast); }
.news-list li:last-child { border-bottom: 0; }
.news-list li:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.news-list li.slide-in { animation: slideIn .4s var(--ease); }
.news-list .when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.news-list .head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.news-list .title { font-size: 12.5px; line-height: 1.38; color: var(--ink); }
.news-list .txt { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.stock-head .sym { font-family: var(--font-ui); font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.stock-head .price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.stock-head .chg { font-family: var(--font-mono); font-size: 14px; }
.range { display: flex; flex-direction: column; gap: 5px; min-width: 240px; }
.range .track { height: 5px; background: linear-gradient(90deg, var(--bear), var(--amber), var(--bull)); border-radius: 4px; position: relative; opacity: .85; }
.range .track i { position: absolute; top: -4px; width: 3px; height: 13px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); transform: translateX(-50%); }
.range .lbl { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.pillar-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--surface-2); }
.pillar-card h4 { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.pillar-card ul { margin: 8px 0 0; padding-left: 16px; font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.shp { display: flex; flex-direction: column; gap: 8px; }
.shp .r { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 10px; font-size: 12px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.tech-grid .cell { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--surface-2); }
.tech-grid .cell .k { font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.tech-grid .cell .v { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.tech-grid .cell .a { font-size: 10.5px; }
.lat-ts { display: inline-grid; grid-template-columns: auto; font-family: var(--font-mono); font-size: 11.5px; }
.job-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.job-card .jh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-card .jn { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; }
.job-card .jm { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card .jt { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); display: flex; gap: 10px; flex-wrap: wrap; }
span.st { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; }
span.st.running { color: var(--sky); background: var(--sky-soft); } span.st.ok, span.st.done, span.st.idle { color: var(--bull); background: var(--bull-soft); } span.st.error, span.st.failed { color: var(--bear); background: var(--bear-soft); } span.st.waiting, span.st.skipped { color: var(--amber); background: var(--amber-soft); }
.log { font-family: var(--font-mono); font-size: 11px; }
.log .lvl { width: 52px; display: inline-block; font-weight: 700; }
.log .lvl.ERROR { color: var(--bear); } .log .lvl.WARNING, .log .lvl.WARN { color: var(--amber); } .log .lvl.INFO { color: var(--sky); } .log .lvl.DEBUG { color: var(--ink-3); }
.brief-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.hold-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hold-card.danger { border-color: color-mix(in srgb, var(--bear) 50%, transparent); background: var(--bear-soft); }
.hold-list { list-style: none; margin: 2px 0 0; padding: 0; font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.hold-list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fam { margin-bottom: 12px; }
.fam h4 { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 12px; }
.spark-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.toggle { font-size: 12px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--brand); margin: 0; }

/* ── phase 3: order blocks (boards, X-Ray, zone chart): widgets shared by the boards, the X-Ray tooltip and the zone page */
.bias-chips { display: inline-flex; gap: 3px; vertical-align: middle; }
.bias-chips .chip { padding: 0 5px; font-size: 10px; font-family: var(--font-mono); letter-spacing: .02em; }
.xray-wrap { position: relative; }
.xray-tip { position: absolute; left: 0; top: 0; display: none; pointer-events: none; z-index: 3; max-width: 320px; white-space: nowrap; padding: 8px 11px; border-radius: 10px; font-size: 11.5px; line-height: 1.55; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.xray-tip.on { display: block; }
.xray-tip b { font-family: var(--font-mono); color: var(--ink); }
svg.chart circle.xd { cursor: pointer; transition: opacity var(--fast); }
svg.chart circle.xd:hover { stroke: var(--ink); stroke-width: 1.5; opacity: 1; }
.score-pair { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.score-pair .r { display: grid; grid-template-columns: 30px minmax(90px, 1fr) 30px; align-items: center; gap: 8px; font-size: 12px; }
.score-pair .r .mono { text-align: right; }
.zone-legend i { height: 0; width: 14px; border-top: 2px solid var(--ink-3); border-radius: 0; background: none; }
.zone-legend i.up { border-color: var(--bull); } .zone-legend i.down { border-color: var(--bear); } .zone-legend i.purple { border-color: var(--violet); }
.zone-legend i.dashed { border-top-style: dashed; } .zone-legend i.dotted { border-top-style: dotted; } .zone-legend i.faint { opacity: .4; }
.page-blocks .tile.kpi .t-sub { white-space: normal; line-height: 1.4; }
@media (min-width: 761px) {
  #ob-kpis { grid-template-columns: repeat(auto-fit, minmax(clamp((100% - 72px) / 7.05, (1052px - 100%) * 999, (100% - 36px) / 4.05), 1fr)); }
}
.zone-legend i.amber { border-color: var(--amber); } .zone-legend i.accent { border-color: var(--brand); }
/* the two boards share a row only above ~1700 px, where each half-width panel fits every column; below that they stack */
@media (max-width: 1700px) { .page-blocks .grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* owner-only pages seen by a guest */
.locked { max-width: 760px; margin: 6vh auto 0; }
.locked-in { display: flex; gap: 18px; align-items: flex-start; padding: 10px 6px; }
.locked-in h2 { font-size: 21px; margin-bottom: 6px; }
.locked-in p { margin: 0 0 14px; line-height: 1.55; }
.locked-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 30px -10px var(--brand); }
.locked-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
body[data-role="guest"] [data-owner-only] { display: none !important; }
.rail-version { font-size: 10px; text-align: center; }

/* ── command palette ────────────────────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding-top: 12vh; background: rgba(3, 5, 8, .62); backdrop-filter: blur(6px); animation: fadeIn .14s ease; }
.palette[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.pal-box { width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-pop), 0 0 0 1px rgba(124, 124, 255, .08); overflow: hidden; animation: enter .2s var(--ease); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 2; flex: none; }
.pal-in input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 600 16px/1.2 var(--font-ui); outline: none; min-width: 0; }
.pal-in input::placeholder { color: var(--ink-3); }
.pal-list { max-height: min(56vh, 480px); overflow: auto; padding: 6px; }
.pal-sec { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.pal-item b { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.pal-item .pi-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.pal-item .pi-meta { display: flex; gap: 6px; align-items: center; flex: none; }
.pal-item.on, .pal-item:hover { background: var(--surface-3); color: var(--ink); }
.pal-item.on { box-shadow: inset 0 0 0 1px var(--brand-line); }
.pal-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.pal-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
mark { background: color-mix(in srgb, var(--brand) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── sheets (sign-in, dialogs) ──────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 8, .66); backdrop-filter: blur(6px); animation: fadeIn .14s ease; }
.sheet[hidden] { display: none; }
.sheet-box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: enter .22s var(--ease); }
.sheet-box h2 { font-size: 20px; letter-spacing: -.03em; }
.sheet-box .muted { font-size: 12.5px; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .budget-label, .sse-text, .clock-date { display: none; }
  .search-btn { min-width: 220px; }
}
@media (max-width: 1100px) {
  .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
  .quad { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar .clock, .topbar .budget { display: none; }
  .page-title { font-size: 15px; }
  .search-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn .kbd { display: none; }
}
@media (max-width: 760px) {
  body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "status"; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform var(--mid) var(--ease); box-shadow: var(--shadow-pop); }
  body.side-open .side { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 15; }
  .side-toggle { display: none; }
  /* touch targets: 40 px for the menu and search buttons, 32 px for the drawer's theme buttons */
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
  .search-btn { width: 40px; height: 40px; }
  .side .theme-toggle button { width: 32px; height: 32px; }
  .page-sub { display: none; }
  .menu-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .topbar { padding: 0 12px; gap: 10px; }
  .view { padding: 14px 12px 40px; }
  .statusbar .sb-cell.hide-sm { display: none; }
  .sb-disc { padding: 0 10px; font-size: 10.5px; }
  .sb-disc .sb-long { display: none; }
  .sb-disc .sb-short { display: inline; }
  .cols-4, .cols-6 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ob-kpis > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* short screens (1366x768 laptops, phones): tighten the rail so SYSTEM / Settings stay in view; when the nav still scrolls,
   its bottom edge fades (a scroll-driven animation: inactive, so no fade, when everything fits) */
@media (max-height: 900px) {
  .side { padding-top: 10px; }
  .side-head { padding-bottom: 6px; }
  .side-nav a { padding: 6px 12px; line-height: 18px; }
  .side-sec { padding: 9px 12px 3px; line-height: 14px; }
  .side-foot { gap: 6px; padding-top: 8px; }
  .side-card { padding: 7px 10px; }
}
@media (max-height: 800px) {
  .side-nav a { padding: 5px 12px; }
  .side-sec { padding: 8px 12px 2px; }
}
@media (max-height: 900px) and (min-width: 761px) {
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-head { gap: 6px; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-nav a { padding: 7px 0; }
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .side-sec { margin: 5px 14px; }
  /* the collapsed theme toggle shows only the theme you can switch to: one 24 px button instead of a 54 px stack */
  :is(body[data-side="collapsed"], :root[data-side="collapsed"] > body) .theme-toggle button.on { display: none; }
}
@property --nav-fade { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes nav-fade { from, 90% { --nav-fade: 34px; } to { --nav-fade: 0px; } }
@supports (animation-timeline: scroll()) {
  .side-nav {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--nav-fade)), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - var(--nav-fade)), transparent);
    animation: nav-fade linear both; animation-timeline: scroll(self);
  }
}

/* ── motion & print ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track { padding-left: 12px; overflow-x: auto; }
}
@media print { body { display: block; height: auto; overflow: visible; } .side, .topbar, .statusbar, .toasts { display: none; } }

/* zone page: the liquidity-map strip from the Order Flow row */
.ob-levels .card-b { display: flex; flex-direction: column; gap: 12px; }
.obl-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.obl-id { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 150px; }
.obl-stats { flex: 1 1 600px; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.obl-stats .stat b { font-size: 13px; } .obl-stats .stat b small { font-size: 10px; font-weight: 500; }
.obl-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.obl-rule { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.obl-meter { display: flex; align-items: center; gap: 10px; flex: 0 1 380px; }
.obl-meter .meter { flex: 1; }
