/* Everything Mammoth: snow-grey and night-navy, a quiet grey map, and colour only where it means something.
   The bus lines keep their own colours; lifts are green when running, amber when expected or on hold, grey when
   closed; runs keep trail-map colours. One warm accent, sunset orange, always means "you": your location,
   your walk, your chosen trip and the button that acts. Numbers and headings are set in Barlow Condensed,
   a face drawn from California highway signs; everything else in the phone's own font.
   Light and dark follow the phone. */

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

:root {
  color-scheme: light dark;
  --snow: #eef3f6;
  --card: #ffffff;
  --raise: #f4f7f9;
  --ink: #13212e;
  --ink-soft: #536371;
  --rule: #d5dee6;
  --you: #f05f12;            /* map strokes and dots (3:1 on the map) */
  --accent: #c2410c;         /* filled buttons: white text 5.2:1 */
  --accent-ink: #ffffff;
  --accent-text: #a83a0a;    /* orange words on white or the soft tint: 5.6:1 */
  --accent-soft: #fdeee5;
  --alert: #b42318;
  --alert-bg: #fdecea;
  --chains: #7a4300;
  --chains-bg: #fff3d6;
  --ok: #1d7a46;
  --ok-bg: #e2f4e9;
  --warn-line: #d98a00;
  --run-green: #2e9b4f;
  --run-blue: #2563c9;
  --run-black: #1c2430;
  --run-park: #7c3aed;
  --tabbar-h: calc(60px + env(safe-area-inset-bottom));
  --page-w: 36rem;
  --float: 0 1px 2px rgb(19 33 46 / 0.14), 0 3px 12px rgb(19 33 46 / 0.10);
  --lift: 0 -2px 20px rgb(19 33 46 / 0.16);
  --tiles: grayscale(1) contrast(0.9) brightness(1.05);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", ui-rounded, system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --ease-move: cubic-bezier(0.45, 0, 0.2, 1);
  --t-press: 100ms;
  --t-quick: 160ms;
  --t-sheet-in: 280ms;
  --t-sheet-out: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --snow: #0d151c;
    --card: #16212b;
    --raise: #1d2a35;
    --ink: #e6edf2;
    --ink-soft: #9fb0bd;
    --rule: #2a3946;
    --you: #ff7a33;
    --accent: #ff8a4c;
    --accent-ink: #1b0c03;
    --accent-text: #ffa36f;
    --accent-soft: #34200f;
    --alert: #ff9b90;
    --alert-bg: #3a1a19;
    --chains: #f5b95e;
    --chains-bg: #2e2312;
    --ok: #5fd08f;
    --ok-bg: #16301f;
    --warn-line: #f5b95e;
    --run-green: #4cc474;
    --run-blue: #6aa2ff;
    --run-black: #dfe6ec;
    --run-park: #b794f6;
    --float: 0 1px 2px rgb(0 0 0 / 0.5), 0 4px 16px rgb(0 0 0 / 0.4);
    --lift: 0 -2px 24px rgb(0 0 0 / 0.5);
    --tiles: invert(1) hue-rotate(180deg) grayscale(0.92) brightness(0.8) contrast(0.9);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font: 400 1rem/1.45 var(--font-ui); -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Icons only: Leaflet draws the map's lines in its own <svg>, which must keep its size. */
.search svg, button svg, a svg, .walk svg, .bus-dot svg, .step-dot svg, .page svg {
  width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; flex: none;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- frame ------------------------------------------------------------------ */

.app { position: relative; height: 100dvh; overflow: hidden; }
.map { position: absolute; inset: 0 0 var(--tabbar-h) 0; background: var(--snow); }
body:not([data-tab="map"]) .top, body:not([data-tab="map"]) .fabs { display: none; }
.leaflet-terrain-pane { mix-blend-mode: multiply; opacity: 0.5; }
@media (prefers-color-scheme: dark) { .leaflet-terrain-pane { opacity: 0.75; } }
.leaflet-container { font: inherit; background: var(--snow); }
.leaflet-tile-pane { filter: var(--tiles); }
.leaflet-control-attribution { font-size: 0.75rem; }
.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--ink-soft); }
.leaflet-container .leaflet-control-attribution a { color: var(--ink-soft); }

