/* tools/flight-analysis/css/flight-analysis.css
   Free Flight Analysis — Skyout Paragliding

   Direction: "the debrief sheet."
   Second tool on tools.skyoutpg.com, so it inherits the MacCready tool's system
   exactly — same tokens, same warm field page, same dark navy slab. What changes
   is what the slab holds. MacCready's slab is an instrument you read in flight;
   this one is the debrief you read after landing: on the landing page it holds a
   drawn barogram showing what a marked climb looks like, and on the results page
   it holds your real track.

   The through-line across both tools: each one shows its method as a drawing
   before it asks you for anything. MacCready draws the tangent on the polar.
   This one draws the baseline slope against a climb you left. That drawing is
   the whole reason a pilot trusts the output — so it goes above the form, not
   behind it. Nothing here gates anything.
*/

/* ── Tokens (shared with mccready.css — keep the two in step) ─── */

:root {
  --color-primary:      #1D3557;
  --color-primary-dark: #0F2035;
  --color-accent:       #C8521A;
  --color-accent-light: #E8784A;
  /* Same clay, darkened for small text on light backgrounds. */
  --color-accent-ink:   #A8420F;
  /* Deeper still, for the hover state of solid clay buttons. White on
     --color-accent is only 4.49:1, so a button cannot use it under white text in
     either state; base sits on --color-accent-ink (6.08:1) and hover darkens to
     this (8.03:1) rather than brightening. */
  --color-accent-deep:  #8A360C;
  --color-sky:          #3D8FCE;
  --color-sky-light:    #88C4E4;
  --color-bg:           #F4F1EB;
  --color-bg-alt:       #EAE6DE;
  --color-surface:      #FFFFFF;
  --color-text:         #1A1614;
  --color-text-muted:   #6E6259;
  --color-border:       #DDD8D0;
  --color-border-dark:  #C4BDB3;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body:    'Epilogue', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Decision pigments. One pair has to read on two very different grounds: the
     navy slab (legend swatches, drawn barogram) and OpenStreetMap tiles (the
     real markers), so these are mid-tone rather than tuned for either. Fills
     carry a darker line so a 8px marker still has an edge over busy tiles. */
  --fa-good:       #2FA05E;
  --fa-good-line:  #14663A;
  --fa-early:      #E0553F;
  --fa-early-line: #96271A;
  /* One track pigment for the drawn barogram, the real polyline and the legend
     swatch — it has to hold up on the navy slab and on map tiles alike. */
  --fa-track:      #3D8FCE;
}

*, *::before, *::after { box-sizing: border-box; }

/* results.js and app.js both drive visibility with the `hidden` attribute
   (#fa-error, #fa-window-length-wrap). Any display value set below would
   silently defeat it — this guard keeps that from ever happening. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 82, 26, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Shell ──────────────────────────────────────────────── */

.fa-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

.fa-band {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Proof on the left, action on the right — the drawing and the value list stack
   under each other while the form runs alongside them, top-aligned so it is
   never below the fold. Source order stays drawing → value → form, which is
   also the order to read it in once the columns collapse. */
@media (min-width: 920px) {
  .fa-band--intro {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-content: start;
  }
  .fa-band--intro .fa-sample { grid-column: 1; grid-row: 1; }
  .fa-band--intro .fa-value  { grid-column: 1; grid-row: 2; }
  .fa-band--intro .fa-submit { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

/* ── Masthead ───────────────────────────────────────────── */

.fa-masthead {
  max-width: 44rem;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.tool-nav-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: none;
  margin-bottom: 1rem;
}
.tool-nav-back:hover { color: var(--color-accent-ink, var(--color-accent)); }

.fa-eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.fa-masthead h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
}
.fa-masthead h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}

.fa-deck {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--color-text-muted);
}

