/* Cella007FX PRO panel.css — shared visual kit for the Setup tab redesign ("panel v2", 11 Nov 2026; design/panel-v2/SPEC.md,
   builders in assets/js/widgets/viz.js). Loaded after app.css + mobile.css. Tokens only: every colour is a var() of the
   app.css palette; the only literals below are the text-ink tokens (WCAG AA small-text inks for both themes, measured
   11 Nov 2026 against --bg-2 / --bg-3 / the *-dim washes: all >= 4.5:1). Per-card rules live in panel-market.css,
   panel-setup.css, panel-trend.css and panel-levels.css. Motion = transitions on transform / opacity / width only. */

/* ---- tokens -------------------------------------------------------------------------------------------------- */
:root {
  --vz-ink-up:#22C55E; --vz-ink-down:#FF6670;   /* #FF5A66 measured 4.39:1 on the down wash over --bg-2 (11 Nov 2026): now 4.7:1 */ --vz-ink-warn:#F5A524; --vz-ink-info:#4C9AFF; --vz-ink-gold:#FFB000; --vz-ink-entry:#8B92FF;
  --vz-gap:8px; --vz-tap:28px; --vz-ease:cubic-bezier(.2,.7,.2,1);
  --vz-fs-micro:10px; --vz-fs-sm:11px; --vz-fs-body:12px; --vz-fs-em:14px; --vz-fs-hero:20px; --vz-fs-big:26px;
  --vz-tl-gutter:46px; --vz-track-h:10px;
}
html[data-theme="light"] {
  --vz-ink-up:#0F6B32; --vz-ink-down:#B0161F; --vz-ink-warn:#7A4700; --vz-ink-info:#1A52B0; --vz-ink-gold:#7A4D00; --vz-ink-entry:#454CC4;
}
@media (pointer: coarse) { :root { --vz-tap:36px; } }

/* tone classes: --vz-c = fill / stroke, --vz-ink = text, --vz-wash = soft background. One meaning per colour:
   up / down = bullish, win / bearish, loss · warn = caution, closed, testing · info = information, session open ·
   gold = now, active, highlight · entry = trade entry · off = closed, not loaded · neutral = plain */
.vz-t-up      { --vz-c:var(--up);     --vz-ink:var(--vz-ink-up);    --vz-wash:var(--ok-dim); }
.vz-t-down    { --vz-c:var(--down);   --vz-ink:var(--vz-ink-down);  --vz-wash:var(--err-dim); }
.vz-t-warn    { --vz-c:var(--warn);   --vz-ink:var(--vz-ink-warn);  --vz-wash:var(--warn-dim); }
.vz-t-info    { --vz-c:var(--info);   --vz-ink:var(--vz-ink-info);  --vz-wash:var(--info-dim); }
.vz-t-gold    { --vz-c:var(--gold);   --vz-ink:var(--vz-ink-gold);  --vz-wash:var(--gold-dim); }
.vz-t-entry   { --vz-c:var(--entry);  --vz-ink:var(--vz-ink-entry); --vz-wash:var(--bg-3); }
.vz-t-off     { --vz-c:var(--text-2); --vz-ink:var(--text-2);       --vz-wash:var(--bg-3); }
.vz-t-neutral { --vz-c:var(--text-1); --vz-ink:var(--text-0);       --vz-wash:var(--bg-3); }

