/* Self-hosted fonts (subset: latin), downloaded from Google Fonts. */

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/orbitron-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/orbitron-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/rajdhani-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/rajdhani-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/rajdhani-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/rajdhani-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/share-tech-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Eclipsio. Dusk palette taken from the sky it describes: violet overhead,
   ember at the horizon, bone-white type. One accent hue (ember/gold) carries
   the sun; a single violet is reserved for the path of totality. */

:root {
  --night:   #0A0C1B;
  --panel:   #12162E;
  --panel-2: #191C3A;
  --edge:    rgba(237, 230, 218, 0.13);
  --edge-strong: rgba(237, 230, 218, 0.26);
  --bone:    #EDE6DA;
  --slate:   #949CC0;
  --dim:     #6B739A;
  --ember:   #FF8A3D;
  --gold:    #FFC46B;
  --violet:  #A98BFF;
  --danger:  #FF6B6B;

  --display: "Orbitron", "Rajdhani", ui-sans-serif, sans-serif;
  --sans:  "Rajdhani", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --panel-w: 384px;
  --gap: 16px;
  --radius: 3px;
}

* { box-sizing: border-box; }

/* The attribute must always win over a component's own display rule. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dim  { color: var(--slate); }
.tiny { font-size: 11px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

/* --------------------------------------------------------------- the map */

#map { position: fixed; inset: 0; background: var(--night); }

.map-fallback {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: 40px; text-align: center; color: var(--slate); max-width: 34ch;
  margin: auto; font-size: 14px;
}

.maplibregl-ctrl-attrib,
.maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(10, 12, 27, 0.78) !important;
  color: var(--dim) !important;
  font-family: var(--mono); font-size: 10px;
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
.maplibregl-ctrl-attrib a { color: var(--slate) !important; }
.maplibregl-ctrl-group {
  background: rgba(18, 22, 46, 0.86) !important;
  border: 1px solid var(--edge) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--edge) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(0.92) sepia(0.15); }
.maplibregl-ctrl-scale {
  background: rgba(10,12,27,0.7) !important; border-color: var(--edge-strong) !important;
  color: var(--slate) !important; font-family: var(--mono) !important; font-size: 10px !important;
}

/* -------------------------------------------------------------- branding */

.brand {
  position: fixed; top: var(--gap); left: calc(var(--panel-w) + var(--gap) * 2);
  display: flex; align-items: center; gap: 12px;
  pointer-events: none; z-index: 3;
  text-shadow: 0 2px 20px rgba(10, 12, 27, 0.9);
}
.brand__mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 14px rgba(255, 138, 61, 0.45)); }
.brand__text h1 {
  font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.26em; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 196, 107, 0.4), 0 2px 20px rgba(10, 12, 27, 0.9);
}
.brand__text p { font-size: 13.5px; color: var(--slate); margin-top: 3px; max-width: 62ch; }
.brand__text time { color: var(--gold); }

/* ------------------------------------------------------------ countdown */

.countdown {
  position: fixed; top: calc(var(--gap) + 58px); left: calc(var(--panel-w) + var(--gap) * 2);
  z-index: 3; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 7px 12px;
  background: rgba(12, 14, 30, 0.74); border: 1px solid var(--edge-strong);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}
.countdown__label {
  font-family: var(--display); font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate);
}
.countdown__digits {
  font-family: var(--mono); font-size: 17px; color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255, 196, 107, 0.45);
}
.countdown[data-phase="during"] .countdown__label { color: var(--ember); }
.countdown[data-phase="during"] .countdown__digits {
  color: var(--ember); text-shadow: 0 0 14px rgba(255, 138, 61, 0.55);
}
.countdown[data-phase="after"] { opacity: 0.75; }
.countdown__digits:empty { display: none; }

/* ----------------------------------------------------------- side panel */

.panel {
  position: fixed; top: var(--gap); left: var(--gap); bottom: var(--gap);
  width: var(--panel-w); z-index: 5;
  display: flex; flex-direction: column; gap: 15px;
  padding: 20px 20px 18px;
  overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(178deg, rgba(18, 22, 46, 0.94), rgba(24, 18, 46, 0.94));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin; scrollbar-color: var(--edge-strong) transparent;
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: var(--edge-strong); border-radius: 4px; }