.fa-flight-date {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Stamped panel labels ───────────────────────────────── */

.fa-panel-label {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── The slab ───────────────────────────────────────────── */

.fa-instrument {
  /* Alphas are floors set by contrast, not taste: over #0F2035 these composite
     to ~7.6:1 (dim) and ~5.0:1 (faint), so even the 10px mono labels clear
     WCAG AA for normal-weight body text. */
  --panel-ink:   #FFFFFF;
  --panel-dim:   rgba(255, 255, 255, 0.68);
  --panel-faint: rgba(255, 255, 255, 0.50);
  --panel-line:  rgba(255, 255, 255, 0.13);

  margin: 0;
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--panel-ink);
}

.fa-instrument .fa-panel-label {
  color: var(--panel-faint);
  margin-bottom: 0.75rem;
}

/* ── Signature: the drawn barogram ──────────────────────── */

/* The method, drawn. A real altitude trace, four climbs, each ending in the dot
   the analysis would put there — plus one dashed baseline slope laid against the
   second climb so you can see what "still beating your average" means before you
   ever upload anything. */

.fa-baro {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.25rem;
}

.fa-baro__axis {
  fill: none;
  stroke: var(--panel-line);
  stroke-width: 1;
}

.fa-baro__trace {
  fill: none;
  stroke: var(--fa-track);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fa-baro__baseline {
  fill: none;
  stroke: var(--panel-dim);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.fa-baro__dot {
  stroke: var(--color-primary-dark);
  stroke-width: 2;
}
.fa-baro__dot--good  { fill: var(--fa-good); }
.fa-baro__dot--early { fill: var(--fa-early); }

.fa-baro__tick {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--panel-faint);
}

/* ── Figure caption + legend ────────────────────────────── */

.fa-figure__caption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--panel-line);
}
.fa-figure__caption p {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--panel-dim);
}

.fa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fa-legend__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-dim);
}
.fa-legend__item::before {
  content: '';
  flex: none;
}

/* Swatches carry the same pigments the markers do, so the key stays honest —
   but which marker gets which pigment is decided in results.js from
   decision.is_good_decision, never here. */
.fa-legend__item--good::before,
.fa-legend__item--early::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.fa-legend__item--good::before  { background: var(--fa-good);  border: 1.5px solid var(--fa-good-line); }
.fa-legend__item--early::before { background: var(--fa-early); border: 1.5px solid var(--fa-early-line); }

.fa-legend__item--baseline::before {
  width: 22px;
  height: 0;
  border-top: 2px dashed var(--panel-dim);
}
.fa-legend__item--track::before {
  width: 22px;
  height: 0;
  border-top: 3px solid var(--fa-track);
}

/* ── What you get back ──────────────────────────────────── */

.fa-value .fa-panel-label { margin-bottom: 0.4rem; }

.fa-value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.fa-value-list li {
  padding: 0.7rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.fa-value-list li strong {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ── The form ───────────────────────────────────────────── */

.fa-submit {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.fa-submit .fa-panel-label { margin-bottom: 1.25rem; }

.fa-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fa-field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary-dark);
}

.fa-field input[type="text"],
.fa-field input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.fa-field input[type="text"]:hover,
.fa-field input[type="email"]:hover { border-color: var(--color-accent); }

/* The native file control is the one place a page like this usually gives
   itself away. Keep the real input — it stays keyboard- and screen-reader
   correct — and dress the button it already owns. */
.fa-file {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.fa-file:hover { border-color: var(--color-accent); }

.fa-file::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.fa-file:hover::file-selector-button {
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

.fa-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.fa-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: var(--color-accent-ink);
  border: 1px solid var(--color-accent-ink);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fa-btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }

/* app.js disables the button and swaps its label to "Analyzing…" — the state
   needs to look deliberately held, not broken. */
.fa-btn:disabled {
  background: var(--color-bg-alt);
  border-color: var(--color-border-dark);
  color: var(--color-text-muted);
  cursor: progress;
}

.fa-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #8A1F14;
  background: #FBEEEC;
  border-left: 3px solid var(--fa-early-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.fa-fineprint {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.fa-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Results: controls stamped on the slab ──────────────── */

.fa-review .fa-panel-label { margin-bottom: 0; }

.fa-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.fa-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.fa-controls label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-faint);
}

.fa-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Written as :not([hidden]) so results.js can keep toggling the wrap's hidden
   attribute for the time-window mode. */
#fa-window-length-wrap:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fa-select { position: relative; }
.fa-select::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-accent-light);
  border-bottom: 2px solid var(--color-accent-light);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.fa-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.5rem 2.1rem 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--panel-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.fa-select select:hover { border-color: var(--color-accent-light); }
/* The dropdown list itself is painted by the OS, not the slab. */
.fa-select select option { color: var(--color-text); background: var(--color-surface); }

/* ── The map ────────────────────────────────────────────── */

.fa-map {
  height: clamp(360px, 62vh, 620px);
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-line);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.leaflet-container { font-family: var(--font-body); }

.fa-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(15, 32, 53, 0.22);
}
.fa-map .leaflet-popup-content {
  margin: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.fa-map .leaflet-control-attribution {
  font-size: 0.625rem;
  background: rgba(255, 255, 255, 0.82);
}

/* Retune only: results.js still decides green vs red from
   decision.is_good_decision and passes those literal color names to Leaflet.
   These attribute selectors say what pigment those names are painted in, the
   same way mccready.css re-binds --color-sky for its dark slab. If Leaflet ever
   stops writing the value as a presentation attribute, the markers fall back to
   plain green/red — still correct, just less tuned. */
.fa-map path[stroke="green"] {
  stroke: var(--fa-good-line);
  fill: var(--fa-good);
  fill-opacity: 0.9;
  stroke-width: 2;
}
.fa-map path[stroke="red"] {
  stroke: var(--fa-early-line);
  fill: var(--fa-early);
  fill-opacity: 0.9;
  stroke-width: 2;
}
.fa-map path[stroke="blue"] {
  stroke: var(--fa-track);
  stroke-width: 3;
  stroke-opacity: 0.75;
}

.fa-review .fa-legend { margin-top: 1rem; }

/* ── Decisions table (accessible companion to the map) ─────
   The map's colour is the fast read; this table is the same per-thermal
   data as text, so it's reachable by keyboard, announced by a screen
   reader, and legible without relying on colour alone. Deliberately plain
   — it doesn't need to match the map's visual design closely. */

.fa-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fa-panel--decisions .fa-hint { margin-bottom: 1rem; }

.fa-decisions-table-scroll {
  overflow-x: auto;
}

.fa-decisions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.fa-decisions-table th,
.fa-decisions-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.fa-decisions-table thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-dark);
}