/* ---- card chrome --------------------------------------------------------------------------------------------- */
#tab-quote > .vz-card { margin-bottom: 0; }
#tab-quote > .vz-card + .vz-card { margin-top: var(--vz-gap); }
.vz-card { padding: 8px 10px 10px; min-width: 0; }
.vz-card.is-collapsed { padding-bottom: 8px; }   /* a collapsed card is just its header row: centre it (8 / 8) */
.vz-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
#panel .vz-head h3.vz-title { margin: 0; flex: 1 1 auto; min-width: 0; font: inherit; letter-spacing: 0; text-transform: none; }
.vz-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: var(--vz-tap); padding: 0; margin: 0;
  border: 0; background: none; color: var(--text-1); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 600 var(--vz-fs-sm)/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
}
span.vz-toggle { cursor: default; }
.vz-toggle:hover .vz-title-text { color: var(--text-0); }
.vz-title-text { flex: 0 0 auto; white-space: nowrap; }
.vz-chev { flex: 0 0 auto; width: 10px; height: 10px; display: inline-flex; align-items: center; justify-content: center; }
.vz-chev::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s var(--vz-ease); }
.vz-card.is-collapsed .vz-chev::before { transform: rotate(-45deg); }
.vz-summary {
  display: none; margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 var(--vz-fs-sm)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; color: var(--vz-ink, var(--text-0));
}
.vz-card.is-collapsed .vz-summary { display: block; }
/* a summary too long for the room the header badges leave drops to a second line instead of being cut ('WAITING · re…'
   lost the live record on the 300 px panel; 11 Nov 2026, review V5). Only a summary wider than the whole row still ends in … */
.vz-card.is-collapsed .vz-toggle { flex-wrap: wrap; row-gap: 0; }
.vz-card.is-collapsed .vz-summary { flex: 0 1 auto; max-width: 100%; }
.vz-badges, .vz-actions { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.vz-badges:empty, .vz-actions:empty { display: none; }
.vz-body { display: flex; flex-direction: column; gap: var(--vz-gap); margin-top: 6px; min-width: 0; }
.vz-body > * { min-width: 0; }
.vz-card :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vz-card [data-peek] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vz-row { display: flex; align-items: center; gap: var(--vz-gap); min-width: 0; }
.vz-grow { flex: 1 1 auto; min-width: 0; }
.vz-micro { font-size: var(--vz-fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.vz-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vz-ink { color: var(--vz-ink, var(--text-0)); }
.vz-well { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 0; }
.vz-band { background: var(--vz-wash, var(--bg-3)); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; min-width: 0; }
.vz-clamp1 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vz-clamp1.is-open { white-space: normal; overflow-wrap: anywhere; }

/* ---- peek line (the card's one-line detail strip) ------------------------------------------------------------ */
.vz-peek {
  font-size: var(--vz-fs-sm); line-height: 1.4; color: var(--text-1); padding: 5px 8px; min-width: 0; overflow-wrap: anywhere;
  background: var(--bg-3); border-left: 2px solid var(--vz-c, var(--gold)); border-radius: 0 var(--radius) var(--radius) 0;
}
.vz-peeking { outline: 1px dashed var(--vz-c, var(--gold)); outline-offset: 2px; }
/* mouse-hover detail: floats over the page, never moves the layout (11 Nov 2026 - the in-flow line made the panel shake) */
.vz-tip {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; max-width: min(280px, calc(100vw - 16px));
  font-size: var(--vz-fs-sm); line-height: 1.4; color: var(--text-0); overflow-wrap: anywhere; padding: 5px 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--vz-c, var(--gold));
  border-radius: var(--radius); box-shadow: var(--shadow);
  white-space: pre-line;   /* 12 Nov 2026 (review P9): a text with line breaks (the Setup disclaimer) keeps them */
}
.vz-tip[hidden] { display: none; }
.vz-peeking:focus-visible { outline-style: solid; outline-width: 2px; outline-color: var(--gold); }

/* ---- details drawer ------------------------------------------------------------------------------------------- */
.vz-more { border-top: 1px solid var(--line); padding-top: 2px; }
.vz-more-sum {
  display: flex; align-items: center; gap: 6px; min-height: var(--vz-tap); cursor: pointer; list-style: none; user-select: none;
  font-size: var(--vz-fs-sm); color: var(--text-2);
}
.vz-more-sum::-webkit-details-marker { display: none; }
.vz-more-sum::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .16s var(--vz-ease); }
.vz-more[open] > .vz-more-sum::before { transform: translateY(-2px) rotate(45deg); }
.vz-more-sum:hover { color: var(--text-0); }
.vz-more-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 2px; font-size: var(--vz-fs-body); min-width: 0; }
.vz-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: var(--vz-fs-body); }
.vz-kv > :nth-child(odd) { color: var(--text-2); }
.vz-kv > :nth-child(even) { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-0); }