.panel__head h2 {
  font-family: var(--sans); font-weight: 600; font-size: 25px; line-height: 1.12; margin-top: 5px;
  letter-spacing: 0.015em;
}
.place-meta { font-size: 11.5px; color: var(--slate); margin-top: 6px; }

/* hero reading -------------------------------------------------------- */

.reading {
  display: flex; align-items: flex-end; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--edge);
}
.reading__figure { display: flex; align-items: baseline; line-height: 0.82; }
.reading__number {
  font-family: var(--display); font-weight: 500; font-size: 44px; letter-spacing: 0.01em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 196, 107, 0.35);
}
.reading__pct { font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--ember); margin-left: 4px; }
.reading__side { display: flex; flex-direction: column; gap: 5px; padding-bottom: 4px; }
.reading__label { font-size: 12px; color: var(--slate); line-height: 1.35; max-width: 17ch; }
.reading__side .mono { font-size: 11px; }

/* the sightline view --------------------------------------------------- */

.sightline { margin: 0; }
.sightline canvas {
  display: block; width: 100%; height: 196px;
  border: 1px solid var(--edge); border-radius: var(--radius);
  background: #14162c;
}
.sightline figcaption {
  font-family: var(--mono); font-size: 10.5px; color: var(--slate);
  margin-top: 7px; display: flex; justify-content: space-between; gap: 8px;
}

/* time scrubber -------------------------------------------------------- */

.scrub { display: flex; align-items: center; gap: 12px; }
.scrub__play {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--edge-strong); border-radius: 50%;
  transition: border-color 0.15s, background 0.15s;
}
.scrub__play:hover { border-color: var(--gold); background: rgba(255, 196, 107, 0.1); }
.scrub__play svg { width: 10px; height: 12px; fill: var(--gold); margin-left: 2px; }
.scrub__play[data-playing="true"] svg { margin-left: 0; }
.scrub output { font-size: 11.5px; color: var(--gold); min-width: 8.5ch; text-align: right; }

input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 18px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--edge-strong); border-radius: 2px;
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--edge-strong); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: none; margin-top: -5px;
  box-shadow: 0 0 10px rgba(255, 196, 107, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: none;
  box-shadow: 0 0 10px rgba(255, 196, 107, 0.6);
}

/* verdict -------------------------------------------------------------- */

.verdict {
  font-size: 12.5px; line-height: 1.45; padding: 10px 12px;
  border-left: 2px solid var(--gold); background: rgba(255, 196, 107, 0.07);
  color: var(--bone); border-radius: 0 var(--radius) var(--radius) 0;
}
.verdict[data-level="warn"] { border-color: var(--ember); background: rgba(255, 138, 61, 0.09); }
.verdict[data-level="bad"]  { border-color: var(--danger); background: rgba(255, 107, 107, 0.09); }
.verdict b { font-weight: 600; }

/* data readout --------------------------------------------------------- */

.readout { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.readout dt, .readout dd {
  margin: 0; padding: 7px 0; border-top: 1px solid var(--edge); font-size: 12px;
}
.readout dt { color: var(--slate); }
.readout dd { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.readout dd b { color: var(--gold); font-weight: 500; }
.readout .row-group { grid-column: 1 / -1; border-top: 1px solid var(--edge); }

.panel__actions { display: grid; gap: 8px; }

.btn {
  width: 100%; padding: 9px 12px; background: transparent;
  border: 1px solid var(--edge-strong); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 196, 107, 0.07); }

.safety {
  font-size: 11.5px; line-height: 1.45; color: var(--slate);
  margin-top: auto; padding-top: 4px;
}
.safety span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.4); border-radius: 2px;
  padding: 1px 5px; margin-right: 6px; white-space: nowrap;
}

.method { border-top: 1px solid var(--edge); padding-top: 12px; }
.method summary {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); cursor: pointer; list-style: none;
}
.method summary::-webkit-details-marker { display: none; }
.method summary::before { content: "+ "; color: var(--ember); }
.method[open] summary::before { content: "− "; }
.method p { font-size: 11.5px; color: var(--slate); line-height: 1.5; margin-top: 9px; }
.method .tiny { color: var(--dim); }

/* Sheet handles only exist on mobile; the media query overrides this. */
.sheet-handle { display: none; }

.fineprint { font-size: 11px; }
.fineprint a { color: var(--dim); text-decoration: none; }
.fineprint a:hover, .fineprint a:focus-visible { color: var(--slate); text-decoration: underline; }

