:root {
  --road-navy: #10243e;
  --route-blue: #1677a7;
  --signal-amber: #f2b84b;
  --mist-white: #f3f7f8;
  --lane-white: #ffffff;
  --status-red: #bd3e45;
  --ink: #16202a;
  --muted: #64717e;
  --line: #cbd6db;
  color-scheme: light;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  background: var(--mist-white);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 20rem; background: linear-gradient(180deg, var(--road-navy) 0 18rem, var(--mist-white) 18rem); }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--signal-amber); outline-offset: 2px; }
.shell { width: min(76rem, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 4rem; }
.masthead { color: var(--lane-white); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .6rem; color: #9fd9ee; font: 700 .76rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 15ch; font: 750 clamp(2.2rem, 6vw, 4.7rem)/.94 "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif; letter-spacing: -.045em; }
.masthead__note { max-width: 29rem; margin: 0; padding-left: 1rem; border-left: .3rem solid var(--signal-amber); color: #d9e9ef; line-height: 1.55; }
.panel { background: var(--lane-white); border: 1px solid #dce5e8; box-shadow: 0 1.2rem 3rem rgba(5, 25, 43, .12); }
.filters { display: grid; grid-template-columns: minmax(10rem, 1.1fr) minmax(10rem, 1fr) minmax(9rem, .8fr) minmax(9rem, .8fr) auto; gap: .9rem; align-items: end; padding: 1.25rem; border-top: .35rem solid var(--route-blue); }
.field { display: grid; gap: .35rem; }
.field label { color: #42515e; font-size: .8rem; font-weight: 700; }
.field select, .field input { width: 100%; min-height: 2.8rem; padding: .55rem .7rem; border: 1px solid #aebcc3; border-radius: .25rem; background: #fff; color: var(--ink); }
.field[hidden] { display: none; }
.action { min-height: 2.8rem; padding: .55rem 1.15rem; border: 0; border-radius: .25rem; background: var(--road-navy); color: #fff; font-weight: 750; cursor: pointer; }
.action:hover { background: var(--route-blue); }
.report-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.5rem 1.25rem .75rem; }
h2 { margin: 0; font: 750 1.25rem/1.2 "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif; }
.period { margin: 0; color: var(--muted); font: 600 .82rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1.25rem; border-top: 1px solid #e2e9ec; text-align: right; vertical-align: middle; }
th { color: #53616d; background: #f8fafb; font-size: .75rem; letter-spacing: .02em; }
th:first-child, td:first-child, th:nth-last-child(2), td:nth-last-child(2), th:last-child, td:last-child { text-align: left; }
.plate { font-weight: 800; letter-spacing: .025em; white-space: nowrap; }
.metric { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-style: italic; }
.status { padding: 2rem 1.25rem; text-align: center; color: var(--muted); }
.status--error { color: var(--status-red); }
.noscript { color: #fff; background: var(--status-red); padding: .75rem 1rem; }
@media (max-width: 54rem) {
  body { background-size: 100% 22rem; }
  .masthead { grid-template-columns: 1fr; align-items: start; }
  .filters { grid-template-columns: 1fr 1fr; }
  .action { grid-column: 1 / -1; }
}
@media (max-width: 42rem) {
  .shell { width: min(100% - 1rem, 76rem); padding-top: 1.5rem; }
  .filters { grid-template-columns: 1fr; }
  .action { grid-column: auto; }
  .report-head { display: grid; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: grid; gap: .75rem; padding: .75rem; background: #edf2f4; }
  tr { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #d7e0e4; }
  td { display: grid; gap: .25rem; padding: .75rem; border-top: 1px solid #e4eaed; text-align: left; }
  td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 700; }
  td:first-child, td:nth-last-child(2), td:last-child { grid-column: 1 / -1; }
  td:first-child { border-top: .3rem solid var(--route-blue); }
}
@media (prefers-reduced-motion: no-preference) {
  .panel { animation: arrive .35s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(.5rem); } }
}
