/* ============================================================================
   ELECT playground — playground.css
   Chrome of the presentation page. Reads ONLY --site-* tokens (site-tokens.css);
   the stages (gallery, dashboards) are themed by the --elect-* tokens the engine
   generates. Layout D (owner, 2026-10-01, DECISIONS D27): the theme left, one chart
   per row in the middle (the one in the middle of the screen is active), its options
   right; Focus folds both panels away; dashboards in a view of their own (D31).
   ============================================================================ */
* { box-sizing: border-box; }
/* hidden means hidden — whatever display a class gives (a hidden .field was still on screen) */
[hidden] { display: none !important; }
body { margin: 0; }   /* type, colour and background: Alaric's .ds-root */
:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p.hint { margin: var(--site-space-1) 0 0; }   /* Alaric's .text-small .text-muted */

/* --- header: site/header.css (one for the whole site); Export is its one black button --- */

/* --- layout D: theme | charts | the active chart ---------------------------------------------------------- */
.focus-btn[aria-pressed="true"] { background: var(--accent); --btn-fg: var(--on-accent); }
.layout { display: grid; grid-template-columns: var(--site-panel-width) minmax(0, 1fr) var(--site-inspector-width);
  transition: grid-template-columns var(--elect-motion-spatial-duration) var(--elect-motion-easing-standard); }
.settings, .inspector { position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto; min-width: 0; background: var(--site-panel); }
.settings { border-right: 1px solid var(--site-line); padding: var(--site-space-2) var(--site-space-5) var(--site-space-6); }
/* the active chart's options: ONE white surface with one padding — no title, no box inside it (owner) */
.inspector { border-left: 1px solid var(--site-line); padding: var(--site-space-5); background: var(--site-card); }
/* Focus: both panels fold away; the pill (or Esc) brings them back */
.layout.focus { grid-template-columns: 0 minmax(0, 1fr) 0; }
.layout.focus .settings, .layout.focus .inspector { visibility: hidden; padding: 0; border: 0; }
/* In Focus there is no panel to link to → no chart is the active one: no check, no bold type, nothing recedes (owner) */
.layout.focus .gallery .item .check-mark { display: none; }
.layout.focus .gallery .item .item-type { font-weight: var(--site-weight); color: var(--elect-chart-text-secondary); }
.layout.focus .gallery:not(.all) .item:not(.selected) .tile { opacity: 1; }
/* Narrower screens: no third column — the active chart's panel heads the left one */
@media (max-width: 1200px) {
  .layout { grid-template-columns: var(--site-panel-width) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .inspector { grid-column: 1; grid-row: 1; position: static; height: auto; border-left: 0; border-right: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
  .settings { grid-column: 1; grid-row: 2; position: static; height: auto; }
  .preview { grid-column: 2; grid-row: 1 / span 2; }
  .layout.focus { grid-template-columns: 0 minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .layout, .layout.focus { grid-template-columns: 1fr; grid-template-rows: none; }
  .inspector, .settings, .preview { grid-column: 1; grid-row: auto; }
  .settings { border-right: 0; border-bottom: 1px solid var(--site-line); }
}
.row.nowrap { flex-wrap: nowrap; }   /* .row: Alaric's */

/* the hex values: Alaric's .field (no label of its own); the colour: Alaric's .color-pick */
.hex-field { width: 7rem; }
/* an action inside a select (Upload your font…): an option can't be styled much — bold, after a separator (owner) */
.opt-action { font-weight: var(--site-weight-bold); }

/* section 1: Brand color | Font on one row (R2) — the colour keeps its width, the font takes the rest */
.brand-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--site-space-3); align-items: end; }

/* More tokens (brand-fields.js): the section's own rhythm; an "auto" value shows ELECT's colour,
   receded; its notes are Alaric alerts at the field's size */
.ds-fields { display: grid; gap: calc(var(--site-space-4) + var(--site-space-1)); }
.ds-fields[hidden] { display: none; }
.ds-row.is-auto .color-pick { opacity: var(--site-recede); }
.ds-notes { display: grid; gap: var(--site-space-1); }
.ds-notes:empty { display: none; }
.ds-notes .alert { padding: var(--site-space-1) var(--site-space-2); border-radius: var(--site-radius-sm); font-size: var(--site-text-xs); }
.ds-notes .alert .link { font-size: inherit; }

/* the four Show switches: two columns (each switch is Alaric's .switch) */
.switches { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--site-space-2); }