/* --------------------------------------------------------- spots drawer */

.spots {
  position: fixed; top: var(--gap); right: var(--gap); z-index: 4;
  width: 290px; max-height: calc(52vh);
  display: flex; flex-direction: column;
  background: linear-gradient(178deg, rgba(18, 22, 46, 0.93), rgba(20, 17, 42, 0.93));
  border: 1px solid var(--edge); border-radius: var(--radius);
  backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.spots__toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 11px 14px; background: transparent; border: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone);
}
.spots__toggle svg { width: 10px; height: 6px; color: var(--ember); transition: transform 0.2s; }
.spots__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.spots__list {
  margin: 0; padding: 0 6px 6px; list-style: none; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--edge-strong) transparent;
}
.spots__list::-webkit-scrollbar { width: 6px; }
.spots__list::-webkit-scrollbar-thumb { background: var(--edge-strong); border-radius: 3px; }
.spots__list[hidden] { display: none; }

.spot {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline;
  width: 100%; text-align: left; padding: 9px 10px; background: transparent;
  border: none; border-radius: var(--radius);
  transition: background 0.14s;
}
.spot:hover, .spot:focus-visible { background: rgba(255, 196, 107, 0.08); }
.spot[aria-current="true"] { background: rgba(255, 138, 61, 0.14); box-shadow: inset 2px 0 0 var(--ember); }
.spot__name { font-size: 14.5px; font-weight: 500; }
.spot__obsc { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.spot__region { grid-column: 1; font-size: 11px; color: var(--dim); }
.spot__stars { grid-column: 2; font-size: 9px; letter-spacing: 1px; color: var(--ember); }

/* ------------------------------------------------------- layer controls */

.layers {
  position: fixed; right: var(--gap); bottom: calc(var(--gap) + 22px); z-index: 4;
  width: 290px; padding: 13px 14px 12px;
  background: linear-gradient(178deg, rgba(18, 22, 46, 0.93), rgba(20, 17, 42, 0.93));
  border: 1px solid var(--edge); border-radius: var(--radius);
  backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.layers fieldset { border: none; margin: 0; padding: 0; }
.layers legend { padding: 0; margin-bottom: 9px; }

.switch { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 12.5px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 26px; height: 14px; border-radius: 8px; border: 1px solid var(--edge-strong);
  background: rgba(0,0,0,0.3); position: relative; transition: background 0.16s, border-color 0.16s; }
.switch input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--slate); transition: transform 0.16s, background 0.16s;
}
.switch input:checked { background: rgba(255, 138, 61, 0.28); border-color: var(--ember); }
.switch input:checked::after { transform: translateX(12px); background: var(--gold); }

.legend { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--edge); }
.legend[hidden] { display: none; }
.legend__ramp { height: 7px; border-radius: 1px; border: 1px solid var(--edge); }
.legend__ticks { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--dim); margin-top: 5px; }
.legend__note { font-size: 10.5px; color: var(--slate); margin-top: 5px; }

/* ------------------------------------------------------------- markers */

