:root {
  --bg: #f3f3f6;
  --fg: #2a2a2a;
  --muted: #777;
  --panel-bg: rgba(255, 255, 255, 0.95);
  --panel-border: rgba(0, 0, 0, 0.1);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, "Jost", -apple-system, "Helvetica Neue", "Noto Sans TC", sans-serif;
  height: 100%;
  overflow: hidden;
}

#canvas-host {
  position: fixed;
  inset: 0;
  z-index: 0;
}
canvas { display: block; }

/* =============================================================================
   Shared panel styling.
   ============================================================================= */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================================
   Disclaimer (top centre).
   ============================================================================= */
#disclaimer {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(720px, calc(100vw - 2rem));
  max-height: 60vh;
  overflow: auto;
  z-index: 10;
}
#disclaimer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  margin: -0.3rem -0.45rem;
  border-radius: 5px;
  font-family: inherit;
  color: var(--fg);
  text-align: left;
  transition: background-color 0.15s ease;
}
#disclaimer-toggle:hover {
  background-color: rgba(0, 0, 0, 0.045);
}
#disclaimer-toggle:hover .caret { color: var(--fg); }
#disclaimer h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: none;
  white-space: nowrap;
}
#disclaimer .caret {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--muted);
  flex: 0 0 auto;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.15s ease;
}
#disclaimer .disclaimer-body {
  margin-top: 0.6rem;
}
#disclaimer.collapsed .disclaimer-body { display: none; }
#disclaimer.collapsed { padding-bottom: 0.7rem; }
#disclaimer p { margin: 0.4rem 0; }
#disclaimer ol { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; }
#disclaimer strong { font-weight: 600; }
#disclaimer .disclaimer-lang + .disclaimer-lang {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
#disclaimer .disclaimer-zh { letter-spacing: 0.01em; }

/* =============================================================================
   Left top column — Meta (layout name + unit) + View (camera presets).
   Both are global-scope controls; sharing a column keeps Layers / editing
   surfaces uncluttered on the right.
   ============================================================================= */
#left-column-top {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
  pointer-events: none;  /* let canvas receive events outside child panels */
}
#left-column-top > .panel {
  pointer-events: auto;
  flex: 0 0 auto;
}
#meta-panel .meta-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
#meta-panel .panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
#meta-panel input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
  background: white;
  color: var(--fg);
}
#meta-panel input[type="text"]:focus {
  outline: 2px solid rgba(60, 100, 220, 0.4);
  outline-offset: -1px;
}
.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
}
.unit-toggle button {
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  border: none;
  background: white;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg);
}
.unit-toggle button:not(:last-child) {
  border-right: 1px solid var(--panel-border);
}
.unit-toggle button.active {
  background: var(--fg);
  color: white;
}

/* =============================================================================
   Right column — view, layers, speakers stacked.
   ============================================================================= */
#right-column {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
  pointer-events: none;
}
#right-column > .panel {
  pointer-events: auto;
  flex: 0 0 auto;
}
#right-column > #speakers-panel {
  /* Speakers panel takes a 2:1 share of the remaining vertical space relative
     to the Phantoms panel (set via the flex grow values), so the primary
     editing surface stays bigger when both have similar content amounts. */
  flex: 2 1 auto;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#right-column > #phantoms-panel {
  flex: 1 1 auto;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* View controls */
#view-controls .view-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
#view-controls button {
  flex: 1 1 calc(50% - 0.25rem);
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--panel-border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg);
}
#view-controls button:hover { background: #f8f8fa; }
#view-controls button.active {
  background: var(--fg);
  color: white;
  border-color: var(--fg);
}

/* File / actions */
#actions-panel .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
#actions-panel button {
  flex: 1 1 calc(50% - 0.25rem);
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--panel-border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg);
}
#actions-panel button:hover { background: #f8f8fa; }
#actions-panel button:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* Layers */
#layers-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#layers-panel li { padding: 0.18rem 0; }
#layers-panel label {
  font-size: 0.82rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
#layers-panel input { margin-right: 0.5rem; }
#layers-panel em {
  color: #aaa;
  font-style: normal;
  font-size: 0.7rem;
  margin-left: 0.4rem;
}
#layers-panel .placeholder { opacity: 0.55; }

#layers-panel .coverage-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  padding: 0.1rem 0 0.25rem 1.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#layers-panel .coverage-legend .chip {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}
#layers-panel .coverage-legend .chip[data-c="0"] { background: rgba(225,  70,  70, 0.7); }
#layers-panel .coverage-legend .chip[data-c="1"] { background: rgba(240, 200,  70, 0.7); }
#layers-panel .coverage-legend .chip[data-c="2"] { background: rgba(180, 210,  90, 0.7); }
#layers-panel .coverage-legend .chip[data-c="3"] { background: rgba( 80, 180, 100, 0.7); }
#layers-panel .coverage-legend .legend-suffix {
  flex: 1 1 100%;
  margin-left: 0;
  padding-left: 0;
  font-size: 0.66rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Triangulation status caption — sits under the triangulation toggle and
   reflects analyseTriangulation()'s current classification regardless of
   whether the layer itself is on. data-kind on the row is the hook for
   colour-coding (red / yellow / green) by the health system. */
