/* Tickjury shell, direction A "Desk" (owner, 2026-10-28; concept in portal/lab/design/v3/desk.html): module tabs with
   key chips in the top bar, a command bar, a status bar, a context menu on every stock, a linked active stock. Dense,
   square edges. Visual first (owner, 2026-11-01): sans for sentences, mono for figures and stock names, at every width. Used by the tool pages (/models, /stock, /lab, /cycles, /corp) through console.js.
   Tokens only (tokens.css); classes prefixed tc- so pages cannot clash. */
/* Inter for text and figures (owner, 2026-11-14; CONSTRAINTS E37); the Geist variable names stay so no rule changes */
@font-face { font-family: "Inter"; src: url("/shared/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --font-geist-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-geist-mono: var(--font-geist-sans); --chart-font: Inter, ui-sans-serif, sans-serif; --tc-hd: 47px; --tc-sb: 28px;
  /* Desk design panel SPEC (docs/council/2026-10-29-desk-design, owner 2026-10-30): the only text sizes (X8) and the
     control height (L5). 10 is for the phone module tabs only, 18 for the brand. */
  --fs-10: 10px; --fs-11: 11px; --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --tc-ctl: 32px; }
/* Desk: darker surfaces in the dark theme, square corners. Sans for sentences, buttons and labels; mono for figures, tables and
   stock names. The face is swapped through --mono because pages name it in their font shorthands; the block "Mono where
   it counts" below puts the mono face back. */
body.tc { --mono: var(--font-geist-sans); --sans: var(--font-geist-sans); --font-sans: var(--font-geist-sans); --r: 0px; --r-sm: 0px; --r-lg: 0px; }
:root:not([data-theme=light]) body.tc { --zebra: #1C1C1F; }   /* D-2: the tool pages take the shared surfaces (owner, 2026-11-04) */
:root[data-theme=light] body.tc { --zebra: #F7F7F4; }
/* C7, C17: the Desk's verdict colours (one home for Desk overrides, after tokens.css); the site's --v-* stay as they are.
   The colour tracks the state; the group word and the left bar carry it too (never colour alone). */
:root:not([data-theme=light]) body.tc { --v-superseded: #5C9DF7; --v-notadopted: #F2B544; --v-noedge: #97A2B1; }
:root[data-theme=light] body.tc { --v-superseded: #1D4ED8; --v-notadopted: #A14C06; --v-noedge: #535E6D; }

/* The shell's space is reserved on body before console.js wraps the page, so nothing shifts (CLS). */
body.tc { margin: 0; padding: calc(var(--tc-hd) + 6px) 6px calc(var(--tc-sb) + 6px); min-height: 100vh; background: var(--bg); color: var(--ink); font: 12px/1.5 var(--mono); }
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc :focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tc button, .tc input, .tc select, .tc textarea { font: inherit; letter-spacing: inherit; line-height: 18px; }   /* T16 */
/* C4: text inputs, selects and date fields get a 3:1 boundary (N6: not buttons or segments) */
.tc input:not([type=checkbox]):not([type=radio]):not([type=range]), .tc select, .tc textarea, .tc-sel-in { border-color: var(--ctl-line); }
.tc kbd { font: 11px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 2px; padding: 0 4px; color: var(--muted); }
.tc-skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: 44px; } .tc-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 0 12px; }

/* top bar: brand · module tabs · command bar · active stock · theme */
.tc-hd { position: fixed; inset: 0 0 auto 0; height: var(--tc-hd); z-index: 30; display: flex; align-items: stretch; gap: 14px;
  padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tc-brand .tj-wordmark { display: block; height: 22px; width: auto; aspect-ratio: 3179 / 937; }
.tc-brand { flex: none; display: inline-flex; align-items: center; min-width: 44px; color: var(--ink); text-decoration: none; font: 650 18px var(--font-geist-mono); letter-spacing: -.03em; }
.tc-brand b { color: var(--brand-j); font-weight: inherit; }
.tc-nav { display: flex; gap: 2px; min-width: 0; }
.tc-nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 2px 10px 0; color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent; font: 500 12px var(--font-geist-sans); white-space: nowrap; }
.tc-nav a:hover { color: var(--ink); background: var(--raise); }
.tc-nav a[aria-current=page] { color: var(--ink); font-weight: 600; border-bottom-color: var(--rules); }
.tc-nav a[data-owner]::after { content: "●"; color: var(--stale); font-size: 9px; }
.tc-nav a[hidden] { display: none; } .tc-nav svg { display: none; }
.tc-cmd { align-self: center; height: 32px; margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; flex: 0 1 232px; min-width: 32px; padding: 0 8px 0 10px;
  background: transparent; border: 1px solid var(--ctl-line); color: var(--muted); cursor: text; font: 12px/18px var(--font-geist-sans); }
.tc-cmd kbd { flex: none; margin-left: auto; border: 0; padding: 0; } .tc-cmd i { font-style: normal; }
.tc-cmd svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tc-cmd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sym { align-self: center; flex: none; font-family: var(--font-geist-mono); font-weight: 600; }
.tc-sym span { color: var(--rules); font-size: 11px; margin-right: 6px; }
.tc-theme { align-self: center; flex: none; }
.tc-phone { display: none; }
.tc-sym[data-empty] span, .tc-sym[data-empty] { color: var(--muted); font-weight: 400; }   /* C2 */
.tc-acct-slot { display: flex; align-items: center; flex: none; gap: 6px; }
.tc-cred { font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }   /* the credit balance (owner, 2026-11-15): a menu line on phones */
@media (max-width: 760px) { .tc-cred { display: none !important; } }   /* memberships: "Log in" or the tier with a menu (console.js paintAcct) */
/* Locked models (memberships): the API sends nulls, the page shows masks (TJC.mask) and a chip (TJC.lockChip) */
.tj-locked, .tj-locked .mo-t { color: var(--muted); }
.tj-maskw { position: relative; }
.tj-mask { color: var(--muted); filter: blur(1.5px); user-select: none; }
.tj-lock { display: inline-flex; align-items: center; gap: 5px; padding: 0 6px; border: 1px solid var(--line-2); color: var(--ink-2); font: 11px/18px var(--mono); text-decoration: none; white-space: nowrap; }
a.tj-lock:hover { color: var(--ink); background: var(--raise); }
/* The lock box (owner, 2026-11-01): a small square with a lock, a link to /pricing/, no text; the target grows to 44 px on phones */
.tj-lockb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; color: var(--muted); vertical-align: middle; }
.tj-lockb i { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--ctl-line); }
a.tj-lockb:hover { color: var(--ink); } a.tj-lockb:hover i { border-color: var(--ink-2); }

.tc-main { min-width: 0; min-height: 100vh; } .tc-credits:empty { display: none; }   /* no credit: no footer */   /* at least a screen tall: the credits after it start below the fold on any device (no layout shift) */

.tc-sb { position: fixed; inset: auto 0 0 0; height: var(--tc-sb); z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 10px;
  background: var(--surface); border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.tc-sb b { color: var(--ink-2); font-weight: 500; }
.tc-sb .tc-keys { margin-left: auto; }
.tc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); vertical-align: 1px; }
.tc-dot.ok { background: var(--gain); } .tc-dot.busy, .tc-dot.stale, .tc-dot.own { background: var(--stale); } .tc-dot.err { background: var(--loss); }

