:root {
  --ink: #14201c;
  --muted: #65736d;
  --paper: #f4f2eb;
  --card: #fffdf8;
  --line: #d8d8cf;
  --court: #235747;
  --court-deep: #143a30;
  --lime: #d9ff57;
  --orange: #ff7b4a;
  --red: #d84f43;
  --shadow: 0 18px 50px rgba(21, 47, 38, 0.10);
}

* { box-sizing: border-box; }
:root { color-scheme: light; --focus: #28735b; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8f1ed;
  --muted: #a9bab2;
  --paper: #101915;
  --card: #192720;
  --line: #3b5146;
  --red: #ff9387;
  --focus: #d9ff57;
  --shadow: 0 18px 50px rgba(0,0,0,.2);
}
.theme-icons { display: flex; flex: none; gap: 2px; }
.theme-icons button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-icons button:hover { color: var(--ink); background: var(--card); }
.theme-icons button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--card); }
.theme-icons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:is(button, input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}

button, input, select { font: inherit; }
button { color: inherit; }
.shell { max-width: 1480px; margin: 0 auto; padding: 28px 30px 48px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #39705f; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 57px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.subhead { max-width: 650px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.site-title { display: flex; align-items: center; gap: .22em; }
.title-ball { display: block; width: .85em; height: .85em; flex: none; }
.status-pill { grid-column: 1 / -1; padding: 16px 20px; font-size: 18px; font-weight: 850; letter-spacing: .04em; text-align: center; line-height: 1.4; }
.status-pill.in { background: var(--lime); color: #273500; }
.status-pill.fault { background: #ffe0da; color: #7e241c; }

.layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid rgba(31,60,50,.13); border-radius: 18px; box-shadow: var(--shadow); }
.controls-panel { padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 13px; }
.panel-title h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-title span { color: var(--muted); font-size: 11px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.preset { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 7px 10px; font-size: 11px; font-weight: 750; cursor: pointer; }
.preset:hover, .preset.active { background: var(--ink); color: white; border-color: var(--ink); }
.field { border-top: 1px solid #e8e6dd; padding: 13px 0 10px; }
.field:first-of-type { border-top: 0; }
.field-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; font-weight: 750; }
.field-output { font-variant-numeric: tabular-nums; color: #2a6a56; }
.field small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
input[type="range"] { width: 100%; accent-color: var(--court); margin: 10px 0 0; cursor: pointer; }
input[type="range"]:disabled { cursor: not-allowed; }
select { width: 100%; margin-top: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: white; }
.field.disabled { opacity: .48; }
.drag-switch-field { padding-bottom: 13px; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 37px; height: 21px; border-radius: 999px; background: #c8cec9; transition: .18s ease; box-shadow: inset 0 0 0 1px rgba(20,32,28,.12); }
.switch span::after { content: ""; display: block; width: 17px; height: 17px; margin: 2px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .18s ease; }
.switch input:checked + span { background: var(--court); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(35,87,71,.28); outline-offset: 2px; }
.spin-section { margin-top: 10px; padding: 14px 13px 4px; border-radius: 13px; background: #eef1e8; border: 1px solid #dbe1d5; }
.spin-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.spin-title h3 { margin: 0; font-size: 13px; }
.spin-title small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.spin-title output { flex: none; color: #2a6a56; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spin-presets { margin-bottom: 5px; }
.spin-section .field { border-color: #d8ddd1; }
.range-ends { display: flex !important; justify-content: space-between; gap: 12px; }
.control-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 4px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.primary, .secondary { border-radius: 10px; border: 1px solid var(--ink); padding: 13px 18px; min-height: 48px; font-weight: 800; font-size: 15px; cursor: pointer; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: var(--court); }
.secondary { background: transparent; }

.workspace { display: grid; gap: 16px; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden; background: var(--line); }
.metric { background: var(--card); padding: 15px 16px 14px; min-width: 0; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-value { display: block; margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2vw, 31px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value.good { color: #24725a; }
.metric-value.bad { color: var(--red); }
.metric-sub { display: block; color: var(--muted); font-size: 9px; line-height: 1.35; margin-top: 6px; white-space: normal; }
.viz-grid { display: grid; grid-template-columns: 1.45fr .82fr; gap: 16px; }
.viz-panel { overflow: hidden; }
.viz-header { display: flex; justify-content: space-between; gap: 18px; padding: 15px 18px 0; align-items: flex-start; }
.viz-header h2 { margin: 0; font-size: 14px; }
.viz-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 13px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.legend i { display: inline-block; width: 17px; height: 2px; vertical-align: middle; margin-right: 5px; background: var(--orange); }
.legend i.net { background: var(--ink); }
.legend i.reference { height: 0; background: transparent; border-top: 2px dashed #7b8983; }
.drag-compare { margin: 7px 18px 0; color: #3f6c5d; font-size: 9px; font-weight: 750; }
.side-svg, .top-svg { width: 100%; height: auto; display: block; }
.top-svg { max-height: 394.5px; margin: 10px auto; }
.top-svg .court-line { stroke-width: 1; }
.top-svg .net-top { stroke-width: 2.5; }
.top-svg .flight-line { stroke-width: 1.6; stroke-dasharray: 3 3; }
.top-svg .top-reference { stroke-width: 1; }
.top-svg :is(.ball, .start, .target) { stroke-width: 1.2; }
.ground { stroke: #8c948f; stroke-width: 1.4; }
.guide { stroke: #d8ddd9; stroke-width: 1; stroke-dasharray: 4 5; }
.net { stroke: var(--ink); stroke-width: 5; }
.service-mark { stroke: #aab2ad; stroke-width: 2; }
.trajectory { fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; }
.trajectory-reference { fill: none; stroke: #829089; stroke-width: 2; stroke-dasharray: 6 5; opacity: .9; }
.trajectory.fault-path { stroke: var(--red); }
.measure { stroke: #9a5b44; stroke-width: 1.3; stroke-dasharray: 3 3; }
.ball { fill: var(--lime); stroke: var(--ink); stroke-width: 2.2; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.svg-label { fill: #7a827e; font-size: 9px; font-weight: 650; }
.court-fill { fill: var(--court); }
.court-line { stroke: rgba(255,255,255,.9); stroke-width: 2; fill: none; }
.net-top { stroke: #15201c; stroke-width: 5; }
.flight-line { stroke: var(--lime); stroke-width: 3; stroke-dasharray: 5 5; }
.top-reference { fill: none; stroke: rgba(255,255,255,.65); stroke-width: 2; stroke-dasharray: 4 5; }
.start { fill: white; stroke: var(--ink); stroke-width: 2; }
.target { fill: var(--orange); stroke: white; stroke-width: 3; }
.scrub-wrap { padding: 0 18px 18px; }
.scrub-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1px; }
.scrub-time { font-size: 24px; font-family: Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; }
.scrub-position { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline { position: relative; margin-top: 6px; }
.timeline input { display: block; margin: 0; }
.timeline-marker { position: absolute; top: 2px; width: 2px; height: 12px; background: var(--orange); transform: translateX(-1px); pointer-events: none; }
.timeline-marker.now { background: var(--ink); opacity: .35; }
.timeline-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: 4px; }

.spin-inspector { overflow: hidden; }
.spin-inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px 12px; }
.spin-inspector-head .eyebrow { margin-bottom: 4px; font-size: 9px; }
.spin-inspector-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.spin-inspector-head > span { color: var(--muted); font-size: 9px; }
.spin-inspector-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); border-top: 1px solid var(--line); }
.spin-ball-figure { margin: 0; padding: 8px 18px 12px; background: radial-gradient(circle at 50% 42%, #346f5c 0, var(--court-deep) 68%); color: rgba(255,255,255,.7); }
.spin-ball-figure svg { display: block; width: 100%; max-height: 405px; }
.spin-ball-figure figcaption { margin: -2px 0 0; text-align: center; font-size: 9px; }
.ball-shadow { fill: rgba(4,20,15,.28); filter: blur(4px); }
.spin-ball { fill: url(#ballGradient); stroke: rgba(255,255,255,.7); stroke-width: 2; }
.ball-flecks circle { fill: rgba(91,118,25,.72); }
.ball-seams path { fill: none; stroke: #fbffe1; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 1px 1px rgba(75,96,18,.2)); }
.spin-plane { fill: none; stroke-linecap: round; stroke-dasharray: 8 8; animation: spin-plane-flow var(--spin-duration, 2.7s) linear infinite; }
.spin-plane-back { stroke: rgba(128,245,219,.42); stroke-width: 3; }
.spin-plane-front { stroke: #80f5db; stroke-width: 4; filter: drop-shadow(0 0 5px rgba(128,245,219,.38)); }
.spin-plane-group.idle .spin-plane { animation-play-state: paused; opacity: .15; }
.spin-axis { stroke: var(--orange); stroke-width: 3; filter: drop-shadow(0 0 4px rgba(255,123,74,.3)); }
.spin-axis.idle { opacity: .28; marker-end: none; }
.impact-halo { fill: rgba(255,123,74,.18); stroke: rgba(255,123,74,.62); stroke-width: 1.5; animation: impact-pulse 1.8s ease-in-out infinite; }
.impact-point { fill: var(--orange); stroke: white; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.impact-leader { stroke: rgba(255,255,255,.62); stroke-width: 1; stroke-dasharray: 3 4; }
.impact-svg-label, .axis-svg-label { fill: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .04em; }
.impact-svg-label.strong { fill: white; font-weight: 800; }
.axis-svg-label { font-size: 8px; }
.spin-readout { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; padding: 20px; background: #fffdf8; }
.rpm-hero { grid-row: span 2; padding: 17px; border-radius: 13px; background: var(--ink); color: white; }
.rpm-hero > span, .spin-name > span, .impact-card span { display: block; color: #98aaa3; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rpm-hero strong { display: block; margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 500; line-height: .86; color: var(--lime); font-variant-numeric: tabular-nums; }
.rpm-hero b { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .15em; }
.rpm-hero small { display: block; margin-top: 16px; color: #a7b8b1; font-size: 10px; }
.spin-name { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.spin-name strong { display: block; margin-top: 7px; font-size: 15px; }
.spin-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.component-list { grid-column: 2; display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.component-list div { background: white; padding: 10px 12px; }
.component-list dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.component-list dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.impact-card { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: #fff2ec; border: 1px solid #f3d7cb; }
.impact-card i { flex: none; width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,123,74,.15); }
.impact-card span { color: #99604b; }
.impact-card strong { display: block; margin-top: 4px; font-size: 12px; }
.impact-card p { margin: 4px 0 0; color: #7b655d; font-size: 9px; line-height: 1.45; }
/* Positive offset makes the server-facing surface motion obey the axis arrow's right-hand rule. */
@keyframes spin-plane-flow { to { stroke-dashoffset: 64; } }
@keyframes impact-pulse { 50% { r: 20; opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .spin-plane, .impact-halo { animation-play-state: paused; }
}

.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.explain article { padding: 18px 20px; }
.explain article + article { border-left: 1px solid var(--line); }
.explain h3 { margin: 0 0 8px; font-size: 13px; }
.explain p, .explain li { color: var(--muted); font-size: 11px; line-height: 1.55; }
.explain p { margin: 0; }
.explain ul { margin: 7px 0 0; padding-left: 17px; }
.formula { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #f2f1ea; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #3f514a; font-size: 10px; overflow-x: auto; }
.validation { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #3c6b5c; font-size: 10px; font-weight: 750; }
.validation-dot { width: 7px; height: 7px; border-radius: 50%; background: #39a16e; box-shadow: 0 0 0 4px #dff3e8; }
.validation-dot.failed { background: var(--red); box-shadow: 0 0 0 4px #ffe2dd; }
.footnote { margin: 2px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

@media (max-width: 1050px) {
  .layout { grid-template-columns: 285px minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .viz-grid { grid-template-columns: 1fr; }
  .spin-inspector-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding: 20px 14px 36px; }
  .topbar { display: flex; flex-direction: column; gap: 14px; }
  .theme-icons { order: -1; align-self: flex-end; }
  .layout { grid-template-columns: 1fr; }
  .controls-panel { position: static; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .spin-inspector-head { display: block; }
  .spin-inspector-head > span { display: block; margin-top: 5px; }
  .spin-readout { grid-template-columns: 1fr; }
  .rpm-hero { grid-row: auto; }
  .component-list { grid-column: auto; }
  .impact-card { grid-column: auto; }
  .explain { grid-template-columns: 1fr; }
  .explain article + article { border-left: 0; border-top: 1px solid var(--line); }
}

/* Keep court and ball colours physical; adapt surrounding surfaces and annotations. */
[data-theme="dark"] .panel { border-color: var(--line); }
[data-theme="dark"] :is(.eyebrow, .field-output, .spin-title output, .metric-value.good, .drag-compare, .validation) { color: #9be0bd; }
[data-theme="dark"] .field { border-color: var(--line); }
[data-theme="dark"] select { background: var(--card); color: var(--ink); }
[data-theme="dark"] :is(.preset:hover, .preset.active, .primary) { background: var(--lime); color: #1b2a0b; border-color: var(--lime); }
[data-theme="dark"] .primary:hover { background: #c3eb3b; }
[data-theme="dark"] input[type="range"] { accent-color: #a9df7a; }
[data-theme="dark"] .switch input:checked + span { background: #558765; }
[data-theme="dark"] .switch input:focus-visible + span { outline-color: var(--focus); }
[data-theme="dark"] .spin-section { background: #22372b; border-color: var(--line); }
[data-theme="dark"] .spin-readout, [data-theme="dark"] .component-list div { background: var(--card); }
[data-theme="dark"] .rpm-hero { background: #0c1711; }
[data-theme="dark"] .impact-card { background: #35261f; border-color: #765340; }
[data-theme="dark"] .impact-card span { color: #ffc09c; }
[data-theme="dark"] .impact-card p { color: #dcbfae; }
[data-theme="dark"] .formula { background: #22372b; color: #c3d6cb; }
[data-theme="dark"] .svg-label { fill: #b4c6bc; }
[data-theme="dark"] .guide { stroke: #42594c; }
[data-theme="dark"] .ground, [data-theme="dark"] .service-mark { stroke: #90a89a; }
[data-theme="dark"] .trajectory-reference { stroke: #b0c4b8; }
[data-theme="dark"] .measure { stroke: #e9aa8f; }
[data-theme="dark"] .ball, [data-theme="dark"] .start { stroke: #15201c; }
[data-theme="dark"] .status-pill.fault { background: #582e29; color: #ffd0c7; }
[data-theme="dark"] .validation-dot { box-shadow: 0 0 0 4px #234735; }
[data-theme="dark"] .validation-dot.failed { box-shadow: 0 0 0 4px #582e29; }

.bounce-path { fill: none; stroke: #398ce3; stroke-width: 2.5; stroke-dasharray: 7 4; stroke-linecap: round; }
.top-svg .bounce-path { stroke: #8ddcff; stroke-width: 1.6; stroke-dasharray: 3 2; }
.legend i.bounce-key, .bounce-marker { background: #398ce3; }
.bounce-summary { margin: 8px 18px 12px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.brush-arrow { stroke: #10251e; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 2px white); }
.spin-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; margin: 8px 0; }

/* The actual ball rotates; the plane is a stationary geometric guide. */
.spin-plane { animation: none; }

.guide-launch { margin-top: 14px; padding: 9px 13px; border: 1px solid var(--court); border-radius: 9px; background: var(--court); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.guide-launch:hover { background: var(--court-deep); border-color: var(--court-deep); }
.guide-launch:focus-visible { outline: 3px solid var(--court); outline-offset: 3px; }
.field-head, .metrics { position: relative; }
.field-help { display: inline-block; flex: none; font-weight: normal; }
.field-help summary { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.field-help summary::-webkit-details-marker { display: none; }
.field-help summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-help[open] summary { background: var(--ink); color: var(--card); }
.field-help p { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 5px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; }
.metric-help { margin-left: 4px; }
.metrics:has(.field-help[open]) { overflow: visible; }
.metric-help p { left: 8px; right: 8px; }
.metrics .status-pill { border-radius: 17px 17px 0 0; }
.guide-open { overflow: hidden; }
.serve-guide { width: min(860px, calc(100vw - 24px)); max-height: min(90dvh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 24px 90px #0006; }
.serve-guide[open] { display: flex; flex-direction: column; }
.serve-guide::backdrop { background: rgba(5, 16, 11, .65); }
.guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; flex: none; }
.guide-header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(23px, 4vw, 32px); font-weight: 500; }
.guide-close { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 26px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 16px; border-bottom: 1px solid var(--line); flex: none; }
.guide-nav button, .guide-footer button, .guide-try { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.guide-nav button[aria-current] { background: var(--ink); color: var(--card); }
.guide-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 24px; font-size: 16px; line-height: 1.6; }
.guide-body h3 { font-size: 22px; line-height: 1.3; margin: 16px 0; }
.guide-body p { margin: 12px 0; }
.guide-body li { margin: 10px 0; }
.guide-body ol, .guide-body ul { padding-left: 23px; }
.guide-callout { margin: 20px 0; border-left: 4px solid #78a744; padding: 12px 16px; background: var(--paper); border-radius: 0 9px 9px 0; }
.guide-callout p { margin: 6px 0 0; }
.guide-presets { display: grid; grid-template-columns: 100px 1fr; gap: 12px 16px; }
.guide-presets dt { font-weight: 750; }
.guide-presets dd { margin: 0; }
.guide-try { background: var(--lime); color: #203000; border-color: #92aa45; font-weight: 750; margin-top: 12px; }
.guide-action-note { display: block; margin-top: 7px; font-size: 14px; color: var(--muted); }
.guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); flex: none; }
.guide-footer span { color: var(--muted); font-size: 14px; }
.guide-footer button:disabled { opacity: .45; cursor: default; }
@media (max-width: 500px) {
  .guide-header, .guide-footer { padding: 14px; }
  .guide-nav { padding: 0 14px 12px; }
  .guide-body { padding: 0 16px 20px; }
  .guide-nav button { font-size: 13px; padding: 6px 9px; }
}

.control-actions button:focus-visible { outline: 3px solid var(--court); outline-offset: 3px; }
