/* RailWait: the visual language of the railroad itself. Signal navy, sign amber and tall
   condensed lettering, over a real photograph of the crossing. Red and green mean status. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b2239;
  --sun: #ffb81c;
  --sun-strong: #f2a900;
  --sun-text: #a86f00;

  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #e8ecf1;
  --text: #0f1e2d;
  --muted: #4f5f6e;
  --border: #dde3ea;
  --blocked: #b3121d;
  --clear: #0e7a4b;
  --data: #1f6fa8;
  --heat-empty: #e8ecf1;
  --heat-low: #e1eef7;
  --focus: #0b2239;
  --card-shadow: 0 1px 2px rgba(11, 34, 57, 0.06), 0 8px 24px rgba(11, 34, 57, 0.06);
  --glance-shadow: 0 2px 4px rgba(11, 34, 57, 0.08), 0 16px 36px rgba(11, 34, 57, 0.16);
  --band: #0b2239;

  /* The status colors stay the same in both themes, like a real sign. */
  --plate-blocked: #b3121d;
  --plate-clear: #0e7a4b;
  --plate-unknown: #2e4258;

  --radius: 12px;
  --sign: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sun-text: #ffb81c;
    --bg: #0a1522;
    --surface: #122131;
    --surface-2: #1a2c3f;
    --text: #eef3f8;
    --muted: #a8b7c6;
    --border: #223548;
    --blocked: #ff8a7a;
    --clear: #7bd6a2;
    --data: #5aa7d6;
    --heat-empty: #1d3043;
    --heat-low: #1d3043;
    --focus: #eef3f8;
    --card-shadow: none;
    --glance-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    --band: #0e2a45;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --sun-text: #ffb81c;
  --bg: #0a1522;
  --surface: #122131;
  --surface-2: #1a2c3f;
  --text: #eef3f8;
  --muted: #a8b7c6;
  --border: #223548;
  --blocked: #ff8a7a;
  --clear: #7bd6a2;
  --data: #5aa7d6;
  --heat-empty: #1d3043;
  --heat-low: #1d3043;
  --focus: #eef3f8;
  --card-shadow: none;
  --glance-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  --band: #0e2a45;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.topbar a:focus-visible, .actionbar a:focus-visible, .hero a:focus-visible, .band a:focus-visible, .band summary:focus-visible, .urgent a:focus-visible {
  outline-color: var(--sun);
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* --- top bar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
  color: #fff;
  padding-top: env(safe-area-inset-top);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; flex: none; }

.wordmark {
  font-family: var(--sign);
  font-weight: 700;
  font-style: italic;
  font-size: 2.05rem;
  letter-spacing: 0.012em;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark b { font-weight: 700; color: var(--sun); }

.topnav {
  display: none;
  gap: 26px;
  margin-right: auto;
  margin-left: 26px;
}

.topnav a {
  color: #d5e0ea;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.topnav a:hover { color: #fff; }

.top-actions { display: none; gap: 10px; align-items: center; }

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: var(--sun-strong); }
.btn-line { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-line:hover { border-color: #fff; }

.demo-note {
  margin: 12px auto;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- the status, across the whole page --- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--plate-unknown);
  color: #fff;
  transition: background-color 0.3s ease;
}

.hero[data-state="blocked"] { background: var(--plate-blocked); }
.hero[data-state="clear"] { background: var(--plate-clear); }

/* The gate arm's red and white, across the top while the crossing is blocked. */
.hero[data-state="blocked"]::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(-45deg, #ffffff 0 16px, #e0262f 16px 32px);
}

/* The photo fades into the status color. It is centered on the crossing, so the marker
   stays on it however the photo is cropped. */
.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 214px;
  -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 42%, transparent 82%);
}

.hero-photo picture, .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo img { object-fit: cover; object-position: 50% 50%; }

.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(0, 0, 0, 0.55);
}