.tc-pal-bg[hidden], .tc-ctx[hidden], .tc-nav a[hidden], .tc-sb [hidden] { display: none; }
.tc-pal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.tc-pal { width: min(640px, 94vw); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.tc-pal input { width: 100%; height: 48px; padding: 0 16px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 15px var(--mono); outline: none; }
.tc-pal ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.tc-pal li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; cursor: pointer; }
.tc-pal li span:last-child { color: var(--muted); }
.tc-pal li[aria-selected=true] { background: var(--raise); box-shadow: inset 2px 0 var(--rules); }
.tc-pal li.tc-off { color: var(--muted); cursor: default; }
.tc-pal p { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); }

.tc-ctx { position: fixed; z-index: 70; min-width: 230px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tc-ctx div { padding: 6px 10px; font: 600 11px var(--mono); color: var(--rules); }
.tc-ctx a, .tc-ctx button { display: block; width: 100%; padding: 7px 10px; border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; font: 12px var(--mono); cursor: pointer; }
.tc-ctx a:hover, .tc-ctx a:focus, .tc-ctx button:hover, .tc-ctx button:focus { background: var(--raise); outline: none; }
.tc-toast { position: fixed; left: 50%; bottom: 40px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; transition: .2s; pointer-events: none;
  background: var(--raise); border: 1px solid var(--line-2); padding: 8px 14px; font: 12px var(--mono); }
.tc-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the chart library's TradingView attribution link (kept): a full-size tap target */
.tc a#tv-attr-logo { left: 0; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; }

/* building blocks for the pages */
.tc-3 { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 6px; align-items: start; }   /* settings | result | context (L7) */
@media (min-width: 1600px) { .tc-3 { grid-template-columns: 320px minmax(0, 1fr) 340px; } }
/* L7: a side pane that stays in view and scrolls on its own (pages add it to their side panes) */
.tc-side { position: sticky; top: calc(var(--tc-hd) + 6px); max-height: calc(100vh - var(--tc-hd) - var(--tc-sb) - 12px); overflow: auto; }
.tc-pane { background: var(--surface); border: 1px solid var(--line); padding: 10px; min-width: 0; }
.tc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font: 600 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rules); }
h3.tc-h { margin-top: 16px; }
.tc-title { margin: 0; font: 600 14px/18px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* L9: one page header on all five pages: title and the disclosure chip, then one purpose line with the data date */
.tc-pagehead { display: grid; gap: 2px; min-height: 36px; margin: 0 0 6px; }
.tc-pagehead > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 18px; }
.tc-pagehead p { margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.tc-pagehead p a { color: var(--rules); }
/* C5: the disclosure chip ("Backtest, hypothetical · not advice", every tool page, owner 2026-10-31) and a neutral tag for facts */
.tc-disc { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--stale); color: var(--stale); font: 500 11px/16px var(--mono); white-space: nowrap; }
.tc-tag { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--ctl-line); background: var(--surface-2); color: var(--ink-2); font: 11px/16px var(--mono); white-space: nowrap; }
/* X5: the "?" next to a term and its popover */
.tc-q { width: 16px; height: 16px; padding: 0; margin-left: 4px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 600 11px/14px var(--mono); cursor: pointer; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
.tc-q[aria-expanded=true] { color: var(--ink); border-color: var(--ink-2); }
.tc-qpop { position: fixed; z-index: 75; max-width: 280px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--ink); font: 12px/18px var(--mono); }
.tc-credit { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 16px; } .tc-credit a { display: inline-flex; align-items: center; min-height: 24px; color: inherit; }   /* 24 px target on a desktop too (WCAG 2.5.8) */ .tc-credit + .tc-credit { margin-top: 0; }
/* Stock logos (owner, 2026-11-04): a fixed 20 px box beside the name, on white so dark marks show in both themes; no logo = the first letter */
.tc-logo { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-right: 8px; vertical-align: -5px; border-radius: 50%; overflow: hidden;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.tc-logo::before { content: attr(data-l); grid-area: 1 / 1; color: var(--rules); font: 600 11px/1 var(--font-geist-mono, monospace); }
.tc-logo:has(img) { background: #fff; box-shadow: 0 0 0 1px var(--line-2); }   /* round everywhere (owner, 2026-11-04) */ .tc-logo:has(img)::before { content: none; }
.tc-logo img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }   /* fills the circle, so a square logo's corners never show */
.tc-logo-l { width: 36px; height: 36px; margin-right: 10px; vertical-align: -8px; } .tc-logo-l::before { font-size: 16px; }
.tc-logo-m { width: 32px; height: 32px; margin: 0; } .tc-logo-m::before { font-size: 14px; }
/* round (owner, 2026-11-04, /cycles list L-1): the logo fills the circle, so a square logo's own corners never show */
.tc-logo-r { width: 36px; height: 36px; margin: 0; vertical-align: middle; } .tc-logo-r::before { font-size: 16px; }
@media (max-width: 760px) { .tc-logo-r { width: 40px; height: 40px; } }
.tc-sub { margin: 2px 0 0; color: var(--muted); }
.tc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tc-pin { border: 1px solid var(--line-2); background: none; color: var(--muted); font: 11px var(--mono); padding: 1px 6px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tc-pin[aria-pressed=true] { color: var(--rules); border-color: var(--rules); }
.tc-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }   /* label for screen readers only */
.tc-line { position: relative; width: 100%; outline-offset: 2px; cursor: crosshair; }
.tc-line text { font-family: var(--mono); }
.tc-err { border-left: 3px solid var(--loss); background: var(--loss-wash); padding: 8px 10px; }
.tc-err button { margin-left: 10px; border: 1px solid var(--line-2); background: none; color: var(--ink); padding: 2px 8px; cursor: pointer; font: inherit; }
.tc-warns { display: grid; gap: 6px; margin-bottom: 10px; }
.tc-warn { border-left: 3px solid var(--stale); background: color-mix(in srgb, var(--stale) 9%, transparent); padding: 7px 10px; color: var(--ink-2); }
.tc-warn b { color: var(--stale); margin-right: 8px; }
.tc-loading { color: var(--muted); padding: 8px 0; }
.tc-n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-pos { color: var(--gain); } .tc-neg { color: var(--loss); } .tc-mut { color: var(--muted); }
.tc-tw { border: 1px solid var(--line); }   /* L6: no scroll box, so the heads stick to the page scroll */
.tc-tw.tc-wide { overflow-x: auto; }       /* only a table measured wider than its pane scrolls sideways */
.tc-tbar { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-bottom: 4px; position: relative; }
/* Numbered pages (owner, 2026-11-02): the count left in the list's top bar, the strip under the list. The current page wears
   the selected fill (--rules), never lime; the strip wraps, never scrolls. */
.tc-pg-n { margin-right: auto; color: var(--muted); font: 12px/18px var(--font-geist-mono); font-variant-numeric: tabular-nums; }
.tc-pg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; }
.tc-pg .tc-btn { min-width: var(--tc-ctl); padding: 0 8px; font-family: var(--font-geist-mono); font-variant-numeric: tabular-nums; }
.tc-pg .tc-btn.tc-pg-on { background-color: var(--rules); border-color: var(--rules); color: var(--rules-ink); font-weight: 600; } .tc-pg .tc-btn:disabled { border-color: var(--line); background: none; }
.tc-pg-gap, .tc-pg-at { min-width: 24px; text-align: center; color: var(--muted); font: 12px/18px var(--font-geist-mono); font-variant-numeric: tabular-nums; }
.tc-pg-at { min-width: 64px; color: var(--ink); }
.tc-colp > summary { list-style: none; cursor: pointer; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--surface-2); font: 12px var(--mono); }
.tc-colp > summary::-webkit-details-marker { display: none; }
.tc-colp > summary::after { content: " ▾"; color: var(--muted); }
.tc-colp > div { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 180px; padding: 6px; border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 2px; }
.tc-colp:not([open]) > div { display: none; }
.tc-colp label { display: flex; align-items: center; gap: 6px; padding: 3px 4px; cursor: pointer; white-space: nowrap; }
.tc-colp input { width: 16px; height: 16px; margin: 0; accent-color: var(--rules); }
.tc-pal li.tc-help { cursor: default; }
.tc-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tc-tbl th { position: sticky; top: var(--tc-hd); z-index: 1; height: 24px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-align: left; white-space: nowrap; padding: 0 8px; border-bottom: 1px solid var(--line-2); }
.tc-wide .tc-tbl th { top: 0; }
.tc-tbl th:has(> button) { padding: 0; }
.tc-tbl th.tc-n { text-align: right; }
.tc-tbl th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 4px 8px; cursor: pointer; }
.tc-tbl th.tc-n button { text-align: right; }
.tc-tbl td { height: 24px; padding: 0 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.tc-tbl tbody tr:nth-child(even) { background: var(--zebra); }
.tc-tbl tbody tr[data-sym], .tc-tbl tbody tr[data-row] { cursor: pointer; }
.tc-tbl tbody tr:hover { background: var(--raise); }
.tc-tbl tr.tc-sel { background: var(--rules-wash); box-shadow: inset 2px 0 var(--rules); }
.tc-symc, .tc-tbl tr[data-sym] > td:first-child, .tc-tbl td.sym { font-weight: 600; font-family: var(--font-geist-mono); }   /* one look for a stock name on every pane */
.tc-chip { display: inline-block; white-space: nowrap; }               /* Desk: a coloured square and the word, no pill */
.tc-chip::before { content: "■ "; }
.tc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.tc-card { display: grid; gap: 4px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tc-card > span { font-size: 11px; line-height: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tc-card b { font: 600 16px/20px var(--mono); font-variant-numeric: tabular-nums; }
.tc b.tc-pos, .tc b.tc-neg { font-size: inherit; }   /* T17 */
.tc-btn { min-height: var(--tc-ctl); padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: 12px var(--mono); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.tc-sel-in { height: var(--tc-ctl); padding: 0 8px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font: 12px var(--mono); }
.tc-fld { display: grid; gap: 4px; margin-bottom: 10px; } .tc-fld > span { color: var(--muted); } .tc-fld .tc-sel-in { width: 100%; min-width: 0; }
.tc-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; }
.tc-kv dt { color: var(--muted); } .tc-kv dd { margin: 0; text-align: right; }
.tc-link { background: none; border: 0; padding: 0; color: var(--rules); font: 12px var(--mono); cursor: pointer; text-decoration: none; }

/* One set of controls for every tool page (owner, 2026-11-02). body.tc outranks the pages' own rules.
   Sizes (owner, 2026-11-01): 32 px with a mouse; on phones 36 px painted inside a 44 px tap area (end of file).
   Dropdowns and fields: rounded outline, value at the left, one chevron, no native look (no iOS pills, no centred dates). */
body.tc select, body.tc input[type=date], body.tc input[type=number], body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]), body.tc .tc-sel-in { -webkit-appearance: none; appearance: none; height: var(--tc-ctl); min-width: 0; max-width: 100%; margin: 0; padding: 0 10px; border: 1px solid var(--ctl-line); border-radius: var(--r-ctl); background-color: var(--bg); font: 12px/18px var(--font-geist-sans); color: var(--ink); text-align: left; text-align-last: left; }
body.tc select, body.tc select.tc-sel-in { padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' fill='none' stroke='%238792A2' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 10px center; background-size: 12px 12px; background-repeat: no-repeat; }
body.tc input[type=number] { -moz-appearance: textfield; }
body.tc input[type=number]::-webkit-outer-spin-button, body.tc input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.tc input[type=date]::-webkit-date-and-time-value { margin: 0; text-align: left; }
/* Segmented: one outlined group, a filled block behind the selected option, dark text on the fill. No underline. */
.tc-seg, .tc-ty, .tc-tabs, .tc-utabs, body.tc .seg, body.tc .co-seg, body.tc .modes { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; max-width: 100%; border: 1px solid var(--ctl-line); border-radius: var(--r-ctl); background: none; }
.tc-seg > button, .tc-ty > button, .tc-tabs > button, .tc-utabs > button, body.tc .seg > button, body.tc .co-seg > button, body.tc .modes > button { flex: 0 1 auto; min-width: 44px; min-height: 26px; margin: 0; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: none; box-shadow: none; color: var(--ink-2); font: 12px/18px var(--font-geist-sans); white-space: nowrap; cursor: pointer; }
.tc-seg > button:hover, .tc-ty > button:hover, .tc-tabs > button:hover, .tc-utabs > button:hover, body.tc .seg > button:hover, body.tc .co-seg > button:hover, body.tc .modes > button:hover { color: var(--ink); }
.tc-seg > button[aria-pressed=true], .tc-seg > button[aria-selected=true], .tc-ty > button[aria-selected=true], .tc-tabs > button[aria-selected=true], .tc-utabs > button[aria-selected=true], body.tc .seg > button.on, body.tc .co-seg > button[aria-pressed=true], body.tc .modes > button.on { background-color: var(--rules); box-shadow: none; color: var(--rules-ink); font-weight: 600; }
/* Buttons: secondary outline, accent outline, main filled, disabled pale; icon buttons use the same outline */
.tc-btn, a.tc-btn { min-height: var(--tc-ctl); padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: var(--r-ctl); background: none; color: var(--ink); font: 12px/18px var(--font-geist-sans); }
.tc-btn:hover { background-color: var(--raise); }
.tc-btn.tc-acc { border-color: var(--rules); color: var(--rules); }
.tc-btn.tc-pri { min-height: var(--tc-ctl); background: var(--rules); border-color: var(--rules); color: var(--rules-ink); font-weight: 600; }
.tc-btn:disabled, .tc-btn[aria-disabled=true] { background: var(--surface-2); border-color: transparent; color: var(--muted); cursor: not-allowed; }
.tc-cmd, .tc-pin, .tc-colp > summary, .tc-err button, .tc-acts a, .tj-lockb i { border-radius: var(--r-ctl); }
.tc-pin, .tj-lockb i { border-color: var(--ctl-line); }
.tc-hd button { min-height: 0; }   /* the Lab sizes every button; the top bar keeps its own height */

/* Mono where it counts: figures, tables and stock names, at every width (owner, 2026-11-01) */
.tc-tbl, .tc-tbl *, .tc-card b, .tc-tile b, .tc-fig, .tc-n, .tc-sym, [data-sym], .tc-symc, .tc-pal li span:first-child, .tc pre, .tc code, .tc textarea, .tc kbd, .tc-nav a b, .tc-ro { font-family: var(--font-geist-mono); }
.tc-tbl th, .tc-tbl th *, .tc-names td:first-child, .tc-names td:first-child *, .tc-tbl td.tc-t, .tc-tbl td.tc-t * { font-family: var(--font-geist-sans); }
.tc-title, .tc-h, .tc-card > span { text-transform: none; letter-spacing: 0; }
.tc-title { font-size: 16px; line-height: 22px; } .tc-h { font-size: 12px; } .tc-card > span { font-size: 12px; }

/* Visual first building blocks (owner, 2026-11-01; design portal/lab/design/v10). Lime is a line or a square, never a fill. */
/* stock header card: name and price, chip, one-year line and phase, 52-week meter */
.tc-stock { display: grid; gap: 8px; align-content: start; min-height: 152px; }
.tc-stock .c1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tc-stock .nm { margin: 0; font: 600 16px/22px var(--font-geist-mono); text-transform: uppercase; overflow-wrap: anywhere; }
.tc-stock .pr { font: 600 18px/24px var(--font-geist-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-stock .pr small { margin-left: 6px; font: 14px/20px var(--font-geist-mono); }
.tc-stock .tc-disc { justify-self: start; white-space: normal; font-size: 12px; line-height: 18px; }
.tc-stock .c2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-vsp { flex: none; display: block; } .tc-vsp .l { fill: none; stroke: var(--ink); stroke-width: 2; } .tc-vsp .w { fill: var(--ink); opacity: .1; } .tc-vsp .e { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.tc-phs.tc-nx::before { content: none; }
.tc-phs { font: 12px/16px var(--font-geist-sans); color: var(--ink-2); } .tc-phs::before { content: "■ "; color: var(--ph, var(--muted)); }
.tc-meter { display: grid; gap: 2px; } .tc-meter .trk { position: relative; height: 4px; margin: 7px 0; background: var(--line-2); }
.tc-meter .tk { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--ink); }
.tc-meter .lb { display: flex; justify-content: space-between; gap: 8px; font: 11px/14px var(--font-geist-mono); color: var(--muted); }
.tc-meter .lb span:nth-child(2) { font-family: var(--font-geist-sans); }
/* tiles: label over a large figure */
.tc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 6px; }
.tc-tile { position: relative; display: grid; gap: 2px; align-content: start; min-width: 0; min-height: 72px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tc-tile > span:first-child { font: 12px/16px var(--font-geist-sans); color: var(--muted); }
.tc-tile b { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-tile b span { font: inherit; }
.tc-tile .tc-q { position: absolute; top: 0; right: 0; margin: 0; }
@media (min-width: 761px) { .tc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tc-tile { min-height: 80px; } }
@media (min-width: 1100px) { .tc-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* quick links: a row of compact tiles, icon over label, no underline; 4 across, 2 x 2 at 320 */
.tc-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tc-acts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font: 12px/16px var(--font-geist-sans); text-align: center; text-decoration: none; }
.tc-acts a:hover { background: var(--raise); }
.tc-acts svg { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }
@media (max-width: 359px) { .tc-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a held position */
.tc-held { font: 12px/16px var(--font-geist-sans); color: var(--ink-2); } .tc-held::before { content: "■ "; color: var(--rules); }
/* the wide table: 44 px rows, names in sans */
.tc-big { font-size: 14px; } .tc-big th { font-size: 12px; height: 36px; } .tc-big td { height: 44px; font-size: 14px; line-height: 20px; } .tc-big td.tc-t { white-space: normal; }
.tc-big tr.tc-sel td:first-child { box-shadow: inset 3px 0 var(--rules); } .tc-big tr.tc-sel { background: none; box-shadow: none; }
/* Row C: name and key figure, the smaller figures under them; a tap opens the rest under the row. Never an overlay on a row. */
.tc-rc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tc-rc > li { border-bottom: 1px solid var(--grid); }
.tc-rc-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; width: 100%; min-height: 52px; padding: 6px 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.tc-rc-n { min-width: 0; font: 600 14px/20px var(--font-geist-sans); } .tc-rc-n.sym { font-family: var(--font-geist-mono); }
.tc-rc-k { font: 600 16px/22px var(--font-geist-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tc-rc-k span { font: inherit; }
.tc-rc-s { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 12px; font: 12px/16px var(--font-geist-sans); color: var(--muted); }
.tc-rc-s b { font: 400 12px/16px var(--font-geist-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); } .tc-rc-s b span { font: inherit; }
.tc-rc > li.tc-sel .tc-rc-r { box-shadow: inset 3px 0 var(--rules); }
.tc-rc > li.tj-locked .tc-rc-r { cursor: default; } .tc-rc > li.tj-locked .tc-rc-n { color: var(--muted); font-weight: 400; }
.tc-rc-d { padding: 4px 8px 8px; background: var(--surface-2); }
.tc-rc-d dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0 0 4px; }
.tc-rc-d dd { margin: 0; text-align: right; font-family: var(--font-geist-mono); }
#tc-main .tc-rc-d dt, #tc-main .tc-rc-d dd, #tc-main .tc-rc-d dd span { font-size: 12px; line-height: 18px; } .tc-rc-d dt { color: var(--muted); }
/* result pictures: tile sparkline, toggles, dumbbells, year bars, monthly heat */
.tc-tsp { display: block; width: 100%; height: 28px; margin-top: 2px; } .tc-tsp path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; } .tc-tsp .a { stroke: var(--ink); } .tc-tsp .d { fill: color-mix(in srgb, var(--loss) 18%, transparent); stroke: var(--loss); stroke-width: 1; }
.tc-togs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.tc-tog { min-height: 36px; padding: 0 10px; border: 1px solid var(--ctl-line); border-radius: var(--r-ctl); background: none; color: var(--ink-2); font: 12px/16px var(--font-geist-sans); cursor: pointer; }
.tc-tog[aria-pressed=true] { background: var(--rules); border-color: var(--rules); color: var(--rules-ink); font-weight: 600; }
.tc-sec { margin: 14px 2px 6px; font: 600 14px/20px var(--font-geist-sans); color: var(--ink); } .tc-sec span { margin-left: 8px; font: 400 12px/16px var(--font-geist-mono); color: var(--muted); }
.tc-db { max-width: 760px; } .tc-db-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--grid); }
.tc-db-r .nm { font: 12px/16px var(--font-geist-sans); color: var(--ink-2); } .tc-db-r .gap { grid-column: 2; grid-row: 1 / 3; font: 600 14px/20px var(--font-geist-mono); white-space: nowrap; }
.tc-db-r .trk { position: relative; height: 20px; margin: 2px 6px 0; } .tc-db-r .trk::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--grid); }
.tc-db-r .ln { position: absolute; top: 9px; height: 2px; background: var(--ink-2); } .tc-db-r .dt { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border: 2px solid var(--surface); }
.tc-db-r .me { background: var(--rules); } .tc-db-r .ix { background: var(--bench); }
.tc-yrs { max-width: 760px; } .tc-yr { display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px; gap: 8px; align-items: center; min-height: 32px; border-bottom: 1px solid var(--grid); }
.tc-yr .y { font: 12px/16px var(--font-geist-mono); color: var(--ink-2); } .tc-yr .v { font: 600 12px/16px var(--font-geist-mono); text-align: right; white-space: nowrap; }
.tc-yr .tr { position: relative; height: 12px; } .tc-yr .tr::before { content: ""; position: absolute; left: var(--z); top: -10px; bottom: -10px; width: 1px; background: var(--line-2); }
.tc-yr .tr i { position: absolute; top: 0; height: 12px; } .tc-yr .tr i.g { left: var(--z); background: var(--gain); } .tc-yr .tr i.l { right: calc(100% - var(--z)); background: var(--loss); background-image: repeating-linear-gradient(45deg, var(--surface) 0 1px, transparent 1px 4px); }
.tc-heat .hr { display: grid; grid-template-columns: 34px repeat(12, minmax(0, 1fr)) 58px; gap: 1px; min-height: 44px; align-items: center; touch-action: pan-y; }
.tc-heat .hh { min-height: 20px; } .tc-heat .hh span { font: 11px/16px var(--font-geist-mono); color: var(--muted); text-align: center; }
.tc-heat .hy, .tc-heat .ht { font: 11px/16px var(--font-geist-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; } .tc-heat .ht { text-align: right; white-space: nowrap; } .tc-heat .ht.tc-pos { color: var(--gain); } .tc-heat .ht.tc-neg { color: var(--loss); }
.tc-heat .hc { display: flex; align-items: center; justify-content: center; height: 44px; min-width: 0; overflow: hidden; background-color: var(--surface-2); color: var(--ink); font: 11px/16px var(--font-geist-mono); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.tc-heat .hc.fut { background: none; } .tc-heat .hc[aria-selected=true] { outline: 2px solid var(--ink); outline-offset: -2px; }
.tc-heat .g1 { background-color: color-mix(in srgb, var(--gain) 12%, var(--surface)); } .tc-heat .g2 { background-color: color-mix(in srgb, var(--gain) 20%, var(--surface)); } .tc-heat .g3 { background-color: color-mix(in srgb, var(--gain) 28%, var(--surface)); } .tc-heat .g4 { background-color: color-mix(in srgb, var(--gain) 38%, var(--surface)); } .tc-heat .g5 { background-color: color-mix(in srgb, var(--gain) 48%, var(--surface)); }
.tc-heat .l1 { background-color: color-mix(in srgb, var(--loss) 12%, var(--surface)); } .tc-heat .l2 { background-color: color-mix(in srgb, var(--loss) 20%, var(--surface)); } .tc-heat .l3 { background-color: color-mix(in srgb, var(--loss) 28%, var(--surface)); } .tc-heat .l4 { background-color: color-mix(in srgb, var(--loss) 38%, var(--surface)); } .tc-heat .l5 { background-color: color-mix(in srgb, var(--loss) 48%, var(--surface)); }
.tc-heat .l1, .tc-heat .l2, .tc-heat .l3, .tc-heat .l4, .tc-heat .l5 { background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--surface) 45%, transparent) 0 1px, transparent 1px 4px); }
.tc-heat .hc .a, .tc-heat .hc .c { display: none; } .tc-heat .hc .b { display: inline; }
.tc-heat .hro { display: flex; align-items: center; gap: 8px; font-size: 14px; } .tc-heat .hlg { display: flex; flex-wrap: wrap; align-items: center; font: 11px/14px var(--font-geist-mono); color: var(--muted); } .tc-heat .hlg i { display: block; width: 18px; height: 14px; } .tc-heat .hlg span { margin: 0 6px; } .tc-heat .hlg .z { background: var(--surface-2); }
@media (max-width: 359px) { .tc-heat .hr { grid-template-columns: 30px repeat(12, minmax(0, 1fr)) 50px; } .tc-heat .hc .a { display: inline; } .tc-heat .hc .b { display: none; } }
@media (min-width: 761px) { .tc-heat .hr { grid-template-columns: 44px repeat(12, minmax(0, 1fr)) 76px; } .tc-heat .hc { font-size: 12px; } .tc-heat .hy, .tc-heat .ht, .tc-heat .hh span { font-size: 12px; } .tc-heat .hc .b { display: none; } .tc-heat .hc .c { display: inline; } }

/* charts: the fixed reading row above the plot, the panes, the trade lane strip */
.tc-ro { display: block; min-height: 44px; margin: 0 0 4px; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ro .d { display: block; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-geist-sans); color: var(--muted); }
.tc-ro b { font-weight: 600; color: var(--ink); } .tc-ro b.pos, .tc-ro .pos { color: var(--gain); } .tc-ro b.neg, .tc-ro .neg { color: var(--loss); }
.tc-cw { position: relative; outline-offset: 2px; }
.tc-cp { position: relative; width: 100%; }
.tc-lanecv { position: absolute; left: 0; top: 0; z-index: 3; touch-action: pan-y; cursor: pointer; }
@media (max-width: 359px) { .tc-ro .wide { display: none; } }

@media (max-width: 1180px) { .tc-3 { grid-template-columns: 220px minmax(0, 1fr); } .tc-3 > :last-child { grid-column: 1 / -1; } .tc-3 > .tc-side { position: static; max-height: none; } }
.tc-nav a i { display: none; }                                   /* the short label: phones only */

/* One header (owner, 2026-11-01): search folds to an icon up to 1180, the stock chip waits until 1040, short tab labels at 761-939. */
@media (min-width: 761px) and (max-width: 1180px) { .tc-cmd { flex: none; width: 32px; padding: 0; justify-content: center; } .tc-cmd span, .tc-cmd kbd { display: none; } }
@media (min-width: 761px) and (max-width: 1039px) { .tc-sym { display: none; } .tc-nav a { padding-left: 8px; padding-right: 8px; } }
@media (min-width: 761px) and (max-width: 939px) { .tc-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .tc-nav a i { display: block; font-style: normal; } }

/* phones: the module tabs become a bottom tab bar; no status bar; 44 px targets */
@media (max-width: 760px) {
  :root { --tc-hd: 52px; --tc-sb: 64px; --tc-ctl: 44px; }
  body.tc { font-size: 14px; }
  #tc-main p, #tc-main li, #tc-main label, #tc-main summary, #tc-main dt, #tc-main dd, #tc-main button:not(.tc-q) { font-size: 14px; }
  #tc-main .tc-tbl, #tc-main .tc-tbl button, #tc-main .tc-tbl td, #tc-main .tc-tbl li { font-size: 12px; }
  .tc-stack td[data-l]::before { font-size: 12px; }
  #tc-main .tc-tbl .tc-symc, #tc-main .tc-tbl td.sym, #tc-main tr[data-sym] > td:first-child, #tc-main table tr.click > td:first-child { font-size: 14px; font-weight: 600; }
  .tc-tbl td.tc-n { white-space: nowrap; }
  /* 16 px stops iOS zooming the page on focus (WKWebViewIOS: scale = 16 / font size). The Pine editor keeps its size: its
     gutter and highlight layer are drawn to that line height. */
  #tc-main input, #tc-main select, #tc-main .tc-sel-in, .tc-pal input { font-size: 16px; font-family: var(--font-geist-sans); }
  html { touch-action: manipulation; scroll-padding-top: calc(var(--tc-hd) + 8px); scroll-padding-bottom: calc(var(--tc-sb) + 8px); }
  .tc-sym, .tc-theme { display: none; } .tc-phone { display: flex; } .tj-desk { display: none; }
  .tc-pal p { display: none; } .tc-pal li { min-height: 44px; align-items: center; }
  .tc-pal-bg { padding-top: 8px; align-items: flex-start; } .tc-pal { position: relative; } .tc-pal input { padding-right: 72px; }
  .tc-palx { position: absolute; top: 2px; right: 8px; min-height: 44px; } .tc-pal ul { max-height: calc(var(--pal-h, 60vh) - 72px); }
  .st-row .tc-disc { display: none; }
  /* Row C (owner, 2026-10-31): a narrow table; the first cell opens the rest under the row */
  .tc-nt { table-layout: fixed; }
  .tc-nt th:not(:first-child) { width: 19vw; } .tc-nt th.tc-ch { width: 22px; padding: 0; } .tc-nt th.tc-wcol { width: 104px; }
  .tc-nt .bar { display: none; }
  .tc-nt th:first-child { width: auto; } .tc-nt th { position: static; height: 44px; white-space: normal; }
  .tc-nt tr.tc-r:not(.tj-locked) { cursor: pointer; } .tc-nt tr.tc-r td { height: 48px; padding: 0 3px; vertical-align: middle; white-space: normal; }
  .tc-nt tr.tc-r td:first-child { padding-left: 8px; overflow-wrap: anywhere; }
  #tc-main .tc-nt td:first-child, #tc-main .tc-nt td:first-child button, #tc-main .tc-nt td.tc-key { font-size: 14px; font-weight: 600; }
  .tc-go { all: unset; box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 44px; cursor: pointer; }
  .tc-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .tc-nt td.tc-ch { width: 24px; padding: 0; color: var(--muted); text-align: center; } .tc-nt tr.tc-on td { background: var(--surface-2); } .tc-nt tr.tc-on td.tc-ch { transform: scaleY(-1); }
  .tc-nt tr.tc-sel td:first-child { box-shadow: inset 3px 0 var(--rules); }
  .tc-nt tr.tc-det td { height: auto; padding: 8px; white-space: normal; background: var(--surface-2); }
  .tc-nt dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0 0 4px; }
  #tc-main .tc-nt dt { font: 12px/18px var(--font-geist-sans); color: var(--muted); } #tc-main .tc-nt dd { margin: 0; font: 12px/18px var(--font-geist-mono); color: var(--ink); }
  #tc-main .tc-nt .tc-link { font-size: 14px; font-family: var(--font-geist-sans); }
  .tc-nt .tc-mask { font-size: 12px; }
  @media (max-width: 359px) { .tc-nt th:not(:first-child) { width: 25vw; } .tc-nt th.tc-ch { width: 18px; } .tc-nt .tc-opt { display: none; } }
  /* Tab Y (owner, 2026-10-31): icon and label */
  .tc-nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }
  .tc-nav a { gap: 2px; font-weight: 500; } .tc-nav a[aria-current=page] { color: var(--ink); font-weight: 600; } .tc-nav a[aria-current=page] svg { stroke: var(--rules); stroke-width: 2; }
  .tc-nav { padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: content-box; }
  .tc-card { position: relative; align-content: start; padding: 8px 12px; } .tc-card .tc-q { position: absolute; top: 0; right: 0; margin: 0; }   /* every tile the same: label over figure */
  .tc-ctx a, .tc-ctx button { display: flex; align-items: center; }
  .tc-3 { grid-template-columns: 1fr; }
  .tc-hd { gap: 8px; align-items: center; } .tc-cmd { min-width: 0; max-width: none; height: 44px; margin: 0; }
  .tc-nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tc-sb); z-index: 30; background: var(--nav-bar, var(--surface)); border-top: 1px solid var(--line); gap: 0; }
  .tc-brand { min-height: 44px; } .tc a.tc-symc { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .tc-nav a { flex: 1 1 0; min-width: 44px; overflow: hidden; justify-content: center; flex-direction: column; gap: 0; padding: 0 2px; border-bottom: 0; border-top: 2px solid transparent; font-size: 12px; text-transform: none; letter-spacing: 0; text-align: center; }
  .tc-nav a span { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* phones: the short label shows; the full one stays for screen readers */
  .tc-nav a i { display: block; font-style: normal; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tc-nav a[aria-current=page] { border-top-color: var(--rules); }
  .tc-sb { display: none; }
  body.tc { padding: calc(var(--tc-hd) + 6px) 6px calc(var(--tc-sb) + 6px); }
  .tc-sel-in, .tc-tbl th button { min-height: 44px; }
  .tc-tbl td { height: 44px; } .tc-colp > summary, .tc-colp label { min-height: 44px; } .tc-tabs button, .tc-btn, .tc-pal li, .tc-ctx a, .tc-ctx button, .tc-pin, .tc-link, .tj-lock { min-height: 44px; } .tj-lockb { width: 44px; height: 44px; }
  .tc-seg > button, .tc-ty > button, .tc-tabs > button, .tc-utabs > button, body.tc .seg > button, body.tc .co-seg > button, body.tc .modes > button { min-height: 44px; padding: 0 8px; }
  /* .tc-stack tables: one card per row, each cell labelled from its data-l */
  .tc-stack thead { display: none; }
  .tc-stack tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tc-stack td { height: auto; padding: 2px 0; border: 0; white-space: normal; text-align: left; }
  .tc-stack td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .tc-stack td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  .tc-tw { overflow-x: auto; }   /* phones: any table may scroll sideways inside its frame */
  .tc-tw .tc-tbl th { top: 0; }
  .tc-tw.tc-fit { overflow: visible; } .tc-tw.tc-fit .tc-tbl th { position: sticky; top: var(--tc-hd); }   /* a paged list that fits: its heading sticks to the page */
  .tc-pg .tc-btn { min-width: 44px; padding: 0 6px; font-size: 14px; } .tc-pg-at { font-size: 14px; } .tc-pg .tc-btn.tc-pg-on { border-color: transparent; box-shadow: none; } .tc-pg .tc-btn:disabled { border-color: transparent; }
  .tc-q { width: 44px; height: 44px; margin-left: 0; border: 0; }
  .tc-credit a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 359px) { .tc-hd { gap: 6px; padding: 0 6px; } .tc-cmd { gap: 4px; padding: 0 6px; } .tc-acct { padding: 0 6px; } .tc-acct span { display: none; } }

/* Phones (owner, 2026-11-01): 36 px painted, 44 px to the finger. A transparent border keeps the tap area; the fill stops at it
   (background-clip) and the outline is an inset shadow. Radius 12 less the 4 px border leaves the same 8 px corner. */
@media (max-width: 760px) {
  .tc-cmd, .tc-btn, a.tc-btn, #tc-main select, #tc-main input[type=date], #tc-main input[type=number], #tc-main input[type=text], #tc-main input[type=search], #tc-main input:not([type]), #tc-main .tc-sel-in, #tc-main .tc-tog, #tc-main .mo-parts > button, #tc-main .acts > button, #tc-main .charttools > button, #tc-main .row > button, #tc-main details.more > summary { height: 44px; border: 4px solid transparent; border-radius: 12px; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); outline-offset: -3px; }
  .tc-cmd { flex: 1 1 auto; padding: 0 8px; font-size: 14px; background-color: var(--bg); } .tc-cmd kbd { display: none; }
  .tc-btn, a.tc-btn { padding: 0 10px; }
  .tc-btn.tc-acc { box-shadow: inset 0 0 0 1px var(--rules); border-color: transparent; }
  .tc-btn.tc-pri { border-color: transparent; background-clip: padding-box; box-shadow: none; }
  .tc-btn:disabled, .tc-btn[aria-disabled=true] { border-color: transparent; box-shadow: none; }
  #tc-main button.primary { box-shadow: none; }
  body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]), #tc-main select, #tc-main input[type=date], #tc-main input[type=number], #tc-main .tc-sel-in { font-size: 16px; }
  body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]) { border: 4px solid transparent; border-radius: 12px; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ctl-line); padding: 0 6px; }   /* the shared rule above carries more weight than the 44 px block */
  #tc-main select { padding: 0 22px 0 6px; background-position: right 6px center; }
  .tc-seg, .tc-ty, .tc-tabs, .tc-utabs, body.tc .seg, body.tc .co-seg, body.tc .modes { min-height: 36px; padding: 1px 0; align-items: center; overflow: visible; }
  body.tc .seg, body.tc .mo-tabs, body.tc .dtabs { flex-wrap: wrap; overflow: visible; }   /* wrap, not scroll: a scroller would clip the tap area */
  .tc-seg > button, .tc-ty > button, .tc-tabs > button, .tc-utabs > button, body.tc .seg > button, body.tc .co-seg > button, body.tc .modes > button { flex: none; height: 44px; margin: -6px -4px; padding: 0 4px; border: 6px solid transparent; border-radius: 14px; background-clip: padding-box; outline-offset: -5px; }
}