/* ---- pill / info / stat / skeleton ---------------------------------------------------------------------------- */
.vz-pill {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 20px; padding: 0 7px; border-radius: 10px;
  font: 600 var(--vz-fs-sm)/1 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--vz-ink, var(--text-1)); background: var(--vz-wash, var(--bg-3)); border: 1px solid transparent;
}
.vz-pill.vz-t-off, .vz-pill.vz-t-neutral { border-color: var(--line); }
.vz-pill[role="button"] { cursor: pointer; }
.vz-info {
  position: relative; flex: 0 0 auto; width: var(--vz-tap); height: var(--vz-tap); padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--text-2); cursor: pointer; font: italic 700 11px/1 Georgia, "Times New Roman", serif;
}
.vz-info::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; }
.vz-info:hover, .vz-info.vz-peeking { color: var(--gold); }
.vz-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vz-stat-k { font-size: var(--vz-fs-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-stat-v { font: 700 var(--vz-fs-em)/1.15 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--vz-ink, var(--text-0)); white-space: nowrap; }
.vz-stat-lg .vz-stat-v { font-size: var(--vz-fs-hero); }
.vz-stat-s { font-size: var(--vz-fs-micro); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-skel { display: inline-block; vertical-align: middle; border-radius: 4px; background: var(--bg-3); background-image: linear-gradient(90deg, transparent, var(--line), transparent); background-size: 200% 100%; animation: vzShimmer 1.2s linear infinite; }
@keyframes vzShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes vzPing { 0% { box-shadow: 0 0 0 0 var(--gold); } 100% { box-shadow: 0 0 0 6px transparent; } }

/* ---- switch (real checkbox) / segmented ----------------------------------------------------------------------- */
.vz-switch { display: inline-flex; align-items: center; gap: 6px; min-height: var(--vz-tap); cursor: pointer; font-size: var(--vz-fs-body); color: var(--text-0); user-select: none; }
.vz-switch-in {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 30px; height: 18px; margin: 0; cursor: pointer;
  border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line-ctl);
}
.vz-switch-in::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-1); transition: transform .15s var(--vz-ease); }
.vz-switch-in:checked { background: var(--gold-fill); border-color: var(--gold-fill); }
.vz-switch-in:checked::after { transform: translateX(12px); background: var(--bg-0); }
html[data-theme="light"] .vz-switch-in:checked::after { background: var(--text-0); }
.vz-switch-in:disabled { opacity: .5; cursor: default; }
.vz-switch-in:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vz-segctl { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); }
.vz-segctl-b {
  min-height: 24px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 600 var(--vz-fs-sm)/1 var(--font-ui); color: var(--text-1); white-space: nowrap;
}
.vz-segctl-b[aria-checked="true"] { background: var(--bg-1); color: var(--vz-ink-gold); box-shadow: inset 0 0 0 1px var(--gold); }
.vz-segctl-b:disabled { opacity: .45; cursor: default; }

/* ---- ring / dial / meter / split -------------------------------------------------------------------------------- */
.vz-ring { position: relative; flex: 0 0 auto; }
.vz-ring-svg { display: block; }
/* the track is a control-line colour, never a surface colour: on the Setup record well (--bg-3) a --bg-3 track vanished
   and "17 %" read as a stray arc (11 Nov 2026, review V2) */
