/* Layout: relay bar across the top (who's running with Kim, mile 0→100), map + segment panel side by side, elevation profile under, full aid-station plan last. */
:root {
  --bg: #f3f1ea;
  --panel: #fbfaf6;
  --ink: #1d2320;
  --muted: #5d6560;
  --rule: #d9d5c8;
  --soft: #e9e6dc;
  --kim: #2e3a36;
  --shea: #c8372d;
  --amber: #d98200;
  --abby: #8a3fc0;
  --paul: #0a7aa8;
  --crew: #16795c;
  --em1: #b3261e;
  --em2: #7f1612;
  --cut: #8b1a1a;
  --night: #26304a;
  --day: #f2d27a;
  --warn: #b3261e;
  --ok: #2f7a4a;
  --tile-filter: none;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141816;
    --panel: #1b201e;
    --ink: #e8e6df;
    --muted: #9aa29d;
    --rule: #333b37;
    --soft: #252b28;
    --kim: #c9d3cf;
    --shea: #ff6a5c;
    --amber: #ffb13b;
    --abby: #c286f2;
    --paul: #43b8e8;
    --crew: #3fc295;
    --em1: #8e2019;
    --em2: #4e0f0b;
    --cut: #e0625c;
    --night: #0b0f1c;
    --day: #c9a94c;
    --warn: #ff7a70;
    --ok: #6fcf8f;
    --tile-filter: brightness(0.72) contrast(1.08) saturate(0.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141816;
  --panel: #1b201e;
  --ink: #e8e6df;
  --muted: #9aa29d;
  --rule: #333b37;
  --soft: #252b28;
  --kim: #c9d3cf;
  --shea: #ff6a5c;
  --amber: #ffb13b;
  --abby: #c286f2;
  --paul: #43b8e8;
  --crew: #3fc295;
  --em1: #8e2019;
  --em2: #4e0f0b;
  --cut: #e0625c;
  --night: #0b0f1c;
  --day: #c9a94c;
  --warn: #ff7a70;
  --ok: #6fcf8f;
  --tile-filter: brightness(0.72) contrast(1.08) saturate(0.85);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  margin: 0;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
h1,
h2 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
  line-height: 1;
}
.mono,
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
header h1 {
  font-size: clamp(38px, 6vw, 64px);
  text-transform: uppercase;
}
header h1 span {
  color: var(--muted);
  font-weight: 600;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.fact b {
  display: block;
  font: 600 20px/1.1 var(--f-mono);
  font-variant-numeric: tabular-nums;
}

/* relay bar */
.relay {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.relay-bar {
  position: relative;
  display: flex;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.relay-bar button {
  all: unset;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 8px;
  min-width: 0;
  color: #fff;
  font: 600 13px/1.1 var(--f-body);
  white-space: nowrap;
  overflow: hidden;
  transition:
    filter 0.15s,
    opacity 0.15s;
}
.relay-bar button span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.relay-bar button small {
  display: block;
  font: 400 12px/1.2 var(--f-mono);
  opacity: 0.85;
}
.relay-bar button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}
.relay-bar button[data-who="kim"] {
  background: var(--kim);
  color: var(--bg);
}
.relay-bar.dim button:not(.on) {
  opacity: 0.28;
}
.relay-scale {
  position: relative;
  height: 14px;
  font: 400 12px/14px var(--f-mono);
  color: var(--muted);
}
.relay-scale i {
  position: absolute;
  transform: translateX(-50%);
  font-style: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  font: 500 13px/1.2 var(--f-body);
}
.chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.chip .sw {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}
.chip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* main grid */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .main {
    grid-template-columns: minmax(0, 1fr);
  }
}
#map {
  height: 620px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--soft);
  min-width: 0;
}
@media (max-width: 900px) {
  #map {
    height: 62vh;
    min-height: 380px;
  }
}
.leaflet-tile-pane {
  filter: var(--tile-filter);
}
.leaflet-container {
  font: 13px/1.4 var(--f-body);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--panel);
  color: var(--ink);
  border-radius: 4px;
}
.leaflet-popup-content {
  margin: 12px 14px;
  min-width: 220px;
}
.leaflet-bar a {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--rule);
}
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--panel) 85%, transparent) !important;
  color: var(--muted);
}
.leaflet-control-attribution a {
  color: var(--muted);
}
.as-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 600 12px/1 var(--f-mono);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.as-pin.crew {
  background: var(--ink);
  color: var(--panel);
}
.as-pin.handoff {
  box-shadow:
    0 0 0 3px var(--panel),
    0 0 0 6px var(--c),
    0 1px 4px rgba(0, 0, 0, 0.4);
}
.as-pin.water {
  width: 20px;
  height: 20px;
  border-style: dashed;
}
.mile-lbl {
  font: 600 12px/1 var(--f-mono);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 3px;
  white-space: nowrap;
}
.hover-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--day);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--panel);
}
.pop h3 {
  font: 800 18px/1.1 var(--f-display);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.pop table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.pop td {
  padding: 2px 6px 2px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}
.pop .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.tag {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--ink);
  white-space: nowrap;
}
.tag.crew {
  background: var(--ink);
  color: var(--bg);
}
.tag.pacer {
  background: var(--c);
  color: #fff;
}