.fa-decisions-table tbody tr:hover { background: var(--color-bg-alt); }

.fa-decisions-table__verdict { font-weight: 600; }
.fa-decisions-table__verdict--good  { color: var(--fa-good-line); }
.fa-decisions-table__verdict--early { color: var(--fa-early-line); }

/* ── Stats ──────────────────────────────────────────────── */

.fa-panel--stats { margin-top: clamp(0.75rem, 2vw, 1.5rem); }

/* results.js renders a fixed 8 tiles, but auto-fit means the last row is rarely
   full. Hairlines are drawn as rings on the tiles rather than as a gap over a
   dark container, so leftover cells read as blank panel instead of a grey slab
   — and the panel survives the tile count changing. */
.fa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fa-stat-card {
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
  padding: 1rem 1.25rem 1.15rem;
  min-width: 0;
}

.fa-stat-card > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fa-stat-card > div {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary-dark);
}

/* Decision quality is the one number the pilot came for — results.js always
   renders it first, so it gets the readout treatment the MacCready panel gives
   its speed-to-fly. */
.fa-stat-card:first-child {
  grid-column: 1 / -1;
  padding: 1.35rem 1.25rem 1.5rem;
}
.fa-stat-card:first-child > div {
  margin-top: 0.5rem;
  font-size: clamp(2.75rem, 9vw, 4rem);
  color: var(--color-accent);
}

.fa-no-thermals-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Closing band ───────────────────────────────────────── */

.fa-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
}

.fa-cta h2 {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.fa-cta p {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.68);
}

/* Sits on the navy slab, so it has two contrast jobs, not one: white label
   against the fill (4.5:1) and the control's own boundary against the slab
   behind it (3:1). --color-accent-ink clears the first at 6.08:1 but is only
   2.70:1 against the navy, so the border stays --color-accent (3.66:1) and is
   what makes the button's edge perceivable. */
.fa-cta__link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--color-accent-ink);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fa-cta__link:hover {
  color: #FFFFFF;
  background: var(--color-accent-deep);
  border-color: var(--color-accent-light);
}

.fa-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* results.js replaces the whole app with a single paragraph when a token is
   missing or expired. Make that read as a considered state, not a stray line. */
.fa-app > p:only-child {
  max-width: 32rem;
  margin: clamp(3rem, 10vw, 6rem) auto;
  padding: 1.5rem;
  font-size: 1.0625rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* ── Narrow screens ─────────────────────────────────────── */

@media (max-width: 560px) {
  .fa-review__head { align-items: flex-start; }
  .fa-controls { flex-direction: column; align-items: stretch; }
  .fa-control, #fa-window-length-wrap:not([hidden]) { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .fa-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