/* Cards everywhere (owner, 2026-11-03): the tool pages take the site's card look (src/components/site/cards.css). Panels are
   rounded 12 px with the lime top edge (a line, never a fill) and a soft shadow; tiles inside them 8 px; chips 6 px; table
   frames 8 px, clipped without becoming a scroll box, so the sticky heads still stick. Clickable cards lift for a mouse and
   press on touch; nothing moves under reduced motion. desk-probe accepts 6, 8 and 12 px (CONSTRAINTS E21). */
:root, :root[data-theme=dark] {
  --r-card: 12px; --r-chip: 6px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 18px -8px rgba(0, 0, 0, .55), 0 24px 44px -22px rgba(0, 0, 0, .7);
  --ease-in: cubic-bezier(.2, 0, 0, 1); --ease-out: cubic-bezier(.4, 0, 1, 1);
}
:root[data-theme=light] {
  --shadow-card: 0 1px 2px rgba(30, 30, 20, .06), 0 6px 16px -8px rgba(30, 30, 20, .14);   /* W-2: a soft warm shadow lifts the white cards */
  --shadow-lift: 0 1px 2px rgba(11, 23, 51, .05), 0 6px 14px -6px rgba(17, 36, 90, .16), 0 22px 40px -20px rgba(17, 36, 90, .26);
}
body.tc .tc-pane, body.tc section.card, body.tc details.card { border-radius: var(--r-card); box-shadow: var(--shadow-card); }   /* no lime top edge (owner, 2026-11-14; E37) */
body.tc .cy-tile { border-radius: var(--r-ctl); }   /* its phase-colour top edge stays */
body.tc .tc-card, body.tc .tc-tile, body.tc .tc-acts a { border-radius: var(--r-ctl); }
body.tc .tc-tw { border-radius: var(--r-ctl); overflow: clip; }
body.tc .tc-tw.tc-wide { overflow-x: auto; }
@media (max-width: 760px) { body.tc .tc-tw:not(.tc-fit) { overflow-x: auto; } }   /* phones: a frame not measured to fit still scrolls sideways */
body.tc .tc-disc { border-radius: var(--r-chip); }
@media (hover: hover) and (pointer: fine) {
  body.tc .tc-acts a:hover, body.tc .cy-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: no-preference) {
  body.tc .tc-acts a, body.tc .cy-tile { transition: translate 120ms var(--ease-out), scale 120ms var(--ease-out), box-shadow 120ms var(--ease-out), border-color 120ms linear, background-color 120ms linear; }
  @media (hover: hover) and (pointer: fine) {
    body.tc .tc-acts a:hover, body.tc .cy-tile:hover { translate: 0 -4px; transition-duration: 200ms; transition-timing-function: var(--ease-in); }
  }
  body.tc .tc-acts a:active, body.tc .cy-tile:active { scale: .98; }
}
body.tc .dk { border-radius: var(--r-chip); }   /* the Lab step check box */
body.tc .mo-yc, body.tc .st-ans > div, body.tc .tc-warn { border-radius: var(--r-ctl); }   /* model year tiles, Stress cards, notice banners */
body.tc .tc-tag { border-radius: var(--r-chip); }

