[hidden] { display: none !important; }
.field { padding-bottom: 40px; }
.field h1 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); max-width: 24ch; }
.field .card { margin-bottom: 16px; }
.field .card h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.who { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.who h1 { margin: 0; }
.who .eyebrow { margin-bottom: 6px; }
.next { font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tabs button { font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.tabs button[aria-current="true"] { background: var(--tokens); border-color: var(--tokens); color: #fff; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cat { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--border); font-weight: 600; margin: 0; cursor: pointer; }
.cat input { width: auto; }
.cat.red { border-color: #C0392B; }
.cat.yellow { border-color: #D4A017; }
.cat.green { border-color: #2F7A3D; }
.cat.black { border-color: var(--ink); }
.cat:has(input:checked) { background: var(--surface-2); }
.pill.bad { background: color-mix(in srgb, #C0392B 16%, transparent); color: #C0392B; }
.card.alert { border-color: #C0392B; }
.stats { grid-template-columns: repeat(3, 1fr); }
.recent-head { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.foot { padding: 24px 20px 40px; border-top: 1px solid var(--border); }
.foot code { font-size: .85em; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .who { flex-direction: column; }
  .tabs button { flex: 1 1 30%; padding: 8px 6px; }
}
.handover { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.pending { margin: 12px 0; border-color: var(--tokens); }
.pending p { margin-top: 0; }
.grid2.tight { gap: 12px; }
.xfer { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 55%, transparent); display: grid; place-items: center; padding: 16px; }
.xfer-box { background: var(--surface); border-radius: 16px; padding: 20px; width: min(480px, 100%); max-height: 100%; overflow: auto; }
.xfer-box h2 { font-size: 1.4rem; }
.qr { background: #fff; border-radius: 12px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
#xfer-video { width: 100%; border-radius: 12px; background: #000; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0; }
.meter span { display: block; height: 100%; width: 0; background: var(--tokens); }
.station-list { list-style: none; padding: 0; margin: 8px 0; }
.station-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.station-row > div:first-child { display: grid; }
.station-code { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; }
.station-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { white-space: nowrap; }
@media (max-width: 640px) {
  td .pill { white-space: normal; display: inline-block; }
  th, td { padding: 8px 6px; }
}
