/* Blink — full-window sky viewer. Tokens follow docs/blink-ui-spec.md section 2. */
:root {
  --ground: #05070B;
  --text: #E9E6DF;
  --text-2: rgba(233, 230, 223, 0.78);
  --label: rgba(233, 230, 223, 0.72);
  --ctl-text: rgba(233, 230, 223, 0.86);
  --ctl-fill: rgba(5, 7, 11, 0.35);
  --ctl-border: rgba(233, 230, 223, 0.2);
  --sel-fill: rgba(233, 230, 223, 0.92);
  --sel-text: #0A0C10;
  --accent: #F2B84B;
  --error: #FFB4A2;
  --diff: #171A20;
  --pad: clamp(16px, 3vw, 36px);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shadow: 0 1px 10px rgba(5, 7, 11, 0.85), 0 0 2px rgba(5, 7, 11, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--text); overflow: hidden; }
body { font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.root { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; overflow: clip; background: var(--ground); }

/* ---- stage: sky layers ---- */
.stage { position: absolute; inset: 0; transform: scale(1.08); transform-origin: 50% 50%; background: var(--ground); }
.stage.entered { transform: scale(1); transition: transform 4.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aladin-host { z-index: 0; background: var(--ground); cursor: grab; }
.aladin-host:active { cursor: grabbing; }
.patch-canvas { z-index: 1; opacity: 0; pointer-events: none; cursor: crosshair; background: transparent; touch-action: none; }
.root.in-patch .patch-canvas { pointer-events: auto; }
.root.in-patch .aladin-host { pointer-events: none; }
.root.flying .aladin-host, .root.flying .patch-canvas { pointer-events: none; }
.overlay-canvas { z-index: 2; pointer-events: none; }
.sphere-note { position: absolute; z-index: 3; left: 50%; top: 42%; transform: translateX(-50%); max-width: min(420px, 80vw); text-align: center; color: var(--text-2); text-shadow: var(--shadow); font-size: 13px; pointer-events: none; }

/* Hide Aladin Lite chrome. */
.aladin-host .aladin-box, .aladin-host .aladin-stack-box, .aladin-host .aladin-fullScreen, .aladin-host .aladin-zoomControl,
.aladin-host .aladin-layersControl-container, .aladin-host .aladin-gotoControl-container, .aladin-host .aladin-projectionControl-container,
.aladin-host .aladin-cooFrame, .aladin-host .aladin-statusBar, .aladin-host .aladin-location, .aladin-host .aladin-fov,
.aladin-host .aladin-logo-container, .aladin-host .aladin-share-control-container, .aladin-host .aladin-simbadPointerControl-container,
.aladin-host .aladin-settings-control-container, .aladin-host .aladin-measurement-div, .aladin-host .aladin-btn, .aladin-host .aladin-control-bar,
.aladin-host .aladin-contextMenu, .aladin-host .aladin-status-bar, .aladin-host .aladin-popup-container, .aladin-host .aladin-coolGrid-control-container,
.aladin-host .aladin-catalog-control-container, .aladin-host .aladin-hips-control-container { display: none !important; }
.aladin-host .aladin-container { background: var(--ground) !important; border: 0 !important; width: 100% !important; height: 100% !important; }
.aladin-host canvas { outline: none; }

.veil { position: absolute; inset: 0; z-index: 5; background: var(--ground); opacity: 1; pointer-events: none; }
.veil.lift { opacity: 0; transition: opacity 3.3s cubic-bezier(0.45, 0, 0.55, 1); }
.veil.quick { transition-duration: 1.1s; }

/* ---- status (loading / empty / error) ---- */
.status { position: absolute; z-index: 8; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 2 * var(--pad))); text-align: center; text-shadow: var(--shadow); pointer-events: none; }
.status > * { pointer-events: auto; }
.status-title { margin: 0 0 6px; font: 500 22px/1.2 var(--serif); font-family: var(--serif); letter-spacing: 0.01em; }
.status-text { margin: 0 0 12px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.status-bar { height: 3px; margin: 0 auto 14px; width: 70%; background: rgba(233, 230, 223, 0.16); border-radius: 2px; overflow: hidden; }
.status-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.4s ease; }
.status.corner { top: 76px; transform: translateX(-50%); }
.status.corner .status-title { display: none; }
.status.corner .status-text { display: inline-block; margin: 0 10px 0 0; font: 400 12px/1 var(--mono); }
.status.corner .status-bar { display: none; }
.status.corner .status-cancel { display: inline-block; vertical-align: middle; }
.status.error .status-title { color: var(--error); }