/* P-1 Glass pill on the tool pages (owner, 2026-11-04; tokens in tokens.css). Pills everywhere a control is; 28 px with a mouse and
   32 px painted in a 44 px tap area on phones (a 6 px transparent border). Fields keep their 3:1 outline (C4) on a soft fill.
   Picked options, the page's main button and the current page number take the glass tint. */
:root { --tc-ctl: 28px; }
.tc-cmd, .tc-btn, a.tc-btn, .tc-pin, .tc-tog, .tc-colp > summary, .tc-err button, .tj-lockb i, body.tc button.primary, body.tc select, body.tc input[type=date], body.tc input[type=number], body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]), body.tc .tc-sel-in { border-radius: var(--r-pill); }
body.tc select, body.tc input[type=date], body.tc input[type=number], body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]), body.tc .tc-sel-in { padding: 0 12px; background-color: var(--surface-2); }
body.tc select, body.tc select.tc-sel-in { padding-right: 30px; background-position: right 12px center; }
.tc-tog { min-height: var(--tc-ctl); }
.tc-cmd { height: var(--tc-ctl); padding: 0 6px 0 12px; background-color: var(--surface-2); } .tc-cmd kbd { border-radius: var(--r-pill); padding: 0 6px; }
.tc-seg, .tc-ty, .tc-tabs, .tc-utabs, body.tc .seg, body.tc .co-seg, body.tc .modes { border-color: var(--line-2); border-radius: var(--r-pill); background: var(--surface-2); }
.tc-seg > button, .tc-ty > button, .tc-tabs > button, .tc-utabs > button, body.tc .seg > button, body.tc .co-seg > button, body.tc .modes > button { min-height: 22px; padding: 0 12px; border-radius: var(--r-pill); }
.tc-btn.tc-pri, body.tc button.primary, .tc-pg .tc-btn.tc-pg-on, .tc-tog[aria-pressed=true], body.tc .cy-tile[aria-pressed=true], body.tc .cy-tile[aria-pressed=true]:hover, .tc-seg > button[aria-pressed=true], .tc-seg > button[aria-selected=true], .tc-ty > button[aria-selected=true], .tc-tabs > button[aria-selected=true], .tc-utabs > button[aria-selected=true], body.tc .seg > button.on, body.tc .co-seg > button[aria-pressed=true], body.tc .modes > button.on { background: var(--sel-bg); border-color: var(--sel-edge); color: var(--sel-ink); box-shadow: inset 0 0 0 1px var(--sel-edge); font-weight: 600; }
@media (max-width: 760px) {
  :root { --tc-ctl: 44px; }
  .tc-cmd, .tc-btn, a.tc-btn, body.tc button.primary, #tc-main select, #tc-main input[type=date], #tc-main input[type=number], #tc-main input[type=text], #tc-main input[type=search], #tc-main input:not([type]), #tc-main .tc-sel-in, #tc-main .tc-tog, #tc-main .mo-parts > button, #tc-main .acts > button, #tc-main .charttools > button, #tc-main .row > button, #tc-main details.more > summary { border-width: 6px; border-radius: var(--r-pill); }
  body.tc #tc-main input[type=text], body.tc #tc-main input[type=search], body.tc #tc-main input:not([type]) { border-width: 6px; border-radius: var(--r-pill); padding: 0 10px; }
  #tc-main select { padding: 0 20px 0 6px; background-position: right 6px center; }
  /* phones: no shared track; each option is its own pill chip, so a group that wraps stays a row of pills */
  .tc-seg, .tc-ty, .tc-tabs, .tc-utabs, body.tc .seg, body.tc .co-seg, body.tc .modes { min-height: 34px; padding: 0; border: 0; background: none; }
  .tc-seg > button, .tc-ty > button, .tc-tabs > button, .tc-utabs > button, body.tc .seg > button, body.tc .co-seg > button, body.tc .modes > button { margin: -6px -2px; padding: 0 6px; border-radius: var(--r-pill); background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
  .tc-btn.tc-pri, body.tc button.primary, .tc-pg .tc-btn.tc-pg-on, #tc-main .tc-tog[aria-pressed=true] { border-color: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--sel-edge); }
  .tc-seg > button[aria-pressed=true], .tc-seg > button[aria-selected=true], .tc-ty > button[aria-selected=true], .tc-tabs > button[aria-selected=true], .tc-utabs > button[aria-selected=true], body.tc .seg > button.on, body.tc .co-seg > button[aria-pressed=true], body.tc .modes > button.on { border-color: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--sel-edge); }
}

