/* ============================================================================
   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; font-family: var(--site-font); font-size: var(--site-text-md); line-height: 1.5; color: var(--site-text); background: var(--site-bg); }
: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; }
.hint { margin: var(--site-space-1) 0 0; font-size: var(--site-text-xs); color: var(--site-text-3); }
small { font-size: var(--site-text-xs); color: var(--site-text-3); font-weight: var(--site-weight); }

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

/* --- buttons ------------------------------------------------------------------- */
.btn-primary, .btn-soft { font: inherit; font-size: var(--site-text-sm); cursor: pointer; border-radius: var(--site-radius-sm);
  padding: var(--site-space-1) var(--site-space-3); border: 1px solid transparent; text-decoration: none;
  transition: background var(--elect-motion-effects-duration) ease, transform var(--elect-motion-effects-duration) var(--elect-motion-easing-standard); }
.btn-primary { background: var(--site-button); color: var(--site-button-text); }
.btn-primary:hover { background: color-mix(in oklch, var(--site-button) 82%, var(--site-bg)); }
.btn-soft { background: var(--site-button-soft); color: var(--site-text); }
.btn-soft:hover { background: color-mix(in oklch, var(--site-button-soft) 80%, var(--site-text-3)); }
.btn-primary:active, .btn-soft:active { transform: scale(0.97); }
.pill { border-radius: var(--site-radius-pill); padding: var(--site-space-2) var(--site-space-4); font-weight: var(--site-weight-medium); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: var(--site-space-1); }
.focus-btn[aria-pressed="true"] { background: var(--site-button); color: var(--site-button-text); }
/* Hierarchy (owner): one black button per zone · beige = secondary · text = tertiary (Reset…) */
.btn-text { font: inherit; font-size: var(--site-text-sm); border: 0; background: none; cursor: pointer; padding: var(--site-space-1) var(--site-space-half);
  color: var(--site-text-2); 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; }
.btn-text:hover { color: var(--site-text); text-decoration-color: currentColor; }
.btn-text:disabled { color: var(--site-text-3); cursor: default; text-decoration-color: transparent; }
kbd { font: inherit; font-size: var(--site-text-xs); padding: 0 var(--site-space-1); border-radius: var(--site-radius-xs); border: 1px solid var(--site-line-strong); color: var(--site-text-3); margin-left: var(--site-space-1); }

/* --- layout D: theme | charts | the active chart ---------------------------------------------------------- */
.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 .badge { 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); }
}
.group { padding: var(--site-space-4) 0; border-bottom: 1px solid var(--site-line); display: grid; gap: var(--site-space-3); }
.group:last-child { border-bottom: 0; }
.group h2 { margin: 0; font-size: var(--site-text-xs); font-weight: var(--site-weight-bold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--site-text-3); }
.row { display: flex; align-items: center; gap: var(--site-space-2); flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap > .seg { flex: 1; }
.btn-soft:disabled, .seg button:disabled { opacity: 0.5; cursor: default; }
/* an option that is off shows no choice — the one kept for the way back is not "pressed" meanwhile */
.seg button:disabled[aria-pressed="true"] { background: transparent; box-shadow: none; font-weight: inherit; }
.field { display: grid; gap: var(--site-space-1); font-size: var(--site-text-sm); color: var(--site-text-2); }
.field > span { display: flex; justify-content: space-between; gap: var(--site-space-2); }
.field .end { display: inline-flex; align-items: center; gap: var(--site-space-2); }
.field output { color: var(--site-text-3); font-variant-numeric: tabular-nums; }

input[type="text"], textarea { font: inherit; font-size: var(--site-text-sm); color: var(--site-text); background: var(--site-card);
  border: 1px solid var(--site-line-strong); border-radius: var(--site-radius-sm); padding: var(--site-space-1) var(--site-space-2); }
/* Test data: a dropdown, dressed like the text fields */
.field select { font: inherit; font-size: var(--site-text-sm); color: var(--site-text); background: var(--site-card); width: 100%;
  border: 1px solid var(--site-line-strong); border-radius: var(--site-radius-sm); padding: var(--site-space-1) var(--site-space-2); cursor: pointer; }
textarea { width: 100%; min-height: 110px; font-family: ui-monospace, Consolas, monospace; font-size: var(--site-text-xs); }
input[type="color"] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--site-line-strong); border-radius: var(--site-radius-sm); background: none; cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--site-button); }

/* segmented control: a soft track, the chosen option raised */
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--site-space-half); padding: var(--site-space-half); border-radius: var(--site-radius-sm);
  background: var(--site-button-soft); }
.seg.wide { display: flex; }
.seg.wide > button { flex: 1; }
.seg button { border: 0; background: transparent; padding: var(--site-space-1) var(--site-space-3); border-radius: calc(var(--site-radius-sm) - 2px);
  font: inherit; font-size: var(--site-text-sm); color: var(--site-text-2); cursor: pointer;
  transition: background var(--elect-motion-effects-duration) ease, color var(--elect-motion-effects-duration) ease; }