/* ---- UI layer ---- */
/* Two levels: a calm layer that is always there, and everything else behind Esc (.full). The layer itself never takes
   clicks. It fades in after the opening, and the dock steps aside while a flight or the rewind whirl plays. */
.ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.ui > * { transition: opacity 0.6s ease; }
.ui:not(.ready) > *, .ui:not(.visible) > .dock { opacity: 0; }
.ui:not(.full) .full-only { display: none !important; }
kbd { font: 500 11px/1 var(--mono); padding: 2px 5px; border: 1px solid var(--ctl-border); border-radius: 4px; color: var(--text-2); }
.more-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.more-btn[aria-expanded=true] { color: var(--text); }
@media (hover: none) { .more-btn kbd { display: none; } }
/* Only the controls take clicks: empty space beside them belongs to the sky (click-to-fly). */
.ui.visible .sheet, .ui.visible .bar, .ui.visible .hint, .ui.visible .header .readouts { pointer-events: auto; }
.scrim { position: absolute; left: 0; right: 0; top: 0; height: 130px; pointer-events: none; background: linear-gradient(to bottom, rgba(5, 7, 11, 0.55), rgba(5, 7, 11, 0)); }

.header { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: clamp(14px, 2vw, 26px) var(--pad) 0; text-shadow: var(--shadow); }
.wordmark { margin: 0; font: 500 30px/1 var(--serif); letter-spacing: 0.01em; }
.readouts { text-align: right; font: 400 12px/1.55 var(--mono); min-width: 0; max-width: 100%; border-radius: 4px; }
.ro { overflow-wrap: anywhere; }
/* One line by default; the rest on hover or focus. The patch view also keeps the cursor position. */
.ro.more, .root:not(.in-patch) #ro-cursor { display: none; }
.readouts:hover .ro, .readouts:focus-within .ro, .readouts:focus .ro { display: block; }
.ro.dim, .dim { color: var(--text-2); }

