/* Vestra (began as 4Cee.ai). Layout: a sticky command bar, then one column of dense panels. Numbers are monospaced; the brand is ink (Moe chose the Ink palette, 2026-11-28): black on light, white on dark, for the logo, buttons, what is selected and the main price line. Colour appears only where it means something: green and red for up and down (and Buy and Sell), amber for Wait and anything that wants attention, blue for Hold and secondary data. */
:root {
  --bg: #f6f6f8; --panel: #ffffff; --panel-2: #f0f0f3; --line: #e3e4e8; --fg: #0b0c0f; --muted: #5b5e67; --accent-ink: #ffffff; --seg-on: #ffffff;
  --chart: #121317; --mark-tile: #121317; --mark-v: #ffffff;
  --accent: #121317; --accent-soft: #ececef; --warn-soft: #fbefd9; --up: #0a7a45; --down: #c4292f; --s1: #1f5fbf; --s2: #a15c00; --s3: #b8327f;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --head: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Figures are set in the same face as the words, with digits of equal width so columns line up. */
  --mono: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --shadow: 0 1px 2px rgba(15, 20, 26, .05), 0 1px 3px rgba(15, 20, 26, .04); --pop: 0 14px 36px rgba(15, 20, 26, .16), 0 2px 6px rgba(15, 20, 26, .06); color-scheme: light;
}
/* Dark follows the device unless the admin panel's Appearance picks one look for everyone (data-theme on <html>, theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --panel: #131316; --panel-2: #1a1a1f; --line: #29292f; --fg: #ededf0; --muted: #9b9ca5; --accent-ink: #0b0c0f; --seg-on: #2b2b32;
    --chart: #f1f1f3; --mark-tile: #f1f1f3; --mark-v: #0b0c0f; --shadow: 0 1px 2px rgba(0, 0, 0, .35); --pop: 0 16px 40px rgba(0, 0, 0, .55);
    --accent: #f1f1f3; --accent-soft: #222228; --warn-soft: #2a2416; --up: #2fc27f; --down: #f0616a; --s1: #6aa6ff; --s2: #f2b33d; --s3: #e56fb0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #09090b; --panel: #131316; --panel-2: #1a1a1f; --line: #29292f; --fg: #ededf0; --muted: #9b9ca5; --accent-ink: #0b0c0f; --seg-on: #2b2b32;
    --chart: #f1f1f3; --mark-tile: #f1f1f3; --mark-v: #0b0c0f; --shadow: 0 1px 2px rgba(0, 0, 0, .35); --pop: 0 16px 40px rgba(0, 0, 0, .55);
    --accent: #f1f1f3; --accent-soft: #222228; --warn-soft: #2a2416; --up: #2fc27f; --down: #f0616a; --s1: #6aa6ff; --s2: #f2b33d; --s3: #e56fb0;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
/* The mark is four letter Cs set one inside the other: an iris, and the name said aloud ("foresee"). */
.brand { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.brand-mark { width: 19.5px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.1; stroke-linecap: round; }
/* The name is set in Outfit, whose round C and e echo the mark. Only the seven characters of the name are downloaded. */
.brand-name { font: 600 19px/1 var(--head); letter-spacing: -.025em; color: var(--fg); }
.brand-name span { color: var(--accent); font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { background: var(--panel); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.search { position: relative; flex: 1 1 240px; max-width: 460px; min-width: 0; }
.search input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.search input::placeholder { color: var(--muted); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .22); overflow: hidden; z-index: 30; }
.search-results[hidden] { display: none; }
.sr { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.sr:hover, .sr[aria-selected="true"] { background: var(--panel-2); }
.sr b { font-family: var(--mono); font-weight: 600; }
.sr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr small { color: var(--muted); }
.sr-empty { padding: 12px; margin: 0; color: var(--muted); }
.sr small:empty { display: none; }
.status { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.live { background: var(--up); }

.view { max-width: 1360px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 20px; outline: none; min-height: 70vh; }
.foot { max-width: 1360px; margin: 0 auto; padding: 0 16px 36px; color: var(--muted); font-size: 12px; }
.foot p { max-width: 90ch; margin: 0; }
.foot .foot-brand { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.foot .foot-brand .brand-mark { width: 14.2px; height: 16px; }
.foot .foot-brand .brand-name { font-size: 15px; }
.foot .foot-brand small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h2 { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sub { color: var(--muted); margin: 4px 0 0; max-width: 80ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.msg { color: var(--muted); padding: 18px 4px; }
.msg.err { color: var(--down); }
.skel { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: sk 1.4s linear infinite; } @keyframes sk { to { background-position: -200% 0; } } }

/* index tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tile { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.tile:hover { border-color: var(--muted); }
.tile-n { font-size: 12px; color: var(--muted); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-p { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.tile-c { font-family: var(--mono); font-size: 12px; align-self: end; text-align: right; }
.tile svg { grid-column: 1 / -1; width: 100%; height: 30px; margin-top: 4px; display: block; }

/* sector heat map */
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.heat a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 76px; padding: 10px 11px; border-radius: 8px; border: 1px solid transparent; }
.heat a:hover { border-color: var(--fg); }
.heat span { font-size: 12px; font-weight: 500; }
.heat b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.heat-key { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.heat-key i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--down), color-mix(in srgb, var(--muted) 25%, var(--panel)), var(--up)); display: inline-block; }

/* lists and tables */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--panel-2); }
.row b { font-family: var(--mono); font-weight: 600; }
.row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); min-width: 0; }
.row .pc { min-width: 68px; text-align: right; }
.tblwrap { overflow-x: auto; }
table.wl { width: 100%; border-collapse: collapse; min-width: 760px; }
.wl th { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wl th:first-child, .wl td:first-child { text-align: left; }
.wl th button:not(.help) { all: unset; cursor: pointer; }
.wl th button:not(.help):hover, .wl th[aria-sort] button:not(.help) { color: var(--fg); }
.wl td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.wl tr:hover td { background: var(--panel-2); }
.wl .sym { font-family: var(--mono); font-weight: 600; }
.wl .co { display: block; font-size: 12px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.wl svg { width: 96px; height: 28px; display: block; margin-left: auto; }
.rng { position: relative; width: 110px; height: 6px; border-radius: 3px; background: var(--line); margin-left: auto; }
.rng i { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--fg); transform: translateX(-50%); }
.rng-l { display: flex; justify-content: space-between; width: 110px; margin: 4px 0 0 auto; font: 10px var(--mono); color: var(--muted); }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 500; }
.btn:hover { border-color: var(--muted); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 5px 10px; cursor: pointer; font: 500 12px var(--mono); color: var(--muted); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.news a { display: block; padding: 10px 4px; border-top: 1px solid var(--line); }
.news a:first-child { border-top: 0; }
.news a:hover { background: var(--panel-2); }
.news small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }

/* company page */
.co-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.co-sym { font: 600 12px var(--mono); letter-spacing: .08em; color: var(--accent); }
.co-px { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.co-px .p { font: 500 clamp(30px, 5vw, 44px)/1 var(--mono); }
.co-px .c { font: 500 16px var(--mono); }
.chart { position: relative; height: 420px; }
.chart-leg { position: absolute; left: 6px; top: 4px; z-index: 3; font: 12px var(--mono); color: var(--muted); pointer-events: none; background: color-mix(in srgb, var(--panel) 80%, transparent); padding: 2px 6px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--panel); padding: 12px 13px; min-width: 0; }
.stat span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.stat b { display: block; font: 500 17px var(--mono); margin-top: 3px; }
.stat small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.fchart { position: relative; min-height: 250px; }
.fchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ax { font: 11px var(--mono); fill: var(--muted); }
.lab { font: 11px var(--mono); fill: var(--fg); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 240px; }
.tip[hidden] { display: none; }
.tip b { display: block; margin-bottom: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.filing { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.filing:first-child { border-top: 0; }
.filing:hover { background: var(--panel-2); }
.badge { font: 600 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; text-align: center; }
.filing .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.note { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--s2) 35%, transparent); border-radius: var(--r); padding: 10px 13px; font-size: 13px; }
@media (max-width: 560px) { .chart { height: 320px; } .status { display: none; } .panel { padding: 13px; } }