.top {
  position: absolute; z-index: 800; top: 0; left: 0; right: 0;
  padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-3) 0;
  display: grid; gap: var(--space-2); pointer-events: none;
}
.top:focus-within { z-index: 1100; }   /* suggestions stay above an open sheet while typing */
.top > * { pointer-events: auto; max-width: 34rem; width: 100%; justify-self: center; }

.search {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 54px; padding: 0 var(--space-1) 0 var(--space-4);
  background: var(--card); border-radius: var(--radius-l); box-shadow: var(--float);
  transition: box-shadow var(--t-quick) var(--ease-out);
}
.search:focus-within { box-shadow: var(--float), 0 0 0 2px var(--accent); }
.search-icon { color: var(--ink-soft); }
.search input {
  flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; outline: none;
  font-size: 1.0625rem;
}
.search input::placeholder { color: var(--ink-soft); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.clear, .icon-button {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background-color var(--t-quick) var(--ease-out);
}
@media (hover: hover) { .clear:hover, .icon-button:hover { background: var(--raise); color: var(--ink); } }

.suggest {
  list-style: none; margin: 0; padding: var(--space-1) 0; max-height: 50dvh; overflow-y: auto;
  background: var(--card); border-radius: var(--radius-m); box-shadow: var(--float); overscroll-behavior: contain;
}
.suggest button {
  display: grid; gap: 1px; width: 100%; min-height: 52px;
  padding: var(--space-2) var(--space-4); border: 0; background: transparent; text-align: left; cursor: pointer;
}
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--raise); }
.suggest .name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .meta { color: var(--ink-soft); font-size: 0.875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .meta:empty { display: none; }
.suggest .empty { padding: var(--space-3) var(--space-4); color: var(--ink-soft); }

.fabs {
  position: absolute; z-index: 800; right: var(--space-3);
  bottom: calc(var(--tabbar-h) + 2rem);
  display: grid; gap: var(--space-2); justify-items: end;
}
body[data-sheet] .fabs { display: none; }
.fab {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 var(--space-3);
  border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: var(--float); cursor: pointer;
  font-weight: 650; transition: transform var(--t-press) var(--ease-out), color var(--t-quick) var(--ease-out);
}
.fab:active { transform: scale(0.95); }
.fab.wide { padding: 0 var(--space-5); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.01em; }
.fab[data-on="true"] { color: var(--you); }
.fab[data-follow="true"] { background: var(--you); color: #fff; }
.fab[data-follow="true"] svg { fill: currentColor; }
.fab-row { display: flex; gap: var(--space-2); }
.fab.wide:has(svg) { display: inline-flex; align-items: center; gap: var(--space-2); padding-left: var(--space-4); }
.fab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }

/* ---- map marks ----------------------------------------------------------------- */

.stop { display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.stop span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink);
  transition: transform var(--t-quick) var(--ease-out);
}
.stop.idle span { border-color: var(--ink-soft); opacity: 0.55; }
.map.far .stop span { width: 7px; height: 7px; border-width: 2px; }
@media (hover: hover) { .stop:hover span { transform: scale(1.4); } }
.stop:focus-visible span { transform: scale(1.4); }
.stop:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-radius: 50%; }
.pin { display: grid; place-items: center; }
.pin span {
  width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(3px, -3px);
  background: var(--ink); border: 3px solid var(--card); box-shadow: var(--float);
}
.me-dot { position: relative; pointer-events: none; }
.me-core {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--you); border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}
.me-cone {
  position: absolute; inset: 0; border-radius: 50%; transition: transform 120ms linear;
  background: conic-gradient(from -30deg, color-mix(in srgb, var(--you) 45%, transparent) 0deg 60deg, transparent 60deg);
  -webkit-mask: radial-gradient(circle, #000 0 31px, transparent 32px); mask: radial-gradient(circle, #000 0 31px, transparent 32px);
}
.bus-dot { display: grid; place-items: center; }
.bus-dot span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); border: 3px solid var(--card); box-shadow: var(--float); color: var(--line-ink, #fff);
}
.bus-dot svg { width: 14px; height: 14px; stroke-width: 2.4; }
.leaflet-tooltip.stop-label {
  font: 700 0.8125rem/1.2 var(--font-ui); padding: 4px 8px; border: 0; border-radius: var(--radius-s);
  background: var(--ink); color: var(--card); box-shadow: var(--float);
}
.leaflet-tooltip.stop-label::before { border-top-color: var(--ink); }

