:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #1e2723;
  background: #f6f8f7;
  --ink: #1e2723;
  --muted: #52645c;
  --line: #d6e1da;
  --mint: #72e3ad;
  --pine: #174f38;
}
* { box-sizing: border-box; }
::selection { color: var(--ink); background: var(--mint); }
:focus-visible { outline: 3px solid #167c57; outline-offset: 4px; }
body { margin: 0; }
.site, main { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 52px); }
.site { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); }
.site strong { font-size: 1.05rem; letter-spacing: -.02em; }
a { color: var(--pine); text-underline-offset: 4px; }
main { padding-bottom: 32px; }
.intro { margin-block: clamp(30px, 5vw, 64px) 28px; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -.035em; line-height: 1.06; font-weight: 720; text-wrap: balance; }
.intro p { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(265px, 1fr); gap: 22px; align-items: start; }
.route, aside { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.route-head, aside { padding: 20px; }
.route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
h2 { font-size: 1.18rem; letter-spacing: -.02em; }
#direction, .status, dt, .zone-meta { color: var(--muted); font-size: .875rem; }
#profile { display: block; width: 100%; height: clamp(215px, 28vw, 332px); background: #edf5f0; }
.metrics { display: flex; gap: 32px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
dd { margin-top: 4px; font-size: 1rem; font-weight: 650; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
button, select { font: inherit; color: inherit; border: 1px solid transparent; border-radius: 8px; min-height: 42px; padding: 8px 12px; }
button { background: var(--mint); font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { background: #98ecc2; }
button.secondary, select { background: white; border-color: var(--line); }
button.secondary:hover:not(:disabled) { background: #edf5f0; }
button:disabled { cursor: default; opacity: .52; }
.controls label { margin-left: auto; font-size: .875rem; color: var(--muted); }
.status { margin-top: 8px; min-height: 2.8em; line-height: 1.4; }
ol { margin: 10px 0 0; padding: 0; list-style: none; }
li { padding: 12px 0; border-top: 1px solid var(--line); }
li[data-state="playing"] { color: var(--pine); background: #e8f7ee; margin-inline: -8px; padding-inline: 8px; border-radius: 6px; }
.zone-name { font-weight: 650; line-height: 1.3; }
.zone-meta { display: block; margin-top: 4px; }
.transcript { margin-top: 8px; font-size: .875rem; line-height: 1.45; }
.error { color: #942626; padding: 0 20px 16px; }
@media (max-width: 800px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 410px) {
  .route-head, aside, .controls, .metrics { padding-inline: 14px; }
  .route-head { flex-wrap: wrap; }
  .controls label { margin-left: 0; }
  .metrics { gap: 18px; }
}
