:root {
  --ink: #171914;
  --paper: #e8e5dc;
  --paper-deep: #d5d1c6;
  --acid: #d9ff43;
  --signal: #ff654d;
  --muted: #77796f;
  --board: #0d0f0c;
  --flap: #20231e;
  --line: rgba(23, 25, 20, 0.2);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 12%, rgba(217, 255, 67, 0.17), transparent 27rem),
    linear-gradient(115deg, var(--paper) 0%, #f1eee7 53%, var(--paper-deep) 100%);
  font-family: Inter, Arial, sans-serif;
}

button, input { font: inherit; }
button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 20;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
  z-index: 30;
}
.skip-link:focus { transform: translateY(0); }

.app-shell {
  width: min(1460px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 64px) 42px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1 DM Mono, monospace;
  letter-spacing: 0.11em;
}

.brand, .status { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5c8f37; box-shadow: 0 0 0 4px rgba(92, 143, 55, 0.13); }

.hero { padding-top: clamp(42px, 7vw, 100px); }
.eyebrow-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.eyebrow, .counter, .list-heading, .board-meta, .board-footer {
  margin: 0;
  font: 500 11px/1.2 DM Mono, monospace;
  letter-spacing: 0.13em;
}
.counter { color: var(--muted); }

.board-frame {
  --frame-bg: var(--board);
  --frame-fg: #fff;
  --frame-accent: var(--acid);
  --flap-fg: #f1f0e9;
  --flap-top: #252822;
  --flap-bottom: #1b1e19;
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 36px);
  color: var(--frame-fg);
  background: var(--frame-bg);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(20, 22, 17, 0.24), inset 0 0 0 1px rgba(255,255,255,.07);
}
.board-stack {
  display: grid;
  gap: clamp(42px, 7vw, 88px);
  width: 100%;
  margin-top: 24px;
}
.prototype-option, .prototype-option > .board-frame { width: 100%; }
.board-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: stretch;
  gap: 18px;
}
.speed-control {
  --knob-angle: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  justify-items: center;
  align-items: center;
  min-height: 100%;
  padding: 14px 12px 12px;
  color: #e7e4da;
  background: linear-gradient(145deg, #2e302a, #10120f 72%);
  border: 1px solid #3b3e36;
  border-radius: 4px;
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 12px 30px rgba(20,22,17,.2);
  font: 500 10px/1 DM Mono, monospace;
  letter-spacing: .1em;
}
.speed-control::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.speed-label { color: #8e9187; }
.speed-knob {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 12px 0 8px;
  border: 1px solid #55594f;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 32%, #55594e 0 7%, transparent 8%),
    radial-gradient(circle, #363930 0 48%, #1b1d19 51% 65%, #090a08 68%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.12), inset 0 -5px 8px #080907, 0 5px 8px #050605;
  transform: rotate(var(--knob-angle));
  transition: transform 120ms var(--ease);
}
.speed-knob i {
  position: absolute;
  top: 6px;
  left: calc(50% - 1px);
  width: 2px;
  height: 18px;
  background: var(--acid);
  box-shadow: 0 0 5px rgba(217,255,67,.35);
}
.speed-output {
  margin-bottom: 10px;
  color: var(--acid);
  font-size: 12px;
  letter-spacing: 0;
}
.speed-range {
  width: 100%;
  height: 16px;
  margin: 0 0 9px;
  accent-color: var(--acid);
  cursor: ew-resize;
}
.speed-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.speed-buttons button {
  position: relative;
  min-height: 30px;
  padding: 0;
  color: #e7e4da;
  background: #20231d;
  border: 1px solid #4a4e44;
  border-radius: 2px;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  cursor: pointer;
}
.speed-buttons button:hover { color: #11130f; background: var(--acid); }
.speed-buttons button:active { transform: translateY(1px); }
.prototype-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 10px/1.2 DM Mono, monospace;
  letter-spacing: .11em;
}
.prototype-heading p { margin: 0; }
.prototype-heading p:first-child { color: var(--ink); font-size: 12px; }
.prototype-heading span { display: inline-grid; place-items: center; width: 25px; height: 20px; margin-right: 8px; color: var(--paper); background: var(--ink); }
.board-frame.is-changing { animation: board-rattle 190ms steps(3, end); }
@keyframes board-rattle {
  0%, 100% { filter: brightness(1); }
  30% { filter: brightness(1.08); }
  60% { filter: brightness(.94); }
}
.board-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 45%, rgba(255,255,255,.035) 50%, transparent 55%);
}
.board-meta, .board-footer { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #898d81; }
.board-meta span:last-child, .board-footer span:last-child { text-align: right; }
.line-counter { color: #5f625a; }
.board-footer { color: var(--frame-accent); }

.flap-board {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: clamp(3px, 0.6vw, 10px);
  margin: clamp(20px, 3vw, 42px) 0;
  perspective: 900px;
}

.flap {
  position: relative;
  aspect-ratio: .68;
  min-width: 0;
  overflow: hidden;
  color: var(--flap-fg);
  background: linear-gradient(var(--flap-top) 49.2%, #070807 49.2%, #070807 50.8%, var(--flap-bottom) 50.8%);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 1px 0 #000, 0 5px 9px rgba(0,0,0,.22);
  font: 500 clamp(18px, 5.7vw, 80px)/1 DM Mono, monospace;
  transform-style: preserve-3d;
}

/* 01 — CPH Classic */
.prototype-classic { border-left: 5px solid var(--acid); }

/* 02 — Analog 1974 */
.prototype-vintage {
  --frame-bg: radial-gradient(circle at 50% 0%, #493522, #21170f 72%);
  --frame-accent: #e8ad52;
  --flap-fg: #ffd48a;
  --flap-top: #3a2b1e;
  --flap-bottom: #271b13;
  padding: clamp(24px, 3.2vw, 44px);
  border: 9px solid #6b482a;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px #b68247, inset 0 0 35px #000, 0 26px 65px rgba(57,35,17,.33);
}
.prototype-vintage::before {
  background:
    radial-gradient(circle at 11px 11px, #d6a767 0 2px, #49301c 3px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 11px) 11px, #d6a767 0 2px, #49301c 3px 5px, transparent 6px),
    radial-gradient(circle at 11px calc(100% - 11px), #d6a767 0 2px, #49301c 3px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #d6a767 0 2px, #49301c 3px 5px, transparent 6px);
}
.prototype-vintage .board-meta, .prototype-vintage .board-footer { color: #b8884f; font-family: Georgia, serif; letter-spacing: .16em; }
.prototype-vintage .flap-board { gap: clamp(4px, .8vw, 13px); }
.prototype-vintage .flap { border: 1px solid #5c422b; border-radius: 7px; font-family: Georgia, serif; box-shadow: inset 0 1px #806044, 0 7px 12px rgba(0,0,0,.45); }

/* 03 — Nordic Transit */
.prototype-transit {
  --frame-bg: #e5e3dc;
  --frame-fg: #171914;
  --frame-accent: #d52f24;
  --flap-fg: #f6f4ed;
  --flap-top: #292b28;
  --flap-bottom: #20221f;
  padding-top: clamp(44px, 5vw, 66px);
  border: 1px solid #a8a69d;
  border-top: 18px solid #d52f24;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(23,25,20,.13);
}
.prototype-transit::before { background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(23,25,20,.035) 40px); }
.prototype-transit .board-meta { color: #171914; font-weight: 700; }
.prototype-transit .line-counter { color: #d52f24; }
.prototype-transit .board-footer { border-top: 1px solid #aaa89f; padding-top: 12px; font-weight: 700; }
.prototype-transit .flap { border-radius: 0; box-shadow: 3px 3px 0 #9d9b93; }

/* 04 — Nightline */
.prototype-night {
  --frame-bg: radial-gradient(circle at 75% 20%, #153c4b 0, #071a28 42%, #040d16 100%);
  --frame-accent: #62efff;
  --flap-fg: #9cf7ff;
  --flap-top: #102d3a;
  --flap-bottom: #09212e;
  border: 1px solid rgba(98,239,255,.45);
  border-radius: 24px;
  box-shadow: 0 0 0 5px rgba(7,26,40,.08), 0 24px 80px rgba(0,27,43,.35), inset 0 0 45px rgba(98,239,255,.07);
}
.prototype-night::before { background: linear-gradient(112deg, transparent 34%, rgba(139,246,255,.1) 48%, transparent 57%); }
.prototype-night .board-meta { color: #668e9b; }
.prototype-night .line-counter { color: #62efff; }
.prototype-night .flap-board { gap: clamp(2px, .35vw, 6px); }
.prototype-night .flap { border: 1px solid rgba(98,239,255,.17); border-radius: 9px; box-shadow: inset 0 1px rgba(181,251,255,.12), 0 0 14px rgba(98,239,255,.07); }
.prototype-night .flap-char { text-shadow: 0 0 10px rgba(98,239,255,.5); }

/* 05 — Full Cycle / exposed rotor lab */
.prototype-wheel {
  --frame-bg: #f0642f;
  --frame-fg: #161713;
  --frame-accent: #161713;
  --flap-fg: #ff9a61;
  --flap-top: #20221e;
  --flap-bottom: #151713;
  border: 6px solid #161713;
  border-radius: 2px;
  box-shadow: 10px 10px 0 #b8b5ab, 0 28px 70px rgba(37,30,21,.28);
}
.prototype-wheel::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
.prototype-wheel .board-meta { color: #161713; font-weight: 700; }
.prototype-wheel .line-counter { color: #fff2e8; }
.prototype-wheel .board-footer { font-weight: 700; }
.prototype-wheel .flap-board { padding: clamp(8px, 1.2vw, 16px); background: #161713; border: 2px solid #161713; gap: clamp(3px, .55vw, 9px); }
.prototype-wheel .flap { border: 1px solid #55584f; border-radius: 1px; box-shadow: inset 0 1px #696d63, 0 4px 0 #050605; }
.prototype-wheel .flap-char { text-shadow: 0 0 8px rgba(240,100,47,.32); }

/* 06 — True Split-Flap / separate falling half-flap */
.prototype-split {
  --frame-bg: linear-gradient(145deg, #292a27, #11120f 72%);
  --frame-accent: #eee8d9;
  --flap-fg: #f2eee3;
  padding: clamp(24px, 3.2vw, 46px);
  border: 12px solid #b8b5aa;
  border-image: linear-gradient(135deg, #efede5, #77786f 45%, #d4d1c6) 1;
  border-radius: 0;
  box-shadow: inset 0 0 35px #000, 0 28px 70px rgba(20,20,17,.32);
}
.prototype-split::before {
  background: repeating-linear-gradient(105deg, transparent 0 16px, rgba(255,255,255,.018) 17px, transparent 18px);
}
.prototype-split .board-meta { color: #aaa99f; }
.prototype-split .line-counter { color: #f0eee6; }
.prototype-split .flap-board { gap: clamp(5px, .75vw, 12px); }
.prototype-split .board-footer { color: #d9d4c6; }
.true-split-module {
  overflow: hidden;
  background: #090a08;
  border: 1px solid #3e403a;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #050605, 0 7px 12px rgba(0,0,0,.55);
  perspective: 500px;
}
.true-split-module::before, .true-split-module::after { top: calc(50% - 3px); width: 4px; height: 7px; background: #77796f; box-shadow: 0 0 0 1px #030403; }
.split-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: linear-gradient(90deg, #171916, #242620 48%, #151713);
}
.split-glyph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #f2eee3;
  text-shadow: 0 1px #000;
}
.split-current-top, .split-next-top { clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); }
.split-current-bottom, .split-next-bottom { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
.split-current-bottom, .split-next-top { z-index: 1; }
.split-current-top {
  z-index: 3;
  transform-origin: center center;
  box-shadow: inset 0 -1px #020302;
}
.split-next-bottom {
  z-index: 4;
  transform: rotateX(180deg);
  transform-origin: center center;
  background: linear-gradient(90deg, #11130f, #20221d 48%, #10120e);
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.flap-char.split-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.flap::before, .flap::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  width: 3px;
  height: 5px;
  background: #050605;
  z-index: 4;
}
.flap::before { left: 2px; }
.flap::after { right: 2px; }
.flap-char {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-shadow: 0 1px 0 #000;
}
.flap:not(.true-split-module).is-settling { animation: flap-land 180ms var(--ease); }
@keyframes flap-land {
  0% { transform: rotateX(-7deg) translateY(-2px); filter: brightness(1.3); }
  55% { transform: rotateX(3deg) translateY(1px); }
  100% { transform: rotateX(0) translateY(0); filter: brightness(1); }
}

.controls {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
}
.control-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 0 22px;
  border: 0;
  background: #eeece5;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.control-button.primary { background: var(--acid); }
.control-button.secondary-action { color: #55584f; background: #dfddd6; }
.control-button:hover { color: white; background: var(--ink); }
.button-number { margin-right: 20px; color: var(--muted); font: 500 10px DM Mono, monospace; }
.primary .button-number { color: rgba(23,25,20,.55); }
.button-copy { display: grid; gap: 5px; min-width: 0; }
.button-label { font-weight: 600; }
.button-note { color: var(--muted); font: 500 9px/1.2 DM Mono, monospace; letter-spacing: .06em; text-transform: uppercase; }
.control-button:hover .button-note { color: #aeb0a7; }
.button-icon { font-size: 24px; line-height: 1; }

.local-mode-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -10px 0 28px;
  padding: 11px 14px;
  color: #676a61;
  background: rgba(23,25,20,.055);
  border: 1px solid rgba(23,25,20,.14);
  font-size: 12px;
}
.local-mode-note strong { color: var(--ink); }
.local-mode-icon { color: #77796f; font-size: 10px; }
.local-mode-tag {
  padding: 5px 7px;
  color: #6f7169;
  border: 1px solid rgba(23,25,20,.2);
  font: 500 9px/1 DM Mono, monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

.route-line { display: flex; align-items: center; gap: 14px; margin-top: clamp(36px, 6vw, 74px); }
.route-code { font: 600 clamp(18px, 2vw, 28px) DM Mono, monospace; letter-spacing: -.03em; }
.route-code.muted { color: #9a9b92; }
.route-track { position: relative; flex: 1; height: 1px; background: rgba(23,25,20,.23); }
.route-track::before, .route-track::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.route-track::before { left: 0; }
.route-track::after { right: 0; background: #9a9b92; }
.route-track i { position: absolute; left: 18%; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); animation: route 6s ease-in-out infinite; }
@keyframes route { 50% { left: 82%; } }

.word-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  color: var(--ink);
  background: #f2f0e9;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 35px 90px rgba(0,0,0,.38);
}
.word-dialog::backdrop { background: rgba(10,11,9,.68); backdrop-filter: blur(5px); }
.word-dialog[open] { animation: dialog-in 280ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 9px 0 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.045em; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: white; background: var(--ink); }

.word-form { display: grid; grid-template-columns: 1fr 160px auto; gap: 10px; align-items: end; padding: 22px 28px 24px; }
.word-form label { display: grid; gap: 8px; font: 500 10px DM Mono, monospace; letter-spacing: .1em; }
.word-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #aaa99f;
  border-radius: 2px;
  background: white;
  outline: none;
}
.word-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--acid); }
.input-with-unit { position: relative; display: block; }
.input-with-unit input { padding-right: 45px; }
.input-with-unit > span { position: absolute; top: 18px; right: 12px; color: var(--muted); font-size: 9px; }
.add-button, .save-button { height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 2px; font-weight: 700; background: var(--acid); cursor: pointer; }
.add-button:hover, .save-button:hover { color: white; background: var(--ink); }
.add-button span { margin-left: 12px; }

.list-heading { display: flex; justify-content: space-between; padding: 12px 28px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.word-list { max-height: 300px; margin: 0; padding: 0 28px; overflow-y: auto; list-style: none; counter-reset: list; }
.word-list li { counter-increment: list; display: grid; grid-template-columns: 34px 1fr 120px 38px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.word-list li::before { content: counter(list, decimal-leading-zero); color: var(--muted); font: 10px DM Mono, monospace; }
.list-word { overflow: hidden; font: 500 16px DM Mono, monospace; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.list-duration { color: var(--muted); font: 11px DM Mono, monospace; text-align: right; }
.remove-button { width: 30px; height: 30px; margin-left: auto; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.remove-button:hover { color: white; background: var(--signal); }
.empty-list { display: block !important; padding: 32px 0; color: var(--muted); font-size: 14px; text-align: center; }
.empty-list::before { display: none; }

.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 28px 26px; border-top: 1px solid var(--line); }
.dialog-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.save-button { min-width: 168px; }

.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 14px 18px; color: white; background: var(--ink); border-left: 4px solid var(--acid); box-shadow: 0 12px 40px rgba(0,0,0,.24); font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 220ms var(--ease); z-index: 40; }
.toast.show { opacity: 1; transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

@media (max-width: 760px) {
  .app-shell { padding-inline: 16px; }
  .flap-board { gap: 2px; }
  .board-frame { padding-inline: 12px; }
  .controls { grid-template-columns: 1fr; }
  .local-mode-note { grid-template-columns: auto 1fr; margin-top: -8px; }
  .local-mode-tag { display: none; }
  .board-stack { margin-top: 16px; }
  .board-control-row { grid-template-columns: 1fr; gap: 8px; }
  .speed-control {
    grid-template:
      "label knob output buttons" auto
      "range range range range" auto / minmax(44px, 1fr) 46px 48px 76px;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px;
  }
  .speed-label { grid-area: label; }
  .speed-knob { grid-area: knob; width: 40px; height: 40px; margin: 0; }
  .speed-knob i { top: 4px; height: 12px; }
  .speed-output { grid-area: output; margin: 0; }
  .speed-range { grid-area: range; margin: 0; }
  .speed-buttons { grid-area: buttons; }
  .prototype-heading { align-items: flex-start; }
  .prototype-heading p:last-child { max-width: 145px; text-align: right; }
  .line-counter { display: none; }
  .board-meta, .board-footer { grid-template-columns: 1fr 1fr; }
  .control-button { min-height: 60px; }
  .word-form { grid-template-columns: 1fr 118px; }
  .add-button { grid-column: 1 / -1; }
  .dialog-heading, .word-form, .list-heading, .dialog-actions { padding-left: 18px; padding-right: 18px; }
  .word-list { padding-inline: 18px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
