/* Kestrel Shore: concept sun-study map. Dark, glassy, editorial. */
:root {
  --bg: #0b0d10;
  --glass: rgba(14, 16, 21, 0.66);
  --glass-strong: rgba(14, 16, 21, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f3efe7;
  --ink-2: rgba(243, 239, 231, 0.72);
  --ink-3: rgba(243, 239, 231, 0.48);
  --sun: #f5b96a;
  --sun-2: #ffd9a1;
  --dusk: #e9846a;
  --shade: #8fa3ff;
  --mint: #6fd9bf;
  --radius: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --panel-w: 384px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }

#map { position: fixed; inset: 0; }
.vignette { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 6, 8, .55) 100%),
  linear-gradient(180deg, rgba(5,6,8,.45) 0%, transparent 22%, transparent 70%, rgba(5,6,8,.35) 100%); }

/* ---------- Loading veil ---------- */
.veil { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity 1.2s var(--ease), visibility 1.2s; }
.veil.is-gone { opacity: 0; visibility: hidden; }
.veil-inner { text-align: center; }
.veil-mark { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.veil-mark span { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 30px 8px rgba(245,185,106,.45); animation: rise 2.4s var(--ease) infinite; }
@keyframes rise { 0% { transform: translate(-18px, 22px); } 50% { transform: translate(0, -6px); } 100% { transform: translate(18px, 22px); } }
.veil-title { font-family: var(--serif); font-size: 34px; margin: 0; letter-spacing: .01em; }
.veil-sub { margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Brand ---------- */
.brand { position: fixed; z-index: 5; top: 28px; left: 32px; max-width: 420px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); background: rgba(245,185,106,.12); border: 1px solid rgba(245,185,106,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.brand h1 { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .95; margin: 14px 0 10px; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.brand-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 340px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }

/* ---------- Tools ---------- */
.tools { position: fixed; z-index: 6; top: 28px; right: 28px; display: flex; gap: 8px; }
.tool { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tool:hover { background: var(--glass-strong); border-color: var(--line-2); }
.tool:active { transform: scale(.94); }
.tool svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#compass-needle { transition: transform .1s linear; }
#compass-needle .n { fill: var(--sun); stroke: none; }
#compass-needle .s { fill: rgba(255,255,255,.35); stroke: none; }

/* ---------- Panel ---------- */
.panel { position: fixed; z-index: 10; left: 24px; bottom: 24px; width: var(--panel-w); max-height: calc(100vh - 250px); display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.sheet-handle { display: none; }

/* Timeline */
.timeline { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.tl-head { display: flex; align-items: center; gap: 14px; }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1b1206; box-shadow: 0 6px 24px -6px rgba(245,185,106,.7); transition: transform .2s var(--ease); }
.play:active { transform: scale(.92); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }
.tl-time { flex: 1; min-width: 0; }
.tl-clock { font-family: var(--serif); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-clock small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; margin-left: 6px; color: var(--ink-2); vertical-align: 6px; }
.tl-date { font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .02em; }
.sun-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
.sun-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.sun-state.is-shade i { background: var(--shade); box-shadow: 0 0 10px var(--shade); }
.sun-state.is-night i { background: #5a6070; box-shadow: none; }

.tl-track-wrap { position: relative; height: 34px; margin-top: 14px; }
.tl-track { position: absolute; left: 11px; right: 11px; top: 13px; height: 8px; border-radius: 8px; overflow: hidden; }
.tl-marks { position: absolute; top: 0; bottom: 0; left: 11px; right: 11px; pointer-events: none; }
.tl-mark { position: absolute; top: 9px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.75); }
.tl-mark.terrain { background: var(--shade); height: 16px; }
.tl-mark.terrain::after { content: ""; position: absolute; left: -3px; top: -6px; width: 8px; height: 4px; border-radius: 2px; background: var(--shade); }
#time { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: none; }
#time:active { cursor: grabbing; }
#time::-webkit-slider-runnable-track { height: 34px; background: transparent; }
#time::-moz-range-track { height: 34px; background: transparent; }
#time::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); box-shadow: 0 0 0 6px rgba(245,185,106,.18), 0 4px 14px rgba(0,0,0,.5); }
#time::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); box-shadow: 0 0 0 6px rgba(245,185,106,.18), 0 4px 14px rgba(0,0,0,.5); }
#time:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(245,185,106,.4); }
.tl-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; margin-top: 2px; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.tab { flex: 1; padding: 9px 0 11px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink-2); }
.tab.is-on { color: var(--ink); border-color: var(--sun); }
.panes { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.pane { display: none; padding: 16px 20px 20px; animation: fade .4s var(--ease); }
.pane.is-on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Dates */
.dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-field { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.date-field span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.date-field input { font: inherit; font-size: 13px; color: var(--ink); background: transparent; border: 0; padding: 6px 4px; color-scheme: dark; min-width: 0; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { font-size: 11.5px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.presets button:hover { border-color: var(--line-2); color: var(--ink); }
.presets button.is-on { background: rgba(245,185,106,.16); border-color: rgba(245,185,106,.45); color: var(--sun-2); }

/* Study block */
.study { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; margin: 18px 0 14px; }
.dial { width: 132px; height: 132px; }
.eyebrow { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.study-name { font-family: var(--serif); font-size: 26px; line-height: 1.05; margin: 4px 0 2px; }
.study-pos { font-size: 11.5px; color: var(--ink-3); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.sunnow { display: flex; gap: 18px; }
.sunnow b { display: block; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sunnow span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fact { margin: 0; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fact dt { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.fact dd { margin: 4px 0 2px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact small { font-size: 10.5px; color: var(--ink-3); }
.fact.accent { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(143,163,255,.14), rgba(245,185,106,.10)); border-color: rgba(255,255,255,.13); }
.fact.accent dd { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.fact.gold dt { color: rgba(255,217,161,.75); }
.fineprint { font-size: 11px; line-height: 1.5; color: var(--ink-3); margin: 14px 0 0; }

/* Places */
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); text-align: left; width: 100%; }
.place:hover { background: rgba(255,255,255,.07); border-color: var(--line-2); }
.place.is-on { border-color: rgba(245,185,106,.55); background: rgba(245,185,106,.09); }
.place .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; border: 1px solid var(--line-2); }
.place.is-on .num { background: var(--sun); color: #1b1206; border-color: var(--sun); }
.place h4 { margin: 0; font-size: 14px; font-weight: 500; }
.place p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
.place .stat { text-align: right; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.place .stat b { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink); }

/* Layers */
.parcel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.parcel-stats div { padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.parcel-stats b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.parcel-stats span { font-size: 10.5px; color: var(--ink-3); }
.toggles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toggles label { display: flex; gap: 12px; align-items: center; padding: 10px 2px; cursor: pointer; }
.toggles input { position: absolute; opacity: 0; pointer-events: none; }
.toggles .sw { width: 36px; height: 20px; flex: none; border-radius: 20px; background: rgba(255,255,255,.12); position: relative; transition: background .25s; }
.toggles .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.toggles input:checked + .sw { background: var(--sun); }
.toggles input:checked + .sw::after { transform: translateX(16px); }
.toggles input:focus-visible + .sw { outline: 2px solid var(--sun-2); outline-offset: 2px; }
.toggles b { display: block; font-size: 13.5px; font-weight: 500; }
.toggles small { font-size: 11.5px; color: var(--ink-3); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }

/* ---------- Probe ---------- */
.probe { position: fixed; z-index: 8; pointer-events: none; padding: 10px 12px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0,0,0,.45); transform: translate(16px, -50%); min-width: 150px; }
.probe-row { display: flex; align-items: baseline; gap: 8px; }
.probe-row b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.probe-row span { font-size: 11px; color: var(--ink-3); }
.probe-hint { margin-top: 6px; font-size: 10.5px; color: var(--sun-2); letter-spacing: .02em; }

/* ---------- Map markers ---------- */
.mk { padding-bottom: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; transform-origin: 0 50%; }
.mk-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 15px; color: var(--ink); background: rgba(12,14,18,.78); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: all .3s var(--ease); }
.mk-label { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 999px; background: rgba(12,14,18,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); pointer-events: none; }
.mk:hover .mk-label, .mk.is-on .mk-label { opacity: 1; transform: none; }
.mk.is-on .mk-dot { background: var(--sun); color: #1b1206; border-color: var(--sun); box-shadow: 0 0 0 6px rgba(245,185,106,.25), 0 0 26px rgba(245,185,106,.6); }
.mk::before { content: ""; position: absolute; left: 13px; top: 28px; width: 2px; height: 14px; background: linear-gradient(rgba(255,255,255,.6), transparent); }

.mk-study { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--shade); box-shadow: 0 0 0 5px rgba(143,163,255,.3), 0 0 20px rgba(143,163,255,.8); }

.geo-label { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,0,0,.9); pointer-events: none; white-space: nowrap; text-align: center; }
.geo-label small { display: block; font-weight: 500; letter-spacing: .08em; font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; text-transform: none; }
.geo-label.peak::before { content: "▲"; display: block; font-size: 9px; color: rgba(255,255,255,.7); margin-bottom: 2px; letter-spacing: 0; }
.parcel-tag { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #1b1206; background: var(--sun); padding: 5px 9px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.45); white-space: nowrap; pointer-events: none; }
.parcel-tag em { font-style: normal; font-weight: 500; opacity: .75; letter-spacing: .08em; }

/* Labels floating on the 3D sun-path arc */
.arc-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.arc-label { position: absolute; left: 0; top: 0; margin: -24px 0 0 0; translate: -50% 0; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: rgba(255,240,215,.85); text-shadow: 0 1px 6px rgba(0,0,0,.9); white-space: nowrap; will-change: transform; }
.arc-label.compass { margin-top: -6px; font-size: 10.5px; color: rgba(255,255,255,.7); }
.arc-label.compass.north { color: var(--sun-2); }
.arc-label.sun { margin: -46px 0 0 0; padding: 4px 8px; border-radius: 999px; font-size: 11px; color: #1b1206; background: var(--sun-2); box-shadow: 0 4px 16px rgba(0,0,0,.4); translate: -50% 0; text-shadow: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(520px, 100%); max-height: 86vh; overflow-y: auto; padding: 28px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 8px 0 12px; line-height: 1.05; }
.modal-card h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 8px; font-weight: 600; }
.modal-card p, .modal-card li { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.modal-card ul { padding-left: 18px; margin: 0; }
.modal-x { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: var(--ink-2); }
.modal-x:hover { background: rgba(255,255,255,.08); }

/* MapLibre attribution */
.maplibregl-ctrl-attrib { background: rgba(10,12,15,.6) !important; color: var(--ink-3) !important; font-size: 10px !important; backdrop-filter: blur(8px); border-radius: 10px 0 0 0; }
.maplibregl-ctrl-attrib a { color: var(--ink-2) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-ctrl-bottom-right { z-index: 4; }

/* ---------- Meridian Studio CTA (same look as the Stillpine demo) ---------- */
:root { --cta-h: 0px; }
.cta-float { position: fixed; z-index: 30; right: 24px; bottom: 24px; height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 8px;
  border-radius: 999px; background: rgba(14,16,21,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  font-size: 12px; letter-spacing: .02em; color: var(--ink-2); text-decoration: none; white-space: nowrap; box-shadow: 0 12px 40px -12px rgba(0,0,0,.6);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.cta-float__mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,185,106,.16); }
.cta-float__mark svg { width: 13px; height: 13px; fill: none; stroke: var(--sun); stroke-width: 2.4; }
.cta-float__dot { opacity: .5; }
.cta-float__ask { color: var(--ink); font-weight: 500; }
.cta-float__ask span { display: inline-block; transition: transform .4s var(--ease); }
.cta-float:hover, .cta-float:focus-visible { background: var(--ink); color: rgba(11,13,16,.7); border-color: var(--ink); }
.cta-float:hover .cta-float__ask, .cta-float:focus-visible .cta-float__ask { color: #0b0d10; }
.cta-float:hover .cta-float__ask span { transform: translateX(3px); }
/* keep the map credits clear of the pill */
.maplibregl-ctrl-bottom-right { bottom: 76px !important; }

/* ---------- Mid width ---------- */
@media (max-width: 1100px) {
  .brand h1 { font-size: 52px; }
}

/* ---------- Phone: bottom sheet ---------- */
@media (max-width: 720px) {
  :root { --cta-h: calc(40px + env(safe-area-inset-bottom)); }
  .cta-float { left: 0; right: 0; bottom: 0; height: var(--cta-h); padding: 0 16px env(safe-area-inset-bottom); justify-content: center; gap: 8px;
    border-radius: 0; border-width: 1px 0 0; background: rgba(11,13,16,.94); box-shadow: none; font-size: 11.5px; z-index: 12; }
  .cta-float__mark { width: 22px; height: 22px; }
  .cta-float__mark svg { width: 11px; height: 11px; }
  .brand { top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 64px; max-width: none; }
  .brand h1 { font-size: 34px; margin: 9px 0 0; }
  .brand-sub { display: none; }
  .badge { font-size: 9px; padding: 5px 9px 5px 8px; letter-spacing: .12em; }
  .tools { top: calc(14px + env(safe-area-inset-top)); right: 16px; gap: 8px; flex-direction: column; }
  .tool { width: 38px; height: 38px; }

  .panel { left: 0; right: 0; bottom: var(--cta-h); width: auto; max-height: none; height: 58vh; border-radius: 24px 24px 0 0; border-bottom: 0;
    transition: height .45s var(--ease); }
  .panel.is-collapsed { height: 196px; }
  .sheet-handle { display: block; width: 100%; height: 22px; flex: none; position: relative; }
  .sheet-handle span { position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.28); }
  .timeline { padding: 2px 16px 10px; }
  .tl-clock { font-size: 30px; }
  .play { width: 40px; height: 40px; }
  .tl-track-wrap { margin-top: 10px; }
  .tabs { padding: 4px 10px 0; }
  .pane { padding: 14px 16px 24px; }
  .study { grid-template-columns: 112px 1fr; gap: 14px; margin: 14px 0 12px; }
  .dial { width: 112px; height: 112px; }
  .study-name { font-size: 22px; }
  .fact dd { font-size: 13px; }
  .fact.accent dd { font-size: 21px; }
  .probe { transform: translate(-50%, calc(-100% - 18px)); }
  .maplibregl-ctrl-bottom-right { bottom: var(--attrib-bottom, 150px) !important; transition: bottom .45s var(--ease); }
  .mk-label { display: none; } /* the sheet already names the selected place */
}
@media (max-width: 380px) {
  .presets button { padding: 6px 8px; font-size: 11px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