.vz-ring-track { stroke: var(--line-ctl); }
.vz-ring-arc { stroke: var(--vz-c, var(--gold)); stroke-linecap: round; transition: stroke-dashoffset .3s var(--vz-ease); }
.vz-ring-arc.is-empty { opacity: 0; }
.vz-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; pointer-events: none; }
.vz-ring-v { font: 700 var(--vz-fs-em)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--vz-ink, var(--text-0)); }
.vz-ring-s { margin-top: 2px; font-size: var(--vz-fs-micro); color: var(--text-2); }
.vz-dial { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.vz-dial-svg { display: block; overflow: visible; }
.vz-dial-track { stroke: var(--bg-3); }
.vz-dial-zone { stroke: var(--vz-c, var(--text-2)); opacity: .3; transition: opacity .2s; }
.vz-dial-zone.is-on { opacity: 1; }
.vz-dial-needle { transform-box: view-box; transition: transform .3s var(--vz-ease); }
.vz-dial-needle line { stroke: var(--text-0); }
.vz-dial-needle circle { fill: var(--text-0); }
.vz-dial-needle.is-empty { opacity: 0; }
.vz-dial-c { margin-top: -2px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; }
.vz-dial-v { font: 700 var(--vz-fs-body)/1.15 var(--font-ui); color: var(--vz-ink, var(--text-0)); white-space: nowrap; }
.vz-dial-s { font-size: var(--vz-fs-micro); color: var(--text-2); white-space: nowrap; }
.vz-meter { position: relative; height: 6px; min-width: 40px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.vz-meter-fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); background: var(--vz-c, var(--gold)); border-radius: 3px; transition: transform .3s var(--vz-ease); }
.vz-meter-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text-0); }
.vz-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-3); gap: 2px; }
.vz-split-p { display: block; height: 100%; background: var(--vz-c, var(--text-2)); transition: width .3s var(--vz-ease); }
.vz-split-p.vz-t-off, .vz-split-p.vz-t-neutral { background: var(--line-ctl); }

/* ---- track (horizontal axis: stop -> target rail, day range) ----------------------------------------------------- */
/* overflow hidden: the needle is a full-width layer moved with translateX(p %), which would otherwise widen the sheet */
.vz-track { position: relative; min-width: 0; padding-top: 20px; overflow: hidden; }
.vz-track-bar { position: relative; height: var(--vz-track-h); margin: 0 6px; }
.vz-track-rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); border-radius: 1px; }
.vz-track-segs, .vz-track-marks { position: absolute; inset: 0; }
.vz-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; }
.vz-seg::before { content: ""; position: absolute; inset: 0; background: var(--vz-c, var(--text-2)); opacity: .4; }   /* tint only: the label keeps full opacity */
.vz-seg.is-dash::before { background: none; opacity: 1; border: 1px dashed var(--vz-c, var(--text-2)); border-radius: 3px; }
.vz-seg-l { position: relative; font: 700 var(--vz-fs-micro)/1 var(--font-mono); color: var(--text-0); white-space: nowrap; }
.vz-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); }
/* tap areas split the bar (11 Nov 2026, review V4): a mark owns a full tap square from the bar's centre DOWN over its
   label, the live needle owns the bar's upper half and the space above it, so a needle sitting on the H / L tick no
   longer swallows the mark's tap (and the needle stays reachable) */
.vz-mark[role="button"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--vz-tap); height: var(--vz-tap); transform: translateX(-50%); }
.vz-mark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vz-c, var(--text-1)); box-shadow: 0 0 0 2px var(--bg-2); }
.vz-mark-tick { width: 2px; height: 18px; border-radius: 1px; background: var(--vz-c, var(--text-1)); }
.vz-mark-dash { width: 0; height: 18px; border-left: 2px dashed var(--vz-c, var(--text-2)); }
.vz-mark.is-clamp-lo::before, .vz-mark.is-clamp-hi::before { position: absolute; top: -14px; font: 700 10px/1 var(--font-ui); color: var(--vz-ink, var(--text-1)); }
.vz-mark.is-clamp-lo::before { content: "\2039"; left: 2px; }
.vz-mark.is-clamp-hi::before { content: "\203A"; right: 2px; }
.vz-needle { position: absolute; inset: 0; pointer-events: none; }
.vz-track.is-ready .vz-needle { transition: transform .18s var(--vz-ease); }
.vz-needle-hit { position: absolute; left: 0; top: -4px; bottom: -4px; width: 24px; margin-left: -12px; pointer-events: none; }
.vz-needle-hit::before { content: ""; position: absolute; left: 50%; top: -20px; bottom: 50%; width: var(--vz-tap); margin-left: calc(var(--vz-tap) / -2); pointer-events: auto; }
.vz-needle-label { pointer-events: auto; }
.vz-needle-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--vz-c, var(--gold)); }
.vz-needle-label {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); padding: 1px 5px; border-radius: 8px; white-space: nowrap;
  font: 700 var(--vz-fs-sm)/1.3 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--vz-ink, var(--text-0)); background: var(--bg-1); border: 1px solid var(--vz-c, var(--gold));
}
.vz-needle.is-start .vz-needle-label { transform: translateX(-8px); }
.vz-needle.is-end .vz-needle-label { transform: translateX(calc(-100% + 8px)); }
.vz-needle-hit.is-clamp-lo .vz-needle-line, .vz-needle-hit.is-clamp-hi .vz-needle-line { opacity: .55; }
.vz-track-labels { position: relative; height: 30px; margin: 4px 6px 0; }
.vz-tlabel { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; line-height: 1.2; }
.vz-tlabel-v { font: 700 var(--vz-fs-body)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--vz-ink, var(--text-0)); }
.vz-tlabel-s { font: 400 var(--vz-fs-micro)/1.2 var(--font-mono); color: var(--text-2); }