#layers-panel .triangulation-status {
  padding: 0.05rem 0 0.3rem 1.5rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Speakers */
#speakers-panel #speakers-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.speaker-item {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  margin-bottom: 0.35rem;
  background: white;
}
.speaker-item header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.35rem;
}
.speaker-item header input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}
.speaker-item header input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.15rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 0.82rem;
  background: transparent;
  color: var(--fg);
}
.speaker-item header input[type="text"]:hover {
  border-color: var(--panel-border);
}
.speaker-item header input[type="text"]:focus {
  outline: none;
  border-color: rgba(60, 100, 220, 0.5);
  background: white;
}
.speaker-item button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.1rem 0.3rem;
  color: var(--muted);
  font-family: inherit;
  line-height: 1;
}
.speaker-item button:hover { color: var(--fg); }
.speaker-item .delete-btn:hover { color: #c83232; }
/* Distance + delay caption — always visible per speaker, useful for delay-line
   alignment work (delay = distance / speed-of-sound). Indented to align with
   the name input above it. */
.speaker-item .speaker-derived {
  padding: 0 0.35rem 0.25rem 1.85rem;
  margin-top: -0.15rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.speaker-editor {
  display: none;  /* shown only when .speaker-item.expanded — see toggle below */
  grid-template-columns: repeat(2, 1fr);
  gap: 0.2rem 0.4rem;
  border-top: 1px dashed var(--panel-border);
  padding: 0.4rem 0.35rem;
}
.speaker-item.expanded .speaker-editor { display: grid; }
.speaker-editor .field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: help;
}
.speaker-editor .field span {
  white-space: nowrap;
  line-height: 1.1;
}
.speaker-editor .field input {
  width: 100%;
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  font: inherit;
  font-size: 0.78rem;
  background: white;
  color: var(--fg);
  text-align: right;
}
.aim-btn {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.72rem;
  border: 1px dashed var(--panel-border);
  border-radius: 3px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.aim-btn:hover {
  border-style: solid;
  color: var(--fg);
  background: #f8f8fa;
}
.primary-btn {
  display: block;
  width: 100%;
  padding: 0.4rem;
  border: 1px dashed var(--panel-border);
  background: white;
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  flex: 0 0 auto;
}
.primary-btn:hover {
  border-style: solid;
  background: #f8f8fa;
}

/* Phantoms list mirrors speaker-item structure but with subtler styling so
   it visually reads as the secondary list (speakers are primary). */
#phantoms-panel #phantoms-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.phantom-item {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  margin-bottom: 0.35rem;
  background: white;
}
.phantom-item header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.35rem;
}
.phantom-item header input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.15rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-style: italic;
  font-size: 0.82rem;
  background: transparent;
  color: rgb(135, 105, 170);
}
.phantom-item header input[type="text"]:hover {
  border-color: var(--panel-border);
}
.phantom-item header input[type="text"]:focus {
  outline: none;
  border-color: rgba(200, 180, 220, 0.7);
  background: white;
}
.phantom-item button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.1rem 0.3rem;
  color: var(--muted);
  font-family: inherit;
  line-height: 1;
}
.phantom-item button:hover { color: var(--fg); }
.phantom-item .delete-btn:hover { color: #c83232; }
.phantom-editor {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem 0.4rem;
  border-top: 1px dashed var(--panel-border);
  padding: 0.4rem 0.35rem;
}
.phantom-item.expanded .phantom-editor { display: grid; }
.phantom-editor .field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: help;
}
.phantom-editor .field span { white-space: nowrap; line-height: 1.1; }
.phantom-editor .field input {
  width: 100%;
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  font: inherit;
  font-size: 0.78rem;
  background: white;
  color: var(--fg);
  text-align: right;
}

/* =============================================================================
   Audience panel — bottom left.
   ============================================================================= */
#audience-panel {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 240px;
  z-index: 10;
}
#audience-panel .field-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#audience-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
#audience-panel label span {
  flex: 0 0 6rem;
}
#audience-panel input {
  flex: 1 1 auto;
  width: 0;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  font: inherit;
  font-size: 0.82rem;
  background: white;
  color: var(--fg);
  text-align: right;
}

/* =============================================================================
   Layout Health panel (SPEC §8.3) — bottom-right floating, mirrors
   audience-panel's positioning style. Framing paragraph is always shown;
   health-status block is rebuilt by composeHealthLines() on every refresh.
   Per-line emoji icon + colour conveys severity (✓ green / ⚠ yellow / ✗ red
   / ℹ neutral); the icon glyph is part of the text content itself so
   accessibility tools narrate it.
   ============================================================================= */