/* R-1 phase rows (owner, 2026-11-05): a row tinted by its stock's cycle phase, a 3 px edge in that colour, and the phase word
   (.tc-phw) in the row, so colour is never the only sign (red-green colour blindness can't tell Mark-up from Mark-down). */
.tc-phr { background: color-mix(in srgb, var(--pc) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--pc); }
.tc-phr:hover, .tc-phr:has(> :hover) { background: color-mix(in srgb, var(--pc) 16%, var(--surface)); }
.tc-phw { color: var(--pc); font-weight: 600; font-size: 12px; line-height: 18px; }

/* Model marks, R5 (owner, 2026-11-05): a round seal, accent ring, ink drawing; the variant dot on the ring (TJC.mark) */
.tc-mk { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--mk, 20px); height: var(--mk, 20px); border-radius: 50%;
         background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--rules); color: var(--ink); vertical-align: middle; }
.tc-mk svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tc-mk i { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 999px; font-style: normal;
           background: var(--rules); color: var(--rules-ink); font: 700 11px/16px var(--mono, monospace); text-align: center; box-shadow: 0 0 0 2px var(--surface); }

/* quarterPop (owner, 2026-11-05): the period pills and the small year-then-quarter pop-up, /models and /stock */
.tc-qpp { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill, 999px);
          background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 12px; line-height: 18px; white-space: nowrap; cursor: pointer; }