/* ---- sheet ------------------------------------------------------------------- */

.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 1000;
  max-width: 34rem; margin: 0 auto; max-height: 70dvh; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border-radius: var(--radius-l) var(--radius-l) 0 0; box-shadow: var(--lift);
  transform: translateY(calc(100% + var(--tabbar-h) + 8px)); transition: transform var(--t-sheet-out) var(--ease-in), max-height var(--t-sheet-in) var(--ease-move);
}
.sheet[data-open="true"] { transform: translateY(0); transition: transform var(--t-sheet-in) var(--ease-out), max-height var(--t-sheet-in) var(--ease-move); }
.sheet-grip { display: grid; place-items: center; width: 100%; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; flex: none; }
.sheet-grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--rule); transition: background-color var(--t-quick) var(--ease-out); }
@media (hover: hover) { .sheet-grip:hover span { background: var(--ink-soft); } }
.sheet[data-size="peek"] { max-height: none; }
.sheet[data-size="peek"] .sheet-head h2, .sheet[data-size="peek"] .sheet-sub { -webkit-line-clamp: 1; }
.sheet[data-size="peek"] .sheet-body { display: none; }
.sheet[data-size="half"] { max-height: 46dvh; }
.sheet[data-size="full"] { max-height: 86dvh; }
body.routing .stop { opacity: 0.35; }
.selected-stop { pointer-events: none; }
.sheet-head { display: flex; align-items: flex-start; gap: var(--space-2); padding: 0 var(--space-2) var(--space-3) var(--space-4); }
.sheet-titles { flex: 1; min-width: 0; }
.sheet-head h2 {
  margin: 0; font: 700 1.3125rem/1.2 var(--font-display); letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sheet-head h2:focus { outline: none; }
.sheet-head h2 .chip { font-size: 1rem; min-height: 32px; padding: 0 var(--space-3); }
.sheet-sub { margin: var(--space-1) 0 0; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-sub:empty { display: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-4) var(--space-5); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.note { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; }
.note:empty { display: none; }
.empty-state { margin: 0; padding: var(--space-3) 0; color: var(--ink-soft); }

.button {
  position: relative; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-m);
  background: var(--card); cursor: pointer; font-weight: 650;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-quick) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.small { min-height: 36px; padding: 0 var(--space-3); font-size: 0.875rem; align-self: flex-start; white-space: nowrap; }
.button.small::after { content: ""; position: absolute; inset: -4px; }   /* 44 px to tap, 36 px to see */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.actions.quiet .button { min-height: 40px; font-size: 0.9375rem; color: var(--ink-soft); }
@media (hover: hover) {
  .button:hover { background: var(--raise); }
  .button.primary:hover { background: var(--accent); filter: brightness(1.08); }
}

.chip {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: 26px; padding: 0 var(--space-2);
  border-radius: 999px; background: var(--line); color: var(--line-ink, #fff); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.01em; text-shadow: var(--line-shadow, 0 1px 1px rgb(0 0 0 / 0.35)); white-space: nowrap; border: 0;
}
button.chip { position: relative; min-height: 34px; padding: 0 var(--space-3); cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
button.chip::after { content: ""; position: absolute; inset: -5px -2px; }
button.chip:active { transform: scale(0.95); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2); }

.from-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--ink-soft); font-size: 0.9375rem; }
.from-row .button { min-height: 36px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.from-row .button::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: var(--space-2); border-radius: 50%;
  background: var(--you); vertical-align: 1px;
}