/* ---- timeline (24 h session strip) ----------------------------------------------------------------------------- */
.vz-tl { position: relative; min-width: 0; padding: 0 2px 0 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: var(--radius); }
.vz-tl-news { position: relative; height: 10px; margin-left: var(--vz-tl-gutter); }
.vz-tl-mark { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--vz-c, var(--down)); }
.vz-tl-mark.is-holiday { background: none; border: 1.5px solid var(--vz-c, var(--text-2)); }
.vz-tl-lanes { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.vz-tl-lane { display: grid; grid-template-columns: var(--vz-tl-gutter) minmax(0, 1fr); align-items: center; min-width: 0; }
.vz-tl-name { font-size: var(--vz-fs-micro); line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.vz-tl-name.vz-t-info, .vz-tl-name.vz-t-gold, .vz-tl-name.vz-t-warn { color: var(--vz-ink); font-weight: 700; }
.vz-tl-track { position: relative; height: 8px; border-radius: 4px; background: var(--bg-3); }
.vz-tl-span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--vz-c, var(--text-2)); opacity: .4; }
.vz-tl-span.is-open { opacity: 1; }
.vz-tl-span.is-soon { opacity: 1; background: none; box-shadow: inset 0 0 0 1.5px var(--vz-c, var(--warn)); }
.vz-tl-hot { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--gold); }
.vz-tl-over { position: absolute; left: var(--vz-tl-gutter); right: 2px; top: 0; bottom: 16px; pointer-events: none; }
.vz-tl-band { position: absolute; top: 10px; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; }
.vz-tl-band.is-closed { background: repeating-linear-gradient(135deg, var(--line-ctl) 0 1.5px, transparent 1.5px 5px); background-color: var(--bg-2); opacity: .85; }
.vz-tl-band.is-pause { top: 0; background: var(--err-dim); }
.vz-tl-band-l { font: 700 var(--vz-fs-micro)/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-1); background: var(--bg-2); padding: 1px 3px; border-radius: 3px; white-space: nowrap; }
.vz-tl-now { position: absolute; top: 0; bottom: -3px; width: 2px; margin-left: -1px; background: var(--gold); border-radius: 1px; }
.vz-tl-now::after { content: ""; position: absolute; bottom: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); }
.vz-tl-scrub { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-0); }
.vz-tl-axis { position: relative; height: 14px; margin: 3px 2px 0 var(--vz-tl-gutter); }
.vz-tl-tick { position: absolute; top: 0; transform: translateX(-50%); font: 400 var(--vz-fs-micro)/14px var(--font-mono); color: var(--text-2); }
.vz-tl-tick.is-start { transform: none; } .vz-tl-tick.is-end { transform: translateX(-100%); }