/* palette swatches (lock / try again — ported from proof-1); the border is the mark outline (D20) */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--site-space-2); }
.swatches .chip { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--site-radius-sm); background: var(--c); border: 1.5px solid var(--cs); }
/* A hatched slot (D26) shows its hatch, as on the marks; an outline-only slot is its outline. */
.swatches .chip.outlined { background-color: var(--site-card); }
.swatches .chip.hatched { background-image: repeating-linear-gradient(-45deg, transparent 0 calc(var(--elect-hatch-step) - var(--elect-hatch-width)), var(--ci) calc(var(--elect-hatch-step) - var(--elect-hatch-width)) var(--elect-hatch-step)); }
/* "keep" = a lock on the color: on hover (and keyboard focus), always — black — once locked */
.lock { position: absolute; right: var(--site-space-half); bottom: var(--site-space-half); width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--site-card); color: var(--site-text); box-shadow: var(--site-shadow-sm); cursor: pointer;
  opacity: 0; transition: opacity var(--elect-motion-effects-duration) ease, background var(--elect-motion-effects-duration) ease; }
.lock svg { width: 11px; height: 11px; }
.chip:hover .lock, .lock:focus-visible, .lock[aria-pressed="true"] { opacity: 1; }
.lock[aria-pressed="true"] { background: var(--site-button); color: var(--site-button-text); }
@media (hover: none) { .lock { opacity: 1; } }


/* the active chart's panel: the same head as its card — its TYPE, dark and bold, the small check after it */
.chart-panel { display: grid; gap: var(--site-space-3); }
.panel-type { display: flex; align-items: center; gap: var(--site-space-2); margin: 0; font-size: var(--site-text-xs);
  font-weight: var(--site-weight-bold); text-transform: uppercase; letter-spacing: 0.1em; color: var(--site-text); }
.chart-panel .check-mark { position: static; flex: none; width: 16px; height: 16px; box-shadow: none; background: var(--site-text); color: var(--site-button-text); }
.chart-panel .check-mark svg { width: 9px; height: 9px; }

/* --- the charts (middle) ------------------------------------------------------------------------- */
.preview { padding: 0 var(--site-space-6) var(--site-space-6); min-width: 0; }
/* One by one / All in the middle, Focus at the end of the same line (owner) */
.view-bar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--site-space-3) 0; background: var(--site-bg); }
.view-bar .focus-btn { justify-self: end; display: inline-flex; align-items: center; gap: var(--site-space-1); }
.view-bar .focus-btn svg { width: 14px; height: 14px; }
.stage { background: var(--elect-card-page, var(--elect-chart-surface)); color: var(--elect-chart-text-primary); border: 1px solid var(--site-line);
  border-radius: var(--site-radius); transition: background var(--elect-motion-effects-duration) ease; }
/* One by one (owner): one chart per row, a lot of room around it */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--site-space-7) var(--site-space-7); }
.item { padding-top: var(--site-space-7); min-width: 0; }
/* above the card: its TYPE, and — at the right — "See it in a dashboard" (owner: not inside the card) */
.item-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--site-space-3);
  margin: 0 var(--site-space-half) var(--site-space-2); }
.item-type { margin: 0; font-size: var(--site-text-xs); font-weight: var(--site-weight); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--elect-chart-text-secondary);
  transition: color var(--elect-motion-effects-duration) ease; }
/* The ACTIVE chart (owner, 2026-10-02 — no ring): its type is dark and bold, with the check after it; the other
   cards recede a little. Not in "All" (every chart is looked at there). */
.item.selected .item-type { font-weight: var(--site-weight-bold); color: var(--elect-chart-text-primary); }
.gallery:not(.all) .item:not(.selected) .tile { opacity: var(--site-recede); }
/* "See it in a dashboard": a quiet link in the THEME's text color — at home on any surface */
.more { font: inherit; font-size: var(--site-text-sm); border: 0; background: none; padding: 0;
  cursor: pointer; color: var(--elect-chart-text-secondary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color var(--elect-motion-effects-duration) ease, text-decoration-color var(--elect-motion-effects-duration) ease; }
.more:hover { color: var(--elect-chart-text-primary); text-decoration-color: currentColor; }
/* All: every chart small, at a glance */
.gallery.all { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--site-space-4); padding: var(--site-space-5); }
.gallery.all .item { padding-top: 0; }
.gallery.all .item.wide { grid-column: 1 / -1; }
.gallery.all .more, .gallery.all .tile-sub { display: none; }
/* A chart's container = the card tokens (D22): outline / elevated / translucent / none. */
.tile { position: relative; background: var(--elect-card-bg); border: 1px solid var(--elect-card-border); box-shadow: var(--elect-card-shadow);
  border-radius: var(--elect-card-radius); padding: var(--site-space-3); min-width: 0;
  transition: box-shadow var(--elect-motion-effects-duration) ease, background var(--elect-motion-effects-duration) ease,
    opacity var(--elect-motion-effects-duration) ease; }