/* route options */
.options { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.option {
  width: 100%; text-align: left; display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--card); cursor: pointer;
  transition: background-color var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.option:active { transform: scale(0.99); }
.option[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
@media (hover: hover) { .option[aria-pressed="false"]:hover { background: var(--raise); } }
.option-top { display: flex; align-items: baseline; gap: var(--space-3); }
.option-time { font: 700 1.25rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.option-total { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.legs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.walk { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.walk svg { width: 1rem; height: 1rem; }
.walk small { font-size: 0.8125rem; }
.sep { color: var(--ink-soft); }
.option-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.option-leave { color: var(--accent-text); font-weight: 700; }
.tag {
  display: inline-block; padding: 0 var(--space-2); border-radius: 999px;
  background: var(--chains-bg); color: var(--chains); font-size: 0.8125rem; font-weight: 700;
}

/* the chosen trip as a timeline */
.steps { list-style: none; margin: var(--space-3) 0 var(--space-2); padding: 0 var(--space-1); }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr auto; column-gap: var(--space-3); padding-bottom: var(--space-4); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; top: 28px; bottom: 0; left: 12px; }
.step[data-tail="walk"]::before { border-left: 4px dotted var(--you); }
.step[data-tail="bus"]::before { left: 11px; width: 6px; background: var(--line); }
.step-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--you); color: var(--you);
}
.step-dot svg { width: 14px; height: 14px; stroke-width: 2.4; }
.step-board .step-dot { background: var(--line); border-color: var(--line); color: var(--line-ink, #fff); }
.step-alight .step-dot { width: 18px; height: 18px; margin: 5px; border-color: var(--line); }
.step-arrive .step-dot { width: 20px; height: 20px; margin: 4px; background: var(--ink); border-color: var(--card); box-shadow: 0 0 0 2px var(--ink); }
.step-text { min-width: 0; padding-top: 3px; line-height: 1.35; }
.step-text small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.step-time { padding-top: 3px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* stop departures */
.departures, .line-stops { list-style: none; margin: 0; padding: 0; }
.departures li {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--space-3); align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--rule);
}
.departures li:last-child { border-bottom: 0; }
.departures li.gone { opacity: 0.5; }
.departures .chip { grid-row: 1 / span 2; }
.dep-to { font-weight: 650; min-width: 0; }
.dep-times { grid-column: 2; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.dep-times strong { color: var(--ink); }
.countdown {
  grid-row: 1 / span 2; grid-column: 3; text-align: right;
  font: 700 1.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.countdown small { display: block; margin-top: 2px; font: 400 0.8125rem/1 var(--font-ui); color: var(--ink-soft); letter-spacing: 0; }

/* line view */
.line-dir { margin: var(--space-4) 0 var(--space-1); font: 700 1rem/1.3 var(--font-display); }
.line-dir:first-child { margin-top: var(--space-1); }
.line-stops { position: relative; }
.line-stops::before { content: ""; position: absolute; left: 4px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--line); opacity: 0.5; }
.line-stops button {
  position: relative; width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 50px;
  padding: var(--space-2) 0; border: 0; background: transparent; text-align: left; cursor: pointer;
}
@media (hover: hover) { .line-stops button:hover .stop-name { text-decoration: underline; text-underline-offset: 3px; } }
.line-stops .tick { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); background: var(--card); }
.line-stops .stop-name { flex: 1; min-width: 0; text-wrap: pretty; }
.line-stops .eta { flex: none; max-width: 42%; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line-stops .eta small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; }

.from-input {
  width: 100%; min-height: 48px; margin-top: var(--space-3); padding: 0 var(--space-3);
  border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--raise);
}
.from-results { margin-top: var(--space-2); box-shadow: none; border: 1px solid var(--rule); }

.toast {
  position: fixed; left: var(--space-4); right: var(--space-4); top: calc(var(--space-4) + env(safe-area-inset-top)); z-index: 2000;
  width: fit-content; max-width: 30rem; margin: 0 auto; translate: 0 -8px; text-align: center;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m);
  background: var(--ink); color: var(--card); font-weight: 650; box-shadow: var(--float);
  opacity: 0; pointer-events: none;
  transition: opacity 140ms var(--ease-in), translate 140ms var(--ease-in);
}
.toast[data-show="true"] { opacity: 1; translate: 0 0; transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }

/* dialogs: lines list and about */
dialog.dialog {
  width: min(28rem, calc(100vw - 2rem)); max-height: 82dvh; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius-l); background: var(--card); color: var(--ink); box-shadow: var(--float);
}
dialog.dialog[open] { display: flex; flex-direction: column; animation: dialog-in 200ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
dialog.dialog::backdrop { background: rgb(8 14 20 / 0.45); }
dialog.dialog h2 { margin: 0; padding: var(--space-4) var(--space-4) var(--space-3); font: 700 1.1875rem/1.25 var(--font-display); border-bottom: 1px solid var(--rule); }
dialog.dialog ul, .about-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
dialog.dialog ul { list-style: none; margin: 0; padding: 0 var(--space-4); }
dialog.dialog li { border-bottom: 1px solid var(--rule); }
dialog.dialog li > button, dialog.dialog li > div {
  width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 58px;
  padding: var(--space-2) 0; border: 0; background: transparent; text-align: left;
}
dialog.dialog li > button { cursor: pointer; }
dialog.dialog .status { display: block; color: var(--ink-soft); font-size: 0.9375rem; }
dialog.dialog .swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--line); flex: none; }
dialog.dialog .swatch.dashed { background: none; border: 3px dashed var(--line); }
dialog.dialog form { flex: none; padding: var(--space-3) var(--space-4); text-align: right; border-top: 1px solid var(--rule); }
.about-body { padding: var(--space-2) var(--space-4) 0; }
.about-body p { margin: var(--space-3) 0; max-width: 62ch; }