/* ---- dock: a compact bar at the bottom centre, with at most one panel open above it ---- */
.dock { position: absolute; left: 0; right: 0; bottom: 0; top: 96px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 0 var(--pad) clamp(14px, 2vw, 24px); pointer-events: none; }
.sphere-dock { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.sphere-dock[hidden] { display: none; }
.glass, .bar, .sheet { background: rgba(8, 10, 15, 0.62); border: 1px solid rgba(233, 230, 223, 0.12); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px; max-width: 100%; }
.bar-group { display: inline-flex; gap: 4px; }
.bar .round { width: 40px; height: 40px; font-size: 20px; }
.bar .btn { height: 40px; padding: 0 14px; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover, .btn.quiet[aria-expanded=true] { background: rgba(233, 230, 223, 0.08); border-color: transparent; }
.btn.quiet[aria-expanded=true] { color: var(--text); }
.bar .round { border-color: transparent; background: transparent; }
.bar .round:hover { background: rgba(233, 230, 223, 0.08); }
.root.rewinding .sphere-only, .root:not(.rewinding) .rewind-only, .root:not(.in-patch) .patch-only { display: none !important; }
.hint { margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--text-2); text-shadow: var(--shadow); text-align: center; }
.bar-msg { margin: 0; padding: 0 8px; text-align: center; text-shadow: var(--shadow); }

/* search with place suggestions, opening upwards */
.search { position: relative; flex: 1 1 200px; min-width: 160px; max-width: 280px; margin: 0; }
.search input { height: 40px; border-color: transparent; background: rgba(233, 230, 223, 0.07); }
.search input:focus { border-color: rgba(233, 230, 223, 0.3); }
.q-list { position: absolute; left: 0; bottom: calc(100% + 12px); min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 2 * var(--pad)));
  margin: 0; padding: 6px; list-style: none; display: flex; flex-direction: column; gap: 2px;
  background: rgba(8, 10, 15, 0.86); border: 1px solid rgba(233, 230, 223, 0.12); border-radius: 12px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.q-list .q-head { padding: 6px 10px 4px; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.q-list button { display: block; width: 100%; min-height: 38px; padding: 0 10px; text-align: left; border: 0; border-radius: 8px; background: transparent; color: var(--ctl-text); cursor: pointer; }
.q-list button:hover, .q-list button:focus-visible { background: rgba(233, 230, 223, 0.1); outline: none; }
.q-list button.q-go { color: var(--accent); }

/* panels */
.sheet { width: min(620px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 12px;
  scrollbar-width: thin; scrollbar-color: rgba(233, 230, 223, 0.25) transparent; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 8px; }
.panel-head .label { margin: 0; }
.x { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; }
.x:hover { background: rgba(233, 230, 223, 0.08); color: var(--text); }

.label { margin: 0 0 8px; font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.note { margin: 4px 0 8px; font-size: 13px; color: var(--text-2); }
.error { margin: 6px 0 0; min-height: 0; font-size: 13px; color: var(--error); }
.error:empty { display: none; }
.mono { font-family: var(--mono); }
.count { color: var(--accent); font-family: var(--mono); letter-spacing: 0; }

/* form */
.coord-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-2); }
.field.submit { justify-content: flex-end; }
.coord-form > p { grid-column: 1 / -1; margin: 0; }
input[type=text], select { height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--ctl-border); background: var(--ctl-fill); color: var(--ctl-text);
  width: 100%; min-width: 0; text-shadow: none; }