/* side panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: auto;
  max-height: 620px;
}
@media (max-width: 900px) {
  .panel {
    max-height: none;
  }
}
.panel h2 {
  font-size: 34px;
  text-transform: uppercase;
  color: var(--c, var(--ink));
}
.panel .sub {
  font: 500 13px/1.35 var(--f-mono);
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.stats div {
  background: var(--panel);
  padding: 8px;
}
.stats b {
  display: block;
  font: 600 19px/1.1 var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.stats span {
  font: 400 12px/1.2 var(--f-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.legs li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}
.legs li:first-child {
  border-top: 0;
}
.legs .t {
  font: 600 13px/1.2 var(--f-mono);
}
.legs .n {
  font-weight: 600;
  min-width: 0;
}
.legs .n small {
  display: block;
  font: 400 12px/1.3 var(--f-body);
  color: var(--muted);
}
.legs .m {
  font: 400 12px/1.2 var(--f-mono);
  color: var(--muted);
  text-align: right;
}
.note {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.note b {
  font-weight: 600;
}
.callout.plain {
  border-left: 0;
}
.callout {
  border-left: 3px solid var(--c, var(--ink));
  padding: 6px 10px;
  background: var(--soft);
  font-size: 13px;
  margin: 0;
}
.pacer-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.pitem {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  overflow: hidden;
}
.pitem:hover {
  border-color: var(--muted);
}
.pitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--c);
} /* color bar runs the full height, so it grows when the card opens */
.pcard {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 16px;
}
.pitem.open .pcard b {
  color: var(--c);
}
.pdetail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 12px 16px;
}
.pcard:focus-visible {
  outline: 2px solid var(--ink);
}
.pcard b {
  font: 800 22px/1 var(--f-display);
  text-transform: uppercase;
}
.pcard small {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
}
.pcard .mi {
  font: 600 15px/1 var(--f-mono);
  text-align: right;
}
.pcard .mi small {
  font-weight: 400;
}

/* elevation */
.profile {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.profile-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  align-items: baseline;
}
.profile-head h2 {
  font-size: 24px;
  text-transform: uppercase;
}
#readout {
  font: 500 13px/1.3 var(--f-mono);
  color: var(--ink);
  min-height: 1.3em;
}
#readout .w {
  font-weight: 600;
}
.svgbox {
  overflow-x: auto;
}
#elev {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
  touch-action: pan-x;
}
#elev text {
  font-family: var(--f-mono);
  fill: var(--muted);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font: 400 12px/1.4 var(--f-mono);
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 14px;
  height: 8px;
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 1px;
}