.hero[data-state="blocked"] .pin { border-color: #ff5b4a; color: #ff5b4a; }
.hero[data-state="clear"] .pin { border-color: #4be08a; }

.hero[data-state="blocked"] .pin::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid currentColor;
  border-radius: 50%;
  animation: pin-pulse 2.2s ease-out infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.hero-in {
  position: relative;
  z-index: 2;
  padding-block: 146px 62px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: clamp(0.82rem, 3.55vw, 0.95rem);
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.status-word {
  margin: 0;
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(5.2rem, 27vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0.002em;
  text-transform: uppercase;
}

.hero[data-state="unknown"] .status-word,
.hero[data-state="loading"] .status-word { font-size: clamp(3.3rem, 15vw, 4.8rem); line-height: 0.96; }

.status-detail {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-detail:empty { display: none; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.hero-foot:has(span:first-child:empty):has(span:last-child:empty) { display: none; }

.photo-note {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero[data-state="blocked"] .photo-note { top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hero { transition: none; }
  .hero[data-state="blocked"] .pin::after { animation: none; opacity: 0; }
}

/* --- at a glance: the answers, in plain words --- */

.glance {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -32px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--glance-shadow);
  overflow: hidden;
}

.tile {
  padding: 15px 16px 16px;
  min-width: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.tile:nth-child(odd) { border-left: 0; }
.tile:nth-child(-n + 2) { border-top: 0; }

.tile-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.tile-value {
  margin: 2px 0 2px;
  font-family: var(--sign);
  font-weight: 700;
  font-size: 2.15rem;
  line-height: 1.04;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}

.tile-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.tile-note:empty { display: none; }

.sponsor {
  margin: 12px 0 0;
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 1rem;
}

.sponsor a { color: inherit; font-weight: 600; }

/* --- live numbers, once the camera is running --- */

[data-camera="waiting"] .live-only { display: none; }

.live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 0;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 14px;
}

.panel h2, .safe h2, .band h2, .urgent h2 {
  margin: 0;
  font-family: var(--sign);
  font-weight: 700;
  font-size: 2.05rem;
  letter-spacing: 0.005em;
  line-height: 1.08;
}

.panel-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note:empty { display: none; }

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.rail {
  position: relative;
  height: 30px;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--heat-empty);
  overflow: hidden;
}

.rail-future {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(135deg, transparent 0 5px, var(--border) 5px 6px);
  opacity: 0.8;
}

.rail-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
  background: var(--blocked);
  border-radius: 2px;
}

.rail-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
}

.rail-hours {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }

@media (min-width: 620px) {
  .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stats div { min-width: 0; }

.stats dt, .fact-list dt {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-family: var(--sign);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.08;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}

.stats .stat-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.32;
}

.more { margin-top: 12px; }

.more summary {
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 600;
}

.today-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.today-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.today-list li:first-child { border-top: none; }
.today-list .length { color: var(--muted); white-space: nowrap; }
.today-list .ongoing .length { color: var(--blocked); font-weight: 600; }
.today-list .empty { color: var(--muted); justify-content: flex-start; }

.heatmap {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 32px repeat(24, minmax(0, 1fr));
  gap: 2px;
  font-size: 0.74rem;
  color: var(--muted);
}

.heatmap .day { align-self: center; font-size: 0.78rem; }

.heatmap .cell {
  aspect-ratio: 1 / 1.25;
  border-radius: 2px;
  background: var(--heat-empty);
}

.heatmap .cell.now { outline: 2px solid var(--text); outline-offset: -1px; }

.heatmap .hour { white-space: nowrap; overflow: visible; }

.heat-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.heat-legend .swatch { width: 14px; height: 14px; border-radius: 2px; }

/* --- the federal record --- */

.band {
  --text: #ffffff;
  --muted: #c2d0dd;
  --border: rgba(255, 255, 255, 0.2);
  --data: #ffb81c;
  --focus: #ffb81c;
  margin-top: 28px;
  padding-block: 40px 42px;
  background: var(--band);
  color: var(--text);
}

.band h2 { font-size: 2.7rem; }

.record-lead {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 1.15rem;
}

.band .stats-4 { margin-top: 26px; }
.band .stats dt { color: #ffffff; }
.band .stats dd { color: var(--sun); font-size: 3.6rem; line-height: 1; }

.chart-title {
  margin: 28px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  height: 150px;
  margin-top: 8px;
  border-bottom: 1px solid var(--border);
}

.bar-slot {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1px;
}

.bar {
  width: 100%;
  max-width: 30px;
  background: var(--data);
  border-radius: 2px 2px 0 0;
}

.bar-peak {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bars-hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.numbers {
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 0.97rem;
  font-variant-numeric: tabular-nums;
}

.numbers th, .numbers td {
  padding: 4px 6px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
}

.numbers td.count { text-align: right; }

/* --- stay safe --- */

.safe { margin-top: 40px; }

.safe h2 { font-size: 2.7rem; }

.family-lead { margin: 6px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

.tips {
  list-style: none;
  counter-reset: tip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
}

@media (min-width: 640px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; } }
@media (min-width: 1000px) { .tips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tips li {
  counter-increment: tip;
  font-size: 1rem;
}

.tips li::before {
  content: counter(tip);
  display: block;
  margin-bottom: 2px;
  color: var(--sun-text);
  font-family: var(--sign);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
}

.tips strong { display: block; margin-bottom: 2px; font-size: 1.05rem; }

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.urgent {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--plate-blocked);
  color: #fff;
  align-self: start;
}

.urgent h2 { font-size: 2.3rem; }
.urgent p { margin: 8px 0 18px; font-size: 1.05rem; }

.call-btn {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--plate-blocked);
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
}

.fact-list {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 560px) { .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }

.fact-list div {
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.fact-list dd { margin: 1px 0 0; font-size: 1rem; }

/* --- hover detail for charts --- */

.tip {
  position: fixed;
  z-index: 40;
  max-width: 230px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.3;
  pointer-events: none;
}

[data-tip] { cursor: default; }

/* --- footer --- */

.footer {
  margin-top: 40px;
  padding-block: 28px 30px;
  background: var(--navy);
  color: #c2d0dd;
  font-size: 0.94rem;
}

.footer p { margin: 0 0 8px; }
.footer strong { color: #fff; }
.footer .made { color: #fff; font-family: var(--sign); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.footer .fine { font-size: 0.88rem; }

/* --- the buttons a driver needs, within thumb reach --- */

.actionbar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--navy);
  box-shadow: 0 -6px 18px rgba(11, 34, 57, 0.28);
}

.actionbar .btn { padding-block: 13px; font-size: 1.05rem; }
.actionbar .btn-sun { flex: 1 1 auto; }

body:not(.plain) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

/* --- wider screens --- */

@media (min-width: 700px) {
  .top-actions { display: flex; }
  .actionbar { display: none; }
  body:not(.plain) { padding-bottom: 0; }
}

@media (min-width: 760px) {
  .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { border-top: 0; }
  .tile:nth-child(odd) { border-left: 1px solid var(--border); }
  .tile:first-child { border-left: 0; }
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero { display: flex; align-items: center; min-height: 480px; }
  .hero-photo {
    left: auto;
    bottom: 0;
    width: 70%;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  }
  .pin { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .hero-in { padding-block: 44px 70px; }
  .eyebrow { font-size: 1.05rem; }
  .status-word { font-size: clamp(8rem, 13.4vw, 11.6rem); }
  .hero[data-state="unknown"] .status-word,
  .hero[data-state="loading"] .status-word { font-size: clamp(5rem, 7.6vw, 6.8rem); }
  .status-detail { font-size: 1.45rem; }
  .hero-foot { font-size: 0.96rem; }
  .photo-note { top: auto; bottom: 44px; right: 16px; }
  .hero[data-state="blocked"] .photo-note { top: auto; }
  .tile { padding: 18px 20px 20px; }
  .tile-value { font-size: 2.5rem; }
  .live-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

@media (max-width: 420px) {
  .heatmap { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .heatmap .hour { font-size: 0.64rem; }
  .panel { padding: 16px; }
  .band h2, .safe h2 { font-size: 2.4rem; }
  .band .stats dd { font-size: 3rem; }
  .wordmark { font-size: 1.9rem; }
}

/* --- the "Stuck at the crossing" page --- */

.report-page { max-width: 640px; padding-block: 16px 36px; }

.place { margin: 0; color: var(--muted); font-size: clamp(0.82rem, 3.55vw, 0.97rem); text-wrap: balance; }

.report-page .demo-note { margin: 10px 0 0; }

.safety {
  margin: 12px 0 0;
  padding: 11px 15px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 1rem;
}

.report { margin-top: 12px; display: grid; gap: 12px; }

.report-btn {
  width: 100%;
  min-height: 44vh;
  max-height: 420px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px 18px;
  text-align: center;
  font: inherit;
  cursor: pointer;
  background: var(--plate-blocked);
  color: #fff;
  box-shadow: var(--card-shadow);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.08s ease;
}

.report-btn:active { transform: scale(0.985); }
.report-btn:disabled { opacity: 0.6; cursor: wait; }
.report-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.report[data-state="stuck"] .report-btn { background: var(--plate-clear); }
.report[data-state="done"] .report-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: default; }

.report-big {
  font-family: var(--sign);
  font-size: clamp(3.4rem, 16vw, 4.8rem);
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

.report-sub { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.report-after { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 1rem; cursor: pointer; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; }
.danger-btn { background: var(--plate-blocked); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.plain-btn { display: inline-block; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.plain-btn:hover { border-color: var(--muted); }

.report-msg { margin: 10px 2px 0; min-height: 1.2em; font-size: 1rem; color: var(--blocked); }
.activity { margin: 8px 2px 0; color: var(--muted); font-size: 1.02rem; }
#turnstile { margin-top: 8px; }

.report-notes {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.report-notes p { margin: 0 0 8px; }
.report-notes strong { color: var(--text); }
.report-notes .fine { font-size: 0.88rem; }

/* --- page not found --- */

.lost { padding: 70px 8px; text-align: center; }
.lost h1 { margin: 0; font-family: var(--sign); font-weight: 700; font-size: clamp(4rem, 16vw, 6.5rem); line-height: 0.95; text-transform: uppercase; }
.lost p { margin: 10px 0 20px; color: var(--muted); font-size: 1.1rem; }