.tc-qpp[data-pop]::after { content: "▾"; color: var(--muted); font-size: 11px; }
.tc-qpp[aria-expanded=true], .tc-qpp[aria-pressed=true] { background: var(--sel-bg); border-color: var(--sel-edge); box-shadow: inset 0 0 0 1px var(--sel-edge); color: var(--sel-ink); font-weight: 600; }
.tc-qpop { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(300px, calc(100vw - 32px)); box-sizing: border-box; padding: 12px;
           border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.tc-qpop[hidden] { display: none; }
.tc-qpop h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 600; } .tc-qpop .g4 + h4 { margin-top: 10px; }
.tc-qpop .tc-qlatest { margin: 0 0 10px; min-height: 32px; }
.tc-qpop .g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tc-qpop .g4 button { min-height: 44px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 500 14px var(--font-geist-mono, monospace); cursor: pointer; }
.tc-qpop .g4 button:hover:not(:disabled) { background: var(--surface-2); }
.tc-qpop .g4 button[aria-pressed=true] { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-edge); color: var(--sel-ink); font-weight: 600; }
.tc-qpop .g4 button:disabled { color: var(--line-2); cursor: default; }

/* Menu pill (owner, 2026-11-14; E37): on a wide screen the current module is a soft pill, raised surface with a 1 px edge.
   Phones keep the bottom tab bar with its cyan current icon. */