/* mountain map: lift names when zoomed in, place names always */
.leaflet-tooltip.lift-label { padding: 1px 6px; border: 0; border-radius: var(--radius-s); box-shadow: none;
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink-soft); font: 600 0.6875rem/1.3 var(--font-ui); }
.leaflet-tooltip.lift-label.open { color: var(--ok); }
.leaflet-tooltip.lift-label.warn { color: var(--chains); }
.leaflet-tooltip.lift-label::before { display: none; }
.map:not(.ski-near) .leaflet-tooltip.lift-label { display: none; }
.place-label { width: 0; height: 0; }
.place-label > div { white-space: nowrap; text-align: center; transform: translate(-50%, -50%); width: max-content; }
.place-label strong, .place-label span { display: block; text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 6px var(--card); }
.place-label.mountain { cursor: pointer; }
.place-label.mountain strong { font: 800 1rem/1.1 var(--font-display); color: var(--ink); letter-spacing: 0.01em; }
.place-label.mountain span { font: 600 0.75rem/1.2 var(--font-ui); color: var(--ink-soft); }
.place-label.lodge > div { transform: translate(-50%, -170%); }
.place-label.lodge span { font: 700 0.75rem/1.2 var(--font-ui); color: var(--ink); pointer-events: none; }
.map.far .place-label.lodge { display: none; }
.mtn-list .mtn-row { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-3);
  padding: var(--space-2) 0; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; }
.mtn-list button.mtn-row { cursor: pointer; }
@media (hover: hover) { .mtn-list button.mtn-row:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; } }
.mtn-list li:has(.mtn-row) { display: block; padding: 0; }

/* mountain report: green = running, amber = expected or on hold, grey = closed */
.mtn-alert { margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-left: 4px solid var(--chains);
  border-radius: var(--radius-s); background: var(--chains-bg); color: var(--chains); font-weight: 600; font-size: 0.9375rem; }
