.card{background:var(--card);border:1px solid var(--border);border-radius:0;
  box-shadow:var(--shadow);padding:18px}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
#cmhost .cm-editor{min-height:440px}
.stage .preview{--reserve-ar: 960 / 564}   /* load-grace: default example's viewBox — see workspace.css */

/* Board / Quadrant — the shared .segmented control (Swiss 6c) supplies the
   whole visual language; .vtseg survives only as the suites' handle. */
.viewtoggle{margin-bottom:12px}
.method{color:var(--muted);font-size:12.5px}
@media (max-width:900px){ #cmhost .cm-editor{min-height:280px} }

/* every bet row/card is a card-menu target (Edit stake / odds / payoff /
   kill criterion) in edit mode; the row's own hit rect is the last child
   painted BEHIND the stake/odds/payoff/kill sub-targets in the SVG source
   (see render.js), so hovering/tapping those still shows their own affordance */
.preview svg [data-edit="cardmenu"]{cursor:pointer}
.preview svg [data-edit="cardmenu"]:hover rect[data-hit]{fill:var(--accent);fill-opacity:.08}
.preview svg [data-edit="stake"],
.preview svg [data-edit="odds"],
.preview svg [data-edit="payoff"],
.preview svg [data-edit="kill"]{cursor:pointer}
.preview svg [data-edit="stake"]:hover rect,
.preview svg [data-edit="odds"]:hover rect,
.preview svg [data-edit="payoff"]:hover rect,
.preview svg [data-edit="kill"]:hover rect{fill:var(--accent);fill-opacity:.1}
/* a phone lays the board out tall (about 1440px for the example): reserve that while the first render is coming, so nothing below it moves */
@media (max-width:539px){.stage .preview .placeholder[data-boot]{aspect-ratio:auto;min-height:1443px;max-height:none;align-items:flex-start}}
@media (min-width:540px){.stage .preview .placeholder[data-boot]{aspect-ratio:auto;max-height:none;min-height:681px;align-items:flex-start}}   /* the example's height beside a folded editor at 1280px */
/* the export status line: what happened to the last export (a reduced scale, a refusal) stays until the next one */
.export-status{margin:8px 0 0;font-size:13px;color:var(--ink)}.export-status[hidden]{display:none}

/* a run is going (assets/sim-pending.js): the simulated figures (data-mc in the drawing) are the last result, dimmed once the wait is long enough to be seen;
   everything else is the current document at full strength */
.preview[data-sim-dim] svg [data-mc]{opacity:.6;transition:opacity var(--dur-fast) var(--ease-out)}   /* the transition sits on the dimmed state only */
.actions button[data-working]{opacity:.6;cursor:progress}
@media (prefers-reduced-motion:reduce){.preview[data-sim-dim] svg [data-mc]{transition:none}}