@media (min-width: 761px) {
  .tc-nav { align-items: center; gap: 4px; }
  .tc-nav a { height: 36px; padding: 0 16px; border-bottom: 0; border-radius: 999px; font-size: 14px; }
  .tc-nav a[aria-current=page] { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
  /* the search box, SYM, theme and Account at the menu's size (owner, 2026-11-14) */
  .tc-hd .tj-b, .tc-hd .tc-cmd { height: 36px; font-size: 14px; } .tc-hd .tj-b:not(.tj-b-ico) { padding: 0 16px; } .tc-hd .tj-b-ico { width: 36px; }
}

/* the lock pop-up, A-1 / B-1 (owner, 2026-11-06): the site's LockPop look; a sheet from the bottom on a phone */
.tc-lkpop { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100% - 32px); overflow: auto; width: min(440px, calc(100% - 32px)); padding: 22px;
  border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-lift); }
.tc-lkpop::backdrop { background: rgba(5, 7, 10, .7); }
.tc-lkpop-h { display: flex; align-items: center; gap: 12px; margin: 0 40px 12px 0; }
.tc-lkpop-h h2 { margin: 0; font: 600 18px/24px var(--font-geist-sans, sans-serif); }
.tc-lkpop p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 21px; }
.tc-lkpop-seal { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--muted); }
.tc-lkpop-seal svg { width: 22px; height: 22px; }
.tc-lkpop-ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tc-lkpop-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.tc-lkpop-ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gain); background: color-mix(in srgb, var(--gain) 18%, transparent); }
.tc-lkpop p.tc-lkpop-price { color: var(--ink-2); font-size: 15px; line-height: 22px; } .tc-lkpop-price b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }   /* credits (owner, 2026-11-15) */
.tc-lkpop p.tc-lkpop-fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; } .tc-lkpop p.tc-lkpop-fine:empty { margin: 0; }
.tc-lkpop-fine a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.tc-lkpop p.tc-lkpop-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.tc-lkpop-dl { margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.tc-lkpop-dl div { display: flex; justify-content: space-between; gap: 12px; } .tc-lkpop-dl dt { color: var(--muted); } .tc-lkpop-dl dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-lkpop-acts { display: flex; flex-wrap: wrap; gap: 8px; } .tc-lkpop-acts .tc-btn { min-height: 44px; }
.tc-lkpop-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
@media (max-width: 760px) {
  .tc-lkpop { inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 90%; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .tc-lkpop-acts .tc-btn { flex: 1 1 100%; justify-content: center; }
}

/* TickJury look on the tool pages (owner, 2026-11-14; CONSTRAINTS E37): flat panels with a 16 px corner and a quiet 1 px edge
   that turns teal under a mouse (never outlined whole on focus); heads in ink; figure tiles flat with a 10 px corner and an
   optional outline icon (.tj-ic); the verdict as a pill tinted by its own colour; faint table hover. Controls stay P-1. */
:root { --r-tile: 10px; }
body.tc .tc-pane { border-color: var(--line); border-radius: 16px; padding: 14px; }
@media (hover: hover) and (pointer: fine) { body.tc .tc-pane:hover { border-color: var(--teal); } }
body.tc .tc-pane:focus, body.tc .tc-pane:focus-visible { outline: none; }
.tc-h { color: var(--ink); font-size: 14px; line-height: 20px; }
.tc-title { font-size: 18px; line-height: 24px; font-weight: 700; }
body.tc .tc-cards { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body.tc .tc-card { align-items: center; gap: 2px 10px; padding: 10px 12px; border-color: color-mix(in srgb, var(--line) 65%, transparent); border-radius: var(--r-tile); }
body.tc .tc-card:has(> .tj-ic) { grid-template-columns: 32px minmax(0, 1fr); }
.tc-card > .tj-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.tc-card > .tj-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tc-card > span:not(.tj-ic) { color: var(--muted); font-weight: 500; }
.tc-card b { font-size: 18px; line-height: 24px; font-weight: 700; }
.tc-chip { padding: 0 10px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); font-weight: 600; font-size: 12px; line-height: 20px; }
.tc-chip::before { content: none; }
.tc-tbl th { border-bottom-color: var(--line); }
.tc-tbl tbody tr:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
body.tc .tc-warn { border: 1px solid color-mix(in srgb, var(--stale) 35%, transparent); border-left: 3px solid var(--stale); }
.tc-qpop { border-color: var(--line); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .tc-qpp:hover, .tc-btn:hover { border-color: var(--teal); } }
@media (max-width: 760px) {
  body.tc .tc-pane { padding: 12px; border-radius: 12px; }
  body.tc .tc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tc .tc-card:has(> .tj-ic) { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 8px; }
  .tc-card > .tj-ic { width: 28px; height: 28px; }
  .tc-card b { font-size: 16px; line-height: 22px; }
  .mo-eqh .tc-h { flex-basis: 100%; }   /* /models: the chart head on its own line above the Log | Linear switch */
}