/* aid table */
.plan h2 {
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tablebox {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
}
table.aid {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 13.5px;
}
.aid th {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 10px;
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
  position: sticky;
  top: 0;
}
.aid td {
  padding: 8px 10px;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}
.aid td.num,
.aid th.num {
  text-align: right;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;   /* keep "7:00 AM" on one line; the table scrolls sideways instead */
}
.aid td.cut {
  color: var(--cut);
  font-weight: 600;
}
.aid td.numl,
.aid th.numl {
  text-align: left;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.aid tr {
  cursor: pointer;
}
.aid tr:hover td {
  background: var(--soft);
}
.aid tr.sel td {
  background: color-mix(in srgb, var(--c) 14%, var(--panel));
}
.aid .who {
  display: inline-block;
  width: 8px;
  height: 22px;
  border-radius: 2px;
  background: var(--c);
  vertical-align: middle;
}
.aid .st {
  font-weight: 600;
}
.aid .st small {
  font-weight: 400;
  color: var(--muted);
}
.buf {
  font-weight: 600;
}
.buf.tight {
  color: var(--warn);
}
.buf.fine {
  color: var(--ok);
}
.yes {
  font-weight: 600;
}
.aid .st-fac {
  display: inline-flex;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.aid .st-fac .fac-i svg {
  width: 17.6px;
  height: 17.6px;
} /* 80% of the 22px icons */
.aid .st-fac .fac-i {
  margin-right: 0;
}
.aid td.actual .fast {
  color: var(--ok);
  font-weight: 600;
}
.aid td.actual .slow {
  color: var(--warn);
  font-weight: 600;
}
.fac-i {
  display: inline-flex;
  vertical-align: middle;
  color: var(--ink);
  margin-right: 4px;
}
.fac-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin-top: 8px;
  font: 400 12px/1.4 var(--f-mono);
  color: var(--muted);
}
.fac-legend .fac-i {
  color: var(--muted);
  margin-right: 4px;
}
.no {
  color: var(--muted);
}
.theme-btn {
  all: unset;
  cursor: pointer;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: 500 13px/1 var(--f-body);
}
.theme-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.theme-btn:hover {
  border-color: var(--ink);
}
.sky-wx {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .sky-wx {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card h2 {
  font-size: 30px;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.note.muted {
  font-size: 12.5px;
}
.wx-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel);
}
.seg button {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  font: 500 12px/1 var(--f-body);
  color: var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.seg button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}
.seg button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.pill {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  white-space: nowrap;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 560px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles div:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
.tiles div {
  background: var(--panel);
  padding: 10px;
}
.tiles b {
  display: block;
  font: 600 22px/1.1 var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.tiles span {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tiles em {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  font-style: normal;
  color: var(--muted);
  margin-top: 2px;
}
#wxChart {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}
#wxChart text {
  font-family: var(--f-mono);
  fill: var(--muted);
}
.readout2 {
  font: 500 12.5px/1.4 var(--f-mono);
  min-height: 2.8em;
}
details.years summary {
  cursor: pointer;
  font: 500 13px/1.3 var(--f-body);
}
details.years[open] summary {
  margin-bottom: 8px;
}
table.yrs {
  min-width: 640px;
}
table.yrs tr {
  cursor: default;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: 34px;
  text-transform: uppercase;
}
.crew {
  display: flex;
  flex-direction: column;
}
.lodging {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lodging b {
  font: 600 16px/1.2 var(--f-mono);
}
.lodging-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.mini {
  all: unset;
  cursor: pointer;
  font: 500 12px/1 var(--f-body);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
}
.mini:hover {
  border-color: var(--ink);
}
.mini:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.crew-main {
  margin-bottom: 16px;
}
#crewMap {
  height: 620px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--soft);
  min-width: 0;
}
@media (max-width: 900px) {
  #crewMap {
    height: 55vh;
    min-height: 360px;
  }
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  min-width: 0;
}
@media (max-width: 900px) {
  .steps {
    max-height: none;
  }
}
.step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
}
.step:hover {
  border-color: var(--muted);
}
.step.on {
  border-color: var(--crew);
  box-shadow: inset 3px 0 0 var(--crew);
}
.step:focus-visible {
  outline: 2px solid var(--ink);
}
.step .no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--crew);
  color: #fff;
  font: 600 12px/1 var(--f-mono);
}
.step .where {
  font: 800 19px/1.05 var(--f-display);
  text-transform: uppercase;
}
.step .arr {
  font: 600 15px/1.3 var(--f-mono);
  margin-top: 2px;
}
.step .meta {
  font: 400 12px/1.45 var(--f-mono);
  color: var(--muted);
}
.step .row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-top: 5px;
}
.step a {
  font: 500 12px/1 var(--f-body);
  color: var(--crew);
}
.gap {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  padding: 0 12px 0 52px;
}
.crew-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--crew);
  color: #fff;
  border: 2px solid var(--panel);
  font: 600 12px/1 var(--f-mono);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.crew-pin.home {
  border-radius: 5px;
  background: var(--ink);
  color: var(--panel);
}
.leg-lbl {
  font: 600 12px/1 var(--f-mono);
  background: var(--panel);
  color: var(--crew);
  border: 1px solid var(--crew);
  border-radius: 3px;
  padding: 2px 4px;
  white-space: nowrap;
}
.parking h3,
.checklists h3 {
  font: 800 22px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0;
}
.park-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 8px;
}
.park-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.unlock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.inp {
  font: 13px/1.2 var(--f-body);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  width: 150px;
  max-width: 100%;
}
.inp:focus {
  outline: 2px solid var(--crew);
  outline-offset: 0;
}
.small {
  font-size: 12.5px;
}
.park-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 700px) {
  .park-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.park {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.park b {
  font: 800 17px/1.1 var(--f-display);
  text-transform: uppercase;
}
.park .visits {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
}
.pnote {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: normal;
}
.pnote.empty {
  color: var(--muted);
  font-style: italic;
}
.park textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  font: 13px/1.4 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px;
}
.park textarea:focus {
  outline: 2px solid var(--crew);
  outline-offset: 0;
}
.park .act {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 400 12px/1.2 var(--f-mono);
  color: var(--muted);
}
.park .save {
  all: unset;
  cursor: pointer;
  font: 600 12px/1 var(--f-body);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--crew);
  color: #fff;
}
.park .save[disabled] {
  opacity: 0.4;
  cursor: default;
}
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 760px) {
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16/9;
  max-width: 100%;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--night), #000);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 16px;
}
.player:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.player .play {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e1251b;
  color: #fff;
  transition: transform 0.15s;
}
.player:hover .play {
  transform: scale(1.07);
}
.player-txt b {
  display: block;
  font: 800 24px/1.1 var(--f-display);
  text-transform: uppercase;
}
.player-txt small {
  font: 400 12px/1.3 var(--f-mono);
  opacity: 0.8;
}
.pill.live {
  border: 0;
  background: #e1251b;
  color: #fff;
}
table.sched-t {
  min-width: 0;
}
.sched-t tr {
  cursor: default;
}
.sched-t tr.now td {
  background: color-mix(in srgb, #e1251b 12%, var(--panel));
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
}
.links a,
.cam a {
  color: var(--ink);
}
.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.cam {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg);
  min-width: 0;
}
.cam .shot {
  display: block;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  background: var(--soft);
}
.cam .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam b {
  font: 600 14px/1.25 var(--f-body);
}
.cam .near {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
}
.cam p {
  margin: 0;
  font-size: 13px;
}
.live {
  border-color: var(--ink);
}
.live h2 a,
.eyebrow a {
  color: inherit;
}
.live-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 640px) {
  .live-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.live-tiles div {
  background: var(--panel);
  padding: 10px;
}
.live-tiles b {
  display: block;
  font: 600 22px/1.15 var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.live-tiles div > span {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-tiles em {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  font-style: normal;
  color: var(--muted);
  margin-top: 2px;
}
.ahead {
  color: var(--ok);
}
.behind {
  color: var(--warn);
}
.live-msg {
  margin: 0;
  font-size: 14px;
}
.test-map {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
#testMap {
  height: 340px;
  background: var(--soft);
}
.ticker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.ticker li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.4;
}
.ticker li:first-child span {
  font-weight: 600;
}
.ticker time {
  font: 600 12.5px/1.6 var(--f-mono);
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
}
#liveTicker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
#liveTicker .ticker {
  align-self: stretch;
}
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.person {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  font: 500 12.5px/1.2 var(--f-body);
}
.person[disabled] {
  cursor: default;
  opacity: 0.55;
}
.person:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.person i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.person small {
  font: 400 12px/1 var(--f-mono);
  color: var(--muted);
}
.live-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  border: 3px solid var(--panel);
  font: 700 12px/1 var(--f-mono);
  box-shadow:
    0 0 0 2px var(--c),
    0 2px 6px rgba(0, 0, 0, 0.45);
}
.live-pin.kim {
  width: 36px;
  height: 36px;
  font-size: 12px;
  animation: pulse 2s ease-out infinite;
}
.live-pin.stale {
  opacity: 0.5;
  animation: none;
}
.live-pin.est {
  background: var(--panel);
  color: var(--ink);
  border: 3px dashed var(--c);
  box-shadow: none;
  animation: none;
}
.est-note {
  margin: 8px 0 0;
  font: 400 12.5px/1.45 var(--f-mono);
  color: var(--muted);
}
@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 2px var(--c),
      0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent);
  }
  100% {
    box-shadow:
      0 0 0 2px var(--c),
      0 0 0 16px transparent;
  }
}
.step .eta {
  font: 600 12.5px/1.3 var(--f-mono);
  color: var(--crew);
}
.privacy .rules {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.wild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.sight {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sight:hover {
  border-color: var(--muted);
}
.sight:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sight .ph {
  aspect-ratio: 4/3;
  background: var(--soft);
  overflow: hidden;
}
.sight .ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sight .tx {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sight b {
  font: 600 14px/1.2 var(--f-body);
}
.sight .mi {
  font: 500 12px/1.3 var(--f-mono);
  color: var(--ink);
}
.sight .when {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
}
.sight .cred {
  font: 400 12px/1.3 var(--f-body);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wild-pin {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--ok);
  font: 600 12px/1 var(--f-body);
  color: var(--ok);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.aqi {
  display: inline-block;
  font: 600 0.85em/1.3 var(--f-mono);
  padding: 1px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.tiles b .aqi {
  display: inline-block;
  font-size: 18px;
  padding: 2px 8px;
  letter-spacing: 0;
  text-transform: none;
}
.tiles b .aqi-g {
  color: var(--ok);
}
.tiles b .aqi-m {
  color: color-mix(in srgb, var(--wx-amber, var(--amber)) 70%, var(--ink));
}
.tiles b .aqi-s {
  color: #c25e00;
}
.tiles b .aqi-u {
  color: var(--warn);
}
.aqi-g {
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
}
.aqi-m {
  background: color-mix(in srgb, var(--wx-amber, var(--amber)) 25%, transparent);
  color: color-mix(in srgb, var(--wx-amber, var(--amber)) 70%, var(--ink));
}
.aqi-s {
  background: color-mix(in srgb, #e07000 25%, transparent);
  color: #c25e00;
}
.aqi-u {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}
.picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .picks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.picks div {
  background: var(--panel);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.picks b {
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.picks span {
  font-size: 13.5px;
  line-height: 1.4;
}
.eats-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eats-town h3 {
  font: 800 20px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.eats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.place {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.place .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.place a.nm {
  font: 600 15px/1.25 var(--f-body);
  color: var(--ink);
  text-decoration: none;
}
.place a.nm:hover {
  text-decoration: underline;
}
.place .ct {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.place p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.place .hrs {
  font: 400 12px/1.35 var(--f-mono);
}
.place .ad {
  font-size: 12px;
  color: var(--muted);
}
.place .ad a {
  color: inherit;
}
.place .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.badge {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
}
.badge.late {
  background: var(--night);
  color: #fff;
}
.badge.early {
  background: color-mix(in srgb, var(--day) 55%, transparent);
  color: var(--ink);
}
.badge.chk {
  background: var(--soft);
  color: var(--muted);
}
.eat-pin {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  border: 2px solid var(--panel);
  font: 700 12px/1 var(--f-mono);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.emerg {
  border-color: color-mix(in srgb, var(--warn) 45%, var(--rule));
  padding: 0;
  overflow: hidden;
}
.emerg:has(.em-toggle[aria-expanded="false"]) {
  border-color: var(--em2);
}
.em-toggle {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}
.em-toggle:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: -4px;
}
.em-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--em1);
  color: #fff;
}
.em-toggle[aria-expanded="false"] {
  background: linear-gradient(100deg, var(--em1), var(--em2));
  color: #fff;
}
.em-toggle[aria-expanded="false"]:hover {
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--em1) 88%, #fff),
    var(--em2)
  );
}
.em-toggle[aria-expanded="false"]:focus-visible {
  outline-color: #fff;
}
.em-toggle[aria-expanded="false"] .em-ico {
  background: #fff;
  color: var(--em1);
}
.em-title b {
  display: block;
  font: 800 22px/1 var(--f-display);
  text-transform: uppercase;
}
.em-title small {
  display: block;
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  margin-top: 3px;
}
.em-toggle[aria-expanded="false"] .em-title small {
  color: rgba(255, 255, 255, 0.82);
}
.em-chev {
  font: 600 12px/1 var(--f-body);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.em-toggle[aria-expanded="false"] .em-chev {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.em-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}
.em-body h3 {
  font: 800 18px/1 var(--f-display);
  text-transform: uppercase;
  margin: 6px 0 0;
}
.em-911 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--em1) 16%, var(--panel));
  font-size: 14px;
  line-height: 1.45;
}
.em-counties {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.em-counties ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.em-counties li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  padding: 8px 12px 8px 16px;
  border-top: 1px solid var(--rule);
  box-shadow: inset 5px 0 0 var(--c);
  font-size: 14px;
}
.em-counties li b {
  min-width: 92px;
}
.em-counties .cty {
  font: 500 13px/1.3 var(--f-mono);
  white-space: nowrap;
}
.em-counties .cty i {
  font: 600 14px/1.3 var(--f-body);
  font-style: normal;
}
@media (max-width: 600px) {
  .em-counties li {
    flex-direction: column;
    gap: 2px;
  }
  .em-counties li b {
    min-width: 0;
  }
}
.em-counties li:first-child {
  border-top: 0;
}
.em-counties li b {
  font: 800 16px/1.1 var(--f-display);
  text-transform: uppercase;
}
.em-gps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.em-btn {
  all: unset;
  cursor: pointer;
  font: 600 15px/1 var(--f-body);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--em1);
  color: #fff;
}
.em-btn:hover {
  background: color-mix(in srgb, var(--em1) 85%, #fff);
}
.em-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.gps-out:empty {
  display: none;
}
.gps-out {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gps-out .dec {
  font: 600 clamp(18px, 4.5vw, 26px)/1.2 var(--f-mono);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.gps-out .dms {
  font: 500 14px/1.3 var(--f-mono);
}
.gps-out .meta {
  font-size: 13px;
  color: var(--muted);
}
.tell {
  border: 2px solid var(--em1);
  border-radius: 6px;
  overflow: hidden;
}
.tell-head {
  background: var(--em1);
  color: #fff;
  font: 800 16px/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 12px;
}
.tell dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  margin: 0;
}
.tell dt,
.tell dd {
  margin: 0;
  padding: 7px 12px;
  border-top: 1px solid var(--rule);
}
.tell dt:first-of-type,
.tell dt:first-of-type + dd {
  border-top: 0;
}
.tell dt {
  font: 500 12px/1.6 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tell dd {
  font: 600 15px/1.35 var(--f-body);
  min-width: 0;
}
.tell dd.dec {
  font: 600 17px/1.35 var(--f-mono);
  word-break: break-all;
}
.tell dd.dms {
  font: 600 15px/1.35 var(--f-mono);
}
.tell dd.mile-now b {
  font: 800 30px/1 var(--f-display);
}
.tell dd.mile-now.small b {
  font: 600 15px/1.35 var(--f-body);
}
@media (max-width: 520px) {
  .tell dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .tell dt {
    padding-bottom: 0;
  }
  .tell dd {
    border-top: 0;
    padding-top: 2px;
  }
}
.mile-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.mile-now span {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mile-now b {
  font: 800 38px/1 var(--f-display);
}
.mile-now em {
  font: 600 14px/1.2 var(--f-body);
  font-style: normal;
}
.gps-out .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.em-table {
  min-width: 620px;
}
.em-table tr {
  cursor: default;
}
.em-table td small {
  color: var(--muted);
}
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.hosp {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}
.hosp b {
  font: 600 15px/1.25 var(--f-body);
}
.hosp .tr {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  align-self: flex-start;
  background: var(--em1);
  color: #fff;
}
.hosp .tr.no {
  background: var(--soft);
  color: var(--muted);
}
.hosp a,
.loc a,
.em-contacts a {
  color: var(--ink);
}
.loc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.loc {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--bg);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.loc b {
  font: 600 14px/1.25 var(--f-body);
}
.loc .co {
  font: 500 12px/1.3 var(--f-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.loc .ll {
  font: 500 12.5px/1.3 var(--f-mono);
}
.em-contacts {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.sel {
  user-select: all;
  font-family: var(--f-mono);
  font-size: 0.95em;
}
.hosp-pin {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--em1);
  color: #fff;
  border: 2px solid var(--panel);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.checklists {
  margin-top: 18px;
}
.ck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.ck-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .ck-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ck-tab {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  min-width: 0;
}
.ck-tab:hover {
  border-color: var(--muted);
}
.ck-tab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ck-tab[aria-selected="true"] {
  border-color: var(--crew);
  box-shadow: inset 0 -3px 0 var(--crew);
}
.ck-tab b {
  font: 800 15px/1.1 var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-tab small {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
}
.ck-tab .pg {
  font: 600 12px/1 var(--f-mono);
  color: var(--muted);
}
.ck-tab .pg.done {
  color: var(--ok);
}
.ck-body {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 14px 12px;
}
.ck-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ck-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.ck-list li:last-child {
  border-bottom: 0;
}
.ck-list li.ck-grp {
  font: 800 15px/1 var(--f-display);
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--rule);
}
.ck-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--crew);
  flex: none;
}
.ck-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  font-size: 14.5px;
}
.ck-list li.done .lbl {
  color: var(--muted);
  text-decoration: line-through;
}
.ck-list .who {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  white-space: nowrap;
}
.ck-list .scope {
  font: 500 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}
.ck-list .inp {
  flex: 1;
  width: auto;
  border-radius: 4px;
}
.ck-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 10px;
}
.ck-add .inp {
  flex: 1;
  min-width: 180px;
  width: auto;
  border-radius: 4px;
}
.ck-add select {
  font: 13px var(--f-body);
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}
.ck-del {
  all: unset;
  cursor: pointer;
  font: 600 12px/1 var(--f-body);
  color: var(--warn);
  padding: 4px 6px;
}
.ck-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
  padding: 8px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.offline-bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 2000;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px/1.35 var(--f-body);
  padding: 8px 16px;
  text-align: center;
}
.theme-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.foot {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.foot p {
  margin: 0 0 6px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- accessibility ---- */
/* former h4 sub-headings are h3 now: keep the old h4 default size and spacing */
h3 { font-size: 1em; margin-block: 1.33em; }
.card .em-h { font: inherit; letter-spacing: inherit; text-transform: none; line-height: inherit; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.aid .st-btn { all: unset; cursor: pointer; font-weight: inherit; }
.aid .st-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#elev:focus { outline: none; }
#elev:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
