:root { color-scheme: light; --ink: #17212b; --muted: #596670; --line: #d5dcdf; --accent: #006eaf; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; letter-spacing: 0; }
main { max-width: 1440px; margin: auto; padding: 18px; }
nav, .actions { display: flex; flex-wrap: wrap; gap: 18px; }
nav { margin-bottom: 18px; font-size: 14px; }
a { color: var(--accent); text-underline-offset: 4px; }
a[aria-current] { color: var(--ink); font-weight: 650; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
p { line-height: 1.45; }
header p { color: var(--muted); margin: 0 0 18px; }
.filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.3fr) minmax(180px, 1fr) auto; gap: 10px; align-items: end; }
label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); min-width: 0; }
select, input, button { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px; min-height: 42px; min-width: 0; max-width: 100%; }
input, select { width: 100%; }
button { cursor: pointer; }
button:hover { background: #f1f4f5; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #008398; outline-offset: 3px; }
.scope { padding: 12px 0; margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 1000px; }
.results-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); min-height: 58px; flex-wrap: wrap; }
.results-header p { margin: 10px 0; }
.results-header a { overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 28px; align-items: start; }
.workspace:has(aside[hidden]) { grid-template-columns: minmax(0, 1fr); }
.route { padding: 17px 0; border-bottom: 1px solid var(--line); }
.route[aria-current="true"] { border-left: 4px solid #087f5b; padding-left: 12px; }
.route p { margin: 6px 0; overflow-wrap: anywhere; }
.route .code { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.route .streets { font-size: 14px; }
.route .counts { font-size: 14px; color: var(--muted); }
.route .coverage { font-size: 13px; color: #745020; }
.route .coverage.reported { color: #087f5b; }
.route .actions { margin-top: 10px; align-items: center; font-size: 14px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; }
.pagination span { font-size: 14px; color: var(--muted); }
aside { position: sticky; top: 16px; padding: 18px 0; min-width: 0; }
aside p { font-size: 14px; overflow-wrap: anywhere; }
#selected-id, #map-status { color: var(--muted); }
#route-map { height: 360px; border: 1px solid var(--line); border-radius: 6px; }
#map-status:empty { display: none; }
footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  main { padding: 12px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search { grid-column: 1 / -1; grid-row: 1; }
  #reset { grid-column: 1 / -1; }
  .workspace { display: flex; flex-direction: column; gap: 0; }
  .workspace > section, aside { width: 100%; }
  aside { position: static; order: -1; border-bottom: 1px solid var(--line); }
  #route-map { height: 290px; }
  .actions { gap: 12px; }
}