.gallery .tile { cursor: pointer; padding: var(--elect-chart-pad) calc(var(--elect-chart-pad) * 1.25); }   /* density (owner) */
.gallery.all .tile { padding: calc(var(--elect-chart-pad) * 0.6); }
/* KPI cards carry the card style themselves: their row's container is bare (no card in a card) */
.tile.bare, .gallery .tile.bare { background: none; border-color: transparent; box-shadow: none; }
/* the ACTIVE chart: the black check, nothing else — the card keeps its own style whatever it is (owner:
     with Outline / None the old dark ring was dropped by a bug, and it looked better without) */
.check-mark { position: absolute; top: calc(var(--site-space-3) * -1); right: calc(var(--site-space-3) * -1); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--elect-chart-text-primary); color: var(--elect-chart-surface); box-shadow: var(--site-shadow-sm); }
.check-mark svg { width: 14px; height: 14px; }
.gallery .item:not(.selected) .check-mark { display: none; }
/* on a card: right after its TYPE, small — the same pair (check + type) as in the options panel */
.item-type { display: flex; align-items: center; gap: var(--site-space-2); }
.item-type .check-mark { position: static; flex: none; width: 16px; height: 16px; box-shadow: none; }
.item-type .check-mark svg { width: 9px; height: 9px; }
/* The heading takes the TITLE's size: at the browser's heading size its line box was 24.6px around a 14px text,
   which read as a blank line between title and subtitle (owner). */
/* the card is the chart's: its title and subtitle wear the charts' font (owner, 2026-10-04) */
/* (named on the headings too: Alaric's .ds-root h3 sets its own font, which a font on .tile alone loses to) */
.tile, .tile h3, .tile-title, .dash-title { font-family: var(--elect-font-family); }
.tile h3 { margin: 0; font-size: var(--elect-text-title); font-weight: var(--elect-text-weight-semibold); line-height: 1.3; }   /* text hierarchy B: the title first (owner, 2026-11-15) */
.tile-title { all: unset; cursor: pointer; font-size: var(--elect-text-title); font-weight: var(--elect-text-weight-semibold); color: var(--elect-chart-text-primary); }
.tile-title:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 3px; border-radius: var(--site-radius-xs); }
p.tile-sub { margin: calc(var(--elect-card-gap) / 6) 0 var(--elect-card-gap); font-size: var(--site-text-sm); line-height: 1.4; color: var(--elect-chart-text-secondary); }
.gallery.all .tile h3 { margin-bottom: var(--site-space-2); }
.tile-body > :not(.kpis) { display: block; height: 360px; }
.gallery.all .tile-body > :not(.kpis) { height: 240px; }
/* KPI row: the cards share the full width (never a gap at the end), wrapping before a card gets
   narrower than the KPI token allows. */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--elect-kpi-min-width, 180px), 1fr)); gap: var(--site-space-3); }
.kpis > elect-kpi { display: block; }
/* When the four don't fit on one row, go 2 + 2 (not 3 + 1), then one per row. */
.tile-body, .dash { container-type: inline-size; }
/* "Cards on a row" (the KPI panel): as many columns as cards — a narrow stage still drops to 2, then 1. */
.kpis.cols-1 { grid-template-columns: minmax(0, 1fr); }
.kpis.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 800px) { .kpis, .kpis.cols-3, .kpis.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 400px) { .kpis.kpis { grid-template-columns: minmax(0, 1fr); } }

/* --- export (a window, D27) ------------------------------------------------------------------------- */
.export-dialog { width: min(980px, 94vw); max-height: 90vh; padding: 0; border: 0; border-radius: var(--site-radius); background: var(--site-bg); color: var(--site-text); box-shadow: var(--site-shadow-lg); }
.export-dialog[open] { display: flex; flex-direction: column; }
.export-dialog::backdrop { background: color-mix(in oklch, var(--site-text) 45%, transparent); }
.export-body { display: grid; gap: var(--site-space-3); padding: var(--site-space-4) var(--site-space-5) var(--site-space-5); min-height: 0; overflow: auto; }
[id^="export-step-"][hidden] { display: none; }
/* Layout J (owner, 2026-11-15): step headings, one cell per color (its chip, name, hex, a field for your token), the
   format cards (Alaric .card-interactive — the chosen one outlined), the charts' checkboxes, Back · Download. */