input.mono { font-family: var(--mono); font-size: 14px; }
input::placeholder { color: rgba(233, 230, 223, 0.42); }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, rgba(233,230,223,.7) 50%), linear-gradient(135deg, rgba(233,230,223,.7) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #0b0e14; color: var(--text); }
input[aria-invalid=true] { border-color: var(--error); }

.btn, .pill, .round { cursor: pointer; border: 1px solid var(--ctl-border); background: var(--ctl-fill); color: var(--ctl-text); text-shadow: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn { height: 44px; padding: 0 16px; border-radius: 6px; font-weight: 500; }
.btn.accent { border-color: var(--accent); color: var(--accent); }
.btn:hover, .pill:hover, .round:hover { border-color: rgba(233, 230, 223, 0.5); }
.btn.accent:hover { background: rgba(242, 184, 75, 0.12); border-color: var(--accent); }
.pill { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.pill.tall { height: 44px; }
.pill[aria-pressed=true], .pill.selected { background: var(--sel-fill); color: var(--sel-text); border-color: var(--sel-fill); }
.pill.static { cursor: default; display: inline-flex; align-items: center; }
.pill.toggle { height: 44px; padding: 0 18px; }
.pill.toggle[aria-pressed=true] { background: rgba(242, 184, 75, 0.14); border-color: var(--accent); color: var(--accent); }
.round { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; line-height: 1; padding: 0; flex: none; }
.round.play { width: 48px; height: 48px; }

.presets, .pills, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.presets { margin-top: 12px; }
.chips .pill { height: 38px; font-family: var(--mono); font-size: 12px; padding: 0 12px; }
.chips.layers .pill { font-family: var(--sans); font-size: 13px; }
.pills .pill { height: 44px; padding: 0 16px; }

/* advanced */
.advanced { margin-top: 14px; }
.advanced summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--ctl-text); }
.advanced summary::-webkit-details-marker { display: none; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s; margin: 0 4px 0 2px; }
.advanced[open] .chev { transform: rotate(45deg); }
.adv-body { padding-bottom: 8px; }
.adv-body .label { margin-top: 14px; }
.adv-body .label:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.movers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; }
.movers li.empty { color: var(--text-2); font-size: 13px; }
.mover-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 10px; text-align: left; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--ctl-border); background: var(--ctl-fill); color: var(--ctl-text); }
.mover-row[aria-pressed=true] { border-color: var(--accent); background: rgba(242, 184, 75, 0.12); color: var(--text); }
.mover-row .nm { font-weight: 500; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-row .kind { font-size: 11px; color: var(--label); }
.mover-row .rate { font: 400 12px var(--mono); white-space: nowrap; }
.mover-row.cand .nm::after { content: ' (candidate)'; font-weight: 400; color: var(--label); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* play dock */
.play-dock { display: block; width: min(760px, 100%); padding: 12px 14px; }
.play-dock[hidden] { display: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wrapRow { margin-top: 12px; row-gap: 10px; column-gap: 24px; }
.transport { display: flex; gap: 14px; align-items: flex-start; }
.transport .more-btn { margin-top: 2px; }
.strip-wrap { flex: 1 1 auto; min-width: 0; }
.strip-wrap .taken { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 2px 0 2px; white-space: nowrap; }
.taken-k { flex: none; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.taken-v { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.taken-ago { flex: none; margin-left: auto; font-size: 12px; }

/* time slider: one segment per visit, real times inside a visit, the months between visits cut to a labelled gap */
.tl-wrap { position: relative; }
.tl-track { position: relative; height: 34px; cursor: pointer; touch-action: none; border-radius: 6px; }
.tl-track:focus-visible { outline-offset: 0; }
.tl-segs, .tl-gaps, .tl-ticks { position: absolute; inset: 0; pointer-events: none; }
.tl-cut { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 10.5px; line-height: 1; white-space: nowrap; color: var(--label); }
.tl-seg { position: absolute; top: 50%; height: 14px; transform: translateY(-50%); border-radius: 4px; background: rgba(233, 230, 223, 0.07); border: 1px solid rgba(233, 230, 223, 0.12); box-sizing: border-box; transition: opacity 0.15s; }
.tl-seg.dimmed { opacity: 0.35; }
.tl-tick { position: absolute; top: 50%; width: 2px; height: 8px; margin-left: -1px; transform: translateY(-50%); border-radius: 1px; background: rgba(255, 255, 255, 0.3); transition: height 0.12s, background 0.12s; }
.tl-tick.past { background: rgba(255, 255, 255, 0.62); }
.tl-tick.cur { height: 14px; background: var(--accent); }
.tl-handle { position: absolute; top: 3px; bottom: 3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px rgba(5, 7, 11, 0.8); pointer-events: none; }
.tl-handle::before { content: ''; position: absolute; left: 50%; top: -1px; width: 9px; height: 9px; transform: translate(-50%, 0) rotate(45deg); border-radius: 1px; background: var(--accent); }
.tl-tip { position: absolute; bottom: calc(100% + 4px); padding: 4px 8px; border-radius: 4px; font-size: 11.5px; white-space: nowrap; pointer-events: none;
  background: rgba(5, 7, 11, 0.9); border: 1px solid var(--ctl-border); color: var(--text); }
.tl-tip[hidden] { display: none; }
.tl-labels { position: relative; height: 22px; }
.tl-lab { position: absolute; top: 0; font-size: 11px; line-height: 20px; white-space: nowrap; color: var(--text-2); }
.tl-month { color: var(--label); opacity: 0.85; }
.tl-month { padding-left: 4px; border-left: 1px solid rgba(233, 230, 223, 0.25); line-height: 14px; margin-top: 3px; }
button.tl-visit { height: 22px; padding: 0 6px; margin-left: -7px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ctl-text); font-family: var(--mono); cursor: pointer; text-shadow: none; }
button.tl-visit:hover { border-color: var(--ctl-border); }
button.tl-visit[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: rgba(242, 184, 75, 0.12); }
.strip-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-top: 0; }
.strip-meta #visit-label { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-note { margin: 10px 0 0; max-width: 560px; font-size: 12.5px; color: var(--text-2); }
.load-line { font-size: 12px; }

.play-dock.empty .transport, .play-dock.empty .pills, .play-dock.empty #btn-rings, .play-dock.empty .mode-note { display: none; }

/* hover card */
.hover-card { position: absolute; z-index: 9; max-width: 270px; padding: 10px 12px; border-radius: 6px; font-size: 12.5px; line-height: 1.4; pointer-events: none;
  background: rgba(5, 7, 11, 0.86); border: 1px solid var(--ctl-border); color: var(--text); text-shadow: none; backdrop-filter: blur(4px); }
.hover-card .hc-name { font-weight: 600; font-size: 13px; }
.hover-card .hc-type { color: var(--accent); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.hover-card .hc-row { color: var(--text-2); }
.hover-card .hc-row b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.hover-card .hc-blend { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--ctl-border); color: var(--text-2); }

/* ---- whole-sky rewind ---- */
.rewind-input { z-index: 3; cursor: grab; touch-action: none; outline: none; }
.rewind-input.dragging { cursor: grabbing; }
.root.rewinding .sphere-only { display: none; }
.rewind .note:first-child { margin-top: 0; }
.rw-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rw-custom { margin-top: 8px; }
.rw-span2 { grid-column: span 2; }
.rw-span3 { grid-column: span 3; }
.rw-pair { display: flex; gap: 6px; }
.rw-pair input { flex: 1 1 auto; }
.rw-pair select { flex: 0 0 84px; width: 84px; }
.rw-actions { margin-top: 12px; }
.rw-accuracy { margin-top: 6px; }
.rw-accuracy .note { max-width: 540px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
/* While the sky turns the year is large and centred; once it lands it moves to the top left, off the pole. */
.rewind-hud { position: absolute; z-index: 7; left: 50%; top: clamp(64px, 11vh, 120px); transform: translateX(-50%); width: min(680px, calc(100% - 2 * var(--pad)));
  text-align: center; pointer-events: none; text-shadow: var(--shadow); opacity: 0;
  transition: opacity 0.7s ease, left 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), top 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rewind-hud.on { opacity: 1; }
.rewind-hud.landed { left: var(--pad); top: clamp(70px, 9vh, 92px); transform: none; text-align: left; width: min(580px, calc(100% - 2 * var(--pad))); }
.rwh-year { margin: 0; font: 500 clamp(44px, 7.5vw, 84px)/1 var(--serif); letter-spacing: 0.01em; font-variant-numeric: lining-nums tabular-nums; transition: font-size 0.9s ease; }
.rewind-hud.landed .rwh-year { font-size: clamp(30px, 3.6vw, 42px); }
.rewind-hud.landed .rwh-sub { margin-top: 6px; }
.rwh-sub { margin: 10px 0 0; font: 400 13px/1.45 var(--mono); color: var(--text-2); }
.rwh-legend { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- phone ---- */
@media (max-width: 720px) {
  .wordmark { font-size: 26px; }
  .readouts { font-size: 10.5px; max-width: 62%; }
  .dock { top: 84px; padding-left: 10px; padding-right: 10px; }
  .sphere-dock { width: 100%; }
  .bar { width: 100%; }
  .search { flex: 1 1 100%; max-width: none; }
  .sheet { max-height: 62vh; padding: 12px 14px 10px; border-radius: 16px; }
  .mode-note { display: none; }
  .hint { font-size: 11.5px; }
  .transport .more-label { display: none; }
  .transport .more-btn::before { content: '⋯'; font-size: 18px; }
  .status.corner { top: 66px; }
  .rewind-hud.landed { top: 104px; }
  .root.sheet-open .rewind-hud { opacity: 0; }   /* the panel covers it on a phone */
  .transport { gap: 10px; }
  .taken-ago, .strip-meta #visit-label { display: none; }   /* the track's visit labels and the hover text carry these */
  .taken-v { font-size: 12.5px; }
  .pills .pill { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage, .stage.entered { transform: none; transition: none; }
  .veil, .veil.lift { transition: none; }
  .ui > * { transition: none !important; }
  .status-bar span, .chev, .btn, .pill, .round, .tl-tick, .tl-seg { transition: none; }
  .rewind-hud, .rwh-year { transition: none; }
}
