/* ------------------------------------------------------------------
   Probability Lab

   Colour comes from the validated data-viz palette: slot 1 (blue) is
   always "simulated", slot 2 (orange) is always "exact", everywhere in
   the app. Identity follows the entity, never the rank, so switching
   statistics never repaints the meaning of a colour.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light;

  --surface-1: #fcfcfb;
  --plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);

  --sim: #2a78d6;          /* categorical slot 1 — simulated */
  --exact: #eb6834;        /* categorical slot 2 — exact */
  --accent-3: #1baf7a;     /* categorical slot 3 — reserved */

  --good: #0ca30c;
  --critical: #d03b3b;
  --warning: #fab219;

  --tone-a: #e34948;
  --tone-b: #2a78d6;
  --tone-c: #1baf7a;
  --tone-d: #4a3aa7;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 8px 24px -18px rgba(11, 11, 11, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --sim: #3987e5;
    --exact: #d95926;
    --accent-3: #199e70;
    --tone-a: #e66767;
    --tone-b: #3987e5;
    --tone-c: #199e70;
    --tone-d: #9085e9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -18px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19;
  --plane: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --sim: #3987e5;
  --exact: #d95926;
  --accent-3: #199e70;
  --tone-a: #e66767;
  --tone-b: #3987e5;
  --tone-c: #199e70;
  --tone-d: #9085e9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -18px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--plane);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
b, strong { font-weight: 600; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface-1); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- topbar */

.topbar {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 32px);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font-size: 26px; line-height: 1; }
.brand b { display: block; font-size: 16px; }
.brand small { color: var(--text-secondary); font-size: 12.5px; }

.topbar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seed { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.seed input {
  width: 148px; padding: 6px 9px; font: inherit; font-size: 12.5px;
  color: var(--text-primary); background: var(--plane);
  border: 1px solid var(--border); border-radius: 8px;
}

/* ------------------------------------------------------------ tabs */

.tabs {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 10px clamp(16px, 3vw, 32px) 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.tab {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border: 0; border-bottom: 2px solid transparent;
  background: none; font: inherit; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; border-radius: 8px 8px 0 0;
}
.tab:hover { background: var(--plane); color: var(--text-primary); }
.tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--sim); }
.tab .tab-icon { font-size: 16px; }

/* ------------------------------------------------------------ main */

main {
  max-width: 1440px; margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 32px) 48px;
}
.blurb { margin: 0; color: var(--text-secondary); max-width: 62ch; font-size: 14.5px; flex: 1; min-width: 220px; }

.mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 16px; }
.mode-switch .seg-btn { padding: 7px 14px; font-size: 13px; }
.mode-switch .seg-btn.is-on { background: var(--sim); color: #fff; }

.panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.panel-head h2 { font-size: 14px; letter-spacing: 0.01em; }
.panel-sub { margin: 0 0 12px; color: var(--text-secondary); font-size: 12.5px; }
.panel-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.panel-toolbar .panel-sub { flex: 1; min-width: 200px; }

/* ------------------------------------------------ collapsible panels

   Panels start folded so the page opens on the experiment setup alone.
   A folded panel is not silent: its summary line carries the number you
   would have opened it for, so the collapsed page still reads at a glance. */

details.panel { padding: 0; }
details.panel > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 13px 16px; margin: 0; border-radius: var(--radius);
}
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary:hover { background: var(--plane); }
details.panel[open] > summary {
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
details.panel > *:not(summary) { padding: 0 16px 16px; }
details.panel[open] > *:not(summary):first-of-type { padding-top: 14px; }

.panel-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.panel-title::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 5px solid var(--text-muted);
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  transition: transform 140ms ease;
}
details[open] > summary .panel-title::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .panel-title::before { transition: none; }
}

.panel-summary {
  font-size: 12.5px; color: var(--text-secondary); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.panel-summary b { color: var(--text-primary); }
.panel-summary .muted { color: var(--text-muted); }

.pill {
  font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
  background: var(--plane); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* -------------------------------------------------------- controls */

.controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.control-group { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.control-group.question {
  padding-left: 20px; border-left: 1px solid var(--border); flex: 1; min-width: 280px;
}
@media (max-width: 900px) {
  .control-group.question { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 132px; }
.field > span:first-child {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--text-muted);
}
.field-value { font-variant-numeric: tabular-nums; color: var(--text-primary); font-weight: 600; }
.field input[type="range"] { width: 100%; accent-color: var(--sim); }
.field select, .field input[type="number"] {
  font: inherit; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--plane); color: var(--text-primary);
}
.field-help { font-size: 11.5px; color: var(--text-muted); max-width: 30ch; }
/* Sized here rather than with a style attribute, so the app needs no
   'unsafe-inline' in its Content-Security-Policy. */
.field-stat { min-width: 200px; }
.field-question { min-width: 260px; flex: 1; }

.qsentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.qsentence .q-lead { color: var(--text-secondary); }
.qsentence select, .qsentence input {
  font: inherit; font-size: 14px; padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--plane); color: var(--text-primary);
}
.qsentence input[type="number"] { width: 74px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- runbar */

.runbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.run-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--plane); color: var(--text-primary);
  min-height: 36px;
}
.btn:hover { border-color: var(--axis); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--sim); border-color: var(--sim); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: none; }
.btn-danger { color: var(--critical); }