#health-panel {
  position: fixed;
  bottom: 1rem;
  /* Sit clear of the right column (260px wide at right: 1rem). Adding the
     1rem inter-panel gap on top yields right: 260+32 = 292px. */
  right: calc(260px + 2rem);
  width: 320px;
  z-index: 10;
}
#health-panel h2 {
  margin: 0 0 0.5rem;
}
#health-panel .health-framing {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
#health-panel .health-framing-disclaimer {
  padding-top: 0.4rem;
  border-top: 1px solid var(--panel-border);
}
#health-panel .health-status {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#health-panel .health-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
#health-panel .health-line-ok {
  color: #2a7a3e;
  background: rgba( 80, 180, 100, 0.10);
  border-color: rgba( 80, 180, 100, 0.35);
}
#health-panel .health-line-warn {
  color: #8a6a10;
  background: rgba(240, 200,  70, 0.14);
  border-color: rgba(220, 170,  40, 0.40);
}
#health-panel .health-line-fail {
  color: #a82a2a;
  background: rgba(225,  70,  70, 0.10);
  border-color: rgba(225,  70,  70, 0.40);
}
#health-panel .health-line-info {
  color: var(--fg);
  background: rgba(120, 130, 160, 0.08);
  border-color: rgba(120, 130, 160, 0.30);
}

/* =============================================================================
   Hover tooltips (triangle + speaker) — small floating cards that
   follow the cursor. Shared styling on .tooltip; per-target tweaks (e.g.
   triangle's health-level left border) live under the specific id.
   Pointer-events disabled so the tooltip can never steal hover from the
   canvas underneath.
   ============================================================================= */
.tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  min-width: 130px;
  max-width: 260px;
}
.tooltip .tt-header {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--panel-border);
  color: var(--fg);
}
.tooltip .tt-line {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.tooltip .tt-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 4.5rem;
}
.tooltip .tt-value {
  flex: 1 1 auto;
  text-align: right;
  color: var(--fg);
}

/* Triangle tooltip — coloured left border echoes the health level. */
#triangle-tooltip {
  border-left-width: 3px;
}
#triangle-tooltip[data-level="green"]  { border-left-color: rgba( 80, 180, 100, 0.85); }
#triangle-tooltip[data-level="yellow"] { border-left-color: rgba(220, 170,  40, 0.85); }
#triangle-tooltip[data-level="red"]    { border-left-color: rgba(225,  70,  70, 0.85); }

/* Vertices line stacks label above the names so all speaker names land on
   one row even when there are 3 long names — wrapping inside a narrow
   right-aligned column was the original layout's failure mode. */
#triangle-tooltip .tt-line-vertices {
  flex-direction: column;
  align-items: stretch;
  gap: 0.05rem;
}
#triangle-tooltip .tt-line-vertices .tt-value {
  text-align: right;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Speaker tooltip — soft slate-navy left border echoing the body fill so
   "tooltip is for the speaker I'm hovering" reads from the colour alone. */
#speaker-tooltip {
  border-left: 3px solid rgba(110, 122, 150, 0.85);
}

/* =============================================================================
   Overlay labels — axis labels + speaker name labels.
   ============================================================================= */
#overlay-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.overlay-label {
  position: fixed;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  white-space: nowrap;
  text-shadow:
    0 0 3px var(--bg),
    0 0 4px var(--bg),
    1px 0 2px var(--bg),
    -1px 0 2px var(--bg),
    0 1px 2px var(--bg),
    0 -1px 2px var(--bg);
}
.axis-label-x { color: rgb(220, 60, 60); }
.axis-label-y { color: rgb(60, 160, 80); }
.axis-label-z { color: rgb(60, 100, 220); }
.speaker-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
}
/* Phantom name label: italic + soft violet so the marker reads as
   "imagined / sketched" rather than a real cabinet, matching the
   phantom body's translucent violet sphere. */
.phantom-label {
  font-size: 0.74rem;
  font-weight: 500;
  font-style: italic;
  color: rgb(135, 105, 170);
}
.coord-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.coord-label-origin {
  color: var(--fg);
}
.coord-label-centre {
  color: rgb(40, 150, 150);
  font-weight: 500;
}
.coord-label-phantom {
  color: rgb(135, 105, 170);
  font-style: italic;
}

/* =============================================================================
   Tool meta footer (version + GitHub link).
   ============================================================================= */
#tool-footer {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
#tool-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
#tool-footer a:hover {
  color: var(--fg);
}
#tool-footer .tool-footer-sep {
  margin: 0 0.4em;
  opacity: 0.5;
}

/* =============================================================================
   Mobile banner.
   ============================================================================= */
#mobile-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #fff8d8;
  border: 1px solid #e0c560;
  border-radius: var(--radius);
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  z-index: 20;
  box-shadow: var(--shadow);
}
#mobile-banner .banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
#mobile-banner .banner-text span[lang="zh-TW"] { letter-spacing: 0.01em; }
#mobile-banner .banner-text span[lang="en"] { color: #6a5a20; }
#mobile-banner-dismiss {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #666;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#mobile-banner-dismiss:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #333;
}

/* On < 1024px viewports the editing panels collapse off-screen so the
   tool delivers the "preview only" experience the banner promises:
   3D canvas + framing disclaimer + dismiss banner, no overlapping UI.
   Self-contained HTML opened on tablet / phone benefits from this too. */
@media (max-width: 1023px) {
  #left-column-top,
  #right-column,
  #audience-panel,
  #health-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