.mtn-snow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: 0 0 var(--space-3); }
.mtn-snow div { padding: var(--space-2) var(--space-1); border-radius: var(--radius-m); background: var(--raise); text-align: center; }
.mtn-snow strong { display: block; font: 700 1.5rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mtn-snow strong.long { font-size: 1.125rem; line-height: 1.6rem; white-space: nowrap; }
.mtn-snow span { font-size: 0.8125rem; color: var(--ink-soft); }
.mtn-counts { margin: 0 0 var(--space-4); color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.mtn-counts strong { color: var(--ink); }
.mtn-h { margin: var(--space-4) 0 var(--space-2); font: 700 1rem/1.3 var(--font-display); }
.mtn-weather { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.mtn-weather div { min-width: 0; }
.mtn-weather strong { display: block; font: 700 1.375rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.mtn-weather span { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.mtn-list { list-style: none; margin: 0; padding: 0; }
.mtn-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.mtn-list li:last-child { border-bottom: 0; }
.mtn-list small { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.mtn-list .snowy { font-weight: 700; }
.pill { padding: 2px var(--space-2); border-radius: 999px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap;
  background: var(--raise); color: var(--ink-soft); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--chains-bg); color: var(--chains); }
.mtn-more { margin-top: var(--space-2); }
.mtn-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; color: var(--accent-text); }

/* ---- map filters ------------------------------------------------------------------ */

.filters { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px;
  scroll-padding-inline: var(--space-3); -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3);
  border: 0; border-radius: 999px; background: var(--card); color: var(--ink-soft); box-shadow: var(--float);
  font-size: 0.875rem; font-weight: 650; cursor: pointer; position: relative;
  transition: background-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.filter::after { content: ""; position: absolute; inset: -4px -1px; }
.filter:active { transform: scale(0.96); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.filter .diff { width: 11px; height: 11px; }
.filter[aria-pressed="true"] .diff[data-diff="black"] { background: var(--card); }

/* trail-map signs: green circle, blue square, black diamond, park */
.diff { display: inline-block; flex: none; width: 13px; height: 13px; background: var(--run-green); border-radius: 50%; }
.diff[data-diff="blue"] { background: var(--run-blue); border-radius: 2px; }
.diff[data-diff="black"] { background: var(--run-black); border-radius: 1px; transform: rotate(45deg) scale(0.85); }
.diff[data-diff="park"] { background: var(--run-park); border-radius: 3px; }

/* ---- tab bar ------------------------------------------------------------------------ */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 max(var(--space-2), env(safe-area-inset-left)) env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
}
.tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px;
  color: var(--ink-soft); text-decoration: none; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent; transition: color var(--t-quick) var(--ease-out);
}
.tab svg { width: 24px; height: 24px; transition: transform var(--t-press) var(--ease-out); }
.tab:active svg { transform: scale(0.9); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--accent);
}
.tab[aria-current="page"] svg { stroke-width: 2.4; }
.tab-dot { position: absolute; top: 9px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--card); }
@media (hover: hover) { .tab:hover { color: var(--ink); } }

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

.page {
  position: fixed; inset: 0 0 var(--tabbar-h) 0; z-index: 1050; overflow-y: auto; overscroll-behavior: contain;
  background: var(--snow); padding: max(var(--space-4), env(safe-area-inset-top)) max(var(--space-4), calc((100% - var(--page-w)) / 2)) var(--space-6);
}
.page:focus { outline: none; }
.page > * + * { margin-top: var(--space-5); }
.page h1, .page h2, .page h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; margin: 0; }
.page section > * + * { margin-top: var(--space-3); }