.seg button:hover { color: var(--site-text); }
.seg button[aria-pressed="true"] { background: var(--site-card); color: var(--site-text); box-shadow: var(--site-shadow-sm); font-weight: var(--site-weight-medium); }

/* switch */
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-space-2); }
.switch { display: flex; align-items: center; gap: var(--site-space-2); font-size: var(--site-text-sm); color: var(--site-text-2); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 30px; height: 18px; border-radius: var(--site-radius-pill);
  background: var(--site-line-strong); position: relative; cursor: pointer; transition: background var(--elect-motion-effects-duration) ease; }
.switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--site-card);
  box-shadow: var(--site-shadow-sm); transition: transform var(--elect-motion-effects-duration) var(--elect-motion-easing-standard); }
.switch input:checked { background: var(--site-button); }
.switch input:checked::before { transform: translateX(12px); }

/* 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; } }

/* "from your DS" vs "ELECT default" (STRATEGY 5g — the owner's idea) */
.origin { display: inline-block; font-size: var(--site-text-xs); border-radius: var(--site-radius-pill); padding: 0 var(--site-space-2); }
.origin.host { color: var(--site-inherited); background: var(--site-inherited-bg); }
.origin.elect { color: var(--site-text-3); background: var(--site-button-soft); }
.fields { list-style: none; margin: 0; padding: 0; font-size: var(--site-text-sm); }
.fields li { display: flex; align-items: center; gap: var(--site-space-2); padding: var(--site-space-half) 0; flex-wrap: wrap; }
.fields .dot { width: 12px; height: 12px; border-radius: var(--site-radius-xs); background: var(--c); border: 1px solid var(--site-line-strong); }
.warn { color: var(--site-warn); background: var(--site-warn-bg); border-radius: var(--site-radius-sm); padding: var(--site-space-1) var(--site-space-2); font-size: var(--site-text-xs); margin-top: var(--site-space-1); }
.warn button { font: inherit; font-size: var(--site-text-xs); border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* 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 .badge { position: static; flex: none; width: 16px; height: 16px; box-shadow: none; background: var(--site-text); color: var(--site-button-text); }
.chart-panel .badge 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) */
.badge { 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); }
.badge svg { width: 14px; height: 14px; }
.gallery .item:not(.selected) .badge { 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 .badge { position: static; flex: none; width: 16px; height: 16px; box-shadow: none; }
.item-type .badge 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). */
.tile h3 { margin: 0; font-size: var(--site-text-md); line-height: 1.3; }
.tile-title { all: unset; cursor: pointer; font-size: var(--site-text-md); font-weight: var(--site-weight-medium); 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); }
.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; }
@container (max-width: 800px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 400px) { .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; }
.export-steps { display: grid; gap: var(--site-space-3); }
.export-steps [hidden] { display: none; }
.export-note { margin: 0; font-size: var(--site-text-sm); color: var(--site-text-2); }
.export-body pre { background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--site-radius-sm);
  padding: var(--site-space-3); font-size: var(--site-text-xs); max-height: 46vh; overflow: auto; margin: 0; white-space: 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 .wide { grid-column: span 8; } .dash .narrow { grid-column: span 4; } .dash .half { grid-column: span 6; }
.dash .tile { display: flex; flex-direction: column; padding: var(--elect-card-gap); }
/* 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(--site-text-md); font-weight: var(--site-weight-medium); 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; }
/* one column: it can't fit a view any more → each chart its own height, the view scrolls */
@media (max-width: 1100px) { .dash { grid-template-rows: none; } .dash .wide, .dash .narrow, .dash .half { grid-column: 1 / -1; } .dash .tile > :not(h3) { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .btn-primary:active, .btn-soft:active { transform: none; } }
.switch.off { opacity: 0.55; cursor: default; }
.switch.off input { cursor: default; }
/* a chart's own test cases (cases.js): short chips that wrap */
.seg.cases { display: flex; }
.seg.cases button { flex: 1 1 auto; }

/* --- 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; }
.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); }
.info { position: relative; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--site-line-strong);
  font-size: var(--site-text-xs); font-style: italic; line-height: 1; color: var(--site-text-3); cursor: help; }
.info:hover, .info:focus { color: var(--site-text); border-color: var(--site-text-3); }
.info:hover::after, .info:focus::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + var(--site-space-1)); z-index: 10; width: 230px;
  padding: var(--site-space-2) var(--site-space-3); border-radius: var(--site-radius-sm); background: var(--site-text); color: var(--site-button-text);
  font-size: var(--site-text-xs); font-style: normal; line-height: 1.45; text-align: left; box-shadow: var(--site-shadow-lg); white-space: normal; }
/* 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); }
.panel-sub-title { margin: 0; font-size: var(--site-text-xs); font-weight: var(--site-weight-bold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--site-text-3); }