/* ---- ladder (vertical price scale) ------------------------------------------------------------------------------ */
.vz-ladder { position: relative; min-width: 0; overflow: hidden; }   /* the price layer moves with translateY(p %) */
.vz-lad-in { position: absolute; inset: 8px 0; }
.vz-lad-lines, .vz-lad-rows { position: absolute; inset: 0; }
.vz-lad-line { position: absolute; left: 52px; right: 78px; height: 0; border-top: 1px solid var(--line); }
.vz-lad-line.is-emph { border-top-color: var(--vz-c, var(--text-1)); }
.vz-lad-line.vz-t-info { border-top-style: dashed; border-top-color: var(--vz-c); }
.vz-lad-conn { position: absolute; left: 50px; width: 0; border-left: 1px solid var(--line-ctl); }
.vz-lad-row {
  position: absolute; left: 0; right: 0; height: 18px; margin-top: -9px; display: flex; align-items: center; gap: 6px; padding: 0 2px;
  font-size: var(--vz-fs-sm); line-height: 18px; color: var(--text-2); border-radius: 4px;
}
.vz-lad-name { width: 44px; flex: 0 0 auto; font-weight: 600; color: var(--vz-ink, var(--text-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-lad-row.vz-t-neutral .vz-lad-name, .vz-lad-row.vz-t-off .vz-lad-name { color: var(--text-2); }
.vz-lad-price { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-1); white-space: nowrap; }
.vz-lad-row.is-emph .vz-lad-name, .vz-lad-row.is-emph .vz-lad-price { color: var(--text-0); font-weight: 700; }
.vz-lad-rtag { height: 16px; padding: 0 5px; font-size: var(--vz-fs-micro); }
/* rows keep one row-gap clear of the price line (viz.js placeAround); when a crowded side still has to touch it, the
   name and price sit ABOVE the line on a card-coloured backing, so the line passes behind them (11 Nov 2026, review V1) */
.vz-lad-rows { z-index: 2; }
.vz-lad-name, .vz-lad-price { position: relative; background: var(--bg-2); border-radius: 3px; padding: 0 2px; }
.vz-lad-now { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 1; pointer-events: none; transition: transform .18s var(--vz-ease); }
.vz-lad-now-line { position: absolute; left: 0; right: 0; top: 0; height: 0; border-top: 1.5px solid var(--vz-c, var(--gold)); }
.vz-lad-tag {
  position: absolute; right: 0; top: 0; transform: translateY(-50%); padding: 0 6px; border-radius: 9px; white-space: nowrap;
  font: 700 var(--vz-fs-sm)/16px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--bg-0); background: var(--gold-fill);
}
html[data-theme="light"] .vz-lad-tag { color: var(--text-0); }   /* dark ink on the bright gold fill in both themes */

/* ---- heat tiles ----------------------------------------------------------------------------------------------- */
.vz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; min-width: 0; }
.vz-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 52px;
  padding: 4px 2px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--vz-wash, var(--bg-3)); color: var(--text-1);
  cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: background-color .2s;
}
.vz-tile:hover { border-color: var(--text-2); }
.vz-tile-k { font: 700 var(--vz-fs-micro)/1 var(--font-ui); letter-spacing: .04em; color: var(--text-1); }
.vz-tile-g { font-size: 15px; line-height: 1; color: var(--vz-ink, var(--text-1)); min-height: 15px; }
.vz-tile-pips { display: flex; gap: 2px; }
.vz-tile-pips i { display: block; width: 4px; height: 7px; border-radius: 1px; background: var(--line-ctl); opacity: .5; }
.vz-tile[data-level="1"] .vz-tile-pips i:nth-child(-n+1),
.vz-tile[data-level="2"] .vz-tile-pips i:nth-child(-n+2),
.vz-tile[data-level="3"] .vz-tile-pips i:nth-child(-n+3) { background: var(--vz-c, var(--text-1)); opacity: 1; }
.vz-tile-flag {   /* corner badge, outside the label (a squeeze ⚡ sat on top of "M15") */
  position: absolute; top: -5px; right: -4px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-1); border: 1px solid var(--warn); font-size: var(--vz-fs-micro); line-height: 1; color: var(--vz-ink-warn);
}
.vz-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--gold); border-color: var(--gold); }
.vz-tile[aria-pressed="true"] .vz-tile-k { color: var(--vz-ink-gold); }
.vz-tile.is-pending { border-style: dashed; background: var(--bg-3); }
.vz-tile.is-pending .vz-tile-g { color: var(--text-2); }