.export-dialog .export-step { margin: 0; font-size: var(--site-text-md); font-weight: var(--site-weight-medium); }
.export-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--site-space-3); }
.export-color { display: grid; gap: var(--site-space-1); align-content: start; min-width: 0; }
.export-chip { display: grid; place-items: center; height: 40px; border-radius: var(--site-radius-xs); border: 1.5px solid var(--cs, var(--site-line)); background: var(--c, var(--site-bg)); font-size: var(--site-text-md); }
.export-color-name { font-size: var(--site-text-sm); font-weight: var(--site-weight-medium); }
.export-color code { font-size: var(--site-text-xs); color: var(--site-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-color input { font-size: var(--site-text-sm); }
.export-where { max-width: 20rem; }
.export-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-space-3); }
.export-format { align-items: flex-start; text-align: left; font: inherit; color: inherit; }
.export-format[aria-pressed="true"] { border-color: var(--site-text); }
.export-format:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 2px; }
.export-format-icon { width: 32px; height: 32px; fill: currentColor; }
.export-format-name { font-weight: var(--site-weight-medium); }
.export-format-what { color: var(--site-text-2); font-size: var(--site-text-sm); }
.export-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--site-space-1) var(--site-space-3); }
.export-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--site-space-3); }
@media (max-width: 760px) { .export-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .export-formats { grid-template-columns: minmax(0, 1fr); } }
.export-note { margin: 0; font-size: var(--site-text-sm); color: var(--site-text-2); }
.export-body pre { max-height: 46vh; }   /* Alaric's pre */

/* --- dashboards: a view of its own (owner, D31) ---------------------------------------------------------
   The whole window — no panel beside it; the designs are tabs in its header. The dashboard FITS the view:
   the KPI row, then two rows of charts sharing the height that is left. A chart never gets shorter than
   190px (a 5-row heatmap, 5 horizontal bars still draw whole) — only then the view scrolls, as one page.
   Its spacing follows the theme's density, like the gallery's cards. */
.dash-dialog { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--site-bg); color: var(--site-text); }
.dash-dialog[open] { display: flex; flex-direction: column; }
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--site-space-2) var(--site-space-3);
  padding: var(--site-space-3) var(--site-space-5); border-bottom: 1px solid var(--site-line); }
.dash-head h2 { margin: 0; font-size: var(--site-text-lg); }
.dash-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; border: 0; border-radius: 0; padding: calc(var(--elect-chart-pad) * 2 / 3); }
.dash-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--site-space-3); margin-bottom: var(--elect-card-gap); }
.dash-title { margin: 0; font-size: var(--site-text-lg); font-weight: var(--site-weight-bold); color: var(--elect-chart-text-primary); }
.dash-note { margin: 0; font-size: var(--site-text-sm); color: var(--elect-chart-text-secondary); }
.dash { flex: 1 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto repeat(2, minmax(min-content, 1fr));
  gap: calc(var(--elect-chart-pad) * 2 / 3); }