/* signals and alerts */
.count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--s2); color: var(--bg); font: 600 11px/18px var(--mono); text-align: center; }
.count[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sel, .inp { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 7px 10px; max-width: 100%; }
.inp { width: 150px; }
.inp[hidden] { display: none; }
.earn { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.earn-c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.earn-c:hover { border-color: var(--muted); }
.earn-c.soon { border-color: var(--s2); background: var(--warn-soft); }
.earn-c b { font-family: var(--mono); }
.earn-c small { color: var(--muted); font-size: 12px; }
.earn-line { color: var(--s2); font-weight: 500; }
.ev-day { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 16px 4px 6px; border-bottom: 1px solid var(--fg); }
.ev-day:first-child { padding-top: 2px; }
.ev { display: grid; grid-template-columns: 70px 58px 74px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.ev:not(:has(.ev-s)) { grid-template-columns: 58px 74px 1fr auto; }
.ev.hot { background: var(--warn-soft); }
.ev:hover { background: var(--panel-2); }
.ev-s { font: 600 13px var(--mono); }
.ev-s:hover { text-decoration: underline; }
.ev-b { min-width: 0; }
.ev-b:hover .ev-h { text-decoration: underline; }
.ev-h { display: block; }
.ev-b small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pill-hot { font-size: 11px; font-weight: 600; color: var(--s2); border: 1px solid var(--s2); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.al-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.al-rule { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.al-rule:first-child { border-top: 0; }
.al-hit { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 4px; border-top: 1px solid var(--line); }
.al-hit:first-child { border-top: 0; }
.al-hit:hover { background: var(--panel-2); }
.al-hit.new { background: var(--warn-soft); }
.al-hit b { font-family: var(--mono); }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: block; background: var(--panel); border: 1px solid var(--s2); border-radius: var(--r); padding: 10px 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); font-size: 13px; }
.toast b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--s2); margin-bottom: 2px; }
@media (max-width: 620px) { .ev { grid-template-columns: 58px 1fr auto; } .ev-t { grid-column: 1; } .ev .badge { justify-self: start; } .ev-b { grid-column: 1 / -1; } .ev:not(:has(.ev-s)) { grid-template-columns: 58px 1fr auto; } .nav a { padding: 6px 8px; } }
.setup { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.setup li { padding-left: 22px; position: relative; }
.setup li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); }
.setup li.ok::before { background: var(--up); border-color: var(--up); }
.setup li.todo { color: var(--muted); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* engine screens */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 9px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--fg); }
.tab[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.eng { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lead { font-size: 16px; line-height: 1.5; margin: 0 0 12px; max-width: 80ch; }
.lead b { font-family: var(--mono); font-weight: 600; }
.psub { margin: -6px 0 12px; }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; max-width: 95ch; }
.gap { margin-top: 18px; margin-bottom: 8px; }
.grid2.g64 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.grid2.tight { gap: 8px 24px; }
@media (max-width: 900px) { .grid2.g64 { grid-template-columns: minmax(0, 1fr); } }
.wf { display: flex; flex-direction: column; }
.wf-row { display: grid; grid-template-columns: minmax(120px, 30%) 1fr 70px; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.wf-row:first-child { border-top: 0; }
.wf-row b { text-align: right; font-weight: 500; }
.wf-total { border-top: 1px solid var(--fg); font-weight: 600; }
.wf-l small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.wf-t { position: relative; height: 16px; }
.wf-zero { position: absolute; top: -7px; bottom: -7px; border-left: 1px dashed var(--muted); }
.wf-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.wf-bar.pos, .split-t i.pos, .ftrack i.pos { background: var(--up); }
.wf-bar.neg, .split-t i.neg, .ftrack i.neg { background: var(--down); }
.wf-bar.tot { background: var(--fg); }
.daycard { display: flex; flex-direction: column; gap: 10px; }
.day-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-m { display: flex; align-items: baseline; gap: 10px; }
.day-m b { font: 500 30px/1 var(--mono); }
.splits { display: flex; flex-direction: column; gap: 6px; }
.split { display: grid; grid-template-columns: minmax(96px, 38%) 1fr 62px; gap: 8px; align-items: center; font-size: 13px; }
.split b { text-align: right; font-weight: 500; }
.split-t, .ftrack { position: relative; height: 12px; }
.split-t::before, .ftrack::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid var(--muted); }
.split-t i, .ftrack i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.mv { display: grid; grid-template-columns: 104px 74px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; width: 100%; }
.mv:first-child { border-top: 0; }
.mv:hover, .mv[aria-pressed="true"] { background: var(--panel-2); }
.mv[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.mv-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel-2); }
.ai-h { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ai-t { margin: 0 0 8px; white-space: pre-line; max-width: 85ch; }
.ai-src { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.ai-src a, .drv a { text-decoration: underline; color: var(--muted); }
.wl.tb td:first-child { white-space: normal; min-width: 190px; }
.wl.tb { min-width: 640px; }
.wl.radar { min-width: 1080px; }
.wl tr.on td { background: var(--accent-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; min-width: 0; }
.pcard.static { cursor: default; }
.pcard:not(.static):hover { border-color: var(--muted); }
.pcard[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pcard small { font-size: 12px; color: var(--fg); }
.pcard small.muted { color: var(--muted); }
.ev-pill { align-self: flex-start; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ev-pill.strong, .ev-pill.pos { color: var(--up); border-color: var(--up); }
.ev-pill.neg { color: var(--down); border-color: var(--down); }
.ev-pill.some { color: var(--s2); border-color: var(--s2); }
.meter { margin-bottom: 12px; }
.meter-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.meter-t { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.meter-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--s1); }
.meter-t u { position: absolute; top: -4px; bottom: -4px; border-left: 2px solid var(--fg); }
.meter small { font-size: 11px; }
.fhead { display: grid; grid-template-columns: minmax(130px, 38%) 1fr 62px; gap: 10px; font-size: 11px; color: var(--muted); padding: 0 6px 6px; }
.fhead div:nth-child(2) { display: flex; justify-content: space-between; }
.frow { display: grid; grid-template-columns: minmax(130px, 38%) 1fr 62px; gap: 10px; align-items: center; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.frow:hover, .frow[aria-expanded="true"] { background: var(--panel-2); }
.frow b { text-align: right; font-weight: 500; }
.fname { font-weight: 500; font-size: 13px; }
.fdetail { grid-column: 1 / -1; font-size: 13px; max-width: 80ch; }
.drv { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; }
.drv:first-child { border-top: 0; }
.drv small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mini { margin: 2px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.mini.big { font-size: 14px; color: var(--fg); gap: 6px; max-width: 80ch; }
.gaps { margin-top: 14px; }
.gaps summary { cursor: pointer; font-weight: 500; }
.chipx { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin: 1px 3px 1px 0; white-space: nowrap; }
.wl td.setups { white-space: normal; text-align: left; min-width: 230px; }
@media (max-width: 560px) { .mv { grid-template-columns: 92px 64px 1fr; } .mv span:last-child { display: none; } .wf-row { grid-template-columns: minmax(104px, 36%) 1fr 62px; } }

/* ---------- health tab, annual-report changes, economy panel, portfolio ---------- */
.hbig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.hbig b { font: 600 28px/1 var(--mono); }
.setup.checks { gap: 9px; margin-top: 12px; }
.setup li.no::before { background: var(--down); border-color: var(--down); }
.setup li small { display: block; color: var(--muted); font-size: 12px; }
.setup.checks li.todo span { color: var(--muted); }
.gauge-w { position: relative; margin: 14px 0 10px; }
.gauge { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.gauge i { display: block; height: 100%; }
.gauge i.bad { background: color-mix(in srgb, var(--down) 60%, var(--panel)); }
.gauge i.mid { background: var(--line); }
.gauge i.good { background: color-mix(in srgb, var(--up) 60%, var(--panel)); }
.gauge-m { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--fg); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--panel); }
.gauge-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font: 11px var(--mono); color: var(--muted); }
.frow.flat { cursor: default; }
.frow.flat:hover { background: none; }
.ftrack i.warm { background: var(--s2); }
.ftrack i.cool { background: var(--s1); }
.ulink, .wl.macro td a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ulink:hover, .wl.macro td a:hover { text-decoration-color: var(--fg); }
.dgroup { border-top: 1px solid var(--line); padding: 10px 0 4px; margin-top: 12px; }
.dgroup summary { cursor: pointer; font-weight: 500; }
.dpara { margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); font-size: 13px; max-width: 95ch; }
.dpara.add { border-color: var(--up); }
.dpara.del { border-color: var(--down); color: var(--muted); }
.dpara small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.dchg { margin-top: 14px; }
.dlead { margin: 0; font-size: 12px; color: var(--muted); max-width: 95ch; }
.wl.macro tr.grp th { text-align: left; font: 600 12px var(--sans); color: var(--fg); padding-top: 16px; letter-spacing: .02em; }
.wl.macro td { white-space: normal; }
.wl.macro td:first-child { min-width: 220px; }
.wl.macro svg { width: 96px; height: 26px; display: block; margin-left: auto; }
.pf-rows { display: flex; flex-direction: column; }
.pf-row { display: grid; grid-template-columns: minmax(64px, 110px) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.pf-row:first-child { border-top: 0; }
.pf-row label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pbar { display: grid; grid-template-columns: minmax(90px, 1fr) 44px; gap: 4px 8px; align-items: center; min-width: 170px; }
.pbar span { position: relative; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; font-size: 11px; }
.pbar span i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pbar .w i { background: var(--muted); }
.pbar .r i { background: var(--s1); }
.pbar b { font-weight: 400; font-size: 12px; text-align: right; }
.hbar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 48px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hbar:first-child { border-top: 0; }
.hbar .t { position: relative; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.hbar .t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--s1); }
.hbar b { text-align: right; font-weight: 400; }
@media (max-width: 760px) { .nav { overflow-x: auto; scrollbar-width: none; max-width: 100%; } .nav a { white-space: nowrap; } }
.cards.fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- proving grounds ---------- */
.lab-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px 16px; margin: 14px 0 12px; }
.lab-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--muted); }
.lab-f .inp, .lab-f .sel { width: 100%; font-size: 14px; color: var(--fg); }
.lab-f small { font-size: 11px; }
.inp.area { width: 100%; resize: vertical; font: inherit; font-size: 14px; line-height: 1.45; }
.jr { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.jr:first-child { border-top: 0; padding-top: 2px; }
.jr-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px; font-size: 13px; }
.jr-a { border-top: 1px solid var(--line); padding: 8px 0; }
.jr-a:first-child { border-top: 0; }
.jr-a summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; font-size: 13px; }
.jr-a summary .ev-pill { align-self: center; }
.jr-t { flex: 1 1 260px; min-width: 0; }
.jr-a .mini { margin: 8px 0 4px 6px; }
.pbar.one { grid-template-columns: minmax(70px, 1fr) 46px; min-width: 130px; }
.wl td.thesis { white-space: normal; text-align: left; min-width: 240px; max-width: 420px; font-size: 13px; }
.wl.simtb tr.grp th { text-align: left; text-transform: none; letter-spacing: 0; font: 600 14px var(--sans); color: var(--fg); padding: 20px 10px 8px; white-space: normal; }
.wl.simtb tr.grp th .co { max-width: 95ch; font-weight: 400; white-space: normal; overflow: visible; margin-top: 3px; }
.wl.simtb td:first-child .co { max-width: 320px; white-space: normal; }

/* ---------- the board: the Proving Grounds scoreboard as one picture ---------- */
/* Mark colors were checked with a palette validator on both surfaces: ahead and behind stay apart for red-green color
   blindness (and position always says the same thing), and the three list colors pass on every pairing. */