.marker {
  width: 17px; height: 17px; cursor: pointer;
  display: grid; place-items: center;
  background: none; border: none; padding: 0;
}
.marker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 1.5px rgba(10, 12, 27, 0.85), 0 0 10px rgba(255, 196, 107, 0.75);
  transition: transform 0.16s, background 0.16s;
}
.marker:hover::before { transform: scale(1.5); background: #fff; }
.marker[data-active="true"]::before {
  background: var(--ember); transform: scale(1.6);
  box-shadow: 0 0 0 1.5px rgba(10, 12, 27, 0.9), 0 0 16px rgba(255, 138, 61, 0.95);
}
.marker-pick::before { background: #fff; box-shadow: 0 0 0 1.5px var(--night), 0 0 14px rgba(255,255,255,0.8); }

.maplibregl-popup-content {
  background: rgba(18, 22, 46, 0.95) !important; color: var(--bone);
  border: 1px solid var(--edge-strong); border-radius: var(--radius);
  font-family: var(--sans); font-size: 12px; padding: 8px 11px;
  backdrop-filter: blur(10px);
}
.maplibregl-popup-tip { border-top-color: rgba(18, 22, 46, 0.95) !important;
  border-bottom-color: rgba(18, 22, 46, 0.95) !important; }
.popup__name { font-size: 13px; }
.popup__why { color: var(--slate); font-size: 11px; margin-top: 3px; max-width: 26ch; }

/* -------------------------------------------------------------- status */

.status {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 8px);
  z-index: 6; padding: 7px 14px; font-family: var(--mono); font-size: 11px;
  color: var(--gold); background: rgba(18, 22, 46, 0.94); border: 1px solid var(--edge-strong);
  border-radius: 100px; backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.status[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* HUD tab bar, the whole mobile chrome. Hidden on desktop. */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 7;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 14, 30, 0.92);
  border-top: 1px solid var(--edge-strong);
  backdrop-filter: blur(18px) saturate(1.1);
}
.tabbar__tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 8px; background: transparent; border: none;
  color: var(--slate); position: relative;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__tab svg { width: 21px; height: 21px; }
.tabbar__tab span {
  font-family: var(--display); font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.tabbar__tab[aria-expanded="true"] { color: var(--gold); }
.tabbar__tab[aria-expanded="true"]::before {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px;
  background: var(--ember); box-shadow: 0 0 10px rgba(255, 138, 61, 0.8);
}

/* ------------------------------------------------------------- a11y/motion */

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .brand { left: calc(var(--panel-w) + var(--gap) * 2); }
  .brand__text p { display: none; }
  .spots { max-height: 38vh; }
}

@media (max-width: 900px) {
  :root { --panel-w: 100%; --gap: 10px; --tabbar-h: calc(55px + env(safe-area-inset-bottom)); }
  .brand { left: var(--gap); top: var(--gap); }
  .brand__text h1 { font-size: 15px; }
  .brand__text p { display: none; }
  .brand__mark { width: 28px; height: 28px; }

  .countdown { top: calc(var(--gap) + 44px); left: var(--gap); padding: 5px 10px; gap: 8px; }
  .countdown__digits { font-size: 15px; }

  .tabbar { display: flex; }

  /* Reading, Spots and Layers all become bottom sheets summoned from the tab
     bar, one at a time, sliding up over the tab bar's top edge. */
  .panel, .spots, .layers {
    position: fixed; top: auto; left: 0; right: 0; width: 100%;
    bottom: var(--tabbar-h);
    border-radius: 14px 14px 0 0; border-left: none; border-right: none;
    transform: translateY(calc(100% + var(--tabbar-h)));
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.25, 1);
    visibility: hidden;
  }
  .panel[data-open="true"], .spots[data-open="true"], .layers[data-open="true"] {
    transform: translateY(0); visibility: visible;
  }
  /* Grab handle: a real element so touch-action can reserve the gesture for
     drag-to-dismiss instead of content scroll. */
  .sheet-handle {
    display: grid; place-items: center; flex: none;
    height: 26px; margin: -10px 0 0; touch-action: none; cursor: grab;
  }
  .sheet-handle::after {
    content: ""; width: 44px; height: 4px; border-radius: 2px;
    background: var(--edge-strong);
  }
  [data-dragging="true"] { transition: none !important; }

  .panel { max-height: 64vh; max-height: 64dvh; padding-top: 10px; }
  .spots { display: flex; max-height: 52vh; max-height: 52dvh; padding-top: 10px; }
  .layers { max-height: 52vh; max-height: 52dvh; padding-top: 10px; overflow-y: auto; display: flex; flex-direction: column; }

  /* Inside the spots sheet the collapse toggle is just a header. */
  .spots__toggle { pointer-events: none; }
  .spots__toggle svg { display: none; }
  .spots__list[hidden] { display: block; }

  /* Comfortable touch targets. */
  .spot { padding: 12px; min-height: 48px; }
  .switch { padding: 9px 0; font-size: 15px; }
  .switch input { width: 36px; height: 21px; border-radius: 12px; }
  .switch input::after { top: 3px; left: 3px; width: 13px; height: 13px; }
  .switch input:checked::after { transform: translateX(15px); }
  .scrub__play { width: 40px; height: 40px; }
  input[type="range"] { height: 28px; }
  input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -7px; }
  input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; }
  .btn { padding: 12px; }

  .reading__number { font-size: 40px; }

  /* Keep map chrome clear of the tab bar. */
  .status { bottom: calc(var(--tabbar-h) + 12px); }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right {
    bottom: var(--tabbar-h) !important;
  }
}