.dash .kpis { grid-column: 1 / -1; gap: calc(var(--elect-chart-pad) * 2 / 3); }
.dash .tile { grid-column: span var(--span, 6); }   /* each tile says how many of the 12 columns it takes (dashboards.js) */
/* kpi-side: the KPI cards in a column on the left, as tall as both chart rows */
.dash.kpi-side { grid-template-rows: repeat(2, minmax(min-content, 1fr)); }
.dash.kpi-side .kpis { grid-column: 1 / span 3; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
/* the inner margin = the gap between the cards: it follows the density like everything else (owner, 2026-10-05: "with
   Spacious, shouldn't everything be spacious?") — and the dashboard still fits a laptop window */
.dash .tile { display: flex; flex-direction: column; padding: calc(var(--elect-chart-pad) * 2 / 3); }
/* a chart's title: the same style as in the gallery (.tile-title) */
.dash .tile h3 { margin-bottom: calc(var(--elect-card-gap) * 2 / 3); font-size: var(--elect-text-title); font-weight: var(--elect-text-weight-semibold); color: var(--elect-chart-text-primary); }
/* the chart takes the height its tile has left; contain: its own drawing never sets the row's height */
.dash .tile > :not(h3) { display: block; flex: 1; min-height: 190px; contain: size; }
/* A low window (a 768px laptop, owner's note): the floor drops to 160px — the lowest where every chart still draws
   whole, measured; the heatmap keeps 190px (its rows need it) (D42). */
/* kpi-side (Product): its four cards stacked are taller than two chart rows there → they go back to a row on top,
   one column per card, whatever the count. */
/* Each chart row its own height there (equal rows would lift both to the heatmap's 190px), and the dashboard's
   heading steps aside — its tab, pressed above, already names it (the note is the tab's tooltip). */
@media (max-height: 820px) and (min-width: 1101px) { .dash .tile > :not(h3) { min-height: 160px; } .dash .tile > elect-heatmap { min-height: 190px; }
  .dash, .dash.kpi-side { grid-template-rows: auto repeat(2, minmax(min-content, auto)); }
  .dash-heading { display: none; }
  .dash.kpi-side .kpis { grid-column: 1 / -1; grid-row: auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: auto; } }
/* Under 1100px it can't fit a view any more → each chart its own height, the view scrolls: two charts on a row (a
   full-width one stays full), one column only under 760px (owner, 2026-10-05: "stacked already? isn't it too early?") */
@media (max-width: 1100px) { .dash, .dash.kpi-side { grid-template-rows: none; } .dash .tile { grid-column: span 6; } .dash .tile[style*="--span: 12"] { grid-column: 1 / -1; }
  .dash.kpi-side .kpis { grid-column: 1 / -1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } .dash .tile > :not(h3) { min-height: 260px; } }
@media (max-width: 760px) { .dash .tile { grid-column: 1 / -1; } }

/* --- the theme's five sections (owner, 2026-10-01: "better organized, easier to go through") -------------
   Numbered in working order, foldable; a CLOSED section shows what you chose, so the column reads as a
   summary of the theme. Explanations moved into an (i) that opens on hover / keyboard focus. */
.sec { border-bottom: 1px solid var(--site-line); }
.sec summary { list-style: none; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--site-space-2);
  padding: var(--site-space-3) 0; cursor: pointer; }
.sec summary::-webkit-details-marker { display: none; }
.sec summary::after { content: ""; width: 7px; height: 7px; margin: 0 var(--site-space-1) 3px; border-right: 1.5px solid var(--site-text-3); border-bottom: 1.5px solid var(--site-text-3);
  transform: rotate(45deg); transition: transform var(--elect-motion-effects-duration) var(--elect-motion-easing-standard); }
.sec[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.sec-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: var(--site-text-xs); font-weight: var(--site-weight-bold);
  background: var(--site-button-soft); color: var(--site-text-2); transition: background var(--elect-motion-effects-duration) ease, color var(--elect-motion-effects-duration) ease; }
.sec[open] .sec-num { background: var(--site-text); color: var(--site-button-text); }
.sec-title { font-size: var(--site-text-md); font-weight: var(--site-weight-medium); }
.sec-value { justify-self: end; min-width: 0; display: flex; align-items: center; gap: var(--site-space-1); font-size: var(--site-text-xs); color: var(--site-text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec[open] .sec-value { visibility: hidden; }
/* The summary's text in its own box: an ellipsis needs a block, not the flex row (the whole text is the title). */
.sec-value .sec-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sec-value .dot { flex: none; width: 10px; height: 10px; border-radius: var(--site-radius-xs); background: var(--c); border: 1px solid var(--cs, var(--site-line-strong)); }
.sec-value .dots { display: flex; gap: 2px; }
.sec-body { display: grid; gap: calc(var(--site-space-4) + var(--site-space-1)); margin-inline: calc(-1 * var(--site-space-5)); padding: var(--site-space-4) var(--site-space-5) var(--site-space-5);
  transition: background var(--elect-motion-effects-duration) ease; }
/* Where you are (owner's sketch, 2026-10-01): the open section under the pointer — or holding keyboard
   focus — gets a background, edge to edge of the panel, with its own padding. No stroke, no shadow. */
.sec:hover > .sec-body, .sec:focus-within > .sec-body { background: var(--site-hover); }
/* the active chart's panel: its options, then — apart — its own test data */
.panel-sub { display: grid; gap: var(--site-space-2); padding-top: var(--site-space-3); border-top: 1px solid var(--site-line); }