.brand-head { display: flex; align-items: center; gap: var(--space-2); }
.brand { flex: 1; display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.brand h1 { font-size: 1.75rem; line-height: 1; text-transform: none; }
.brand-mark svg { width: 38px; height: 38px; display: block; }
.mark-ridge { fill: var(--ink); stroke: none; }
.mark-snow { fill: none; stroke: var(--snow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mark-sun { fill: var(--you); stroke: none; }
.page-date { margin: var(--space-2) 0 0 !important; color: var(--ink-soft); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 2px var(--space-3); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.status-dot.ok::before { background: var(--ok); }

.page-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.page-titles { flex: 1; min-width: 0; }
.page-head h1 { font-size: 2rem; line-height: 1.05; }
.page-sub { margin: var(--space-1) 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.button.out { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.button.out svg { width: 1rem; height: 1rem; }

.section-head { display: flex; align-items: baseline; gap: var(--space-3); }
.section-head h2 { flex: 1; font-size: 1.375rem; line-height: 1.2; }
.count { color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count strong { color: var(--ink); font: 700 1.125rem/1 var(--font-display); }
.sub-h { font-size: 1rem !important; color: var(--ink-soft); margin-top: var(--space-4) !important; }

/* Today: the snow, big */
.snow { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--space-4); row-gap: var(--space-2);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--rule); }
.snow > * + * { margin-top: 0 !important; }
.snow-main { display: flex; align-items: flex-end; gap: var(--space-2); grid-row: span 2; }
.snow-main strong { font: 700 5rem/0.8 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.snow-main span { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.2; padding-bottom: 2px; }
.snow-more { display: flex; gap: var(--space-4); margin: 0; justify-content: flex-end; }
.snow-more div { text-align: right; }
.snow-more dt { color: var(--ink-soft); font-size: 0.8125rem; }
.snow-more dd { margin: 0; font: 700 1.375rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.snow-cond { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.snow .powder { grid-column: 1 / -1; }

/* Today: the lift board. The one loud thing: numbered badges like the chair signs on the hill. */
.lift-board { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--space-2); }
.lift-tile {
  width: 100%; min-height: 100%; display: grid; justify-items: center; align-content: start; gap: 4px; padding: var(--space-2) 2px var(--space-2);
  border: 0; border-radius: var(--radius-m); background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer;
  transition: background-color var(--t-quick) var(--ease-out), transform var(--t-press) var(--ease-out);
}
button.lift-tile:active { transform: scale(0.95); }
@media (hover: hover) { button.lift-tile:hover { background: var(--card); } }
.badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--card); color: var(--ink-soft); border: 3px solid var(--rule);
  font: 700 1.625rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
[data-state="open"] .badge { background: var(--ok); border-color: var(--ok); color: #fff; }
[data-state="warn"] .badge { border-color: var(--warn-line); color: var(--chains); }
@media (prefers-color-scheme: dark) { [data-state="open"] .badge { color: #0b1f14; } }
.lift-name { font-weight: 650; font-size: 0.8125rem; line-height: 1.2; overflow-wrap: anywhere; }
.lift-state { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.1; }
[data-state="open"] .lift-state { color: var(--ok); font-weight: 650; }
[data-state="warn"] .lift-state { color: var(--chains); font-weight: 650; }

.link-row, .near-stop {
  width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--t-quick) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.link-row:active, .near-stop:active { transform: scale(0.99); }
@media (hover: hover) { .link-row:hover, .near-stop:hover { background: var(--raise); } }
.link-row > span:first-child { flex: 1; }
.chev { color: var(--ink-soft); display: grid; }
.chev svg { width: 1.125rem; height: 1.125rem; }
.groomed-link strong { font: 700 1.125rem/1 var(--font-display); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-title { font-weight: 650; overflow-wrap: anywhere; }
.row-main small { color: var(--ink-soft); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

.departures.compact li { padding: var(--space-2) 0; }
.departures.compact .countdown { font-size: 1.625rem; }
.button.wide { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; }
.button.wide svg { width: 1.125rem; height: 1.125rem; }
.place-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.place-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 650; cursor: pointer;
  position: relative; transition: transform var(--t-press) var(--ease-out);
}
.place-chip::after { content: ""; position: absolute; inset: -3px 0; }
.place-chip:active { transform: scale(0.96); }
.place-chip svg { width: 1rem; height: 1rem; color: var(--you); fill: currentColor; }

/* weather */
.wx-now { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.wx-now li { display: grid; gap: 2px; min-width: 0; }
.wx-place { color: var(--ink-soft); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-temp { display: flex; align-items: center; gap: 6px; font: 700 1.75rem/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.wx-icon svg { width: 1.375rem; height: 1.375rem; color: var(--ink-soft); }
.wx-now small { color: var(--ink-soft); font-size: 0.8125rem; }
.hourly {
  list-style: none; margin: var(--space-2) calc(-1 * var(--space-4)) 0; padding: var(--space-1) var(--space-4) var(--space-2);
  display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hourly::-webkit-scrollbar { display: none; }
.hourly li { flex: none; width: 56px; display: grid; justify-items: center; gap: 4px; padding: var(--space-2) 0; border-radius: var(--radius-m); scroll-snap-align: start; text-align: center; }
.hourly li:first-child { background: var(--card); }
.hourly li[data-day="new"] { border-left: 1px solid var(--rule); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.h-time { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; display: grid; line-height: 1.15; }
.h-time b { color: var(--ink); font-weight: 700; }
.h-sky svg { width: 1.375rem; height: 1.375rem; color: var(--ink-soft); }
.h-temp { font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.h-pop { min-height: 1em; font-size: 0.75rem; font-weight: 700; color: var(--run-blue); }
.h-wind { font-size: 0.6875rem; color: var(--ink-soft); white-space: nowrap; }
.forecast { list-style: none; margin: 0; padding: 0; }
.forecast li { display: grid; grid-template-columns: 2.75rem 1.75rem 1fr auto; align-items: center; column-gap: var(--space-2);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.forecast li:last-child { border-bottom: 0; }
.f-day { font: 700 1.0625rem/1 var(--font-display); }
.f-sky svg { width: 1.375rem; height: 1.375rem; color: var(--ink-soft); display: block; }
.f-text { min-width: 0; font-size: 0.9375rem; }
.f-text small, .f-snow small { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; }
.f-snow { text-align: right; color: var(--ink-soft); font-size: 0.9375rem; }
.f-snow.snowy { color: var(--ink); font: 700 1.25rem/1.1 var(--font-display); }
.f-snow.snowy small { font-family: var(--font-ui); }

.segmented { display: flex; padding: 3px; border-radius: var(--radius-m); background: var(--raise); gap: 3px; margin-top: var(--space-4) !important; }
.segmented button {
  flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-weight: 650; font-size: 0.875rem; cursor: pointer;
  transition: background-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out);
}
.segmented button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(19 33 46 / 0.12); }

.page-foot { padding-top: var(--space-4); border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.8125rem; }
.page-foot p { margin: 0; max-width: 60ch; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Today: powder alerts */
.powder { border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--card); margin-top: var(--space-2) !important; }
.powder-toggle { width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-3);
  border: 0; border-radius: var(--radius-m); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.powder-icon svg { width: 1.375rem; height: 1.375rem; color: var(--accent-text); }
.powder-panel { padding: 0 var(--space-3) var(--space-3); border-top: 1px solid var(--rule); }
.powder-panel > p:first-child { margin: var(--space-3) 0 0; }
.powder-panel .segmented { margin-top: var(--space-3) !important; }
.powder-msg { margin: var(--space-3) 0 0; color: var(--alert); font-weight: 600; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Mountain: areas */
.area { padding-top: var(--space-2); }
.area-head { display: flex; align-items: baseline; gap: var(--space-3); }
.area-head h2 { flex: 1; font-size: 1.5rem; }
.area-count { color: var(--ink-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.area-count strong { color: var(--ink); font: 700 1.125rem/1 var(--font-display); }
.meter { display: flex; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-top: var(--space-2) !important; }
.meter-open { background: var(--ok); }
.meter-warn { background: var(--warn-line); }
.lift-rows, .run-rows, .saved-list, .line-list { list-style: none; margin: 0; padding: 0; }
.lift-row, .run-row, .line-row {
  width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) 0;
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: inherit; font: inherit; text-align: left;
}
button.lift-row, button.run-row, button.line-row { cursor: pointer; }
@media (hover: hover) { button.lift-row:hover .row-title, button.run-row:hover .row-title, button.line-row:hover .row-title { text-decoration: underline; text-underline-offset: 3px; } }
.lift-row .badge { width: 38px; height: 38px; font-size: 1.1875rem; border-width: 2.5px; }
.pill.closed { background: var(--raise); color: var(--ink-soft); }
.groom-area { border-bottom: 1px solid var(--rule); }
.groom-area summary {
  display: flex; align-items: center; gap: var(--space-2); min-height: 48px; cursor: pointer; list-style: none;
  font: 700 1.125rem/1.2 var(--font-display);
}
.groom-area summary::-webkit-details-marker { display: none; }
.groom-area summary::after { content: ""; width: 8px; height: 8px; margin: 0 6px 4px auto; border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-quick) var(--ease-out); }
.groom-area[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.groom-area summary .count { font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; }
.run-rows .run-row { min-height: 48px; }
.run-rows li:last-child .run-row { border-bottom: 0; }

/* Buses */
.saved-list li { display: flex; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--rule); }
.saved-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.saved-icon svg { width: 1.25rem; height: 1.25rem; color: var(--you); fill: currentColor; }
.saved-go .row-title { flex: 1; }
.saved-cta { color: var(--accent-text); font-weight: 650; font-size: 0.9375rem; }
.line-row .swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--line); flex: none; }
.line-row .swatch.dashed { background: none; border: 3px dashed var(--line); }

/* save a place */
.save-place { display: contents; }
.save-form { display: flex; gap: var(--space-2); width: 100%; }
.text-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--raise); color: var(--ink); }
.text-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.button:has(svg) { display: inline-flex; align-items: center; gap: 6px; }
.button svg { width: 1.125rem; height: 1.125rem; }

@media (min-width: 48rem) {
  .snow-main strong { font-size: 6rem; }
  .lift-board { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, background-color, color, border-color !important; animation: none !important; }
  .button:active, .fab:active, .option:active, button.chip:active, button.lift-tile:active, .filter:active,
  .place-chip:active, .link-row:active, .near-stop:active, .tab:active svg { transform: none; }
  .me-cone { transition: none; }
  .toast, .toast[data-show="true"] { translate: 0 0; }
}