.speed { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.speed input { width: 110px; accent-color: var(--sim); }

.progress { flex: 1; min-width: 90px; height: 4px; background: var(--grid); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--sim); transition: width 90ms linear; }

/* ------------------------------------------------------------ grid */

.grid { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(360px, 7fr); gap: 16px; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr; } }
.col { min-width: 0; }

/* ----------------------------------------------------------- tiles */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
}
.tile-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.tile-value { font-size: 22px; font-weight: 600; margin-top: 2px; }
.tile-value.is-placeholder { color: var(--text-muted); font-weight: 400; }
.tile-note { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.tile-hero { grid-column: span 2; }
.tile-hero .tile-value { font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; }
@media (max-width: 620px) {
  .tile-hero { grid-column: span 1; }
  .tile-hero .tile-value { font-size: 30px; }
}
.tile-sim .tile-value { color: var(--text-primary); }
.swatch-inline {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 6px; vertical-align: baseline;
}
.swatch-sim { background: var(--sim); }
.swatch-exact { background: var(--exact); }

/* ---------------------------------------------------------- arena */

.arena { min-height: 132px; display: flex; align-items: center; }
.arena > * { width: 100%; }
.arena-empty { color: var(--text-muted); margin: 0; }
.arena-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.arena-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.arena-strip { display: flex; flex-wrap: wrap; gap: 3px; }

@keyframes pop { from { transform: scale(0.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.is-fresh { animation: pop 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; animation-delay: var(--delay, 0ms); }
@media (prefers-reduced-motion: reduce) { .is-fresh { animation: none; } }

.coin {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 1px solid var(--border);
}
.coin.is-heads { background: var(--sim); color: #fff; border-color: transparent; }
.coin.is-tails { background: var(--plane); color: var(--text-secondary); }

.die {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--plane); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.die-pips { width: 100%; height: 100%; fill: var(--sim); }
.die.is-numeric .die-number { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

.card {
  width: 64px; height: 92px; border-radius: 9px; padding: 6px;
  background: var(--plane); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  position: relative;
}
.card.tone-a { box-shadow: inset 3px 0 0 var(--tone-a); }
.card.tone-b { box-shadow: inset 3px 0 0 var(--tone-b); }
.card.tone-c { box-shadow: inset 3px 0 0 var(--tone-c); }
.card.tone-d { box-shadow: inset 3px 0 0 var(--tone-d); }
.card.is-target { border-color: var(--sim); outline: 2px solid var(--sim); outline-offset: 1px; }
.card-corner { align-self: flex-start; font-size: 11px; color: var(--text-secondary); display: flex; gap: 2px; }
.card-corner b { font-variant-numeric: tabular-nums; color: var(--text-primary); }
.card-art { font-size: 26px; line-height: 1; }
.card-name { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); text-align: center; }

.step-chip {
  width: 18px; height: 22px; border-radius: 4px; display: grid; place-items: center;
  font-size: 11px; background: var(--plane); border: 1px solid var(--border);
}
.step-chip.is-up { color: var(--sim); }
.step-chip.is-down { color: var(--text-muted); }

.day-cell {
  width: 20px; height: 22px; border-radius: 4px; display: grid; place-items: center;
  font-size: 11px; background: var(--plane); border: 1px solid var(--border);
}
.day-cell.is-storm { background: color-mix(in srgb, var(--sim) 34%, var(--surface-1)); border-color: transparent; }

/* ------------------------------------------------------- challenges */

.challenge-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip {
  font: inherit; font-size: 12.5px; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--plane); color: var(--text-secondary);
}
.chip:hover { color: var(--text-primary); border-color: var(--axis); }
.chip[aria-pressed="true"] { background: var(--sim); border-color: var(--sim); color: #fff; }
.chip.is-solved::before { content: "✓ "; color: var(--good); font-weight: 700; }
.chip[aria-pressed="true"].is-solved::before { color: #fff; }

/* ------------------------------------------------------ mystery mode */

/* A hidden parameter is shown, not removed — you should be able to see
   exactly which dial you are being asked to infer. */
.field.is-secret .field-value { color: var(--text-muted); font-weight: 400; }
.field.is-secret .field-lock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px dashed var(--axis); color: var(--text-muted);
  font-size: 12.5px; background: var(--plane);
}
.field.is-secret .field-lock b { color: var(--text-secondary); font-weight: 600; }

.mystery-question { font-size: 15px; margin: 0 0 10px; }
.mystery-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hint {
  margin: 0 0 12px; padding: 10px 12px; font-size: 12.5px;
  color: var(--text-secondary); background: var(--plane);
  border: 1px solid var(--border); border-radius: 9px;
}
.reveal-box {
  margin: 12px 0; padding: 12px 14px; border-radius: 9px;
  background: var(--plane); border: 1px solid var(--border);
  border-left: 3px solid var(--exact);
}
.reveal-box h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 6px; }
.reveal-params { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 12.5px; }
.reveal-params span { color: var(--text-secondary); }
.reveal-params b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mystery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.challenge-body { margin-top: 10px; }
.challenge-why.is-bare { border-left: 0; padding-left: 0; }
.challenge-prompt { font-size: 15px; margin: 0 0 8px; }
.challenge-why {
  margin: 0 0 12px; padding-left: 10px; border-left: 2px solid var(--grid);
  color: var(--text-secondary); font-size: 12.5px;
}
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; }
.choice {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  padding: 10px; border-radius: 9px; min-height: 42px;
  border: 1px solid var(--border); background: var(--plane); color: var(--text-primary);
}
.choice:hover:not(:disabled) { border-color: var(--sim); }
.choice:disabled { cursor: default; }
.choice.is-correct { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
.choice.is-wrong { border-color: var(--critical); box-shadow: inset 0 0 0 1px var(--critical); }
.choice small { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); }

.verdict { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-weight: 600; }
.verdict.is-right { color: var(--good); }
.verdict.is-wrong { color: var(--critical); }
.explain { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; }
.explain-figures {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 12px;
  padding: 10px 12px; background: var(--plane); border-radius: 9px; border: 1px solid var(--border);
}
.explain-figures div { font-size: 12px; color: var(--text-secondary); }
.explain-figures b { display: block; font-size: 17px; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- charts */

/* Below ~500px a full chart would be illegible, so it scrolls in its own
   container rather than shrinking — the page itself never scrolls sideways. */
#dist-chart, #conv-chart, #path-chart { overflow-x: auto; overflow-y: hidden; }
.chart { width: 100%; min-width: 460px; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .axis-label { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .axis-title { fill: var(--text-secondary); font-size: 11.5px; font-weight: 600; }
.chart .bar-sim { fill: var(--sim); }
.chart .line-sim { fill: none; stroke: var(--sim); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-path-ghost { fill: none; stroke: var(--sim); stroke-width: 1; opacity: 0.18; }
.chart .dot-sim { fill: var(--sim); stroke: var(--surface-1); stroke-width: 2; }
.chart .line-exact { fill: none; stroke: var(--exact); stroke-width: 2; stroke-linejoin: round; }
.chart .line-exact-faint { fill: none; stroke: var(--exact); stroke-width: 1; opacity: 0.5; }
.chart .dot-exact { fill: var(--exact); stroke: var(--surface-1); stroke-width: 2; }
.chart .band-exact { fill: var(--exact); opacity: 0.10; stroke: none; }
.chart .line-reference { stroke: var(--text-muted); stroke-width: 1; }
.chart .end-label { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .end-label-sim { fill: var(--text-primary); }
.chart .end-label-exact { fill: var(--text-secondary); }
.chart .end-label-muted { fill: var(--text-muted); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:focus { outline: none; fill: var(--sim); fill-opacity: 0.07; }
.chart-empty { color: var(--text-muted); margin: 28px 0; text-align: center; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.sw-sim { background: var(--sim); }
.sw-exact { background: var(--exact); }
.sw-ghost { background: var(--sim); opacity: 0.25; }
.sw-band { background: var(--exact); opacity: 0.25; }
.sw-reference { background: var(--text-muted); }
.sw.sw-dot { border-radius: 50%; width: 9px; height: 9px; }
.sw.sw-line { height: 2px; border-radius: 2px; width: 16px; }
.sw.sw-band { height: 11px; width: 16px; border-radius: 2px; }

.chart-tip {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  background: var(--surface-1); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 9px;
  box-shadow: var(--shadow); padding: 8px 10px; font-size: 12px;
  opacity: 0; transition: opacity 90ms ease; max-width: 260px;
}
.chart-tip.is-visible { opacity: 1; }
.chart-tip strong { display: block; margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chart-tip .tip-row em { color: var(--text-muted); font-style: normal; }
.chart-tip .tip-muted { color: var(--text-muted); }

/* ------------------------------------------------------------ table */

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 5px 11px; border: 0; background: none; color: var(--text-secondary);
}
.seg-btn.is-on { background: var(--plane); color: var(--text-primary); }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--grid); }
.data-table thead th { color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.02em; }
.data-table tbody th { text-align: left; font-weight: 600; }
#dist-table { max-height: 340px; overflow: auto; }

/* ------------------------------------------------------------- foot */

.foot {
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px) 40px;
  color: var(--text-muted); font-size: 12px;
}
.foot p { max-width: 80ch; }

:focus-visible { outline: 2px solid var(--sim); outline-offset: 2px; border-radius: 4px; }