.bd { --bd-ahead: #1a9a66; --bd-behind: #dd5327; --bd-flat: #5d6676; --bd-l1: #2a78d6; --bd-l2: #eb6834; --bd-l3: #1baf7a; --bd-ink: #0b0f17; --bd-on-flat: #fff; --bd-on-l1: #fff; --bd-wash: .06; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bd { --bd-ahead: #1fa672; --bd-behind: #e8603c; --bd-flat: #8e9ab0; --bd-l1: #3987e5; --bd-l2: #d95926; --bd-l3: #199e70; --bd-on-flat: #0b0f17; --bd-on-l1: #0b0f17; --bd-wash: .1; } }
:root[data-theme="dark"] .bd { --bd-ahead: #1fa672; --bd-behind: #e8603c; --bd-flat: #8e9ab0; --bd-l1: #3987e5; --bd-l2: #d95926; --bd-l3: #199e70; --bd-on-flat: #0b0f17; --bd-on-l1: #0b0f17; --bd-wash: .1; }
.bd .c-ahead { --c: var(--bd-ahead); --on: var(--bd-ink); } .bd .c-behind { --c: var(--bd-behind); --on: var(--bd-ink); } .bd .c-flat { --c: var(--bd-flat); --on: var(--bd-on-flat); }
.bd .c-l1 { --c: var(--bd-l1); --on: var(--bd-on-l1); } .bd .c-l2 { --c: var(--bd-l2); --on: var(--bd-ink); } .bd .c-l3 { --c: var(--bd-l3); --on: var(--bd-ink); } .bd .c-rand { --c: var(--muted); }
.bd-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.bd-hero { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bd-tile { background: var(--panel); padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-tile span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.bd-tile b { font: 600 17px/1.25 var(--sans); overflow-wrap: anywhere; }
.bd-tile small { font-size: 11px; color: var(--muted); }
.bd-tile.big b { font: 600 clamp(38px, 4.4vw, 52px)/1.05 var(--sans); letter-spacing: -.02em; }
.bd-strip { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 4px; }
.bd-strip i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.bd-meter { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bd-meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
@media (max-width: 1180px) { .bd-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bd-tile.big { grid-column: 1 / -1; } .bd-tile:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .bd-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-bar { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.bd-barrow { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.bd-ctl { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.bd-k { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); min-width: 46px; flex: none; }
.bd .bd-chips { gap: 5px; align-items: center; min-width: 0; }
.bd .bd-chips .chip { padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
.bd-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex: none; }
.bd .seg { flex-wrap: wrap; }
.bd .seg button { font: 500 12.5px var(--sans); padding: 6px 11px; }
.bd .sel { padding: 5px 8px; font-size: 12.5px; }
.bd-lead { margin: 2px 2px 0; max-width: 115ch; font-size: 15px; }
.bd-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.bd-panel { padding: 12px 12px 14px; }
.bd-stage { position: relative; overflow: hidden; min-height: 300px; }
.bd-svg { display: block; touch-action: pan-y; }
.bd-svg text { user-select: none; -webkit-user-select: none; }
.bd-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 1120px) { .bd-main { grid-template-columns: minmax(0, 1fr); } .bd-side { position: static; max-height: none; } }
.bd > *, .bd-bar > *, .bd-main > * { min-width: 0; }
@media (max-width: 640px) { .bd .bd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; } .bd .bd-chips > * { flex: none; } .bd-ctl { align-items: stretch; flex-direction: column; gap: 5px; flex: 1 1 100%; } .bd-ctl .seg { align-self: flex-start; } .bd-barrow { gap: 10px 16px; } .bd-lead { font-size: 14px; } .bd-rl { font-size: 11.5px; } }
.bd-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.bd-grid.day { stroke: color-mix(in srgb, var(--muted) 40%, var(--line)); }
.bd-zero { stroke: var(--muted); stroke-width: 1.25; }
.bd-mkt { stroke: var(--fg); stroke-width: 1.5; }
.bd-mk { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bd-cap { font: 11px var(--sans); fill: var(--muted); }
.bd-cap.strong { fill: var(--fg); font-weight: 500; }
.bd-cap.halo { paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.bd .ax.dimmer { opacity: .7; font-size: 10px; }
.bd-rl { font: 500 12.5px var(--sans); fill: var(--fg); }
.bd-rl.soft { font-weight: 400; fill: var(--muted); }
.bd-row { fill: transparent; }
.bd-row.hot { fill: var(--panel-2); }
.bd-band { fill: var(--muted); fill-opacity: .1; }
.bd-spread { stroke: color-mix(in srgb, var(--muted) 28%, var(--panel)); stroke-width: 6; stroke-linecap: round; }
.bd-mean { stroke: var(--fg); stroke-width: 2; stroke-linecap: round; }
.bd-wash.up { fill: var(--bd-ahead); fill-opacity: var(--bd-wash); }
.bd-wash.down { fill: var(--bd-behind); fill-opacity: var(--bd-wash); }
.bd-ring { fill: var(--panel); stroke: var(--fg); stroke-width: 2; }
.bd-link { fill: var(--muted); fill-opacity: .05; stroke: var(--muted); stroke-opacity: .32; stroke-width: 1; stroke-linejoin: round; transition: opacity .2s; }
.bd-link.hot { fill-opacity: .13; stroke-opacity: .95; stroke-width: 1.5; }
.bd-link.dim { opacity: .25; }
.bd-nm { font: 11px var(--sans); fill: var(--fg); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; transition: opacity .2s; }
.bd-nm.dim { opacity: .18; }
.bd-nm.hot { font-weight: 600; }
.bd-leader { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; }
.bd-leader.dim { opacity: .12; }
.bd-cross { stroke: var(--muted); stroke-width: 1; }
.bd-m { cursor: pointer; outline: none; }
.bd-m .sh { fill: var(--c); stroke: var(--panel); stroke-width: 2px; paint-order: stroke; transition: fill .35s, opacity .2s; }
.bd-m .dg { font: 600 10.5px var(--mono); fill: var(--on); pointer-events: none; transition: opacity .2s; }
.bd-m.k-rand .sh { stroke: none; fill-opacity: .6; }
.bd-m.dim .sh, .bd-m.dim .dg { opacity: .15; }
.bd-m.hot .sh, .bd-m.pin .sh { stroke: var(--fg); }
.bd-m.pin .sh { stroke-width: 3px; }
.bd-m:focus-visible .sh { stroke: var(--accent); stroke-width: 3px; }
.bd-ln { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .6; transition: opacity .2s; }
.bd-ln.k-rule { stroke: var(--bd-flat); stroke-dasharray: 5 4; }
.bd-ln.hot { opacity: 1; stroke-width: 2.25; }
.bd-ln.top { stroke-width: 3; }
.bd-ln.dim { opacity: .08; }
.bd-trade { fill: var(--fg); stroke: var(--panel); stroke-width: 1; opacity: .75; transition: opacity .2s; }
.bd-trade.dim { opacity: .06; }
.bd-cell { fill: var(--s1); cursor: pointer; transition: opacity .2s; }
.bd-cell.cash { fill: var(--muted); }
.bd-cell.up { fill: var(--bd-ahead); }
.bd-cell.down { fill: var(--bd-behind); }
.bd-cell.flat { fill: var(--bd-flat); }
.bd-cell.dim { opacity: .3; }
.bd-col { fill: transparent; }
.bd-col.hot { fill: var(--accent-soft); }
.bd-ct { font: 11px var(--mono); fill: var(--muted); }
.bd-ct.hot, a:hover > .bd-ct { fill: var(--fg); font-weight: 600; }
.bd .bd-tip { max-width: 300px; min-width: 210px; display: flex; flex-direction: column; gap: 2px; }
.bd .bd-tip[hidden] { display: none; }
.bd-tip small { color: var(--muted); font-size: 11px; }
.bd-kv { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 12.5px; padding: 1px 0; }
.bd-kv span { color: var(--muted); }
.bd .bd-kv b { font-weight: 500; display: inline; margin: 0; white-space: nowrap; }
.bd-kv.on span { color: var(--fg); font-weight: 600; }
.bd .bd-kv.on b { font-weight: 600; }
.bd-time { display: flex; align-items: center; gap: 10px; padding: 10px 4px 2px; flex-wrap: wrap; }
.bd-time[hidden], .bd-time [hidden] { display: none; }
.bd-range { flex: 1 1 200px; min-width: 120px; accent-color: var(--accent); }
.bd-stamp { font-size: 12px; color: var(--muted); }
.bd-play { min-width: 66px; }
.bd .bd-legend { padding: 10px 4px 0; gap: 6px 16px; align-items: center; }
.bd .bd-sw { width: 11px; height: 11px; display: inline-block; margin-right: 6px; vertical-align: -1px; background: var(--c); border-radius: 50%; flex: none; }
.bd .bd-sw.k-rule.p-equal { border-radius: 1px; transform: rotate(45deg) scale(.82); }
.bd .bd-sw.k-rule.p-momentum { border-radius: 0; background: none; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--c); }
.bd .bd-sw.k-rand { width: 7px; height: 7px; opacity: .6; vertical-align: 1px; }
.bd .bd-sw.band { border-radius: 2px; width: 22px; background: color-mix(in srgb, var(--muted) 24%, transparent); }
.bd .bd-sw.cellk { border-radius: 2px; background: var(--s1); }
.bd .bd-sw.cellk.up { background: var(--bd-ahead); }
.bd .bd-sw.cellk.down { background: var(--bd-behind); }
.bd .bd-sw.meank { width: 2px; height: 14px; border-radius: 1px; background: var(--fg); vertical-align: -3px; margin: 0 9px 0 4px; }
.bd-side .h2.gap { margin-top: 16px; margin-bottom: 6px; }
.bd-help { margin: 6px 0 0; font-size: 13px; }
.bd-li { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 7px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 13px; }
.bd-li:first-child { border-top: 0; }
.bd-li:hover { background: var(--panel-2); }
.bd-li b { font-weight: 500; }
.bd-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bd-dn { font-size: 19px; font-weight: 600; margin: 2px 0 0; }
.bd-figs { margin: 12px 0 4px; border-top: 1px solid var(--line); }
.bd-figs .bd-kv { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bd-spark svg { display: block; width: 100%; height: 54px; margin-top: 10px; }
.bd-spark path, .bd-spark line { vector-effect: non-scaling-stroke; }
.bd-cap2 { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.bd-hb { display: grid; grid-template-columns: 52px 1fr 46px 52px; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.bd-hb:first-child { border-top: 0; }
.bd-hb .t { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bd-hb .t i { display: block; height: 100%; border-radius: 4px; background: var(--s1); }
.bd-hb .t i.cash { background: var(--muted); }
.bd-hb b { font-weight: 400; text-align: right; }
.bd-tr { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.bd-tr:first-child { border-top: 0; }
.bd-tr b { font-weight: 500; text-align: right; }
.bd-tr .muted { font-size: 11px; }
.bd-tr .muted:last-child { text-align: right; }
.bd-view { font-size: 13px; margin: 0; }
.bd-syms { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 0; }


/* ---------- design refresh: clearer hierarchy, calmer surfaces, controls that look pressable ---------- */
body { font: 14px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.h1 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; font-size: clamp(25px, 3vw, 33px); line-height: 1.15; }
.h2 { font: 600 15px/1.3 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--fg); }
.sub { font-size: 14px; line-height: 1.55; max-width: 84ch; }
.panel { padding: 18px 20px; box-shadow: var(--shadow); }
.panel-h { margin-bottom: 10px; }
.top { background: color-mix(in srgb, var(--panel) 88%, transparent); }
.nav { gap: 2px; }
.nav a { padding: 7px 12px; border-radius: 8px; transition: background .12s, color .12s; }
.nav a:hover { background: var(--panel-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
.search input, .inp, .sel { border-radius: 8px; padding: 8px 11px; transition: border-color .12s, box-shadow .12s; }
.search input:focus, .inp:focus, .sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.btn { border-radius: 8px; padding: 8px 14px; box-shadow: 0 1px 1px rgba(15, 20, 26, .04); transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn.pri { color: var(--accent-ink); font-weight: 600; }
.btn.pri:hover { background: color-mix(in srgb, var(--accent) 84%, var(--bg)); border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.seg { background: var(--panel-2); padding: 2px; gap: 2px; border-radius: 9px; overflow: visible; }
.seg button { border-radius: 7px; padding: 5px 11px; font: 500 13px var(--sans); transition: background .12s, color .12s; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--fg); box-shadow: 0 1px 2px rgba(15, 20, 26, .16), 0 0 0 1px var(--line); }
.chip { background: var(--panel); transition: background .12s, border-color .12s, color .12s; }
.chip:hover { background: var(--panel-2); border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
.wl th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; padding: 10px 12px; }
.wl td { padding: 12px; }
.wl .sym, .row b, .sr b, .ev-s, .al-rule b, .al-hit b, .earn-c b, .badge { font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }
.stat b { font: 600 19px/1.25 var(--sans); }
.stat span { font-size: 12px; letter-spacing: 0; }
.tile, .stats, .bd-hero, .bd-bar { box-shadow: var(--shadow); }
.tile-p { font: 600 18px var(--sans); }
.tab { font-size: 14px; padding: 10px 14px; }
.ev-pill { border: 0; background: var(--panel-2); padding: 2px 9px; }
.ev-pill.strong, .ev-pill.pos { background: color-mix(in srgb, var(--up) 13%, transparent); }
.ev-pill.neg { background: color-mix(in srgb, var(--down) 12%, transparent); }
.ev-pill.some { background: color-mix(in srgb, var(--s2) 15%, transparent); }
.co-px .p { font: 600 clamp(30px, 5vw, 44px)/1 var(--head); font-variant-numeric: normal; letter-spacing: -.02em; }
.co-sym { font-family: var(--sans); letter-spacing: .06em; }
.lead { line-height: 1.55; }
.search-results, .tip, .toast { box-shadow: var(--pop); }
.bd-tile.big b { font-family: var(--head); font-variant-numeric: normal; }
.bd-dn { font-family: var(--head); }

/* ---------- the scoreboard table ---------- */
.viewsw { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex: none; }
.viewsw a { padding: 7px 18px; border-radius: 7px; font-weight: 500; color: var(--muted); transition: background .12s, color .12s; }
.viewsw a:hover { color: var(--fg); }
.viewsw a[aria-current="page"] { background: var(--seg-on); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 20, 26, .16), 0 0 0 1px var(--line); }
.panel.sb { padding: 0; }
.sb-bar { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 10px; }
.sb-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.sb-popwrap { position: relative; display: inline-flex; }
.sb-grow { flex: 1 1 0; }
.sb-lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.sb-search { flex: 1 1 260px; max-width: 340px; width: auto; padding-left: 34px; background-repeat: no-repeat; background-position: 11px 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a94a3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E"); }
.sb .chips { gap: 5px; align-items: center; }
.sb .chip { padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
.sb .sel { padding: 7px 9px; font-size: 13px; }
.sb-btn { display: inline-flex; align-items: center; gap: 6px; }
.sb-chev { font-style: normal; font-size: 10px; color: var(--muted); }
.sb-badge { display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 11px/17px var(--sans); text-align: center; }
.sb-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); padding: 10px; width: max-content; min-width: 280px; max-width: min(720px, calc(100vw - 40px)); max-height: min(70vh, 640px); overflow: auto; }
.sb-pop.right { left: auto; right: 0; }
.sb-opt { display: flex; gap: 9px; align-items: flex-start; padding: 6px; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 500; }
.sb-opt:hover { background: var(--panel-2); }
.sb-opt small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; max-width: 300px; }
.sb-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.sb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.sb-gh { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 6px 3px; }
.sb-gh:first-child { margin-top: 2px; }
.sb-popf { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sb-act:not(:empty) { padding: 0 16px 12px; }
.sb-meta { margin: 0; padding: 0 16px 10px; font-size: 12.5px; color: var(--muted); }
.sb-meta b { color: var(--fg); font-weight: 600; }
.sb-note { color: var(--s2); font-weight: 500; }
.sb-scroll { overflow: auto; max-height: min(76vh, 1040px); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.sb-t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.sb-t th { position: sticky; top: 0; z-index: 3; background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 0; text-align: left; white-space: nowrap; font-weight: 600; }
.sb-t th.r { text-align: right; }
.sb-th { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 5px; width: 100%; padding: 10px 12px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; }
th.r .sb-th { justify-content: flex-end; }
.sb-th:hover, th.on .sb-th { color: var(--fg); }
.sb-th:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.sb-car { font-style: normal; font-size: 9px; opacity: .4; }
th.on .sb-car { opacity: 1; color: var(--accent); }
.sb-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; background: var(--panel); transition: background .1s; }
.sb-t td.r { text-align: right; }
.sb-t td.wrap { white-space: normal; }
.sb-t td.on { background: color-mix(in srgb, var(--accent-soft) 42%, var(--panel)); }
.sb-t tr.sb-r.k-ai, .sb-t tr.sb-r.k-rule { cursor: pointer; }
.sb-t tbody tr.sb-r:hover td { background: var(--panel-2); }
.sb-t th:first-child, .sb-t td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.sb-t th:first-child { z-index: 4; }
.sb-t.dense td { padding: 5px 12px; }
.sb-t.dense .sb-sub { display: none; }
.sb-t.dense .sb-mk { width: 18px; height: 18px; }
.sb-t .num.muted, .sb-t .muted { color: var(--muted); }
.sb-name { display: flex; align-items: center; gap: 10px; min-width: 216px; }
.sb-nm { font-weight: 600; display: block; }
a.sb-nm:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 1px; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.sb-dot.on { background: var(--up); }
.sb-dot.hold, .sb-dot.wait { background: var(--s2); }
.sb-dot.busy { background: var(--s1); }
.sb-dot.off { background: color-mix(in srgb, var(--muted) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) { .sb-dot.busy { animation: sbpulse 1.4s ease-in-out infinite; } @keyframes sbpulse { 50% { opacity: .3; } } }
.sb-state { display: inline-flex; align-items: center; gap: 7px; }
.sb-mk { width: 24px; height: 24px; flex: none; }
.sb-mk .sh { fill: var(--fg); }
.sb-mk.k-rule .sh, .sb-mk.k-rand .sh { fill: var(--muted); }
.sb-mk.k-bench .sh { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.sb-mk text { font: 600 11.5px var(--sans); fill: var(--panel); }
.sb-t tr.k-bench td { background: var(--panel-2); }
.sb-t tr.k-bench .sb-nm { font-weight: 700; }
.sb-t tr.sb-g td { background: var(--panel-2); color: var(--muted); font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; }
.sb-gl { all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--fg); font-weight: 600; font-size: 13.5px; }
.sb-gl small { font-weight: 500; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.sb-gl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sb-tog { font-style: normal; width: 12px; color: var(--muted); }
.sb-t tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; box-shadow: 0 -1px 0 var(--line); }
.sb-t tfoot td:first-child { z-index: 3; }
.sb-avg { font-size: 12px; font-weight: 500; color: var(--muted); }
.tks { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 430px; min-width: 190px; }
.tk { display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--fg); transition: border-color .12s; }
a.tk:hover { border-color: var(--muted); }
.tk b { font-weight: 600; letter-spacing: .01em; }
.tk i { font-style: normal; font-size: 11px; color: var(--muted); }
.tk.fund { background: color-mix(in srgb, var(--s1) 9%, var(--panel)); border-color: color-mix(in srgb, var(--s1) 24%, var(--line)); }
.tk.cash { background: none; border-style: dashed; color: var(--muted); }
.tk.cash b { font-weight: 500; }
.tk.more { cursor: pointer; font-family: inherit; color: var(--muted); background: none; }
.tk.more:hover { color: var(--fg); border-color: var(--muted); }
.sb-hold { display: inline-flex; gap: 7px; align-items: baseline; }
.tk-s { font-weight: 600; }
.tk-s:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-db { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sb-dbar { display: inline-block; position: relative; width: 46px; height: 6px; border-radius: 3px; background: var(--line); flex: none; }
.sb-dbar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.sb-dbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.sb-dbar i.up { background: var(--up); left: 50%; }
.sb-dbar i.down { background: var(--down); right: 50%; }
.sb-meter { display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; flex: none; }
.sb-meter i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.sb-luck { display: inline-flex; align-items: center; gap: 2px; }
.sb-luck small { color: var(--muted); font-size: 11.5px; margin-right: 8px; }
.sb-inv { display: inline-flex; align-items: center; gap: 8px; }
.sb-spark { width: 92px; height: 26px; display: block; }
.sb-spark .a { fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sb-spark .m { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: .6; stroke-linejoin: round; }
.sb-spark .z { stroke: var(--line); stroke-width: 1; }
.sb-spark .e { fill: var(--fg); stroke: var(--panel); stroke-width: 1.5; }
.sb-empty { padding: 44px 16px; text-align: center; color: var(--muted); }
.sb-empty b { display: block; color: var(--fg); font: 600 16px var(--head); margin-bottom: 4px; }
.sb-empty p { margin: 0 0 12px; }
.sb-new > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none; }
.sb-new > summary::-webkit-details-marker { display: none; }
.sb-new > summary::before { content: "+"; font: 600 18px/1 var(--sans); color: var(--accent); width: 14px; }
.sb-new[open] > summary::before { content: "−"; }
.sb-new > summary .sub { margin: 0; }
.sb-new[open] > summary { margin-bottom: 12px; }
@media (max-width: 640px) { .sb-name { min-width: 168px; } .sb-search { max-width: none; flex-basis: 100%; } .sb-grow { display: none; } .sb-cols { grid-template-columns: minmax(0, 1fr); } .sb-pop { max-width: calc(100vw - 32px); } .viewsw a { padding: 7px 14px; } .panel { padding: 14px; } }

body.wide .top-in, body.wide .view, body.wide .foot { max-width: 1760px; }
.bd-hero.five { grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .bd-hero.five { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bd-hero.five .bd-tile:last-child { grid-column: auto; } }
@media (max-width: 560px) { .bd-hero.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tks { max-width: 372px; }
.sb-name { min-width: 204px; }

/* Figure grids: cells draw their own dividing lines, so a short last row leaves clean space, not a grey block. */
.stats, .bd-hero { background: var(--panel); gap: 0; }
.stat, .bd-tile { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.tks { max-width: 336px; }
.sb-t td, .sb-th { padding-left: 11px; padding-right: 11px; }
@media (max-width: 640px) { .sb-name { min-width: 148px; gap: 8px; } .sb-nm { white-space: normal; } .sb-t td, .sb-th { padding-left: 9px; padding-right: 9px; } .sb-mk { width: 20px; height: 20px; } }


/* ---------- pieces every screen shares ---------- */
.pg-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.pg-h .sub { margin-top: 6px; }
.pg-side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent); color: var(--muted); font: 600 10px/1 var(--sans); cursor: help; position: relative; vertical-align: 1px; margin-left: 6px; flex: none; }
.help:hover, .help:focus-visible { color: var(--fg); border-color: var(--fg); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpis:empty { display: none; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi > span { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; }
.kpi > b { font: 600 22px/1.2 var(--head); letter-spacing: -.01em; font-variant-numeric: normal; overflow-wrap: anywhere; }
.kpi > small { font-size: 12px; color: var(--muted); }
.chg { display: inline-block; padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: 12.5px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.chg.up { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); }
.chg.down { background: color-mix(in srgb, var(--down) 11%, transparent); color: var(--down); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font: 600 16px var(--head); margin-bottom: 4px; }
.empty p { margin: 0 auto 12px; max-width: 46ch; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-h.pad { padding: 16px 20px 0; }
.panel.flush .wl th:first-child, .panel.flush .wl td:first-child { padding-left: 20px; }
.panel.flush .wl th:last-child, .panel.flush .wl td:last-child { padding-right: 20px; }
.panel.flush .wl tr:last-child td { border-bottom: 0; }
.wl.hov tbody tr { cursor: pointer; }
.wl th button:not(.help) { display: inline-flex; align-items: center; gap: 5px; }
.wl th .car::after { content: "↕"; font-style: normal; font-size: 10px; margin-left: 3px; opacity: 0; transition: opacity .12s; }
.wl th button:hover .car::after, .wl th button:focus-visible .car::after { opacity: .5; }
.wl th[aria-sort="ascending"] .car::after { content: "▲"; opacity: 1; color: var(--accent); }
.wl th[aria-sort="descending"] .car::after { content: "▼"; opacity: 1; color: var(--accent); }
.xbtn { all: unset; box-sizing: border-box; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; opacity: .55; transition: background .12s, color .12s, opacity .12s; }
tr:hover .xbtn, .xbtn:focus-visible { opacity: 1; }
.xbtn:hover { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.xbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { grid-template-columns: 64px 1fr auto 74px; border-radius: 6px; }
.row .chg { justify-self: end; }

/* ---------- market overview ---------- */
.mk-lead { margin: 0; max-width: 110ch; font-size: 16px; }
.mk-idx { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mk-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); min-width: 0; transition: border-color .12s, transform .12s; }
.mk-tile:hover { border-color: var(--muted); transform: translateY(-1px); }
.mk-n { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mk-p { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-p b { font: 600 24px/1.1 var(--head); letter-spacing: -.01em; font-variant-numeric: normal; }
.mk-tile svg { width: 100%; height: 46px; display: block; margin-top: 2px; }
.mk-rows { display: flex; flex-direction: column; }
.mk-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto 74px; gap: 12px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--line); border-radius: 6px; }
.mk-row:first-child { border-top: 0; }
.mk-row:hover { background: var(--panel-2); }
.mk-rn b { display: block; font-weight: 600; }
.mk-rn small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.mk-row svg { width: 76px; height: 26px; display: block; }
.mk-row .chg { justify-self: end; }
.secs { display: flex; flex-direction: column; gap: 1px; }
.sec { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; gap: 12px; align-items: center; padding: 6px; border-radius: 6px; }
.sec:hover { background: var(--panel-2); }
.sec-n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-t { position: relative; height: 10px; }
.sec-t::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line); }
.sec-t i { position: absolute; top: 0; bottom: 0; border-radius: 3px; min-width: 2px; }
.sec-t i.up { left: 50%; background: var(--up); }
.sec-t i.down { right: 50%; background: var(--down); }
.sec b { text-align: right; font-weight: 600; }
@media (max-width: 560px) { .mk-row { grid-template-columns: minmax(0, 1fr) auto 70px; } .mk-row svg { display: none; } .sec { grid-template-columns: minmax(100px, 40%) 1fr 58px; } }
.mk-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-tile svg { height: 54px; }


/* ---------- company page ---------- */
.co-px { align-items: center; }
.co-px .c { font: 600 14px var(--sans); padding: 3px 9px; border-radius: 7px; background: var(--panel-2); white-space: pre; }
.co-px .c.up { background: color-mix(in srgb, var(--up) 12%, transparent); }
.co-px .c.down { background: color-mix(in srgb, var(--down) 11%, transparent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.facts-c { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 6px; min-width: 0; }
.facts-c h3 { margin: 0; font: 600 15px/1.3 var(--sans); }
.facts-c > p { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.facts-c dl { margin: 0; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.fact dt { font-size: 13px; min-width: 0; }
.fact dt > span { display: inline-flex; align-items: center; }
.fact dt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.fact dd { margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
.filing { border-radius: 6px; }
.chart-leg { font-family: var(--sans); }

/* ---------- alerts and signals ---------- */
.al-say { font-weight: 600; }
.al-rule { grid-template-columns: 64px 1fr auto auto; border-radius: 6px; }
.al-rule .btn.sm[aria-pressed="false"] { color: var(--muted); }
.earn-c { border-radius: 10px; transition: border-color .12s, transform .12s; }
.earn-c:hover { transform: translateY(-1px); }
.ev { border-radius: 6px; }
.ev-day { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--fg); border-bottom-color: var(--line); }
.setup li { padding-left: 24px; }
.pbar .r i { background: var(--s2); }
.wl.tb td:first-child a:hover .sym { text-decoration: underline; text-underline-offset: 3px; }
.pf-row { grid-template-columns: minmax(64px, 110px) 1fr 28px; }
.pf-holdings { display: grid; gap: 12px; }
.pf-holdings > * { min-width: 0; }
.pf-holdings > .panel-h { margin-bottom: 0; flex-wrap: wrap; }
.pf-toolbar, .pf-actions { display: flex; gap: 8px; align-items: center; }
.pf-toolbar { flex-wrap: wrap; position: relative; }
.pf-toolbar[hidden] { display: none; }
.pf-workspace, .pf-card-layout, .pf-risk-card { display: grid; gap: 12px; min-width: 0; }
.pf-dashboard-item { min-width: 0; }
.pf-card-layout[hidden], .pf-dashboard-item[hidden], .pf-card-layout .empty[hidden], .pf-risk-card > .eng:empty { display: none; }
.pf-cards-menu { position: absolute; z-index: 12; inset-inline-end: 0; top: calc(100% + 6px); width: min(22rem, calc(100vw - 32px)); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--pop); }
.pf-cards-menu[hidden] { display: none; }
.pf-cards-menu .pf-column-options { margin: 0; }
.pf-toolbar button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.pf-unlock { display: grid; gap: 12px; max-width: 380px; }
.pf-remember { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.pf-holdings .tblwrap, .pf-holdings .kpis { margin: 0; }
.pf-account-mix { container-type: inline-size; display: grid; gap: 6px; margin-top: 6px; }
.pf-mix-bar { display: flex; height: 8px; overflow: hidden; border-radius: 99px; }
.pf-mix-bar span { background: var(--mix-color); }
.pf-mix-bar span + span { box-shadow: inset 2px 0 var(--panel); }
.pf-mix-invested { --mix-color: var(--s1); }
.pf-mix-cash { --mix-color: var(--s2); }
.pf-account-mix-debit .pf-mix-cash { --mix-color: var(--down); }
.pf-mix-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 3px; margin: 0; }
.pf-mix-item dt, .pf-mix-item dt > span:first-child { display: flex; align-items: center; gap: 4px; }
.pf-mix-item dt { flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.pf-mix-item i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--mix-color); }
.pf-mix-pct { font-size: 10px; color: var(--mix-color); font-weight: 600; }
.pf-mix-item dd { margin: 0; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
@container (max-width: 184px) {
  .pf-mix-values { grid-template-columns: 1fr; }
  .pf-mix-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 6px; }
  .pf-mix-item dd { text-align: end; }
}
@container (max-width: 155px) {
  .pf-mix-item { grid-template-columns: 1fr; }
  .pf-mix-item dd { text-align: start; }
}
.pf-table th, .pf-table .num { white-space: nowrap; }
.pf-table th, .pf-table td { padding: 8px; }
.pf-actions .btn { padding: 4px 7px; }
.pf-position-view { min-width: 0; }
.pf-chart { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pf-chart-header { padding: 12px 14px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.pf-chart-title, .pf-chart-readouts, .pf-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.pf-chart-title .h2 { margin: 0; }
.pf-chart-title .muted { font-size: 12px; }
.pf-chart-window { font-variant-numeric: tabular-nums; }
.pf-chart-window:empty { display: none; }
.pf-chart-legend-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 14px; padding: 0 14px 12px; }
.pf-chart-ranges { justify-self: end; }
.pf-chart-ranges button { padding: 5px 7px; }
.pf-chart-readouts > .btn { padding: 5px 9px; font-size: 12px; }
.pf-chart-readouts > [hidden] { display: none; }
@media (max-width: 670px) { .pf-chart-legend-row { grid-template-columns: minmax(0, 1fr); } .pf-chart-ranges { justify-self: start; } }
.pf-chart-legend { gap: 5px; }
.pf-chart-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font: inherit; font-size: 12px; cursor: pointer; }
.pf-chart-chip[aria-pressed="false"] { background: transparent; color: var(--muted); }
.pf-chart-chip[aria-pressed="false"] .pf-chart-swatch { opacity: .36; }
.pf-chart-chip:focus-visible, .pf-chart-plot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pf-chart-swatch { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.pf-chart-value, .pf-chart-change { white-space: nowrap; text-align: right; font-size: 11px; }
.pf-chart-value { min-width: 7ch; }
.pf-chart-change { min-width: 5.4ch; }
.pf-chart-value:empty, .pf-chart-change:empty { display: none; }
.pf-chart-frame { position: relative; border-block: 1px solid var(--line); }
.pf-chart-plot { height: clamp(280px, 35vw, 390px); min-width: 0; }
.pf-chart-state { position: absolute; inset: 0; display: grid; place-content: center; padding: 16px; text-align: center; color: var(--muted); background: var(--panel); }
.pf-chart-state[hidden] { display: none; }
.pf-trade-tip { position: absolute; z-index: 3; pointer-events: none; max-width: min(300px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: hidden; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--pop); color: var(--fg); font-size: 11px; overflow-wrap: anywhere; }
.pf-trade-tip[hidden] { display: none; }
.pf-trade-tip-row + .pf-trade-tip-row { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.pf-trade-tip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; margin-bottom: 3px; }
.pf-trade-tip-side { border-radius: 4px; padding: 0 5px; background: color-mix(in srgb, currentColor 12%, var(--panel)); font-weight: 700; }
.pf-trade-tip-price { margin-inline-start: auto; }
.pf-chart-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 9px 14px; }
.pf-chart-date { font-size: 12px; font-weight: 600; }
.pf-candle-readout { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.pf-candle-readout[hidden] { display: none; }
.pf-candle-readout > span { display: inline-flex; gap: 4px; }
.pf-candle-readout b { color: var(--muted); font-weight: 500; }
.pf-chart-trade-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 7px; }
.pf-chart-trade-bar > .btn { margin-inline-start: auto; }
.pf-chart-trades { min-width: 0; flex: 1 1 16rem; }
.pf-chart-trades > summary, .pf-trade-import > summary { cursor: pointer; font-weight: 600; }
.pf-chart-trades-list { max-height: 16rem; overflow-y: auto; list-style: none; padding: 0; margin: 4px 0; }
.pf-chart-trade { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; padding: 6px 4px; cursor: pointer; }
.pf-chart-trade:hover, .pf-chart-trade:focus-visible { background: var(--panel-2); }
.pf-trade-import { margin-top: 12px; }
.pf-view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }
.pf-view-bar .h2 { margin: 0; }
.pf-view-count { margin-right: auto; font-size: 12px; }
.pf-search { flex: 1 1 170px; max-width: 255px; min-width: 145px; }
.pf-view-actions, .pf-column-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-column-heading .sub { margin: 0; }
.pf-view-bar [aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.pf-view-panel { padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.pf-view-panel[hidden], .pf-position-scroll[hidden], .pf-view-panel .msg[hidden] { display: none; }
.pf-freeze-setting { display: grid; gap: 4px; margin-bottom: 12px; }
.pf-freeze-setting .pf-field { width: min(100%, 18rem); }
.pf-freeze-setting .sub { margin: 0; }
.pf-position-scroll .pf-table .pf-frozen { position: sticky; z-index: 1; background: var(--panel); }
.pf-position-scroll .pf-table tbody tr:hover > .pf-frozen { background: var(--panel-2); }
.pf-position-scroll .pf-table .pf-frozen-edge { box-shadow: 1px 0 var(--line), 3px 0 4px rgb(0 0 0 / .06); }
.pf-position-view .pf-table th.l, .pf-position-view .pf-table td.l { text-align: left; }
.pf-position-view .pf-table th button:focus-visible, .pf-position-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-trend { display: inline-flex; align-items: center; gap: 8px; border-radius: 3px; color: var(--muted); }
.pf-trend.up { color: var(--up); }
.pf-trend.down { color: var(--down); }
.pf-trend:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-trend:hover .num { text-decoration: underline; }
.wl .pf-trend svg { width: 106px; height: 30px; }
.wl .pf-trend-short svg { width: 150px; height: 42px; }
.pf-trend .spark-line { stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pf-trend .spark-area { fill: currentColor; opacity: .12; }
.pf-trend .spark-end { fill: currentColor; stroke: var(--panel); stroke-width: 1; }
.pf-trend .num { min-width: 7ch; font-size: 12px; }
.pf-sort-mark { color: var(--accent); font-size: 10px; }
.pf-column-options { list-style: none; margin: 10px 0; display: grid; gap: 6px; }
.pf-column-options { grid-template-columns: minmax(0, 1fr); max-width: 28rem; max-height: min(24rem, 52vh); overflow-y: auto; scrollbar-gutter: stable; padding: 3px 6px 3px 2px; }
.pf-column-options li { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pf-column-options label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pf-column-options .btn { min-width: 30px; padding: 4px 7px; }
.pf-group-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pf-view-panel .pf-field[hidden] { display: none; }
.pf-account-toggle { font: inherit; color: var(--accent); border: 0; background: transparent; padding: 2px 0; cursor: pointer; }
.pf-account-toggle::before { content: '▸'; margin-right: 5px; }
.pf-account-toggle[aria-expanded="true"]::before { content: '▾'; }
.pf-account-toggle:hover { text-decoration: underline; }
.pf-account-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-account-detail > td { padding: 8px 16px 12px; background: var(--panel-2); }
.pf-account-breakdown { width: 100%; border-collapse: collapse; }
.pf-account-breakdown th[scope="row"] { text-align: left; color: var(--fg); }
.pf-account-breakdown :is(th, td) { font-size: 12px; }
.pf-option-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-option-actions .btn:last-child { margin-inline-start: auto; }
.pf-account-totals th[scope="row"] { font-size: inherit; }
.pf-phone-only, .pf-swipe-hint { display: none; }
.pf-view-panel input[aria-invalid="true"] { border-color: var(--down); }
.pf-form { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.pf-form > summary { cursor: pointer; font-weight: 600; }
.pf-form .al-form, .pf-fields, .pf-form textarea { margin-top: 12px; }
.pf-tool-dialog { width: min(36rem, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--fg); }
.pf-tool-dialog::backdrop { background: rgba(8, 12, 18, .45); }
.pf-tool-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-tool-header .h2 { margin: 0; }
.pf-tool-body textarea { display: block; width: 100%; margin-top: 12px; }
.pf-tool-body .al-form { margin-top: 12px; }
.pf-tool-dialog .msg:not(:empty) { margin-top: 8px; }
.pf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 10px; }
.pf-field { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 12px; }
.pf-field > *, .pf-form textarea { width: 100%; min-width: 0; }
.pf-holdings .pf-quote-note, .pf-holdings .msg { margin: 0; }
.pf-holdings .msg:empty, .pf-quote-note:empty { display: none; }
@media (max-width: 640px), (max-width: 900px) and (pointer: coarse) {
  .pf-holdings { padding: 10px; }
  .pf-holdings .btn, .pf-risk-card .btn { min-height: 44px; }
  .pf-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 6px; width: 100%; }
  .pf-toolbar > .btn, .pf-toolbar > div > .btn { width: 100%; padding: 6px; line-height: 1.2; white-space: normal; }
  .pf-cards-menu { inset-inline-start: 0; inset-inline-end: auto; width: 100%; max-width: 24rem; }
  .pf-summary .kpis { gap: 8px; }
  .pf-summary .kpi { padding: 9px; }
  .pf-summary .kpi > b { font-size: clamp(14px, 4vw, 18px); }
  .pf-chart-header { padding: 10px; }
  .pf-chart-legend-row { padding: 0 10px 10px; }
  .pf-chart-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr)); width: 100%; }
  .pf-chart-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1px 4px; min-height: 44px; text-align: left; }
  .pf-chart-chip b { grid-column: 2 / 4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-chart-chip .pf-chart-value { grid-column: 1 / 3; min-width: 0; text-align: left; }
  .pf-chart-chip .pf-chart-change { grid-column: 3; min-width: 0; }
  .pf-chart-ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .pf-chart-ranges button, .pf-chart-styles button { min-height: 44px; }
  .pf-candle-readout { flex-basis: 100%; }
  .pf-chart-trade, .pf-chart-trades > summary, .pf-trade-import > summary { min-height: 44px; align-content: center; }
  .pf-chart-plot { height: 255px; }
  .pf-chart-footer { padding: 8px 10px; }
  .pf-view-count { margin: 0 0 0 auto; }
  .pf-search { flex: 1 0 100%; max-width: none; }
  .pf-view-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .pf-view-actions .btn, .pf-option-actions .btn { padding-inline: 7px; font-size: 13px; white-space: normal; line-height: 1.2; }
  .pf-holdings :is(.inp, .sel), .pf-risk-card :is(.inp, .sel) { min-height: 44px; font-size: 16px; }
  .pf-column-options label, .pf-group-toggle, .pf-remember { min-height: 44px; cursor: pointer; }
  .pf-column-options input[type="checkbox"], .pf-group-toggle input, .pf-remember input { width: 18px; height: 18px; flex-shrink: 0; }
  .pf-column-options .btn { min-width: 44px; }
  .pf-position-scroll .pf-table { min-width: 100%; }
  .pf-holdings .pf-table td:first-child { min-width: 0; }
  .pf-account-totals .pf-table tr > :first-child {
    position: sticky; inset-inline-start: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 var(--line);
  }
  .pf-table .pf-ticker { white-space: nowrap; }
  .pf-account-totals .pf-table tr > :first-child { min-width: 6.5rem; max-width: 42vw; white-space: normal; overflow-wrap: anywhere; }
  .pf-account-totals .pf-table tr:hover > :first-child { background: var(--panel-2); }
  .pf-position-scroll .pf-table td, .pf-position-scroll .pf-table th { padding: 3px 8px; }
  .pf-position-scroll .pf-table th button:not(.help), .pf-position-scroll :is(.ev-s, .pf-trend, .pf-account-toggle, .xbtn) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .pf-position-scroll .xbtn { min-width: 44px; justify-content: center; }
  .pf-position-scroll .pf-trend { gap: 4px; }
  .pf-position-scroll .pf-trend svg { width: 92px; }
  .pf-position-scroll .pf-trend-short svg { width: 114px; height: 34px; }
  .pf-phone-only, .pf-swipe-hint:not([hidden]) { display: block; }
  .pf-swipe-hint { margin: 0 0 3px; font-size: 12px; }
  .pf-form { padding-block: 2px; }
  .pf-form > summary { min-height: 44px; line-height: 44px; }
}
.seg { flex-wrap: wrap; max-width: 100%; }
.panel-h > *, .pg-h > * { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .co-px .p { font-size: 30px; } .facts { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi > b { font-size: 19px; } .mk-p b { font-size: 20px; } }
.kpi, .fact { position: relative; }
/* The index tiles grow to the height of the card beside them, so the two cards end level. */
.grid2.g64 > .panel { display: flex; flex-direction: column; }
.mk-idx { flex: 1; grid-auto-rows: 1fr; }
.mk-tile svg { flex: 1 1 46px; height: auto; min-height: 46px; }


/* ---------- the app shell: a menu down the left, the page beside it ---------- */
body { display: flex; align-items: flex-start; min-height: 100vh; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; width: 244px; flex: none; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px 12px; background: var(--panel); border-right: 1px solid var(--line); z-index: 40; transition: width .2s ease; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 2px 8px; min-height: 36px; }
.side-btn { all: unset; box-sizing: border-box; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); cursor: pointer; flex: none; transition: background .12s, color .12s; }
.side-btn:hover { background: var(--panel-2); color: var(--fg); }
.side-btn:focus-visible, .side-nav a:focus-visible, .side-item:focus-visible, .side-menu [role^="menuitem"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-btn .chev { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; }
.side-nav a, .side-item { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.side-nav a:hover, .side-item:hover { background: var(--panel-2); color: var(--fg); }
.side-nav a[aria-current="page"], .side-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav a[aria-current="page"]::before, .side-item.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.side .status { display: flex; margin: 0; padding: 2px 10px; font-size: 11.5px; line-height: 1.35; white-space: normal; align-items: flex-start; min-height: 18px; }
.side .status .dot { margin-top: 4px; flex: none; }
.side-set { position: relative; }
.side-item .up { width: 16px; height: 16px; opacity: .7; transition: transform .15s; }
.side-item[aria-expanded="true"] { background: var(--panel-2); color: var(--fg); }
.side-item[aria-expanded="true"] .up { transform: rotate(180deg); }
.side .count { margin-left: 0; }
/* The settings menu opens upward, because it sits at the foot of the menu. */
.side-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 50; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); transform-origin: bottom center; }
.side-menu[hidden] { display: none; }
.side-menu-separator { border-top: 1px solid var(--line); margin: 3px 4px; }
.side-menu [role^="menuitem"] { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--fg); background: transparent; text-align: start; cursor: pointer; transition: background .12s; }
.side-menu [role^="menuitem"][hidden] { display: none; }
.side-menu [role^="menuitem"]:hover, .side-menu [role^="menuitem"]:focus-visible { background: var(--panel-2); }
.side-menu .ic { color: var(--muted); }
.side-menu [role^="menuitem"] > span:not(.count) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.side-menu b { font-weight: 600; font-size: 13.5px; }
.side-menu small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.side-menu a[aria-current="page"] { background: var(--accent-soft); }
.side-menu a[aria-current="page"] .ic, .side-menu a[aria-current="page"] b { color: var(--accent); }
.app-install-dialog { width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--fg); box-shadow: var(--pop); }
.app-install-dialog::backdrop { background: rgba(8, 12, 18, .45); }
.app-install-dialog img { display: block; border-radius: 12px; }
.app-install-dialog h2 { margin: 12px 0 0; font: 600 22px/1.2 var(--head); }
.app-install-dialog p { margin: 8px 0 16px; color: var(--muted); }
.app-install-dialog form { display: flex; justify-content: flex-end; }
.app-install-dialog .btn { min-height: 44px; min-width: 68px; }
@media (prefers-reduced-motion: no-preference) { .side-menu { animation: menu-up .14s ease-out; } @keyframes menu-up { from { opacity: 0; transform: translateY(6px) scale(.98); } } }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.top-in { width: 100%; padding: 10px 24px; flex-wrap: nowrap; gap: 10px; }
.view { width: 100%; padding: 22px 24px 40px; flex: 1; }
#view:has(> .pf-workspace) {
  --portfolio-gutter: clamp(6px, 1vw, 14px);
  max-width: none;
  padding-left: max(var(--portfolio-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--portfolio-gutter), env(safe-area-inset-right, 0px));
}
.pf-workspace .pf-holdings, .pf-workspace .pf-risk { padding-inline: clamp(8px, 1.1vw, 14px); }
.foot { width: 100%; padding: 0 24px 32px; }
.search { max-width: 520px; flex: 1 1 320px; }
.search input { padding-left: 34px; padding-right: 36px; background-repeat: no-repeat; background-position: 11px 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a94a3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E"); }
.search-k { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 500 11px/18px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; background: var(--panel-2); pointer-events: none; }
.search input:focus ~ .search-k, .search input:not(:placeholder-shown) ~ .search-k { display: none; }
.pg-h .search input, .al-form .search input { background-image: none; padding-left: 11px; padding-right: 11px; }
.top-brand, .side-close, .side-mobile-heading, .mobile-nav, .side-nav .side-mobile-link { display: none; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(8, 12, 18, .45); }
.scrim[hidden] { display: none; }
.offline-banner { width: min(calc(100% - 28px), 1360px); margin: 10px auto 0; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--s2) 32%, var(--line)); border-radius: 9px; background: var(--warn-soft); color: var(--fg); font-size: 13px; }
.top-search { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--panel-2); color: var(--muted); cursor: pointer; font-weight: 600; }
.top-search .ic { width: 17px; height: 17px; }
.ticker-search { inset: max(10px, env(safe-area-inset-top)) 0 auto; margin: 0 auto; width: min(560px, calc(100% - 24px)); max-height: calc(var(--search-height, 100dvh) - max(24px, env(safe-area-inset-top) + 16px)); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--fg); box-shadow: var(--pop); }
.ticker-search::backdrop { background: rgb(8 12 18 / .5); }
.ticker-search-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ticker-search-head h2, .side-mobile-heading { margin: 0; font: 600 23px/1.2 var(--head); }
.ticker-search .side-btn { width: 44px; height: 44px; }
.ticker-search .search { max-width: none; }
.ticker-search input { min-height: 48px; font-size: 16px; background-color: var(--panel-2); }
.ticker-search .search-results { position: static; margin-top: 8px; border: 0; border-radius: 8px; box-shadow: none; }
.ticker-search .sr { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; min-height: 52px; border-radius: 8px; }
.ticker-search .sr span { white-space: normal; overflow-wrap: anywhere; }
.ticker-search .sr small { grid-column: 2; }

/* Collapsed to icons: the names appear beside an icon when it is pointed at or reached with the keyboard. */
@media (min-width: 901px) {
  html.nav-min .side { width: 68px; }
  html.nav-min .side .lbl, html.nav-min .side .brand-name, html.nav-min .side .status, html.nav-min .side-item .up { display: none; }
  html.nav-min .side-top { flex-direction: column; padding: 2px 0; gap: 10px; }
  html.nav-min .side-nav a, html.nav-min .side-item { justify-content: center; padding: 10px 0; }
  html.nav-min .side-btn .chev { transform: rotate(180deg); }
  html.nav-min .side-item .count { position: absolute; top: 2px; right: 6px; min-width: 16px; font-size: 10px; line-height: 16px; }
  html.nav-min .side-menu { left: calc(100% + 10px); right: auto; bottom: 0; width: 252px; transform-origin: bottom left; }
  html.nav-min .side [data-label]:hover::after, html.nav-min .side [data-label]:focus-visible::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 60; background: var(--fg); color: var(--bg); font: 500 12px var(--sans); padding: 5px 9px; border-radius: 7px; white-space: nowrap; box-shadow: var(--pop); pointer-events: none; }
  html.nav-min .side-item[aria-expanded="true"]::after { display: none; }
}
/* Primary destinations stay within reach and the rest of the menu opens above them. */
@media (max-width: 900px) {
  :root { --mobile-nav-height: calc(60px + env(safe-area-inset-bottom, 0px)); scroll-padding-top: calc(70px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: var(--mobile-nav-height); }
  body { display: block; }
  html.nav-open, html:has(.ticker-search[open]) { overflow: hidden; }
  .side { position: fixed; inset: auto 0 0; width: min(100%, 520px); height: auto; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); margin: 0 auto; padding: 10px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); gap: 8px; border: 1px solid var(--line); border-radius: 20px 20px 0 0; overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); visibility: hidden; pointer-events: none; transition: transform .2s ease, visibility 0s .2s; }
  html.nav-open .side { transform: none; visibility: visible; pointer-events: auto; box-shadow: var(--pop); transition: transform .2s ease; }
  .side-mobile-heading { display: block; }
  .side-top { position: sticky; top: -10px; z-index: 1; padding: 5px 2px; background: var(--panel); }
  .side-top .brand, #side-toggle, .side #search, .side .search, .side-nav :is([data-nav="market"], [data-nav="portfolio"]) { display: none; }
  .side-close { display: grid; width: 44px; height: 44px; }
  .side-nav { flex: none; }
  .side-nav .side-mobile-link { display: flex; }
  .side-foot { gap: 5px; padding-top: 6px; }
  .side-foot .status { order: 1; }
  .side-foot .status:empty { display: none; }
  .side .status { padding-block: 4px; }
  .side-menu { position: static; border: 0; padding: 4px 0 0 13px; box-shadow: none; animation: none; }
  .side-menu :is(a[data-nav], .side-menu-separator) { display: none; }
  .side-item .up { transform: rotate(180deg); }
  .side-item[aria-expanded="true"] .up { transform: none; }
  .side-menu [role^="menuitem"], .side-nav a, .side-item { min-height: 46px; }
  .top-brand { display: inline-flex; min-height: 44px; }
  .top .top-in { justify-content: space-between; padding: max(7px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 7px max(14px, env(safe-area-inset-left)); gap: 8px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 28; inset: auto 0 0; min-height: var(--mobile-nav-height); padding: 3px max(6px, env(safe-area-inset-right)) max(3px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--panel); }
  .mobile-nav > * { position: relative; display: grid; place-items: center; align-content: center; min-width: 0; min-height: 53px; border: 0; border-radius: 10px; padding: 3px 0; gap: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 600; line-height: 1.1; }
  .mobile-nav .ic { box-sizing: content-box; width: 20px; height: 20px; padding: 4px 13px; border-radius: 99px; }
  .mobile-nav [aria-current="page"], .mobile-nav .on { color: var(--accent); font-weight: 700; }
  .mobile-nav [aria-current="page"] .ic, .mobile-nav .on .ic { background: var(--accent-soft); }
  .mobile-nav .count { position: absolute; margin: 0; top: 2px; inset-inline-start: calc(50% + 12px); }
  .view { padding: 16px max(12px, env(safe-area-inset-right)) calc(var(--mobile-nav-height) + 20px) max(12px, env(safe-area-inset-left)); gap: 14px; }
  .toasts { bottom: calc(var(--mobile-nav-height) + 10px); }
  .foot { padding: 0 16px 28px; }
  .search-k { display: none; }
  .main { min-height: 100dvh; }
  .view :is(.btn, .tab, .seg button, .chip) { min-height: 44px; }
  .view :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
  .side .side-menu .ic { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { .side, html.nav-open .side { transition: none; } }

/* ---------- market: what the radar and the signals found, on the front page ---------- */
.attn .grid3 { gap: 14px 32px; }
.attn-h { margin: 0 0 4px; font: 600 12.5px var(--sans); color: var(--muted); display: flex; align-items: center; position: relative; }
.attn-ev { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1px 10px; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 6px; }
.attn-ev:first-child { border-top: 0; }
.attn-ev:hover { background: var(--panel-2); }
.attn-ev b { font-weight: 600; }
.attn-ev span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.attn-ev small { grid-column: 2; color: var(--muted); font-size: 12px; }
.attn-n { margin: 6px 4px 0; font-size: 12.5px; color: var(--muted); }
.more { display: inline-block; margin: 8px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.attn .row { grid-template-columns: 56px 1fr 0 auto; }


/* ---------- the company cockpit: verdict tiles, the layered chart with the selected day beside it, the evidence ---------- */
.rd-lead { max-width: 112ch; margin: 2px 0 0; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
@media (min-width: 1240px) { .rd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rd { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; transition: border-color .12s, transform .12s; }
a.rd:hover, button.rd:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); }
.rd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd[aria-busy] { cursor: default; }
.rd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 13.5px var(--sans); color: var(--fg); min-height: 22px; }
.rd-h .ev-pill { align-self: center; }
.rd-b { display: flex; flex-direction: column; gap: 1px; }
.rd-b b { font: 600 26px/1.15 var(--head); letter-spacing: -.01em; }
.rd-b b.txt { font-size: 17px; line-height: 1.3; }
.rd-b small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.rd-l { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.rd-key { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.rd-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp6 { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rd-ck { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.rd-ck div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.rd-ck i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.rd-ck .pos i { background: var(--up); }
.rd-ck .neg i { background: var(--down); }
.rd-ck .some i { background: var(--s2); }
.rd-ck em { font-style: normal; color: var(--muted); }
.rb { margin: 4px 0 2px; }
.rb-t { position: relative; height: 8px; border-radius: 4px; background: var(--panel-2); }
.rb-t em, .rb-t i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.rb-t em { background: color-mix(in srgb, var(--s1) 22%, transparent); }
.rb-t i { background: color-mix(in srgb, var(--s1) 58%, transparent); }
.rb-t u { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--panel); }
.rb-l { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.stk { display: flex; gap: 2px; height: 8px; margin: 4px 0 2px; }
.stk i { border-radius: 3px; min-width: 3px; }
.stk-m { background: color-mix(in srgb, var(--muted) 62%, transparent); }
.stk-s { background: color-mix(in srgb, var(--muted) 28%, transparent); }
.stk-x { background: var(--s1); }
.ck { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.ck > .panel { min-width: 0; }
.ck-day { display: flex; flex-direction: column; }
.ck-day .daycard { flex: 1; }
.ck-day .seg button { padding: 3px 12px; font-size: 16px; line-height: 1.2; }
.ck-layers { align-items: center; margin: 0 0 10px; }
.ck-lab { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.ck-layers .chip { padding: 4px 11px; font-size: 12.5px; }
.ck-leg { margin-top: 10px; min-height: 16px; }
@media (max-width: 1180px) { .ck { grid-template-columns: minmax(0, 1fr); } }
.ah { display: flex; flex-direction: column; }
.ah-r { display: grid; grid-template-columns: 96px 76px minmax(0, 1fr) 62px; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ah-r > :nth-child(2), .ah-r > :nth-child(4) { text-align: right; }
.ah-h { border-top: 0; font-size: 11.5px; color: var(--muted); padding-top: 0; }
.ah-r .rb { margin: 0 0 3px; }
.ah-r small { font-size: 11.5px; }
.su { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.su:first-child { border-top: 0; }
.su > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.su small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.su > b { text-align: right; font-weight: 600; }
.su .ev-pill { align-self: center; }
.rx { display: flex; gap: 6px; align-items: stretch; margin: 4px 0; }
.rx-c { flex: 1; min-width: 0; display: grid; grid-template-rows: 38px 38px auto auto; text-align: center; }
.rx-c i { display: flex; justify-content: center; }
.rx-c i:first-child { align-items: flex-end; border-bottom: 1px solid var(--muted); }
.rx-c i:nth-child(2) { align-items: flex-start; }
.rx-c u { width: min(26px, 70%); border-radius: 3px 3px 0 0; }
.rx-c u.pos { background: var(--up); }
.rx-c u.neg { background: var(--down); border-radius: 0 0 3px 3px; }
.rx-c b { font-size: 11.5px; font-weight: 600; margin-top: 3px; }
.rx-c small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
@media (max-width: 560px) {
  .ah-r { grid-template-columns: 76px 62px minmax(0, 1fr) 44px; gap: 8px; }
  .su { grid-template-columns: minmax(0, 1fr) 56px; }
  .su .ev-pill { grid-column: 1; grid-row: 2; justify-self: start; }
  .su > b { grid-column: 2; grid-row: 1; }
  .rd-b b { font-size: 23px; }
  .rx-c small { font-size: 9.5px; }
}


/* ---------- page headings and desktop search ---------- */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pg-h.bare { justify-content: space-between; }
.side { gap: 14px; }
.side .search { flex: none; max-width: none; }
.side .search input { background-color: var(--panel-2); border-color: transparent; }
.side .search input:focus { background-color: var(--panel); }
.side .search-results { right: auto; width: 330px; max-width: calc(100vw - 32px); z-index: 60; }
.side-find { display: none; }
@media (min-width: 901px) {
  .top { display: none; }
  .view { padding-top: 26px; }
  .bd-side { top: 20px; max-height: calc(100vh - 40px); }
  html.nav-min .side .search { display: none; }
  html.nav-min .side-find { display: flex; }
}
@media (max-width: 900px) {
  .top-in { justify-content: flex-start; }
  .top-brand { margin-left: 2px; }
}

/* ---------- explanations on demand ---------- */
/* One floating note serves every "?" and every explained column heading. It is fixed to the window and placed by script,
   so a panel or a scrolling table never clips it and it never widens the page. */
.note-pop { position: fixed; z-index: 120; left: 0; top: 0; box-sizing: border-box; width: max-content; max-width: 290px; background: var(--fg); color: var(--bg); font: 400 12.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 9px 12px; border-radius: 9px; box-shadow: var(--pop); pointer-events: none; }
.note-pop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .note-pop { animation: note-in .12s ease-out; } @keyframes note-in { from { opacity: 0; transform: translateY(3px); } } }
/* The mark is small; the area that answers a finger is not. A mark whose note is held open is filled in. */
.help::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help[data-open] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.h2 .help { vertical-align: 2px; margin-left: 7px; }
.ai-h .help, .wl th .help, .sub .help { vertical-align: 0; }
.al-form > .help { margin-left: 0; }

/* ---------- orders: the real-money account ---------- */
.ord { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ord .lead { margin: 0; }
.kpi > b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kpi > b.warn { color: var(--s2); }
.ord-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ord-mkt { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ord-mkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ord-mkt.on { color: var(--fg); }
.ord-mkt.on i { background: var(--up); }
.ord-mkt small { font-size: 12px; color: var(--muted); }
.ord-t th.l, .ord-t td.l { text-align: left; }
.ord-t td { vertical-align: middle; }
.ord-t.wl.tb td:first-child { min-width: 0; white-space: nowrap; }
.ord-t.wl.tb tr.ord-x td { white-space: normal; }
.ord-t tfoot td { border-bottom: 0; font-weight: 600; }
.ord-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font: 600 11px var(--mono); }
.ord-o { display: inline-flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ord-o small, .ord-px small, .ord-w small { font: 400 11.5px var(--sans); color: var(--muted); }
.ord-px, .ord-w { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ord-w { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 2px 6px; max-width: 150px; color: var(--muted); }
.ord-w i { font-style: normal; }
.ord-w b { color: var(--fg); font-weight: 600; }
.ord-w small { flex-basis: 100%; text-align: right; }
.ord-r { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-family: var(--sans); color: var(--muted); }
.ord-more { all: unset; cursor: pointer; font: 600 12px var(--sans); color: var(--accent); border-radius: 4px; }
.ord-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ord-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ord-px small.ord-stop { color: var(--s2); }
.ord-t th, .ord-t td { padding-left: 9px; padding-right: 9px; }
.ord-t td.thesis { min-width: 220px; }
.ord-act { display: inline-flex; gap: 6px; }
.ord-t tr.on td { border-bottom-color: transparent; background: color-mix(in srgb, var(--panel-2) 55%, transparent); }
.ord-x td { white-space: normal; text-align: left; font-family: var(--sans); background: color-mix(in srgb, var(--panel-2) 55%, transparent); padding: 4px 16px 18px 46px; }
/* What opens under an order fills the row without being allowed to widen the table. */
.ord-x td > .ord-why, .ord-x td > .ord-form { width: 0; min-width: 100%; box-sizing: border-box; }
.ord-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.ord-why b { font-weight: 600; font-size: 12.5px; }
.ord-why p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; }
.ord-why > .ord-flag, .ord-why > .ord-facts { grid-column: 1 / -1; }
.ord-flag { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); font-size: 13.5px; }
.ord-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.ord-facts b { color: var(--fg); }
.ord-copy { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.ord-copy code { font: 500 12.5px var(--mono); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.ord-form { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)) minmax(0, 1fr); gap: 12px 16px; align-items: end; padding-top: 4px; }
.ord-form .al-form .msg, .ord-acct .msg, .ord-setup .msg { padding: 0; }
.ord-skips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font-size: 13px; }
.ord-skips .chipx { font-size: 12px; padding: 3px 4px 3px 10px; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ord-back { all: unset; cursor: pointer; font-weight: 600; color: var(--accent); padding: 1px 7px; border-radius: 999px; }
.ord-back:hover, .ord-back:focus-visible { background: var(--accent-soft); }
.ord-notes { margin-top: 14px; font-size: 13px; }
.ord-acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px 36px; }
.ord-h3 { margin: 0 0 8px; font: 600 13px var(--sans); display: flex; align-items: center; }
.ord-acct .sub, .ord-rec { font-size: 13px; margin-top: 8px; }
.ord-rec:empty { display: none; }
.ord-ck { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ord-setup .lab-form { max-width: 720px; }
@media (max-width: 760px) { .ord-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ord-form .al-form { grid-column: 1 / -1; } .ord-x td { padding-left: 16px; } .ord-copy { margin-left: 0; } }

.watch-search { width: min(300px, 100%); }
.watch-search input { min-height: 44px; }
.watch-status { margin: 0; }
.watch-status:empty, .pf-quote-status:empty, .pf-scope:empty, .pf-jump[hidden], .pf-jump-btn[hidden] { display: none; }
.mk-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-height: 27px; }
.mk-lead > b { font-weight: 600; }
.mk-lead > span { color: var(--muted); font-size: 13px; }
.mk-tile-loading { min-height: 150px; pointer-events: none; }
.mk-lead > .rows { width: min(295px, 100%); }
.watch-scroll:focus-visible { outline-offset: -2px; }
.co-actions { display: grid; justify-items: end; gap: 8px; min-width: 0; }
.stock-price .panel-h { align-items: center; }
.stock-price .panel-h > .seg { margin-inline-start: auto; }
.chart-mode-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stock-price .chart-mode-controls { margin-inline-start: auto; }
.chart-mode-controls [hidden], .chart-session-legend[hidden], .regular-quote-label[hidden] { display: none; }
.chart-session-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.chart-session-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.chart-session-legend i { width: 9px; height: 9px; border-radius: 3px; }
.pf-chart-footer .chart-session-legend { flex-basis: 100%; margin: 0; }
.regular-quote-label { font-size: 12px; color: var(--muted); }
.stock-ranges { margin-bottom: 8px; }
.pf-heading { align-items: center; }
.pf-scope { margin: 3px 0 0; color: var(--fg); font-size: 13px; font-weight: 600; }
.pf-quote-status { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.pf-unlock { width: min(100%, 440px); max-width: none; margin: clamp(12px, 5dvh, 48px) auto; padding: clamp(14px, 4vw, 28px); gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.pf-unlock .h2, .pf-unlock .sub { margin: 0; }
.pf-unlock .sub { margin-top: 4px; }
.pf-unlock .pf-actions .btn { width: 100%; min-height: 44px; }
.pf-jump { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 5px; border-top: 1px solid var(--line); }
.pf-jump-btn { min-height: 34px; padding: 6px 12px; border: 1px solid transparent; border-radius: 8px; background: var(--panel-2); color: var(--fg); font-weight: 600; cursor: pointer; }
.pf-jump-btn:hover { border-color: var(--line); color: var(--accent); }
.pf-dashboard-item[tabindex]:focus-visible { outline-offset: 3px; border-radius: 10px; }
.pf-summary .kpi:first-child { background: linear-gradient(130deg, color-mix(in srgb, var(--accent-soft) 64%, var(--panel)), var(--panel) 82%); }
.pf-summary .kpi > b { font-variant-numeric: tabular-nums; }
.pf-summary .pf-cumulative { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.pf-cumulative-cell small { display: block; color: var(--muted); margin-top: 2px; }
.pf-funding-form > .sub { margin: 10px 0 0; }
.pf-trade-costs[hidden], .pf-sale-form .pf-field[hidden] { display: none; }
.pf-sale-form > .sub { margin-block: 9px 0; }
.pf-sale-form > .pf-group-toggle { margin-top: 10px; }
.pf-position-status { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.pf-position-status.closed { background: var(--panel-2); color: var(--muted); }
.pf-last-sale small { display: block; margin-top: 2px; color: var(--muted); }
.pf-sale-link { color: var(--accent); border: 0; background: transparent; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pf-filter-groups { display: grid; gap: 10px; }
.pf-filter-group { min-width: 0; padding: 8px 10px 11px; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.pf-filter-group legend { padding: 0 4px; color: var(--fg); font-size: 13px; font-weight: 600; }
.pf-filter-group .pf-fields { margin: 0; }
.pf-filter-group .pf-group-toggle { align-self: center; }

@media (max-width: 900px) {
  .mobile-nav > *, .top-search, #side :is(a, button) { -webkit-tap-highlight-color: transparent; }
  .pf-sale-link, .pf-sale-form > .pf-group-toggle { min-height: 44px; }
  .mobile-nav > :active, .top-search:active { background: var(--accent-soft); }
  .view > .pg-h > .pg-side { min-width: 0; }
  .view[data-page="watchlist"] > .pg-h > .pg-side { flex: 1 0 min(100%, 235px); }
  .watch-scroll :is(th, td):first-child { position: sticky; inset-inline-start: 0; z-index: 1; max-width: 44vw; background: var(--panel); box-shadow: 1px 0 var(--line); }
  .watch-scroll tbody tr:hover td:first-child { background: var(--panel-2); }
  .watch-scroll th button:not(.help), .watch-scroll .xbtn { min-height: 44px; }
  .watch-scroll th button:focus-visible { outline: 2px solid var(--accent); }
  .watch-scroll td:first-child a { display: grid; align-content: center; min-height: 44px; }
  .watch-scroll .co { max-width: 100%; }
  .watch-scroll .xbtn { min-width: 44px; }
  .watch-scroll .wl { min-width: 560px; }
  #view .watch-scroll .wl :is(th, td) { padding: 4px 9px; }
  .co-head { align-items: start; }
  .co-head > div { max-width: 100%; }
  .co-head .h1 { overflow-wrap: anywhere; }
  .co-actions { justify-items: start; }
  .co-actions .pg-side { flex-wrap: wrap; }
  .stock-ranges, .pf-chart-ranges { display: flex; flex-wrap: nowrap; justify-content: space-between; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  :is(.stock-ranges, .pf-chart-ranges) > button { min-width: 44px; flex: 1 0 auto; padding-inline: 5px; }
  :is(.stock-ranges, .pf-chart-ranges) > button:focus-visible { outline-offset: -3px; }
  .ck-layers { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 3px; }
  .ck-layers > * { flex: none; }
  .pf-jump { gap: 4px; }
  .pf-jump-btn { flex: 1 0 auto; min-height: 44px; }
  .pf-summary .kpi:first-child { grid-column: 1 / -1; padding: 13px; }
  .pf-summary .kpi:first-child > b { font-size: clamp(25px, 7vw, 34px); }
  .pf-summary .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-summary .kpi { padding: 8px; }
  .pf-summary .kpi > span { font-size: 11.5px; }
  .pf-summary .kpi > b { font: 600 clamp(13px, 3.8vw, 18px)/1.2 var(--sans); }
  .pf-summary .kpi > small { font-size: 11px; }
  .pf-summary .pf-cumulative { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 10px 12px; }
  .pf-summary .pf-cumulative > small { grid-column: 1 / -1; }
  .pf-summary .pf-cumulative > b { font-size: clamp(16px, 4.8vw, 21px); }
  .pf-chart-header { gap: 4px 10px; }
  .pf-chart-title { flex: 1 0 12rem; gap: 4px 10px; }
  .pf-chart-title .h2 { flex-basis: 100%; }
  .pf-chart-legend-row { grid-template-columns: minmax(0, 1fr); }
  .pf-chart-legend { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px; }
  .pf-chart-chip { min-width: 116px; flex: 0 0 auto; }
  .pf-chart-plot { height: clamp(235px, 36dvh, 360px); }
  .pf-view-bar .pf-view-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .pf-filter-group .pf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-filter-group .pf-group-toggle { align-self: end; }
}

@media (max-width: 450px) {
  .pf-summary .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-summary .kpi:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .pf-summary .kpi:last-child > small { grid-column: 1 / -1; }
  .pf-chart-ranges > button, .stock-ranges > button { min-width: 39px; }
}

@media (max-width: 360px) {
  .mobile-nav > * { font-size: 11px; }
  .pf-summary .kpi > b { font-size: 12px; }
  .pf-filter-group .pf-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- design pass (2026-11-25): one control height, aligned figure tiles, tables that keep their first column, phone touch targets ---------- */
/* A button centres its label whether it is a <button> or a link styled as one, and sits level with the inputs and selects beside it. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn[hidden], .chip[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; }
.sel { min-height: 39px; }
.sel.dl-stsel { min-height: 32px; }
/* The chevron in the Settings item shares its class name with rising figures; it is a control, not data. */
.side-item .ic.up { color: inherit; }
.side-btn { position: relative; }
/* Sort buttons in tables are unstyled with all: unset, which drops the focus ring; give it back. */
.wl th button:not(.help):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Figure tiles: every label, figure and note sits on the same line as its neighbours', however the labels wrap. */
.kpi { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 3px; align-content: start; }
.kpi > span { display: block; }
/* A strip of eight figures reads as two rows of four, six as two rows of three, rather than five and a stray. */
@media (min-width: 1000px) {
  .kpis:has(> .kpi:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis:has(> .kpi:nth-child(6):last-child), .cards.fit:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .kpis:not(.mx-kpis) > .kpi:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; } }

/* Tables keep their first column in view while the rest scrolls sideways. The background is set without weight, so row tints still win. */
:where(.tblwrap .wl) :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.wl.mt-cmp { min-width: 420px; }
.panel-h .h2 + .muted { font-size: 12.5px; }

/* The lead line under a page title: every part the same size, the figure that leads in the text colour. */
.mk-lead > a { font-size: 13px; }

/* Phones: every control at least 44px to a finger, tabs that all fit, header buttons that share the row. */
@media (max-width: 900px) {
  .view :is(select, input:not([type=checkbox]):not([type=radio]):not([type=range]):not(.dl-in):not(.dl-name)) { min-height: 44px; }
  .view .sel.dl-stsel { min-height: 44px; }
  .view input:is([type=checkbox], [type=radio]) { width: 20px; height: 20px; }
  .view .xbtn { min-width: 44px; min-height: 44px; }
  .view :is(.sb-th, .wl th button:not(.help)) { min-height: 44px; }
  .view .row { min-height: 44px; }
  .view :is(.dgroup, .pp-more, .pp-sub, .sim-more) > summary { padding-block: 12px; min-height: 44px; }
  .view .dl-box { min-height: 44px; }
  .view .dl-box .dl-in { align-self: stretch; }
  .help::before { inset: -15px; }
  .sample-pill { position: relative; }
  .sample-pill::before { content: ""; position: absolute; inset: -12px -5px; }
  .pg-side > .btn { flex: 1 1 auto; }
  .wl.macro td:first-child { min-width: 150px; }
  .wl.macro td:first-child a { display: inline-flex; align-items: center; min-height: 44px; }
  .wl.tb td:first-child { min-width: 150px; }
  /* The More drawer: its title first, the sample label beside it, the close button at the end; Deals and Properties are already in the bar below. */
  .side-top { justify-content: flex-start; gap: 10px; }
  .side-top .side-mobile-heading { order: -1; }
  .side-close { margin-left: auto; }
  .side-nav :is([data-nav="deals"], [data-nav="properties"]) { display: none; }
  .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }
}
@media (max-width: 480px) { .tab { padding-inline: 9px; } }

/* Table toolbars: filters on the left; view controls and the download grouped on the right, wrapping as one group. A label stays with its chips. */
.sb-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-left: auto; }
.sb-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
@media (max-width: 640px) {
  /* Phones: the search on its own line, then the controls two to a line at one width, the longest across. */
  .sb-row.mx-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .sb-row.mx-tools > .sb-search, .sb-row.mx-tools > .mx-cf { grid-column: 1 / -1; }
  .sb-row.mx-tools > .sb-end { display: contents; }
  .sb-row.mx-tools :is(.sel, .btn, .sb-popwrap) { width: 100%; min-width: 0; }
  .sb-row.mx-tools .sb-popwrap { display: flex; }
  /* Filter chips scroll in one line instead of stacking six rows deep. */
  .sb .sb-grp { flex-wrap: nowrap; width: 100%; }
  .sb .sb-grp > .sb-lbl { flex: none; }
  .sb .sb-grp > .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 1px; }
  .sb .sb-grp > .chips::-webkit-scrollbar { display: none; }
  .sb .sb-grp .chip { flex: none; }
  .sb .bd-sep { display: none; }
}
/* A small button beside a panel title does not make that title sit lower than its neighbour's. */
.panel-h > .btn.sm, .panel-h > .sb-popwrap > .btn.sm { margin-block: -6px; }
/* Verdict tiles on the metro and property pages: a title that wraps (or carries a Demo data label) does not push its figure below its neighbours'. */
.rd-grid { grid-auto-rows: auto; }
.rd-grid > .rd { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.rd-grid > .rd > .rd-h { align-self: start; }

/* ---------- Market's pages, nested under Market in the sidebar ---------- */
.side-sub { position: relative; display: flex; flex-direction: column; gap: 1px; margin: -1px 0 4px; padding-left: 21px; }
.side-sub::before { content: ""; position: absolute; left: 20px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.side-nav .side-sub a { gap: 10px; padding: 7px 10px 7px 12px; font-size: 13.5px; font-weight: 500; }
.side-nav .side-sub a .ic { width: 16px; height: 16px; }
.side-nav .side-sub a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav .side-sub a[aria-current="page"]::before { left: -2px; top: 7px; bottom: 7px; }
.side-nav a[data-nav].open { color: var(--fg); font-weight: 600; }
.mk-tabs { margin-bottom: 4px; }
@media (min-width: 901px) {
  .mk-tabs { display: none; }
  html.nav-min .side-sub { padding-left: 0; margin: 0 0 4px; }
  html.nav-min .side-sub::before { left: 14px; right: 14px; top: auto; bottom: -3px; width: auto; height: 1px; }
  html.nav-min .side-nav .side-sub a { justify-content: center; padding: 8px 0; }
  html.nav-min .side-nav .side-sub a[aria-current="page"]::before { left: -12px; }
}
@media (max-width: 900px) {
  /* The phone drawer lists Market's pages as ordinary rows (Market itself is in the bar below). */
  .side-sub { padding-left: 0; margin: 0; }
  .side-sub::before { display: none; }
  .side-nav .side-sub a { gap: 12px; padding: 9px 10px; font-size: 14px; min-height: 46px; }
  .side-nav .side-sub a .ic { width: 20px; height: 20px; }
}

/* The menu's top row, expanded: the logo on the left and the collapse button inside the panel's right edge. The
   sample-data pill takes its own line under the wordmark, so the three never push the button over the panel's border. */
@media (min-width: 901px) {
  html:not(.nav-min) .side-top { flex-wrap: wrap; row-gap: 6px; }
  html:not(.nav-min) .side-top .brand { order: 1; }
  html:not(.nav-min) .side-top #side-toggle { order: 2; margin-left: auto; }
  html:not(.nav-min) .side-top:has([data-sample-pill]:not([hidden]))::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  html:not(.nav-min) .side-top [data-sample-pill] { order: 3; margin-left: 37px; }
}
/* The Settings menu: no line left hanging when the item after it is hidden (Download app, once installed). */
.side-menu-separator:has(+ [hidden]) { display: none; }
/* The phone's top bar: the search button keeps to the right edge (the sample tag that pushed it there is gone). */
.top-in .top-search { margin-left: auto; }

/* A tab strip wider than the screen fades the side where more tabs wait (row 45). */
.mk-tabs.fade-r { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.mk-tabs.fade-l { mask-image: linear-gradient(90deg, transparent, #000 36px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); }
.mk-tabs.fade-l.fade-r { mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* Settings › Dark mode (Moe, 2026-11-28): a switch at the end of the row; on, the track is ink (white in dark) and the knob
   slides across. */
.sm-theme .sm-sw { position: relative; flex: none; margin-left: auto; width: 34px; height: 20px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.sm-theme .sm-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.sm-theme[aria-checked="true"] .sm-sw { background: var(--accent); box-shadow: none; }
.sm-theme[aria-checked="true"] .sm-sw::after { transform: translateX(14px); }
@media (prefers-reduced-motion: reduce) { .sm-theme .sm-sw, .sm-theme .sm-sw::after { transition: none; } }

/* ---------- sign up / sign in (Vestra Site row 30, 2026-11-29) ---------- */
.au { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: stretch; max-width: 1060px; margin: clamp(4px, 3vh, 40px) auto 24px; }
@media (max-width: 980px) { .au { grid-template-columns: minmax(0, 1fr); max-width: 480px; } .au-side { display: none; } }
.au-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 36px); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.au-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--fg); text-decoration: none; font: 600 20px/1 var(--head); letter-spacing: -.045em; }
.au-brand svg { width: 30px; height: 30px; flex: none; }
.au-brand svg rect { fill: var(--mark-tile); }
.au-brand svg path { fill: none; stroke: var(--mark-v); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.au-brand em { font-style: normal; color: var(--muted); }
.au-title { margin: 12px 0 0; font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--head); letter-spacing: -.02em; }
.au-lede { margin: -4px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.au-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.au-google:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--fg) 22%, var(--line)); }
.au-google:disabled { opacity: .6; cursor: progress; }
.au-google svg { width: 18px; height: 18px; flex: none; }
.au-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.au-or::before, .au-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.au-form { display: flex; flex-direction: column; gap: 12px; }
.au-f { position: relative; display: flex; flex-direction: column; gap: 6px; }
.au-f > span { font-size: 13px; font-weight: 600; }
.au-inp { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; }
.au-inp:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.au-f:has(.au-eye) .au-inp { padding-right: 66px; }
.au-code { font-size: 22px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.au-eye { position: absolute; right: 7px; bottom: 7px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.au-eye:hover { color: var(--fg); background: var(--panel-2); }
.au-err { margin: 0; color: var(--down); font-size: 13.5px; line-height: 1.45; }
.au-err.ok { color: var(--up); }
.au-err[hidden] { display: none; }
.btn.au-go { width: 100%; min-height: 46px; border-radius: 999px; font-size: 15px; }
.btn.au-go:disabled { opacity: .7; cursor: progress; }
.au-alt { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.au-link { padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.au-link:disabled { color: var(--muted); cursor: default; }
.au-forgot { align-self: flex-start; font-size: 13.5px; }
.au-fine { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.au-fine a { color: inherit; }
.au-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 440px; padding: clamp(26px, 3vw, 42px); overflow: hidden; border-radius: 18px; color: #ededf0;
  background: radial-gradient(120% 80% at 85% 0%, rgba(237, 237, 240, .09), transparent 60%), #0b0c0f; }
.au-eyebrow { margin: 0; color: rgba(237, 237, 240, .55); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.au-side-h { max-width: 17ch; margin: 0; font: 600 clamp(26px, 2.3vw, 34px)/1.12 var(--head); letter-spacing: -.02em; }
.au-points { display: grid; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.au-points li { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid rgba(237, 237, 240, .14); }
.au-points b { font-size: 14.5px; font-weight: 600; }
.au-points span { color: rgba(237, 237, 240, .66); font-size: 13.5px; line-height: 1.5; }
/* Who is signed in, atop the Settings menu. */
.sm-account { display: flex; flex-direction: column; gap: 2px; }
.sm-account[hidden] { display: none; }
.sm-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px 6px; }
.sm-who b, .sm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-who b { font-size: 13.5px; font-weight: 600; }
.sm-who small { color: var(--muted); font-size: 12px; }