/* ---- result dots ---------------------------------------------------------------------------------------------- */
.vz-dots { display: flex; align-items: center; gap: 4px; min-height: 24px; min-width: 0; touch-action: pan-y; }   /* sideways finger slide = scrub (viz.js dots) */
.vz-dots-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0; min-width: 0; }
.vz-dots-more { font: 600 var(--vz-fs-micro)/1 var(--font-mono); color: var(--text-2); }
.vz-dot { position: relative; width: 14px; height: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vz-dot::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--vz-c, var(--text-2)); }
.vz-dot.is-hollow::before { background: none; box-shadow: inset 0 0 0 1.5px var(--vz-c, var(--gold)); }
.vz-dot.is-hatch::before { background: repeating-linear-gradient(135deg, var(--vz-c, var(--text-2)) 0 1.5px, transparent 1.5px 3.5px); box-shadow: inset 0 0 0 1px var(--vz-c, var(--text-2)); }

/* ---- phones (< 768 px: the panel is the bottom sheet, viewed most of the time) ------------------------------------ */
@media (max-width: 767px) {
  :root { --vz-tap:36px; --vz-fs-sm:12px; --vz-fs-body:13px; --vz-fs-em:15px; --vz-fs-hero:22px; --vz-fs-big:28px; --vz-tl-gutter:50px; --vz-track-h:12px; }
  .vz-card { padding: 8px 12px 12px; }
  .vz-card.is-collapsed { padding-bottom: 8px; }
  .vz-peek { font-size: 12px; }
  .vz-pill { height: 24px; padding: 0 9px; }
  /* a tappable pill (it has a peek) gets a 32 px tap row while still LOOKING 24 px tall: 4 px transparent borders top and
     bottom, background clipped to the padding box, the hairline of grey pills drawn as an inset shadow (11 Nov 2026) */
  .vz-pill[role="button"] { height: 32px; border-width: 4px 1px; border-style: solid; border-color: transparent; border-radius: 16px; background-clip: padding-box; }
  .vz-pill[role="button"].vz-t-off, .vz-pill[role="button"].vz-t-neutral { border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
  .vz-pill[role="button"].vz-peeking, .vz-pill[role="button"]:focus-visible { outline-offset: -3px; }   /* hug the visible pill */
  .vz-segctl-b { min-height: 32px; min-width: 40px; }
  .vz-switch-in { width: 36px; height: 22px; border-radius: 11px; }
  .vz-switch-in::after { width: 16px; height: 16px; }
  .vz-switch-in:checked::after { transform: translateX(14px); }
  .vz-tile { min-height: 56px; }
  .vz-tile-g { font-size: 17px; }
  .vz-tl-track { height: 10px; border-radius: 5px; }
  .vz-tl-lanes { gap: 5px; }
  .vz-dot { width: 16px; height: 32px; }
  .vz-dot::before { width: 12px; height: 12px; }
  .vz-lad-row { height: 32px; margin-top: -16px; line-height: 32px; }   /* one 32 px tap row per level (pivots.js minGap 32) */
  .vz-track-labels { height: 32px; }
}
/* narrow sheet (<= 340 px): track sub-labels give way (they stay in the mark peeks) */
@media (max-width: 340px) {
  .vz-tlabel-s { display: none; }
  .vz-track-labels { height: 18px; }
}

/* ---- reduced motion (app.css already disables every transition / animation; repeated so this file stands alone) --- */
@media (prefers-reduced-motion: reduce) {
  .vz-card *, .vz-card *::before, .vz-card *::after { transition: none !important; animation: none !important; }
  .vz-skel { background-image: none; }
}
