:root {
  --bg: #f7f5f0;
  --surface: #fff;
  --ink: #1f2328;
  --muted: #5f6660;
  --line: #ddd8ce;
  --line-strong: #c9c2b5;
  --accent: #0f766e;
  --accent-dark: #0b5c56;
  --accent-soft: #e6f2ef;
  --candidate: #b45309;
  --candidate-soft: #fff7ed;
  --soft: #f1ede4;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(31, 35, 40, .04), 0 12px 30px rgba(31, 35, 40, .04);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; min-height: 44px; min-width: 44px; }
a { color: inherit; text-underline-offset: 3px; }
p { line-height: 1.75; margin-top: 0; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
h2 { font-size: 28px; letter-spacing: -.6px; }
h3 { font-size: 18px; }
small { font-weight: 400; }
[hidden] { display: none !important; }

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

.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.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;
}

.site-header {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 22px; letter-spacing: -.6px;
}
.brand-mark { display: inline-flex; color: var(--accent); }
.brand-tag {
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1px;
  margin-left: 2px;
}
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.site-header nav > a { text-decoration: none; }
.site-header nav > a:hover { text-decoration: underline; }
.local-badge {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
  font-size: 11px;
}
.local-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.back-link { font-size: 13px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }

.intro {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  gap: 48px; align-items: center; padding: 56px 0 38px;
}
.kicker {
  font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 600;
  margin-bottom: 12px;
}
.intro h1 {
  font-size: clamp(48px, 6vw, 72px); letter-spacing: -.045em; line-height: 1.02;
  margin-bottom: 18px; font-weight: 800;
}
.title-dot { color: #c9532d; }
.lede { font-size: 16px; color: #3c423d; max-width: 37em; margin-bottom: 24px; }
.mobile-break { display: none; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 13px; line-height: 1.2;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.quiet { background: transparent; }
.button:disabled { opacity: .45; cursor: default; }
.text-button {
  border: 0; background: transparent; padding: 6px 0; color: var(--muted);
  font-size: 12px; text-decoration: underline; text-underline-offset: 3px;
}
.text-button.confirming { color: #9a3412; font-weight: 700; }
.intro-note {
  display: flex; align-items: center; gap: 18px; padding: 22px;
  background: var(--accent-soft); border: 1px solid #cfe4de; border-radius: var(--radius);
}
.intro-note p { margin: 0; font-size: 13px; line-height: 1.7; }
.intro-note strong { display: block; font-size: 14px; margin-bottom: 4px; }
.intro-note small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.note-mouse {
  position: relative; flex: 0 0 52px; width: 52px; height: 68px;
  border: 1px solid var(--accent); border-radius: 26px 26px 22px 22px;
  background: #fff;
}
.note-mouse span { position: absolute; top: 1px; width: 50%; height: 32px; border-bottom: 1px solid #b9d8d0; }
.note-mouse span:first-child { left: 1px; border-right: 1px solid #b9d8d0; border-radius: 25px 0 0 0; }
.note-mouse span:nth-child(2) { right: 1px; border-radius: 0 25px 0 0; }
.note-mouse i {
  position: absolute; top: 8px; left: 50%; width: 8px; height: 18px; margin-left: -4px;
  border-radius: 8px; background: #f0a35e;
}

.notice {
  padding: 14px 16px; background: #fff4df; border: 1px solid #ecd5ab;
  border-radius: 10px; font-size: 13px;
}

.workspace {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.mobile-note {
  margin: 0; padding: 11px 20px; background: #fff7ed; border-bottom: 1px solid #ecd5b6;
  color: #8a4a13; font-size: 12px; line-height: 1.6;
}
.workspace-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.modes { display: inline-flex; gap: 3px; padding: 4px; background: var(--soft); border-radius: 11px; }
.modes button {
  min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
}
.modes button[aria-selected="true"] {
  background: var(--surface); border-color: #e2ddd2; color: var(--ink);
  box-shadow: 0 1px 3px rgba(31, 35, 40, .07);
}
.workspace-actions { display: flex; align-items: center; gap: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #9aa39a; }
.status-pill.is-live i { background: var(--accent); box-shadow: 0 0 0 3px #d9eee8; }
.status-pill.is-paused i { background: var(--candidate); }

.panel { padding: 28px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 23px; margin-bottom: 7px; }
.panel-heading p { font-size: 13px; color: var(--muted); margin-bottom: 0; max-width: 60em; }
.panel-hint { flex-shrink: 0; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }

.mouse-stage {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr);
  gap: 24px; align-items: stretch; padding: 24px; background: #fbfaf6;
  border: 1px solid var(--line); border-radius: 13px;
}
.mouse-stage:focus-visible { outline-offset: 2px; }
.mouse-drawing { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mouse-svg { width: min(100%, 400px); height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(31, 35, 40, .06)); }
.mouse-body { fill: url(#mouse-body-fill); stroke: #d6d0c4; stroke-width: 1.4; }
.mouse-zone { fill: #f6f2e9; stroke: #d1cabd; stroke-width: 1.2; transition: fill .08s, stroke .08s; }
.mouse-zone.main-zone { fill: #fcf9f3; }
.mouse-zone.wheel-zone { fill: #e8e2d5; }
.mouse-zone.side-zone { fill: #eee9df; }
.wheel-ridge { fill: none; stroke: #b8ae9e; stroke-width: 1.3; stroke-linecap: round; }
.mouse-brand { font-size: 9px; fill: #c9c2b5; text-anchor: middle; letter-spacing: .18em; font-weight: 600; }
.side-index { font-size: 9px; fill: #7d837d; text-anchor: middle; font-weight: 600; }
.mouse-palm { fill: none; stroke: #e4ded2; stroke-width: 1; }
.mouse-svg[data-active="left"] [data-zone="left"],
.mouse-svg[data-active="middle"] [data-zone="middle"],
.mouse-svg[data-active="right"] [data-zone="right"],
.mouse-svg[data-active="back"] [data-zone="back"],
.mouse-svg[data-active="forward"] [data-zone="forward"] {
  fill: #cdeae4; stroke: var(--accent); stroke-width: 2;
}
.mouse-legend {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  width: 100%; max-width: 430px; margin-top: 12px;
}
.mouse-legend span {
  display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 7px; background: #fdfcf9;
  font-size: 10px; color: var(--muted); white-space: nowrap;
}
.mouse-legend i { width: 6px; height: 6px; border-radius: 50%; background: #b9b2a5; flex: 0 0 6px; }
.mouse-legend b { margin-left: auto; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mouse-legend span[data-state="tested"] i { background: var(--accent); }
.mouse-legend span[data-state="tested"] b { color: var(--accent-dark); }
.mouse-legend span[data-state="candidate"] { border-color: #e8c9a5; background: var(--candidate-soft); }
.mouse-legend span[data-state="candidate"] i { background: var(--candidate); }
.mouse-legend span[data-state="candidate"] b { color: var(--candidate); }
.mouse-legend span[data-state="unsupported"] { border-style: dashed; }
.mouse-legend span[data-state="unsupported"] i { background: transparent; border: 1px solid var(--muted); }
.stage-help { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 0; max-width: 34em; }

.scroll-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 20px; display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.scroll-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scroll-readout div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.scroll-readout span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.scroll-readout strong { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.scroll-readout small { margin-left: 3px; font-size: 10px; color: var(--muted); }
.scroll-card > p { font-size: 12px; margin: 14px 0 0; }
.scroll-card > p b { color: var(--accent-dark); }
.scroll-card .fine { color: var(--muted); font-size: 11px; }

.coverage-block { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.coverage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.coverage-head h3 { font-size: 15px; margin: 0; }
.coverage-head span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.coverage-list {
  list-style: none; padding: 0; margin: 12px 0 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.coverage-list li {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fdfcf9; font-size: 12px;
}
.coverage-list li span { min-width: 0; overflow-wrap: anywhere; }
.coverage-list li b { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.coverage-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b2a5; flex: 0 0 8px; }
.coverage-list li[data-state="tested"] .dot { background: var(--accent); }
.coverage-list li[data-state="tested"] b { color: var(--accent-dark); }
.coverage-list li[data-state="candidate"] { border-color: #e8c9a5; background: var(--candidate-soft); }
.coverage-list li[data-state="candidate"] .dot { background: var(--candidate); }
.coverage-list li[data-state="candidate"] b { color: var(--candidate); }
.coverage-list li[data-state="unsupported"] { border-style: dashed; }
.coverage-list li[data-state="unsupported"] .dot { background: transparent; border: 1px solid var(--muted); }

.unsupported-details { margin-top: 14px; font-size: 12px; color: var(--muted); }
.unsupported-details summary { color: var(--ink); }
.unsupported-details p { margin: 10px 0; max-width: 70em; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-button {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--surface); font-size: 11px;
}

.double-controls {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 16px; background: var(--soft); border-radius: 12px;
}
.double-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); }
.double-controls .button { margin-left: auto; }
select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding: 10px 42px 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 9px; background-color: var(--surface); color: var(--ink); font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6660' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:hover { border-color: var(--accent); }
select:disabled { color: #7d837d; background-color: #f2efe8; cursor: not-allowed; }
#baseline-info { margin: 10px 0 0; }
#baseline-info strong { color: var(--accent-dark); }

.round-stage {
  position: relative; min-height: 230px; margin-top: 16px; padding: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 1px dashed var(--line-strong); border-radius: 13px;
  background: #fbfaf6; text-align: center; cursor: crosshair;
}
.round-stage.is-active { border-style: solid; border-color: var(--accent); background: #f3faf7; }
.round-stage.is-complete { border-style: solid; border-color: var(--line-strong); background: var(--surface); cursor: default; }
.round-meter { display: flex; align-items: baseline; gap: 8px; }
.round-meter strong { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.round-meter span { font-size: 13px; color: var(--muted); }
.round-stage p { font-size: 12px; color: var(--muted); max-width: 36em; margin: 0; }
.round-progress { width: min(320px, 100%); height: 6px; border-radius: 6px; background: #e8e3d9; overflow: hidden; margin-top: 8px; }
.round-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
.round-live { min-height: 1.6em; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.round-live.is-alert { color: var(--candidate); }
.round-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.round-verdict { padding: 16px; border-radius: 10px; background: var(--soft); }
.round-verdict[data-state="candidate"] { background: var(--candidate-soft); border: 1px solid #ead0b0; }
.verdict-label { display: block; font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.round-verdict p { margin: 0; font-size: 13px; }
.round-table { width: 100%; border-collapse: collapse; margin-top: 14px; table-layout: fixed; font-size: 12px; }
.round-table th, .round-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.round-table th { color: var(--muted); font-weight: 500; font-size: 10px; letter-spacing: .04em; }

.cps-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cps-timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cps-stage {
  margin-top: 16px; min-height: 230px; border: 1px dashed var(--line-strong); border-radius: 13px;
  background: #fbfaf6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; text-align: center; padding: 24px; user-select: none;
}
.cps-stage.is-running { border-style: solid; border-color: var(--accent); background: #f3faf7; }
.cps-stage strong { font-size: 72px; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.cps-stage > span { font-size: 12px; color: var(--muted); }
.cps-stage p { font-size: 12px; color: var(--muted); margin: 8px 0 0; max-width: 36em; }
.cps-result { margin-top: 14px; font-size: 14px; font-weight: 600; }
.health-note { margin-top: 4px; }

.result-section {
  margin-top: 26px; padding: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin-bottom: 8px; }
.section-lede { font-size: 13px; color: var(--muted); max-width: 56em; margin-bottom: 0; }
.summary-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.export-status { min-height: 1.7em; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.export-status.is-alert { color: #9a3412; }
#summary-text {
  width: 100%; min-height: 340px; margin-top: 8px; padding: 18px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfaf6;
  color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.9;
}
.sample-result { margin-top: 14px; font-size: 12px; }
.sample-result pre {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto;
  padding: 16px; background: #fbfaf6; border: 1px solid var(--line); border-radius: 9px;
  font-size: 11px; line-height: 1.8;
}

.how-section { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-note { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 26px; }
.steps article { border-top: 2px solid var(--ink); padding-top: 16px; }
.steps article > span { font-size: 10px; color: var(--candidate); letter-spacing: .06em; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.limits-block { margin-top: 34px; padding: 20px 22px; background: var(--soft); border-radius: 12px; }
.limits-block h3 { font-size: 15px; margin-bottom: 8px; }
.limits-block ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 12px; line-height: 1.9; }

.faq-section {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px;
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line);
}
.faq-section h2 { margin-bottom: 10px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.faq-list p { font-size: 13px; color: var(--muted); margin: 12px 0 2px; }
.bottom-note { text-align: center; font-size: 11px; color: var(--muted); margin: 44px 0; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 11px; color: var(--muted);
}
.site-footer .brand { font-size: 17px; color: var(--ink); }
.site-footer a:last-child { text-decoration: none; }

.document { max-width: 800px; padding: 56px 0; }
.document h1 { font-size: 40px; }
.document h2 { font-size: 20px; margin-top: 30px; }
.document p, .document li { font-size: 14px; line-height: 1.9; color: #3c423d; }
.document .back-link { display: inline-block; margin-top: 20px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 44px); }
  .intro { gap: 30px; }
  .mouse-stage { grid-template-columns: 1fr; }
  .scroll-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .scroll-card > p { margin: 0; }
  .scroll-readout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 22px; padding: 38px 0 28px; }
  .intro-note { max-width: 420px; }
  .site-header nav { gap: 16px; }
  .site-header nav > a:nth-child(2) { display: none; }
  .panel { padding: 22px; }
  .workspace-bar { align-items: flex-start; }
  .coverage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { gap: 20px; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { min-height: 66px; gap: 10px; }
  .site-header nav { gap: 12px; font-size: 11px; }
  .site-header nav > a { white-space: nowrap; }
  .local-badge, .brand-tag { display: none; }
  .brand { font-size: 21px; }
  .intro h1 { font-size: 46px; }
  .lede { font-size: 14px; }
  .mobile-break { display: block; }
  .intro-actions .button { flex: 1; }
  .intro-note { padding: 16px; }
  .workspace-bar { padding: 12px; gap: 10px; flex-direction: column; align-items: stretch; }
  .modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes button { padding: 9px 4px; font-size: 12px; }
  .workspace-actions { justify-content: space-between; padding: 0 4px; }
  .panel { padding: 18px 12px; }
  .panel-heading { flex-direction: column; gap: 8px; }
  .panel-heading h2 { font-size: 21px; }
  .panel-hint { display: none; }
  .mouse-stage { padding: 13px; }
  .mouse-svg { width: min(100%, 340px); }
  .stage-help { font-size: 10px; padding-inline: 4px; }
  .scroll-card { padding: 14px; }
  .coverage-list { grid-template-columns: 1fr 1fr; gap: 6px; }
  .coverage-list li { padding: 7px 8px; font-size: 11px; }
  .double-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  select { font-size: 16px; }
  .double-controls label { min-width: 0; }
  .double-controls .button { grid-column: 1 / -1; margin-left: 0; width: 100%; }
  #calibrate { grid-column: 1 / -1; width: 100%; }
  .round-stage { min-height: 200px; padding: 20px 14px; }
  .round-meter strong { font-size: 54px; }
  .round-stage p { font-size: 11px; }
  .cps-stage { min-height: 210px; }
  .cps-stage strong { font-size: 60px; }
  .result-section { padding: 20px 14px; }
  .section-heading { flex-direction: column; gap: 14px; }
  .section-heading h2 { font-size: 23px; }
  .summary-actions { width: 100%; }
  .summary-actions .button { flex: 1; }
  #summary-text { min-height: 300px; padding: 12px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps article { border-top-width: 1px; padding-top: 12px; }
  .how-section, .faq-section { margin-top: 38px; padding-top: 24px; }
  .limits-block { padding: 16px; }
  .site-footer { flex-wrap: wrap; gap: 10px; }
  .site-footer > span { order: 3; width: 100%; }
  .document { padding: 34px 0; }
  .document h1 { font-size: 30px; }
  .round-table { font-size: 11px; }
  .round-table th, .round-table td { padding: 8px 4px; }
}

@media (max-width: 700px) {
  .mouse-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .mouse-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro h1 { font-size: 40px; }
  .coverage-list { grid-template-columns: 1fr; }
  .modes button { font-size: 11px; }
  .double-controls { grid-template-columns: 1fr; }
  .double-controls .button, #calibrate { grid-column: auto; }
  .round-table th, .round-table td { font-size: 10px; padding: 7px 3px; }
  .summary-actions { flex-direction: column; }
  .scroll-card { grid-template-columns: 1fr; }
}

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