:root {
  color-scheme: dark;
  --bg: #05070B; --card: rgba(18, 22, 30, 0.82); --solid: #141922; --sunk: #0F131A; --veil: rgba(8, 10, 15, 0.56);
  --ink: #FFFFFF; --text: #E8ECF2; --text-2: #AEB7C5; --muted: #8A92A1; --caption: #8A92A1; --subtle: #6B7384;
  --line: rgba(214, 220, 229, 0.16); --line-soft: rgba(214, 220, 229, 0.09); --grid: #1F2630; --grid-line: rgba(255, 255, 255, 0.03);
  --signal: #8AA4CE; --signal-soft: #33435C; --prism: #A99EE0; --prism-soft: #463F6B;
  --button: #F7F9FC; --button-ink: #0A0D12; --bad: #E0726B; --ray: rgba(255, 255, 255, 0.82); --ray-faint: rgba(255, 255, 255, 0.05);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45); --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.55);
  /* The soft shade the Earth's words stand on, the night's own dark or the paper's own light */
  --shade: rgba(5, 7, 11, 0.8);
  /* The sun on 3D's dial, warm against the page's cool greys */
  --sun: #F2B84B;
  --radius-lg: 28px; --radius-md: 20px; --radius-sm: 10px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* The sheet docks at the screen's right edge, where viewPadding() expects it, and it and the bars grow with a big screen */
  --panel: clamp(420px, 24vw, 620px); --edge: 14px; --shot: 54px; --bar: clamp(860px, 46vw, 1240px); --ask-width: clamp(680px, 34vw, 900px);
  --bar-w: min(var(--bar), calc(100vw - 32px)); --ask-w: min(var(--ask-width), calc(100vw - 32px));
  /* Behind a picture off the map, where the picture is clear for want of data (past a scene's edge, or where no day of a
     mosaic was clear): a hatch, as the day map and its rows draw where no day saw the ground, in the theme's own colours
     rather than a dark that would pass for ground. On the map the window's ground or the map shows there instead. */
  --nodata: repeating-linear-gradient(135deg, var(--line) 0 1.5px, var(--sunk) 1.5px 5px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F9FC; --card: rgba(255, 255, 255, 0.86); --solid: #FFFFFF; --sunk: #EEF2F6; --veil: rgba(247, 249, 252, 0.62);
  --ink: #0A0D12; --text: #111620; --text-2: #39424F; --muted: #5F6878; --caption: #6B7384; --subtle: #8A92A1;
  --line: #D6DCE5; --line-soft: rgba(214, 220, 229, 0.6); --grid: #E6ECF1; --grid-line: rgba(10, 13, 18, 0.035);
  --signal: #6A86B6; --signal-soft: #B9C8E2; --prism: #8F82D4; --prism-soft: #CFC8F0;
  --button: #0A0D12; --button-ink: #FFFFFF; --bad: #B3403A; --ray: rgba(10, 13, 18, 0.88); --ray-faint: rgba(10, 13, 18, 0.05);
  --shadow: 0 18px 60px rgba(10, 13, 18, 0.08); --shadow-lg: 0 30px 90px rgba(10, 13, 18, 0.12);
  --shade: rgba(247, 249, 252, 0.9);
  --sun: #C98410;
}
:root:not([data-theme="light"]) .mark img { filter: invert(1) brightness(1.15); }
:root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); }
/* The stars, behind the globe; only at night */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
:root[data-theme="light"] .stars { display: none; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans);
  font-feature-settings: "ss01", "cv11"; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
[hidden] { display: none !important; }

/* The map, and the faint lab grid over the globe */
.map { position: fixed; inset: 0; background: transparent; }
:root[data-theme="light"] .map { background: var(--bg); }
:root:not([data-theme="light"]) .lab-grid { display: none; }
.maplibregl-canvas:focus-visible { outline: none; }
.lab-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.6; transition: opacity 0.6s var(--ease);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 50%, #000 10%, transparent 68%); mask-image: radial-gradient(ellipse at 72% 50%, #000 10%, transparent 68%);
}
body:not(.globe) .lab-grid { opacity: 0; }

/* The satellites: their orbits around the globe, drawn in its camera */
.orbits { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbits .ring { fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.orbits .ring.near { stroke-opacity: 0.62; }
.orbits .ring.far { stroke-opacity: 0.26; stroke-dasharray: 1.5 3.5; }
.orbits .ring.s2, .orbits .sat.s2 { stroke: var(--signal); }
.orbits .ring.ls, .orbits .sat.ls { stroke: var(--prism); }
.orbits stop.s2 { stop-color: var(--signal); }
.orbits stop.ls { stop-color: var(--prism); }
.orbits .tail { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.orbits .sat { fill: var(--solid); stroke-width: 1.7; }
.orbits .sat.far { opacity: 0.5; }
.orbits .beam { stroke: none; }
.orbits .name { fill: var(--muted); font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; dominant-baseline: central; }
.orbits .hit { fill: transparent; pointer-events: all; }
.no-map { position: fixed; z-index: 3; left: 50%; bottom: 34%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--solid); color: var(--muted); font-size: 13.5px; text-align: center; }
body.arrive .no-map { bottom: 12%; }
.maplibregl-ctrl-bottom-left { bottom: 0; transition: bottom 0.4s var(--ease); }
body .maplibregl-ctrl-bottom-left { bottom: calc(var(--low, 96px) + 8px); }
body.panel-open .maplibregl-ctrl-bottom-left { bottom: 178px; }
body.arrive .no-map { bottom: 30%; }
.maplibregl-ctrl.maplibregl-ctrl-attrib { margin: 0 0 8px 10px !important; border-radius: 999px; background: var(--card) !important; color: var(--caption); font: 10px/1.5 var(--mono); }
.maplibregl-ctrl-attrib a { color: var(--caption) !important; }
.maplibregl-ctrl-attrib-button { background-color: transparent !important; opacity: 0.6; }
/* The credit for the ground in the window, over the map's own while it is drawn (imageryCredit in app.js). */
.maplibregl-ctrl.imagery-credit { margin: 0 0 4px 10px !important; }
.imagery-credit[hidden] { display: none; }
.imagery-credit a { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--card); color: var(--caption); font: 10px/1.6 var(--mono); text-decoration: none; }
.imagery-credit a:hover, .imagery-credit a:focus-visible { color: var(--ink); }

/* The lens: the window in true kilometres, the RayX rays and flare at its heart */
.lens { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.lens-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.veil { fill: var(--veil); fill-rule: evenodd; }
/* An empty window is moved by a drag; one with a picture, or with days on their way, moves the map with it. */
.frame { fill: transparent; stroke: var(--ink); stroke-opacity: 0.9; stroke-width: 1; pointer-events: all; cursor: move; }
.lens.pans .frame { cursor: grab; }
body.dragging, body.dragging .frame { cursor: grabbing; }
.marks { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; }
/* On a touch screen the map takes the taps over the window, which read a spot there (onMapClick), and its pinches */
@media (hover: none) { .frame { pointer-events: none; } }
.xray { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
.xray::before, .xray::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 1px; border-radius: 999px; }
.xray::before { background: linear-gradient(90deg, transparent 0%, var(--ray-faint) 22%, var(--ray) 50%, var(--ray-faint) 78%, transparent 100%); transform: translate(-50%, -50%) rotate(-45deg); }
.xray::after { background: linear-gradient(90deg, transparent, var(--ray-faint), var(--ray), var(--ray-faint), transparent); transform: translate(-50%, -50%) rotate(45deg); opacity: 0.55; }
.xray .halo { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(143, 130, 212, 0.18), transparent 62%); filter: blur(4px); }
.xray .flare { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); background: #FFFFFF; box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.14), 0 0 18px #FFFFFF, 0 0 48px rgba(143, 130, 212, 0.55), 0 0 110px rgba(106, 134, 182, 0.45); }
body.has-result .xray { opacity: 0; }
.lens.tiny .xray::before, .lens.tiny .xray::after, .lens.small .halo { display: none; }
/* While a place's first pictures are on their way, a light runs round the window's frame, a soft tail behind it. A
   vector stroke, which every browser draws sharp: the band of gradient that swept across the lens before came out
   banded and blocky in Safari. */
.trace { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 9 91; opacity: 0; transition: opacity 0.4s; }
.trace.tail { stroke: var(--signal); stroke-width: 5; stroke-dasharray: 26 74; stroke-dashoffset: 17; }
.frame { transition: stroke-opacity 0.4s; }
body.developing:not(.has-result) .frame { stroke-opacity: 0.35; }
body.developing:not(.has-result) .trace { opacity: 1; animation: trace 2.8s linear infinite; }
body.developing:not(.has-result) .trace.tail { opacity: 0.38; animation-name: trace-tail; }
@keyframes trace { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes trace-tail { from { stroke-dashoffset: 17; } to { stroke-dashoffset: -83; } }
.lens-label { position: absolute; left: 0; top: 0; padding: 3px 7px; border-radius: 6px; background: var(--solid); color: var(--caption); font: 500 10px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 10px rgba(10, 13, 18, 0.06); }
.lens-label:empty, .lens.small .lens-label { display: none; }
/* The point read on every day, where it was tapped on the window, breathing while it is read (drawPin in app.js) */
.pin { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #FFFFFF; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(10, 13, 18, 0.75), 0 2px 8px rgba(0, 0, 0, 0.45); pointer-events: none; }
.pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #FFFFFF; }
.pin.busy { animation: breathe 1.4s ease-in-out infinite; }
.sky { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); box-shadow: var(--shadow); color: var(--text-2); user-select: none; -webkit-user-select: none; touch-action: none; }
.sky svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sky-half { fill: var(--prism); stroke: none; }
.sky[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lens.small .sky { display: none; }
/* Held, a ring fills round it in SKY_KEEP_MS (lib.js): let go once it is full, the atmosphere is kept, which a dot on
   the ring says, until a press clears it. Under reduced motion the ring is drawn whole at once when it is full */
.sky { transition: opacity 0.16s var(--ease); -webkit-touch-callout: none; }
.sky .sky-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; pointer-events: none; transform: rotate(-90deg); }
.sky-ring circle { fill: none; stroke: var(--prism); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.sky.holding .sky-ring circle { opacity: 1; animation: sky-fill 0.6s linear forwards; }
.sky.full .sky-ring circle, .sky.kept .sky-ring circle { opacity: 1; stroke-dashoffset: 0; animation: none; }
.sky.kept::after { content: ""; position: absolute; top: -6px; right: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--prism); box-shadow: 0 0 0 2px var(--bg); }
@keyframes sky-fill { to { stroke-dashoffset: 0; } }
/* In 3D, where the window's corners move with every turn, it stands under the dial with 3D's other buttons, still;
   it fades out and in as it goes there and back, and never slides (dockSky in app.js) */
.sky.fading { opacity: 0; }
.lens .sky.docked { left: 25px; top: 304px; transform: none; }
.lens.small .sky.docked { display: grid; }
.lens.narrow #lens-size { display: none; }

/* The panel: a reading of the ground, not a file list */
.panel {
  position: fixed; z-index: 26; top: 82px; right: var(--edge); width: var(--panel); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 22px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--card);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); box-shadow: var(--shadow-lg);
}
.panel-top { position: sticky; top: 0; z-index: 3; height: 0; }
.panel-top .close { top: -8px; right: -8px; }
/* A phone's sheet has a grip at its top, goes down with a finger pulled down it, and slides away or back once let go
   (startSheetPull in app.js) */
.panel-grip { display: none; }
.panel.settling { transition: transform 0.24s var(--ease); }
.close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); color: var(--text-2); font-size: 17px; line-height: 1; }
.p-kicker { margin: 0 44px 8px 0; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
/* A mosaic's days: a picture, a day, a bar for its share of the mosaic and its cloud. Each day that gave pixels has a
   colour (--day), the one its pixels wear on the map of days: a ring round its picture and its bar. A day shown alone
   dims the others */
.mosaic-days { display: grid; gap: 2px; margin: 12px -6px 14px; }
.mosaic-day { display: grid; grid-template-columns: 34px minmax(70px, auto) 1fr 46px; align-items: center; gap: 10px; width: 100%; padding: 5px 6px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; transition: background 0.15s var(--ease), opacity 0.15s var(--ease); }
button.mosaic-day { cursor: pointer; }
button.mosaic-day:hover, button.mosaic-day.lit { background: var(--sunk); }
button.mosaic-day:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
/* A day that gave the mosaic nothing lies back, with no colour and nothing to show: it was tried, and a day tried
   before it was as clear wherever it was */
.mosaic-day.spare { opacity: 0.6; }
.mosaic-days.marking .mosaic-day:not(.lit) { opacity: 0.42; }
.mosaic-thumb { display: block; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--nodata); box-shadow: 0 0 0 1px var(--line-soft); }
.mosaic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic-day.keyed .mosaic-thumb { box-shadow: 0 0 0 2px var(--day); }
.mosaic-day.lit .mosaic-thumb, button.mosaic-day[aria-pressed="true"] .mosaic-thumb { box-shadow: 0 0 0 2px var(--solid), 0 0 0 4px var(--day, var(--signal)); }
.mosaic-when { display: grid; gap: 2px; min-width: 0; }
.mosaic-when b { color: var(--ink); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.mosaic-when small { overflow: hidden; color: var(--muted); font-size: 10.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.mosaic-share { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; min-width: 0; }
.mosaic-bar { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--grid); }
.mosaic-bar i { display: block; width: calc(var(--share, 0) * 100%); min-width: 2px; height: 100%; border-radius: 3px; background: var(--day, var(--signal)); position: relative; }
/* Behind what a day gave, how much of the window it saw clear: the same colour, faint. A day gives no more than it saw */
.mosaic-bar i.was { position: absolute; inset: 0 auto 0 0; min-width: 0; background: var(--day, var(--muted)); opacity: 0.34; }
.mosaic-day.spare .mosaic-bar i.was { opacity: 0.7; }
.mosaic-share b { color: var(--ink); font: 600 11px/1 var(--mono); text-align: right; }
.mosaic-cloud { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); font: 500 10.5px/1 var(--mono); }
.mosaic-cloud svg { flex: none; width: 13px; height: 13px; fill: currentColor; opacity: 0.75; }
.mosaic-day.none .mosaic-bar i { background: repeating-linear-gradient(135deg, var(--subtle) 0 1.5px, transparent 1.5px 5px); }
/* The key of the hatch is a piece of the map: the map's own light lines on its own dark ground, in either theme */
.mosaic-day.none .mosaic-thumb { background: repeating-linear-gradient(135deg, var(--hatch, var(--subtle)) 0 1.5px, var(--hatch-ground, transparent) 1.5px 5px); box-shadow: 0 0 0 1px var(--line); }
.mosaic-day.none .mosaic-when b, .mosaic-day.none .mosaic-share b { color: var(--muted); font-weight: 500; }
.mosaic-periods { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 12px; }
.mosaic-periods button { height: 26px; padding: 0 10px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--sunk); color: var(--muted); font: 500 11.5px/1 var(--sans); }
.mosaic-periods button[aria-pressed="true"] { border-color: var(--line); background: var(--solid); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 13, 18, 0.12); }
/* Every step goes to a mosaic, one of a single day too, and carries the stack's mark, as its tile on the film does */
.mosaic-periods button::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 0 1px; border-radius: 1.5px; background: var(--prism); box-shadow: 2.5px -2.5px 0 0 var(--prism-soft); }
.mosaic-periods button:disabled { opacity: 0.45; cursor: default; }
.mosaic-periods button:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.preview-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--prism); border-radius: 10px; background: var(--sunk); }
.preview-note b { color: var(--text); font-size: 12.5px; font-weight: 600; }
.preview-note p { margin: 0; color: var(--caption); font-size: 12px; line-height: 1.45; }
/* A running day's steps: four dots on a line, the done ones filled, the one being made breathing */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 8px; padding: 0; list-style: none; }
.stages li { position: relative; display: grid; justify-items: center; gap: 7px; color: var(--muted); font: 500 9.5px/1.2 var(--mono); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.stages li::before { content: ""; position: absolute; top: 5px; right: 50%; width: 100%; height: 2px; background: var(--grid); }
.stages li:first-child::before { display: none; }
.stages li i { position: relative; z-index: 1; box-sizing: border-box; width: 12px; height: 12px; border: 2px solid var(--subtle); border-radius: 50%; background: var(--solid); }
.stages li.done { color: var(--text-2); }
.stages li.done::before, .stages li.now::before { background: var(--signal); }
.stages li.done i { border-color: var(--signal); background: var(--signal); }
.stages li.now { color: var(--ink); }
.stages li.now i { border-color: var(--prism); box-shadow: 0 0 0 4px var(--prism-soft); animation: breathe 1.6s ease-in-out infinite; }
.stages.idle li.now { color: var(--muted); }
.stages.idle li.now i { border-style: dashed; border-color: var(--subtle); box-shadow: none; animation: none; }
.day-wait { aspect-ratio: 1; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--sunk); animation: breathe 1.8s ease-in-out infinite; }
.day-wait.idle { opacity: 0.6; animation: none; }
.p-place { margin-right: 44px; color: var(--ink); font-size: 22px; font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; }
/* A day's head: its kicker, and beside it, level with the close button, the days to step between */
.p-head { display: flex; align-items: center; gap: 12px; min-height: 32px; margin: -8px 44px 6px 0; }
.p-head .p-kicker { flex: 1 1 auto; min-width: 0; margin: 0; }
.p-steps { flex: none; display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--sunk); }
.p-step { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font: 300 20px/24px var(--sans); }
.p-step:hover:not(:disabled) { background: var(--solid); color: var(--ink); }
.p-step:disabled { opacity: 0.28; }
.p-count { min-width: 34px; color: var(--muted); font: 500 10.5px/1 var(--mono); letter-spacing: 0.04em; text-align: center; }
.p-when { margin-top: 5px; color: var(--muted); font-size: 13.5px; }
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--text); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.sec-label .idx { color: var(--signal); font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* What the window on the map shows, at the head of a day's sheet, and a map's scale */
.layers { margin: 10px 0 6px; }
.layers .seg { display: flex; }
.layers .seg button { flex: 1 1 auto; min-width: 0; padding: 0 6px; }
.scale { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 5px 12px; margin-top: 10px; color: var(--caption); font: 500 10px/1.3 var(--mono); }
.scale-ramp { grid-column: 1 / -1; height: 8px; border-radius: 3px; }
.lens-ramp { display: inline-block; width: 56px; height: 6px; margin: 0 6px; border-radius: 2px; vertical-align: 1px; }
/* Each kind of land's colour: a hue of its own (trees deep green, grass mint, crops gold, towns rose, water blue),
   designed in OKLCH at even weight and stepped for each theme, at 3.4:1 or more against the sheet. Colour is never all
   that tells kinds apart: every line sits in a row with its name, and the spectrum shows one kind at a time. */
:root { --lc10: #2E7C35; --lc20: #BD712E; --lc30: #3FAA7D; --lc40: #B5820C; --lc50: #D5587A; --lc60: #8574B6; --lc70: #46A0C4; --lc80: #3883D1; --lc90: #1D97A3; --lc95: #0E8474; --lc100: #90893B; }
:root[data-theme="light"] { --lc10: #256C2C; --lc20: #AB5E0C; --lc30: #25966A; --lc40: #A67608; --lc50: #BD3962; --lc60: #6D5C9C; --lc70: #2785A9; --lc80: #0D6ABB; --lc90: #0E808B; --lc95: #027062; --lc100: #7E7727; }
.lc { --lc: var(--text-2); }
.lc10 { --lc: var(--lc10); } .lc20 { --lc: var(--lc20); } .lc30 { --lc: var(--lc30); } .lc40 { --lc: var(--lc40); } .lc50 { --lc: var(--lc50); } .lc60 { --lc: var(--lc60); }
.lc70 { --lc: var(--lc70); } .lc80 { --lc: var(--lc80); } .lc90 { --lc: var(--lc90); } .lc95 { --lc: var(--lc95); } .lc100 { --lc: var(--lc100); }
.pt { --lc: var(--ink); }
.sw { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--lc); }
.sw.pt { width: 8px; height: 8px; margin: 0 1px; border-radius: 1px; transform: rotate(45deg); }
/* Land through time: the window's shares as one bar, then a row for each kind, its small line on one shared scale and
   calendar, its value on the day on show and the change since the first; the days run along the bottom */
.cover-bar { display: flex; gap: 2px; height: 8px; margin: 2px 0 12px; overflow: hidden; border-radius: 3px; }
.cover-bar i { flex: 1 1 0; min-width: 3px; background: var(--lc); }
.lt-caption { margin: 0 0 4px; color: var(--caption); font: 500 9.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.lt-rows { display: grid; margin: 0 -8px; }
.lt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "spark spark"; align-items: center; gap: 3px 12px; width: 100%; padding: 9px 8px 5px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lt-row:first-child, .lt-row.on, .lt-row.on + .lt-row { border-top-color: transparent; }
.lt-row.on { background: var(--sunk); background: color-mix(in oklab, var(--lc) 14%, transparent); }
.lt-name { grid-area: name; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.lt-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-name small { color: var(--muted); font: 500 10.5px/1 var(--mono); }
.lt-value { grid-area: value; display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.lt-value b { color: var(--ink); font: 500 14px/1 var(--mono); }
.lt-value small { color: var(--muted); font: 10px/1 var(--mono); }
.lt-spark, .lt-spark-empty { grid-area: spark; display: block; width: 100%; height: auto; overflow: visible; }
.lt-spark-empty { height: 4px; }
.lt-spark .trace { fill: none; stroke: var(--lc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lt-spark .g0, .chart.spectrum .g0 { stop-color: var(--lc); stop-opacity: 0.28; }
.lt-spark .g1, .chart.spectrum .g1 { stop-color: var(--lc); stop-opacity: 0; }
.lt-spark .mark { fill: var(--lc); }
.lt-spark .mark.today { stroke: var(--solid); stroke-width: 2; }
.lt-spark .mark.preview { fill: var(--solid); stroke: var(--lc); stroke-width: 1.5; stroke-dasharray: 2 1.5; }
.lt-row.on .lt-spark .mark.today { stroke: var(--sunk); }
.lt-spark .now { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
/* The point's row, with its × on its first line, clear of its value; and before a point, its place, faint */
.lt-point { position: relative; }
.lt-point.on + .lt-row { border-top-color: transparent; }
.lt-point .lt-value { margin-right: 28px; }
.lt-drop { position: absolute; top: 3px; right: 3px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 300 18px/30px var(--sans); }
.lt-drop:hover { background: var(--line-soft); color: var(--ink); }
.lt-ask { display: flex; align-items: center; gap: 8px; padding: 9px 8px 8px; color: var(--caption); font-size: 12.5px; }
.lt-ask .sw.pt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--subtle); }
.lt-axis { margin-top: 4px; }
.lt-axis .axis.today { fill: var(--ink); }
/* The spectrum: the series picked in its colour with its bands marked, the point dashed, the rest faint behind */
.sp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 4px; }
.sp-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 12.5px; }
.sp-hint { color: var(--caption); font: 500 9.5px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.chart.spectrum .sp-line { fill: none; stroke: var(--lc); stroke-linejoin: round; stroke-linecap: round; }
.chart.spectrum .sp-line.context { stroke: var(--text-2); stroke-opacity: 0.32; stroke-width: 1.25; }
.chart.spectrum .sp-line.focus { stroke-width: 2.25; }
.chart.spectrum .sp-line.compare { stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart.spectrum .sp-mark.focus { fill: var(--lc); stroke: var(--solid); stroke-width: 1.5; }
.chart.spectrum .sp-mark.compare { fill: var(--solid); stroke: var(--lc); stroke-width: 1.25; }
.blk { margin-top: 22px; }
.blk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-bottom: 8px; }
.blk-title { color: var(--text); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--sunk); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 11.5px/1 var(--sans); }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 13, 18, 0.12); }
.caption { margin-top: 9px; color: var(--caption); font-size: 12px; line-height: 1.45; }
.reading { color: var(--text); font-size: 15px; line-height: 1.5; }
.reading.bad { color: var(--bad); margin-top: 18px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .gridline.zero { stroke: var(--line); }
.chart .axis { fill: var(--caption); font: 9px var(--mono); letter-spacing: 0.04em; }
.chart .axis.small { font-size: 8.5px; }
.chart .region { fill: var(--subtle); font: 500 8px var(--mono); letter-spacing: 0.1em; }
.chart .ir { fill: var(--line); }
.chart .band-area { fill: var(--signal-soft); opacity: 0.6; }
.chart .median { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: var(--line-soft); }
.chart .dot { fill: var(--solid); stroke: var(--ink); stroke-width: 1.5; }
.chart .dot.weak { stroke-dasharray: 2 1.6; }
.code { margin-top: 18px; }
.code-intro { margin-bottom: 8px; color: var(--muted); font-size: 12.5px; }
.code-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--sunk); }
.code-tabs button { height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 10.5px/1 var(--mono); letter-spacing: 0.04em; }
.code-tabs button[aria-selected="true"] { background: var(--solid); color: var(--text); box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1); }
.codeblock { position: relative; margin-top: 8px; }
.code-head, .code-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-label { margin-top: 12px; }
.code-label .small { margin: 0 !important; }
.code-head .copy, .code-label .copy, .copyline .copy { position: static; }
.codeblock pre { max-height: 250px; margin: 0; padding: 12px 14px; overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--sunk); color: var(--text-2); font: 10.5px/1.6 var(--mono); letter-spacing: 0; white-space: pre; }
.copy { position: absolute; top: 8px; right: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text-2); font: 500 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.evidence { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--caption); font: 9.5px/1.75 var(--mono); letter-spacing: 0.05em; }
.evidence b { color: var(--signal); font-weight: 500; }
.status-line { margin-top: 10px; color: var(--text-2); font: 10.5px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* For AI agents */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(10, 13, 18, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-card { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px 36px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--solid); box-shadow: var(--shadow-lg); }
.sheet-card h2 { color: var(--ink); font-size: clamp(30px, 4vw, 44px); font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; }
.intro { max-width: 560px; margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 30px; }
.steps p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.steps a { color: var(--text); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.steps .small { margin-top: 10px; color: var(--caption); font-size: 12.5px; }
.copyline { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); }
.copyline code { flex: 1; overflow: hidden; color: var(--text); font: 12.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.copyline .copy { position: static; }
.asks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.asks li { padding: 10px 14px; border-radius: 14px; background: var(--sunk); color: var(--text); font-size: 14px; }
.tools { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--caption); font: 10px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* Buttons and pills, as on rayx.co.uk */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; cursor: pointer; user-select: none; -webkit-user-select: none; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text-2); font-size: 12.5px; text-decoration: none; white-space: nowrap; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.pill:hover { border-color: var(--subtle); color: var(--text); }
.pill.dark { border-color: transparent; background: var(--button); color: var(--button-ink); box-shadow: 0 6px 18px rgba(10, 13, 18, 0.16); }
.pill.dark:hover { transform: translateY(-1px); }
.pill:disabled { color: var(--muted); cursor: default; }
/* The period and the button that makes its mosaics stay side by side where the bar wraps. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.button.light { background: var(--solid); }
.arr { font-family: var(--mono); font-size: 13px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--subtle); opacity: 0.6; }

/* The corners: RayX's mark, and the visitor */
.mark { position: fixed; z-index: 30; top: 20px; left: 22px; display: block; padding: 8px 10px; border-radius: 12px; }
.mark img { display: block; height: 20px; width: auto; }
/* The corner's buttons, in one row from the right: the account, your days, and Export with something on the window */
.corner { position: fixed; z-index: 30; top: 18px; right: 20px; display: flex; align-items: center; gap: 8px; }
.me { position: relative; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text-2); font: 500 13px/36px var(--sans); text-align: center; box-shadow: var(--shadow); }
/* The map's buttons, one stack under the logo that never moves, whatever the dock, the film or the sheet do: back to
   the whole globe, the zoom (renderHome in app.js), and with a window on show the cube that lays it on the terrain in
   3D (renderThree). On a phone a pinch zooms, and the stack is the way home and the cube */
.map-tools { position: fixed; z-index: 30; top: 68px; left: 22px; display: grid; width: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.map-tool { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--text-2); transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.map-tool + .map-tool { border-top: 1px solid var(--line-soft); }
.map-tool:hover:not(:disabled) { background: var(--line-soft); color: var(--ink); }
.map-tool:disabled { color: var(--subtle); opacity: 0.45; }
.map-tool:focus-visible { outline-offset: -4px; }
.map-tool svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.map-tool.zoom svg { width: 17px; height: 17px; stroke-width: 1.6; }
.map-tool.three svg { stroke-linejoin: round; }
.map-tool.three[aria-pressed="true"], .map-tool.three[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }
/* While the terrain under the window is measured, before the map tilts */
.map-tool.three.busy svg { animation: breathe 1.2s ease-in-out infinite; }
/* A phone's credits: an ⓘ at the foot of the stack, which opens them in a small sheet beside it (renderCredits in
   app.js). A larger screen has them in the map's own credits, under it */
.map-tool.credits { display: none; }
.map-tools.credits-alone .map-tool.credits { border-top: 0; }
.map-tool.credits .dot { stroke-width: 2.2; }
.map-tool.credits[aria-expanded="true"] { background: var(--line-soft); color: var(--ink); }
/* 3D's dial, under the map's stack (renderDial in app.js): a ring that turns with the map, its N to the north, and a sun
   where the sun stood when the picture on show was taken, hollow while that is a guess. A drag across it turns and tilts
   the view, a press in its middle sets the view going round the window, and one on its sun turns the view to the sun's
   back. --turn and --sun-at, from the map, turn the ring and place the sun on it; the browser alone draws them. The sun's
   button is wider than its mark, for a finger, and gives way to the middle's where they meet */
.dial { --dial: 56px; --turn: 0deg; --sun-at: 0deg; position: fixed; z-index: 30; top: 235px; left: 14px; width: var(--dial); height: var(--dial); border: 1px solid var(--line); border-radius: 50%; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.dial.turning { cursor: grabbing; }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(calc(-1 * var(--turn))); pointer-events: none; }
.dial-track, .dial-ticks { fill: none; stroke: var(--subtle); stroke-width: 1.2; stroke-linecap: round; }
.dial-north { fill: var(--ink); font: 600 9px/1 var(--mono); text-anchor: middle; dominant-baseline: central; }
.dial-sun { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sun); transform: rotate(calc(var(--sun-at) - var(--turn))) translateY(calc(var(--dial) * -0.375)) rotate(calc(var(--turn) - var(--sun-at))); }
.dial-sun svg { display: block; width: calc(var(--dial) * 0.34); height: calc(var(--dial) * 0.34); fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.dial-sun.guess circle { fill: var(--solid); }
.dial-orbit { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.dial-orbit:hover { background: var(--line-soft); color: var(--ink); }
.dial-orbit[aria-pressed="true"], .dial-orbit[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }
.dial-orbit svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.credits-sheet { position: fixed; z-index: 31; top: 58px; left: 60px; width: min(300px, calc(100vw - 72px)); max-height: calc(100dvh - 140px); overflow-y: auto; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--solid); box-shadow: var(--shadow-lg); }
.credit { margin: 0 0 9px; color: var(--text-2); font: 12.5px/1.45 var(--sans); overflow-wrap: anywhere; }
.credit b { display: block; margin-bottom: 1px; color: var(--caption); font: 500 10px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.credit a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
/* In 3D the window lies on the terrain and the map draws it there (layWindowOnGround in app.js): the page's square on
   the screen, its veil, its marks, the light round it and its rays would no longer match it, and step aside. Its labels
   stay, at its corners on the ground, and so does the sky button */
body.three .lens .veil, body.three .lens .frame, body.three .lens .trace, body.three .lens .marks, body.three .lens .xray { display: none; }
/* Your days: always in reach */
.results { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text); font: 500 13px/1 var(--sans); box-shadow: var(--shadow); }
.results-icon { display: grid; grid-template-columns: 6px 6px; gap: 2px; }
.results-icon i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--signal); }
.results-icon i:nth-child(2), .results-icon i:nth-child(3) { opacity: 0.5; }
.results.busy::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: breathe 1.4s ease-in-out infinite; }
.results.pop { animation: pop 0.6s var(--ease); }
.results:hover { border-color: var(--subtle); color: var(--text); }
/* With a window open, a tap elsewhere offers to look there instead */
.move { position: fixed; z-index: 31; left: 0; top: 0; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--button); color: var(--button-ink); font: 500 12.5px/34px var(--sans); white-space: nowrap; box-shadow: 0 6px 18px rgba(10, 13, 18, 0.24); }
.move::after { content: ""; position: absolute; left: 50%; bottom: -4px; z-index: -1; width: 10px; height: 10px; border-radius: 2px; background: inherit; transform: translateX(-50%) rotate(45deg); }
/* Your days, as a collection: a row of pictures for each place */
.lib-place { margin-top: 22px; }
.lib-name { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: 500 15px/1.3 var(--sans); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lib-meta { margin: 2px 0 10px; color: var(--caption); font: 10px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.lib-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 8px; }
.lib-shots .shot { width: auto; }
.lib-shots .shot img, .lib-shots .shot-wait { width: 100%; height: auto; aspect-ratio: 1; }
.lens-label { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
/* The admins' usage: each person's corrections today against their limit, and a reset for one or for all */
.use-all { margin-top: 16px; }
.use-rows { display: grid; gap: 2px; margin-top: 14px; }
.use-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.use-who { min-width: 0; overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.use-count { color: var(--caption); font: 500 11px/1.4 var(--mono); letter-spacing: 0.04em; }
.use-bar { grid-column: 1; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line-soft); }
.use-bar i { display: block; height: 100%; border-radius: 2px; background: var(--signal); }
.use-bar.full i { background: var(--bad); }
.use-row .pill { grid-column: 2; grid-row: 1 / span 2; height: 30px; }
/* Export and share: the corner's button, and its panel, a card under it, three short groups of a mark, a word or two
   and a quiet hint of what each file is. A person's public link of their own days stands first, lit once made, with
   the link to copy, what it gives, and the stop; the person's links are in their menu too, each with its place and
   days; a view opened from a link has a quiet mark, and one plain line where the link has stopped */
.export { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text-2); box-shadow: var(--shadow); }
.export svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.export:hover, .export[aria-expanded="true"] { border-color: var(--subtle); color: var(--text); }
.export[aria-expanded="true"] { background: var(--solid); }
.export-panel { position: fixed; z-index: 33; top: 64px; right: var(--export-right, 20px); width: min(330px, calc(100vw - 40px)); max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--solid); color: var(--text); box-shadow: var(--shadow-lg); }
.export-panel.settling { transition: transform 0.24s var(--ease); }
.export-top { position: sticky; top: 0; z-index: 3; height: 0; }
.export-top .close { top: -8px; right: -2px; width: 28px; height: 28px; font-size: 15px; }
.ex-group + .ex-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ex-title { margin: 0 40px 4px 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ex-items { display: grid; gap: 1px; }
.ex-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 500 13.5px/1.25 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.ex-item:hover, .ex-item:focus-visible, .ex-item[aria-expanded="true"] { background: var(--sunk); }
.ex-item[aria-disabled="true"] { cursor: default; }
.ex-item svg, .ex-public-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--text-2); }
.ex-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-hint { color: var(--caption); font: 10.5px/1 var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.ex-item.busy svg { animation: breathe 1.4s ease-in-out infinite; }
.ex-none { margin: 2px 8px 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ex-public { display: grid; gap: 8px; }
.ex-public.on { margin: 2px 0 6px; padding: 10px; border: 1px solid var(--signal); border-radius: 14px; }
.ex-public-head { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 500 13.5px/1.25 var(--sans); }
.ex-public.on .ex-public-head svg { color: var(--signal); }
.ex-public.preparing .ex-public-head svg { animation: breathe 1.4s ease-in-out infinite; }
.ex-public .copyline { min-width: 0; padding: 4px 4px 4px 12px; }
.ex-public .copyline code { min-width: 0; font-size: 11.5px; user-select: all; -webkit-user-select: all; }
.ex-public-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-public-acts .pill { height: 30px; }
.export-panel .code { margin: 8px 4px 2px; }
.export-panel .codeblock pre { max-height: 200px; }
.share-says { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.share-says.bad { color: var(--bad); }
.ex-public > .share-says.bad { margin: 0 8px 4px; }
.shared-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
/* Its words go where the corner's buttons would reach them, the globe staying (fitSharedMark in app.js) */
.shared-mark.tight { gap: 0; padding: 0 6px; font-size: 0; letter-spacing: 0; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 8px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.link-place { grid-column: 1; grid-row: 1; min-width: 0; overflow: hidden; color: var(--text); font-size: 14px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.link-place:hover { text-decoration: underline; }
.link-days { grid-column: 1; grid-row: 2; color: var(--caption); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.link-row .pill { grid-row: 1 / span 2; height: 30px; }
.link-row .link-copy { grid-column: 2; }
.link-row .link-stop { grid-column: 3; }
.shared-mark { position: fixed; z-index: 29; top: 26px; left: 50%; display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--muted); font: 600 9.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; transform: translateX(-50%); pointer-events: none; }
.share-gone { position: fixed; z-index: 40; top: 46%; left: 50%; max-width: min(420px, calc(100% - 32px)); margin: 0; padding: 14px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); box-shadow: var(--shadow); color: var(--text); font-size: 15px; text-align: center; transform: translate(-50%, -50%); }
/* A shared view keeps its days: the calendar is not offered on it */
body.shared-view .when { pointer-events: none; }
body.shared-view .when svg { display: none; }
/* The requests to sign in, for the admins (openRequests in app.js): how many may sign in against Cloudflare's free
   seats, those waiting with Approve and Decline, those who may sign in with Remove, and those declined. The menu's
   entry carries how many wait, and the avatar a dot while any do */
.count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--prism-soft); color: var(--ink); font: 600 10.5px/1 var(--mono); vertical-align: 1px; }
.me.asked::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--prism); box-shadow: 0 0 0 2px var(--bg); }
.req-seats { display: grid; gap: 7px; margin-top: 14px; }
.req-seats .use-bar { grid-column: auto; height: 6px; border-radius: 3px; }
.req-seats .use-bar i { border-radius: 3px; }
.req-seats .use-bar.near i { background: var(--prism); }
.req-seats p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: var(--caption); font: 11px/1.5 var(--mono); letter-spacing: 0.03em; }
.req-seats p span:first-child { color: var(--text-2); }
.req-seats p.bad { display: block; color: var(--bad); font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }
.req-section { margin-top: 24px; }
.req-section .sec-label { margin-bottom: 4px; }
.req-rows { display: grid; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
.req-row:last-child { border-bottom: 0; }
.req-who { min-width: 0; }
.req-name { color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.req-org { color: var(--text-2); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.req-email { margin-top: 2px; color: var(--caption); font: 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.req-reason { grid-column: 1 / -1; color: var(--text-2); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.req-when { grid-column: 1 / -1; color: var(--caption); font: 10.5px/1.4 var(--mono); letter-spacing: 0.03em; }
.req-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.req-acts .pill { height: 32px; padding: 0 12px 0 10px; gap: 6px; }
.req-acts .pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.req-acts .pill.armed { border-color: var(--bad); color: var(--bad); }
.req-acts .pill:disabled { opacity: 0.55; }
.req-out { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; color: var(--bad); font-size: 12.5px; line-height: 1.4; }
.req-out svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.req-row.decided .req-name { color: var(--text-2); font-weight: 400; }
.req-empty { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
/* Asking to sign in: a choice between signing in and asking, a short form, and what happens next, on the sheet the
   agents' guide uses */
.access-card { width: min(540px, 100%); }
.access-card h2 { font-size: clamp(28px, 3.4vw, 38px); }
.access-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.access-acts .pill { height: 40px; padding: 0 18px; font-size: 13.5px; }
.access-form { display: grid; gap: 12px; margin-top: 22px; }
.access-field { display: grid; gap: 5px; color: var(--text-2); font-size: 12.5px; }
.access-field span { display: flex; justify-content: space-between; gap: 10px; }
.access-field small { color: var(--caption); font: 10.5px/1.6 var(--mono); }
.access-field input, .access-field textarea { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--text); font: 400 14.5px/1.4 var(--sans); }
.access-field textarea { min-height: 88px; resize: vertical; }
.access-field input::placeholder, .access-field textarea::placeholder { color: var(--caption); opacity: 1; }
.access-field input:focus-visible, .access-field textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.access-note { color: var(--caption); font-size: 12.5px; line-height: 1.45; }
.access-error { color: var(--bad); font-size: 13px; line-height: 1.4; }
.access-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.access-mail { color: var(--text); font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
/* Signing in: each provider a button of its own, then a code to an email, or its passkey. */
.providers { display: grid; gap: 8px; margin-top: 22px; }
.providers .pill.provider { justify-content: flex-start; gap: 12px; height: 44px; padding: 0 18px; font-size: 14px; }
.provider .idp-mark { flex: none; width: 18px; height: 18px; }
.provider .idp-mark.apple { fill: currentColor; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 -8px; color: var(--caption); font: 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.signin-form { margin-top: 18px; }
.signin-form .access-acts { margin-top: 4px; }
.access-field input:disabled { opacity: 0.55; }
/* Cloudflare Turnstile's check, drawn by its own script where it needs a tick; nothing shows while it passes alone. */
.person-check { min-width: 0; max-width: 100%; overflow: hidden; }
.person-check:empty { display: none; }
.req-note { margin-top: 10px; color: var(--caption); font-size: 12.5px; line-height: 1.45; }
/* A person's agent keys, in For AI agents. */
.agent-box { display: grid; gap: 12px; }
.agent-keys { display: grid; }
.agent-key { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.agent-key:last-child { border-bottom: 0; }
.agent-name { color: var(--text); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.agent-made { grid-row: 2; color: var(--caption); font: 10.5px/1.4 var(--mono); letter-spacing: 0.03em; }
.agent-key .pill { grid-row: 1 / 3; grid-column: 2; height: 32px; padding: 0 12px; }
.agent-key .pill.armed { border-color: var(--bad); color: var(--bad); }
.agent-form { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-form input { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--text); font: 400 14px/1.4 var(--sans); }
.agent-form input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.agent-form .pill { height: 40px; padding: 0 16px; }
.agent-shown { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--signal); border-radius: 14px; background: var(--sunk); }
.agent-once { color: var(--text); font-size: 13px; font-weight: 500; }
.agent-shown .copyline { align-items: flex-start; border-radius: 14px; }
.agent-shown .copyline code { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-all; line-height: 1.5; }
.agent-box > * { min-width: 0; }
.agent-acts { display: flex; gap: 10px; }
.me.waiting::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; background: var(--caption); }
/* A person's own data access (openData in app.js): a card for each provider, with its state, what it serves and the
   way to connect, choose, reconnect or disconnect; the setting that lets rayx's access stand in; and, while a
   connection is broken, a banner over the map with Reconnect, under the menus */
.data-card { width: min(620px, 100%); }
.data-card h2 { font-size: clamp(28px, 3.4vw, 38px); }
.data-cards { display: grid; gap: 14px; margin-top: 24px; }
.data-provider { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--sunk); }
.data-provider.connected { border-color: var(--signal-soft); }
.data-provider.broken { border-color: var(--bad); }
.data-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.data-name { color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.data-name small { margin-left: 4px; color: var(--caption); font: 400 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.data-state { display: inline-flex; align-items: center; gap: 6px; color: var(--caption); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.data-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.data-provider.connected .data-state { color: var(--signal); }
.data-provider.connected .data-state::before { background: var(--signal); }
.data-provider.choose .data-state { color: var(--prism); }
.data-provider.choose .data-state::before { background: var(--prism); }
.data-provider.broken .data-state { color: var(--bad); }
.data-provider.broken .data-state::before { background: var(--bad); }
.data-deal { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--line-soft); color: var(--text-2); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.04em; }
.data-provider.connected .data-deal { background: var(--prism-soft); color: var(--ink); }
.data-text { margin-top: 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.data-text a, .data-steps a, .data-notice a, .data-foot a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; overflow-wrap: anywhere; }
.data-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; }
.data-facts dt { color: var(--caption); font: 10.5px/2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.data-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.data-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.data-acts .pill { height: 36px; padding: 0 15px; font-size: 13px; }
.data-acts .pill.armed { border-color: var(--bad); color: var(--bad); }
.data-acts .pill:disabled { opacity: 0.55; }
.data-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--solid); color: var(--text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.data-notice svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.data-notice.bad { color: var(--bad); }
.data-projects { display: grid; gap: 6px; margin-top: 12px; }
.data-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); text-align: left; }
.data-project:hover:not(:disabled) { border-color: var(--subtle); }
.data-project:disabled { opacity: 0.6; }
.data-project[aria-checked="true"] { border-color: var(--signal); }
.data-project b { min-width: 0; color: var(--text); font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.data-project span { grid-column: 1; min-width: 0; color: var(--caption); font: 10.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.data-project i { grid-column: 2; grid-row: 1 / span 2; padding: 2px 9px; border-radius: 999px; background: var(--line-soft); color: var(--text-2); font: 500 10px/1.6 var(--mono); font-style: normal; letter-spacing: 0.05em; text-transform: uppercase; }
.data-project i.commercial { background: var(--signal-soft); color: var(--ink); }
.data-other, .data-field { display: grid; gap: 5px; margin-top: 10px; color: var(--text-2); font-size: 12.5px; }
.data-other > span, .data-field > span { display: flex; justify-content: space-between; gap: 10px; }
.data-other small, .data-field small { color: var(--caption); font: 10.5px/1.6 var(--mono); }
.data-row { display: flex; gap: 8px; }
.data-row input, .data-field input { flex: 1; width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); color: var(--text); font: 13.5px var(--mono); letter-spacing: 0; }
.data-row .pill { height: 38px; }
.data-row input:focus-visible, .data-field input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.data-steps { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.data-steps li + li { margin-top: 5px; }
.data-tip { display: block; color: var(--caption); font-size: 12.5px; }
.data-error { margin-top: 10px; color: var(--bad); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.data-switch { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: transparent; color: var(--text); text-align: left; }
.data-switch:disabled { opacity: 0.6; }
.data-switch .switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background 0.2s var(--ease); }
.data-switch .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--solid); box-shadow: 0 1px 3px rgba(10, 13, 18, 0.35); transition: transform 0.2s var(--ease); }
.data-switch[aria-checked="true"] .switch { background: var(--signal); }
.data-switch[aria-checked="true"] .switch::after { transform: translateX(16px); }
.data-switch b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.data-switch small { display: block; margin-top: 2px; color: var(--caption); font-size: 12.5px; line-height: 1.4; }
.data-foot { margin-top: 18px; color: var(--caption); font-size: 12.5px; line-height: 1.5; }
.data-links { white-space: nowrap; }
.count.broken { background: var(--bad); color: var(--solid); }
.data-banner { position: fixed; z-index: 29; top: 70px; left: 50%; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(640px, calc(100vw - 32px)); padding: 6px 6px 6px 12px; border: 1px solid var(--bad); border-radius: 999px; background: var(--solid); box-shadow: var(--shadow); color: var(--text); font-size: 13px; line-height: 1.35; transform: translateX(-50%); }
.data-banner > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--bad); stroke-width: 2; stroke-linecap: round; }
.data-banner-text { min-width: 0; }
.data-banner .pill { flex: none; height: 30px; padding: 0 12px; }
.data-banner .x { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 17px; line-height: 1; }
.data-banner .x:hover { background: var(--sunk); }
@media (max-width: 760px) {
  /* One column: what was asked and when, then the buttons, so that a request is read before it is answered */
  .req-row { grid-template-columns: minmax(0, 1fr); }
  .req-reason { order: 2; }  .req-out { order: 3; }  .req-when { order: 4; }
  .req-acts { order: 5; justify-content: flex-start; margin-top: 2px; }
  .access-field input, .access-field textarea { font-size: 16px; }
  /* Beside the map's buttons, under the logo and the avatar */
  .data-banner { top: 64px; right: 16px; left: 72px; width: auto; max-width: none; padding: 8px 6px 8px 12px; border-radius: 18px; transform: none; }
  .data-provider { padding: 16px 14px 14px; }
  .data-row input, .data-field input { font-size: 16px; }
}
.me:empty::before, .me:empty::after { content: ""; position: absolute; left: 50%; border: 1.5px solid var(--subtle); transform: translateX(-50%); }
.me:empty::before { top: 9px; width: 9px; height: 9px; border-radius: 50%; }
.me:empty::after { top: 21px; width: 16px; height: 7px; border-bottom: 0; border-radius: 9px 9px 0 0; }
.menu { position: fixed; z-index: 31; top: 64px; right: 20px; display: grid; gap: 2px; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--solid); box-shadow: var(--shadow-lg); }
.menu button, .menu a { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 13.5px; text-align: left; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--sunk); }
.who { margin: 4px 12px 6px; color: var(--caption); font: 10.5px/1.5 var(--mono); letter-spacing: 0.03em; overflow-wrap: anywhere; }
.who:empty { display: none; }
/* The sign-ins linked to the person's, each with Unlink, under their email. */
.linked { display: grid; gap: 2px; margin: 0 0 4px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.linked[hidden] { display: none; }
.linked-title { margin: 2px 12px 2px; color: var(--caption); font: 10.5px/1.5 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
.linked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 0 12px; }
.linked-name { min-width: 0; color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.menu .linked-unlink { width: auto; flex: none; padding: 6px 10px; color: var(--text-2); font-size: 12.5px; text-align: right; }
.menu .linked-unlink.armed { color: var(--bad); }
.choice { display: grid; gap: 2px; margin: 4px 0; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.choice[hidden] { display: none; }
.choice-title { margin: 2px 12px 4px; color: var(--caption); font: 10.5px/1.5 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
.menu .choice button { display: flex; align-items: baseline; gap: 8px; }
.menu .choice button::before { content: ""; flex: none; width: 12px; color: var(--text); }
.menu .choice button[aria-checked="true"]::before { content: "✓"; }
.choice-note { color: var(--caption); font-size: 12px; }

/* What a dot on the globe is */
.tip { position: fixed; z-index: 35; left: 0; top: 0; max-width: 280px; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 10px/1.45 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; pointer-events: none; transform: translate(14px, -50%); }

/* The key to the globe: each kind of the week with its glyph and count, named in words; a press hides or shows it */
.key { position: fixed; z-index: 20; left: 22px; top: 82px; width: 212px; padding: 12px 8px 8px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); transition: top 0.35s var(--ease), left 0.35s var(--ease); }
body:not(.globe) .key { display: none; }
/* The globe zoomed in, the map's buttons stand where the key was: the key moves down under them */
body.has-map-tools .key { top: 198px; }
.key-title { margin: 0 0 6px 8px; color: var(--caption); font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.key-rows { display: grid; gap: 1px; }
.key-row, .key-note { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; margin: 0; padding: 0 8px 0 6px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 400 13px/1 var(--sans); text-align: left; }
.key-row:hover { background: var(--line-soft); color: var(--text); }
.key-row[aria-pressed="false"] { opacity: 0.45; }
.key-row[aria-pressed="false"] .key-name { text-decoration: line-through; text-decoration-color: var(--subtle); }
.key-glyph { flex: none; width: 18px; height: 18px; }
.key-name { flex: 1; min-width: 0; overflow: hidden; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.key-count { flex: none; color: var(--muted); font: 400 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.key-note { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0; color: var(--muted); }
.key-ring { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tip b { display: block; font: 500 12.5px/1.35 var(--sans); letter-spacing: -0.01em; text-transform: none; }

/* The one bar */
.ask { position: fixed; z-index: 28; left: calc((100vw - var(--ask-w)) / 2); bottom: 22px; display: flex; align-items: center; gap: 6px; width: var(--ask-w); height: 58px; padding: 6px 6px 6px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--card); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: var(--shadow-lg); transition: border-color 0.2s, box-shadow 0.2s, width 0.35s var(--ease); }
.ask:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(106, 134, 182, 0.16), var(--shadow-lg); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16.5px; letter-spacing: -0.012em; }
.ask input::placeholder { color: var(--subtle); transition: opacity 0.4s; }
.ask.fade input::placeholder { opacity: 0; }
.ask button { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--button-ink); font: 16px/46px var(--mono); }
.ask button:disabled { opacity: 0.4; }
/* While the guide works, the button turns into a ring, rather than a band sweeping the bar */
.ask button { position: relative; }
.ask.busy #send:disabled { opacity: 1; color: transparent; }
.ask.busy #send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--button-ink); border-right-color: transparent; border-radius: 50%; animation: turn 0.8s linear infinite; }
/* The Earth itself, at the start of the bar and beside each of its lines: a small sphere in its atmosphere, which
   breathes while it listens or looks. In the bar it is a button: a pointer on it brings the Earth's words back, and a
   press opens the whole conversation */
.globe-mark { position: relative; display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #BFD8FF 0%, #5E95DF 32%, #2A5FA8 62%, #10294F 100%); box-shadow: 0 0 0 1.5px rgba(150, 190, 255, 0.28), 0 0 10px rgba(110, 160, 255, 0.35); }
.globe-mark.listening, .ask.busy .ask-mark, .ask.listening .ask-mark { animation: atmosphere 1.6s ease-in-out infinite; }
@keyframes atmosphere { 0%, 100% { box-shadow: 0 0 0 1.5px rgba(150, 190, 255, 0.28), 0 0 8px rgba(110, 160, 255, 0.3); } 50% { box-shadow: 0 0 0 3px rgba(150, 190, 255, 0.5), 0 0 22px rgba(110, 160, 255, 0.75); } }
.ask .orb { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; background: transparent; }
.ask .orb:disabled { opacity: 1; cursor: default; }
.ask .orb:not(:disabled):hover .ask-mark, .ask .orb[aria-expanded="true"] .ask-mark { box-shadow: 0 0 0 3px rgba(150, 190, 255, 0.42), 0 0 18px rgba(110, 160, 255, 0.62); }
.ask .mic { border: 1px solid var(--line); background: transparent; color: var(--text-2); }
.ask .mic svg { display: block; width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ask.listening { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(106, 134, 182, 0.24), var(--shadow-lg); }
.ask.listening .mic { border-color: transparent; background: var(--signal); color: #FFFFFF; }
/* The Earth's words, as subtitles: its latest line large and airy over a soft shade (a blurred band, never a card),
   centred in the column of the dock and the bar, just above the dock (--dock, measureDock in app.js) or above the bar
   where there is no dock. The visitor's last words stand small above it, so that it reads as an answer, and what one
   might say next under it; once read it settles to one faint line (.gist). Only the words and the buttons take the
   pointer: the map works round them. They move with the dock as it grows, not after it, so never pass over it. */
/* Its column never wider than the bar's, whatever the words: a grid's own column would widen to a line that may not
   wrap, the settled line's, and run it off a phone's screen uncut */
.words { position: fixed; z-index: 27; left: calc((100vw - var(--ask-w)) / 2); bottom: calc(var(--dock, 80px) + 14px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: var(--ask-w); text-align: center; pointer-events: none; transition: opacity 0.25s var(--ease), visibility 0s; }
.words::before { content: ""; position: absolute; z-index: -1; inset: -16px -44px -10px; border-radius: 999px; background: var(--shade); filter: blur(16px); }
/* and each word has a soft halo of the same, so that no label of the map crowds it */
.words-full, .gist { text-shadow: 0 0 10px var(--shade), 0 0 2px var(--shade); }
/* They step aside for the calendar, the watch panel and the whole conversation, which open where they stand */
.words.aside { visibility: hidden; opacity: 0; transition: opacity 0.2s var(--ease), visibility 0s 0.2s; }
body.panel-open .words, body.panel-open .transcript { width: min(var(--ask-w), calc(50vw + var(--ask-w) / 2 - var(--panel) - var(--edge) - 16px)); }
.words-full { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 5px; width: 100%; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s; }
.words.peeking .words-full { pointer-events: auto; }
/* Settled, the words in full are still laid out, for wordsRoom to measure, but neither seen nor heard */
.words.settled .words-full { position: absolute; left: 0; right: 0; bottom: 0; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s; }
.words-you { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 13.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; pointer-events: auto; }
.said { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--ink); font-size: clamp(19px, 1.45vw, 25px); font-weight: 400; line-height: 1.38; letter-spacing: -0.017em; text-wrap: balance; pointer-events: auto; }
.said.bad { color: var(--bad); }
.words.thinking .said { color: var(--muted); }
/* Each word comes in out of a soft blur, a moment after the one before it (renderWords sets each one's delay) */
.words.fresh .w { animation: word-in 0.42s var(--ease) both; }
@keyframes word-in { from { opacity: 0; filter: blur(6px); } }
.dots { display: inline-flex; align-items: center; gap: 7px; height: 1.38em; vertical-align: top; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.3; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.16s; }
.dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dot { 35% { opacity: 0.95; } }
.words-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; margin-top: 5px; pointer-events: auto; }
.words-next:empty { display: none; }
.say-next { height: 30px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 12.5px/1 var(--sans); white-space: nowrap; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.say-all { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.say-next:hover, .say-all:hover { border-color: var(--signal); color: var(--ink); }
.say-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* What one might say next comes once the words are in (--said-ms) */
.words.fresh .say-next, .words.fresh .say-all { animation: words-in 0.32s var(--ease) both; animation-delay: var(--said-ms, 0ms); }
@keyframes words-in { from { opacity: 0; transform: translateY(5px); } }
/* The one line the words settle to: a pointer on it, or a tap, brings them back */
.gist { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 400 13px/1 var(--sans); pointer-events: auto; animation: words-in 0.35s var(--ease); }
.gist span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gist .globe-mark { width: 11px; height: 11px; box-shadow: 0 0 0 1px rgba(150, 190, 255, 0.3); }
.gist:hover { color: var(--text); }
/* What a screen reader is told of each answer, once, whatever is on show */
.heard { position: fixed; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The whole conversation, a sheet that rises from the bar: the Earth's lines on the left by its orb, the visitor's on
   the right, the newest last, what one might say next, and a way to start again. It is solid, for the dock it covers
   would show through glass as clutter, and it stops short of the map's buttons */
.transcript { position: fixed; z-index: 29; left: calc((100vw - var(--ask-w)) / 2); bottom: 90px; display: flex; flex-direction: column; width: var(--ask-w); max-height: min(64vh, calc(100vh - 330px)); max-height: min(64dvh, calc(100dvh - 330px)); border: 1px solid var(--line); border-radius: 24px; background: var(--solid); box-shadow: var(--shadow-lg); transform-origin: 50% 100%; animation: rise 0.3s var(--ease); }
.transcript:focus { outline: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.transcript-top { display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px 14px; }
.transcript-top .close { position: static; width: 30px; height: 30px; margin-left: auto; font-size: 16px; }
.start-again { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border: 1px solid var(--line-soft); border-radius: 999px; background: transparent; color: var(--muted); font: 500 12px/1 var(--sans); }
.start-again svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.start-again:hover { border-color: var(--subtle); color: var(--text); }
.lines { display: grid; align-content: start; gap: 12px; min-height: 0; margin: 0; padding: 10px 18px 18px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.line { max-width: 86%; margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.line.you { justify-self: end; padding: 7px 13px; border-radius: 16px 16px 4px 16px; background: var(--sunk); background: color-mix(in oklab, var(--signal) 20%, transparent); color: var(--text); }
.line.earth { justify-self: start; display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; }
.line.earth .globe-mark { width: 20px; height: 20px; margin-top: 1px; }
.line.earth.bad { color: var(--bad); }
.line.earth .dots { height: 22px; color: var(--muted); }
.line.next { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; padding-left: 30px; }

/* Time, painted: one line of the period's days with the stretch to show painted on it, and the year beside it */
.time { position: fixed; z-index: 27; left: calc((100vw - var(--bar-w)) / 2); bottom: 92px; display: flex; flex-direction: column; gap: 6px; width: var(--bar-w); padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 24px; background: var(--card); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: var(--shadow); transition: width 0.35s var(--ease); }
/* A panel open, the bars keep their place, and give up width only at their right, where the panel would cover them */
body.panel-open .time { width: min(var(--bar-w), calc(50vw + var(--bar-w) / 2 - var(--panel) - var(--edge) - 16px)); }
body.panel-open .ask { width: min(var(--ask-w), calc(50vw + var(--ask-w) / 2 - var(--panel) - var(--edge) - 16px)); }
/* Its two rows: the film of the days here, and under it the line those days lie on */
.dock-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dock-film { align-items: flex-start; }
.dock-film > .play, .dock-film > .mosaic-make, .dock-film > .go { margin-top: calc(9px + (var(--shot) - 36px) / 2); }
/* How far the days being corrected have come: a line that fills along the dock's top edge */
.dock-line { position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line-soft); opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; }
.dock-line::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--signal), var(--prism)); transform: scaleX(var(--done, 0)); transform-origin: left; transition: transform 0.6s var(--ease); }
.time.working .dock-line { opacity: 1; }
.play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--button-ink); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play-stop, body[data-playing="yes"] .play-go { display: none; }
body[data-playing="yes"] .play-stop { display: inline; }
/* The days not yet seen: a spark and how many, or a lock for a visitor not signed in */
.go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--button); color: var(--button-ink); font: 600 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: 0 6px 18px rgba(10, 13, 18, 0.16); transition: transform 0.2s var(--ease); }
.go:hover { transform: translateY(-1px); }
.go svg { width: 16px; height: 16px; }
.go-see { fill: currentColor; }
.go-lock { display: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.go.locked .go-see { display: none; }
.go.locked .go-lock { display: inline; }
/* None of today's corrections left: the button stays, dimmed, at 0, and a press says so */
.go.spent { opacity: 0.5; }
.go.spent:hover { transform: none; }
.open-sheet { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); color: var(--text-2); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.open-sheet:hover { border-color: var(--subtle); color: var(--text); }
body.panel-open .open-sheet { border-color: transparent; background: var(--button); color: var(--button-ink); }
.when svg, .open-sheet svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.when svg { color: var(--muted); }
.when { flex: none; display: inline-flex; align-items: center; gap: 9px; max-width: 280px; height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text); font: 400 13.5px/34px var(--sans); }
.when-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when::after { content: ""; flex: none; width: 5px; height: 5px; margin-bottom: 3px; border-right: 1.5px solid var(--subtle); border-bottom: 1.5px solid var(--subtle); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.when[aria-expanded="true"]::after { margin: 3px 0 0; transform: rotate(-135deg); }
/* How cloudy a day the film may offer, at the head of the line of days whose dots it decides: the sun alone, the sun
   behind a cloud, or a cloud; a press goes to the next. On a wide screen the line's row holds it as part of the dock's
   own row, beside the stretch's dates */
.line-row { display: contents; }
.cloud-choice { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); color: var(--text-2); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.cloud-choice:hover { border-color: var(--subtle); color: var(--text); }
.cloud-choice:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cloud-choice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ribbon { position: relative; flex: 1; min-width: 0; height: 48px; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.track { position: absolute; left: 0; right: 0; top: 24px; height: 1px; background: var(--line); }
/* Passes being found: a glint that runs along the line */
.time.searching .track::after { content: ""; position: absolute; top: -1px; left: 0; width: 22%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--signal), transparent); animation: dock-sweep 1.6s ease-in-out infinite; }
@keyframes dock-sweep { 0% { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { left: 78%; opacity: 0; } }
.months { position: absolute; left: 0; right: 0; top: 34px; pointer-events: none; }
.month { position: absolute; top: 0; color: var(--caption); font: 400 10.5px/1 var(--sans); white-space: nowrap; }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.tick { position: absolute; top: 24.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--subtle); opacity: 0.5; transform: translate(-50%, -50%); }
.tick.frame { z-index: 1; width: 6px; height: 6px; background: var(--ink); opacity: 1; }
/* A corrected day fills in the signal colour; a running one is a ring that breathes */
.tick.frame.done { width: 9px; height: 9px; background: var(--signal); box-shadow: 0 0 0 2px var(--card); }
.tick.frame.busy { width: 9px; height: 9px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--signal); animation: breathe 1.4s ease-in-out infinite; }
.tick.frame.failed { background: var(--bad); }
/* A mosaic on show: its days ringed on the line, the other days standing back. */
.ticks.of-mosaic .tick.frame { opacity: 0.4; }
.ticks.of-mosaic .tick.frame.in { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--prism); }
/* The film: the days here as pictures, above the line. Tap one to see it. Under it is room for the tag of the day on
   show, which stands over the line and would otherwise touch a band's outline. The page keeps the day in its middle
   standing as days come and go (keepAnchor), and the browser does not do it a second time */
.strip { flex: 1; display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-x: auto; overflow-y: hidden; overflow-anchor: none; margin-bottom: 6px; padding: 9px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
.strip.more-right { -webkit-mask-image: linear-gradient(270deg, transparent, #000 28px); mask-image: linear-gradient(270deg, transparent, #000 28px); }
.strip.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* The days of one period lie on one band, corrected and offered alike, which ends in the period's mosaic once a day
   of it is the visitor's own, a single day too. A band keeps the same room all round what it holds, pictures and their
   words alike, and stands clear of the next */
.reel { flex: none; display: flex; align-items: flex-start; gap: 6px; margin: -8px 2px; padding: 8px; border-radius: 20px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.reel .shot.stack { margin-left: 4px; }
/* A picture and its caption stand in one column as wide as the picture: a caption cannot widen it, or push the
   picture aside and run into the next */
.shot { position: relative; flex: none; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 5px; width: var(--shot); padding: 0; border: 0; background: none; color: var(--caption); cursor: pointer; }
.shot img, .shot-wait { display: block; width: var(--shot); height: var(--shot); border-radius: 12px; object-fit: cover; background: var(--sunk); box-shadow: 0 0 0 1px var(--line-soft); }
.shot img { background: var(--nodata); }
.shot-day { max-width: 100%; overflow: hidden; font: 500 9.5px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
/* Where a year starts, in a film that runs over more than one: a fine line as tall as a picture, the year under it */
.film-year { flex: none; display: grid; justify-items: center; gap: 5px; color: var(--text-2); font: 600 9.5px/1.2 var(--mono); letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; }
.film-year::before { content: ""; width: 1px; height: var(--shot); background: var(--line); }
.shot.current img, .shot.current .shot-wait { box-shadow: 0 0 0 2px var(--signal); }
.shot.current .shot-day { color: var(--text); }
.shot.early img { filter: saturate(0.8) brightness(1.05); }
.shot.early::after, .shot.waiting::after { content: ""; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border: 1.5px solid var(--signal); border-top-color: transparent; border-radius: 50%; animation: turn 0.9s linear infinite; }
/* A day still waiting: a plain tile that breathes, where diagonal hatching came out jagged in Safari */
.shot.waiting .shot-wait { background: var(--sunk); animation: breathe 1.8s ease-in-out infinite; }
.shot.failed img, .shot.failed .shot-wait { opacity: 0.35; }
/* A day put off while neither Earth Engine nor USGS gives its Landsat files: still, with a clock, until it is tried again */
.shot.deferred .shot-wait { animation: none; opacity: 0.6; }
.shot.deferred::after { border-style: dotted; border-top-color: var(--signal); animation: none; }
.shot-model { position: absolute; top: 4px; left: 4px; right: 4px; padding: 1px 2px; border-radius: 6px; background: var(--solid); color: var(--caption); font: 600 7.5px/1.4 var(--mono); letter-spacing: 0.02em; text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.shot.other-model img { opacity: 0.6; }
.shot.waiting .shot-model, .shot.early .shot-model { right: 19px; }
.shot.failed::after { content: "!"; position: absolute; top: 19px; left: 0; right: 0; color: var(--text); font: 600 14px/1 var(--sans); text-align: center; }
/* A day not yet asked for: an empty place in the film, with the spark that asks for it */
.shot.ghost .shot-wait { display: grid; place-items: center; border: 1.5px dashed var(--subtle); background: transparent; box-shadow: none; color: var(--subtle); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.shot.ghost .shot-wait svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.75; }
.shot.ghost:hover .shot-wait, .time.go-hot .shot.ghost.next .shot-wait { border-color: var(--signal); color: var(--signal); }
/* A mosaic: a pile of its days. One not made yet is an empty place with the pile drawn in it */
.shot.stack img, .shot.stack .shot-wait { width: calc(var(--shot) - 6px); height: calc(var(--shot) - 6px); margin: 6px 6px 0 0; border-radius: 11px; }
.shot.stack img { box-shadow: 0 0 0 1px var(--line), 3px -3px 0 -0.5px var(--solid), 3px -3px 0 0.5px var(--line), 6px -6px 0 -0.5px var(--solid), 6px -6px 0 0.5px var(--line); }
.shot.stack .shot-wait { display: grid; place-items: center; border: 1.5px dashed var(--subtle); background: transparent; box-shadow: none; color: var(--text-2); transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.shot.stack .shot-wait svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.shot.stack .shot-day { color: var(--prism); }
.shot.stack.make:hover .shot-wait, .strip.stack-hot .shot.stack.make .shot-wait { border-color: var(--prism); background: var(--prism-soft); color: var(--ink); }
.shot.stack.ahead .shot-wait { border-style: solid; border-color: var(--prism); color: var(--prism); animation: breathe 1.6s ease-in-out infinite; }
.shot.stack.making .shot-wait { border-style: solid; border-color: var(--prism-soft); color: var(--prism); }
.shot.stack.making::after { content: ""; position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border: 1.5px solid var(--prism); border-top-color: transparent; border-radius: 50%; animation: turn 0.9s linear infinite; }
.shot.stack:disabled { cursor: default; }
.shot.stack:disabled .shot-wait { opacity: 0.4; }
.shot.stack.current img { box-shadow: 0 0 0 2px var(--prism), 3px -3px 0 -0.5px var(--solid), 3px -3px 0 0.5px var(--line), 6px -6px 0 -0.5px var(--solid), 6px -6px 0 0.5px var(--line); }
.shot.stack.current .shot-day { color: var(--text); }
/* A day's tile and what takes it off the film (offable in app.js): a small × at its corner under a pointer resting on
   it or with the keyboard on it, and on a touch screen a ring filling round it as a finger holds it, as round the sky
   button, drawn whole at once under reduced motion. No callout or selection comes up under a held finger */
.tile { position: relative; flex: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tile img { -webkit-touch-callout: none; }
.tile-off { position: absolute; z-index: 2; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0 0 1px; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); box-shadow: var(--shadow); color: var(--text-2); font: 500 14px/1 var(--sans); opacity: 0; pointer-events: none; cursor: pointer; transition: opacity 0.15s var(--ease), color 0.15s var(--ease); }
.tile-off:hover { border-color: var(--subtle); color: var(--text); }
@media (hover: hover) { .tile:hover .tile-off { opacity: 1; pointer-events: auto; } }
.tile:has(> .shot:focus-visible) .tile-off { opacity: 1; pointer-events: auto; }
.tile-ring { position: absolute; z-index: 2; top: -4px; left: -4px; width: calc(var(--shot) + 8px); height: calc(var(--shot) + 8px); overflow: visible; pointer-events: none; }
.tile-ring rect { fill: none; stroke: var(--prism); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; vector-effect: non-scaling-stroke; }
.tile.holding .tile-ring rect { opacity: 1; animation: sky-fill 0.5s linear forwards; }
/* The days taken off, at the film's end: a quiet chip that counts them and, pressed, shows them faint, each with a ↺ */
.off-chip { flex: none; align-self: flex-start; height: 28px; margin-top: calc(var(--shot) / 2 - 14px); padding: 0 10px; border: 1px dashed var(--subtle); border-radius: 999px; background: transparent; color: var(--text-2); font: 600 11px/1 var(--mono); letter-spacing: 0.03em; white-space: nowrap; cursor: pointer; }
.off-chip:hover, .off-chip.open { border-style: solid; border-color: var(--line); background: var(--sunk); color: var(--text); }
.shot.off img, .shot.off .shot-wait { opacity: 0.4; transition: opacity 0.15s var(--ease); }
.shot.off .shot-wait { border: 1.5px dashed var(--subtle); background: transparent; box-shadow: none; }
.shot.off:hover img, .shot.off:hover .shot-wait, .shot.off:focus-visible img { opacity: 0.75; }
.shot-back { position: absolute; top: calc(var(--shot) / 2 - 13px); left: calc(50% - 13px); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--solid); box-shadow: var(--shadow); color: var(--text); font: 600 15px/1 var(--sans); }
.shot.off .shot-day { color: var(--subtle); }
/* What a mosaic is made over: one press cuts the film into its bands */
.mosaic-make { flex: none; display: inline-flex; align-items: center; gap: 1px; height: 36px; padding: 3px; border-radius: 999px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-soft); }
.mosaic-make > svg { flex: none; width: 16px; height: 16px; margin: 0 4px 0 7px; fill: none; stroke: var(--prism); stroke-width: 1.4; stroke-linejoin: round; }
.mosaic-choice { display: inline-flex; align-items: center; gap: 1px; }
.mosaic-make button { min-width: 28px; height: 30px; padding: 0 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 10.5px/1 var(--mono); letter-spacing: 0.03em; }
.mosaic-make button:hover:not(:disabled) { color: var(--text); }
.mosaic-make button[aria-checked="true"] { background: var(--solid); color: var(--ink); box-shadow: 0 1px 4px rgba(10, 13, 18, 0.18), 0 0 0 1px var(--line); }
.mosaic-make button:disabled { opacity: 0.35; cursor: default; }
.mosaic-make button:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes pop { 30% { transform: scale(1.18); } }
/* The painted stretch: a soft stroke from its first day to its last, round at the ends, with a grip on each */
.band { position: absolute; top: 18.5px; height: 12px; margin-left: -6px; padding: 0 6px; box-sizing: content-box; border-radius: 999px; background: linear-gradient(90deg, rgba(106, 134, 182, 0.34), rgba(143, 130, 212, 0.34)); }
.grip { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--solid); box-shadow: 0 0 0 1.5px var(--signal), 0 2px 6px rgba(10, 13, 18, 0.12); transform: translate(-50%, -50%); cursor: ew-resize; }
.grip::before { content: ""; position: absolute; inset: -9px; }
.grip.start { left: 6px; } .grip.end { left: calc(100% - 6px); }
.ribbon.painting .grip::after { content: attr(data-day); position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 1px 7px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--solid); color: var(--text); font: 500 10px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); box-shadow: var(--shadow); }
.ribbon.each { cursor: pointer; }
.strokes { position: absolute; inset: 0; pointer-events: none; }
.stroke { position: absolute; top: 18.5px; height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(106, 134, 182, 0.34), rgba(143, 130, 212, 0.34)); }
.month.centred { transform: translateX(-50%); }
.event-mark { position: absolute; top: 24.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--kind, var(--subtle)); box-shadow: 0 0 0 2px var(--solid); transform: translate(-50%, -50%); }
/* The day on show, where it is on the line */
.playhead { position: absolute; z-index: 2; top: 24.5px; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.25), 0 0 12px #FFFFFF, 0 0 24px rgba(143, 130, 212, 0.75), 0 0 46px rgba(106, 134, 182, 0.5); transform: translate(-50%, -50%); transition: left 0.5s var(--ease); pointer-events: none; }
.day-tag { position: absolute; left: 50%; bottom: calc(100% + 6px); padding: 1px 7px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--solid); color: var(--text); font: 500 10px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); box-shadow: var(--shadow); }
.playhead.near-start .day-tag { transform: translateX(-14%); }
.playhead.near-end .day-tag { transform: translateX(-86%); }
/* What the dock has to say in words: shown only when there is nothing to show; otherwise read out, not seen */
.status { padding: 0 8px 3px; color: var(--muted); font: 400 13px/1.3 var(--sans); text-align: center; }
.status.quiet { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The calendar: every year a row of the same 366 days, so that a date sits above the same date of every other year */
.calendar { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100% + 10px); padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--solid); box-shadow: var(--shadow-lg); }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modes { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunk); }
.modes button { display: grid; place-items: center; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.modes button svg { width: 28px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.modes button[aria-checked="true"] { background: var(--solid); color: var(--text); box-shadow: 0 1px 4px rgba(10, 13, 18, 0.14); }
.cal-pages { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 400 11px/1 var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.cal-pages button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--solid); color: var(--text); font: 15px/25px var(--sans); }
.cal-pages button:disabled { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 31fr 29fr 31fr 30fr 31fr 30fr 31fr 31fr 30fr 31fr 30fr 31fr; margin: 0 0 4px 52px; color: var(--caption); font: 400 10.5px/1 var(--sans); }
.cal-rows { touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.cal-row { display: flex; align-items: center; height: 22px; }
.cal-year { flex: none; width: 52px; height: 22px; padding: 0 8px 0 0; border: 0; background: transparent; color: var(--caption); font: 400 11px/22px var(--mono); text-align: left; }
.cal-row.taken .cal-year { color: var(--text); }
.cal-year:hover { color: var(--signal); }
.cal-line { position: relative; flex: 1; height: 100%; }
.cal-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.cal-line::after { content: ""; position: absolute; inset: 4px 0; background-image: linear-gradient(90deg, transparent calc(8.470% - 0.5px), var(--line-soft) calc(8.470% - 0.5px), var(--line-soft) calc(8.470% + 0.5px), transparent calc(8.470% + 0.5px), transparent calc(16.393% - 0.5px), var(--line-soft) calc(16.393% - 0.5px), var(--line-soft) calc(16.393% + 0.5px), transparent calc(16.393% + 0.5px), transparent calc(24.863% - 0.5px), var(--line-soft) calc(24.863% - 0.5px), var(--line-soft) calc(24.863% + 0.5px), transparent calc(24.863% + 0.5px), transparent calc(33.060% - 0.5px), var(--line-soft) calc(33.060% - 0.5px), var(--line-soft) calc(33.060% + 0.5px), transparent calc(33.060% + 0.5px), transparent calc(41.530% - 0.5px), var(--line-soft) calc(41.530% - 0.5px), var(--line-soft) calc(41.530% + 0.5px), transparent calc(41.530% + 0.5px), transparent calc(49.727% - 0.5px), var(--line-soft) calc(49.727% - 0.5px), var(--line-soft) calc(49.727% + 0.5px), transparent calc(49.727% + 0.5px), transparent calc(58.197% - 0.5px), var(--line-soft) calc(58.197% - 0.5px), var(--line-soft) calc(58.197% + 0.5px), transparent calc(58.197% + 0.5px), transparent calc(66.667% - 0.5px), var(--line-soft) calc(66.667% - 0.5px), var(--line-soft) calc(66.667% + 0.5px), transparent calc(66.667% + 0.5px), transparent calc(74.863% - 0.5px), var(--line-soft) calc(74.863% - 0.5px), var(--line-soft) calc(74.863% + 0.5px), transparent calc(74.863% + 0.5px), transparent calc(83.333% - 0.5px), var(--line-soft) calc(83.333% - 0.5px), var(--line-soft) calc(83.333% + 0.5px), transparent calc(83.333% + 0.5px), transparent calc(91.530% - 0.5px), var(--line-soft) calc(91.530% - 0.5px), var(--line-soft) calc(91.530% + 0.5px), transparent calc(91.530% + 0.5px)); pointer-events: none; }
.cal-line .stroke { top: 5px; }
.cal-line .tick { top: 50%; }
.cal-line .ahead { position: absolute; top: 3px; bottom: 3px; right: 0; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-soft) 4px 5px); }
.cal-head { position: absolute; z-index: 2; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.25), 0 0 10px #FFFFFF, 0 0 20px rgba(143, 130, 212, 0.75); transform: translate(-50%, -50%); }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font: 400 12.5px/1.2 var(--sans); }
.cal-field { display: inline-flex; align-items: center; gap: 7px; }
.cal-field input, .cal-field select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--solid); color: var(--text); font: 400 12.5px/28px var(--mono); }
.cal-quick { display: inline-flex; gap: 6px; margin-left: auto; }
.cal-quick button { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); color: var(--text-2); font: 400 12.5px/28px var(--sans); }
.cal-quick .cal-done { display: grid; place-items: center; width: 40px; padding: 0; border-color: transparent; background: var(--button); color: var(--button-ink); }
.cal-done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast { position: fixed; z-index: 60; top: 22px; left: 50%; max-width: min(560px, calc(100% - 32px)); padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--solid); box-shadow: var(--shadow); color: var(--text); font-size: 13px; text-align: center; transform: translateX(-50%); }
.toast.bad { color: var(--bad); }
/* A day taken off the film, said with the press that brings it back, on one line */
.toast.undo { white-space: nowrap; }
.toast-dot { margin: 0 8px; color: var(--subtle); }
.toast-undo { padding: 0; border: 0; background: none; color: var(--signal); font: 600 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Watching a place. The bell sits in the dock beside the details button and is lit while the window on show is
   watched; a visitor who is not signed in sees a lock in its corner, as the spark has. Its panel opens above the
   dock, as the calendar does, so it never covers the film. */
.bell { position: relative; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
body.panel-open .bell { border-color: var(--line); background: var(--solid); color: var(--text-2); }
.bell[aria-expanded="true"], body.panel-open .bell[aria-expanded="true"] { border-color: var(--subtle); color: var(--text); }
.bell.lit, body.panel-open .bell.lit { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.lit .bell-body { fill: currentColor; }
.bell-lock { position: absolute; right: -4px; bottom: -4px; display: none; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--button); color: var(--button-ink); }
.bell.locked .bell-lock { display: grid; }
.bell .bell-lock svg { width: 10px; height: 10px; stroke-width: 2; }
.bell-mark { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bell-mark.full .bell-body { fill: currentColor; }

.watch { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 10px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(380px, 100%); padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--solid); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; }
.watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.watch-sat { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.watch-sat i { width: 9px; height: 9px; border: 1.5px solid var(--subtle); border-radius: 50%; }
.watch-sat[aria-pressed="true"] { border-color: transparent; background: var(--sunk); color: var(--text); }
.watch-sat.s2[aria-pressed="true"] i { border-color: var(--signal); background: var(--signal); }
.watch-sat.ls[aria-pressed="true"] i { border-color: var(--prism); background: var(--prism); }
.watch .modes button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.05em; cursor: pointer; }
.watch .modes button svg { width: 18px; height: 18px; stroke-width: 1.5; stroke-linejoin: round; }
.watch .modes .results-icon i { background: currentColor; }
.watch-fields { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.watch-fields input { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--solid); color: var(--text); font: 400 12.5px/32px var(--mono); }
.watch-fields input::placeholder { color: var(--caption); opacity: 1; }
.watch-fields input.wide { grid-column: 1 / -1; }
.watch-fields input[aria-invalid="true"] { border-color: var(--bad); }
.watch-grant { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.watch-grant-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--caption); font: 400 11.5px/1.35 var(--sans); }
.watch-grant .copy { position: static; flex: none; cursor: pointer; }
.watch-grant .codeblock { margin: 0; }
.watch-grant .codeblock pre { max-height: 124px; padding: 9px 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.watch-error { margin: 0; color: var(--bad); font: 400 12.5px/1.4 var(--sans); overflow-wrap: anywhere; }
.watch-make { justify-content: center; gap: 8px; width: 100%; height: 38px; font: 600 13.5px/1 var(--sans); }
.pill.dark.watch-make:disabled { color: var(--button-ink); opacity: 0.45; box-shadow: none; cursor: default; }
.watch-top { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); }
.watch-top .bell-mark { width: 18px; height: 18px; color: var(--signal); }
.watch-facts { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.watch-facts i { width: 9px; height: 9px; border-radius: 50%; }
.watch-facts i.s2 { background: var(--signal); }
.watch-facts i.ls { background: var(--prism); }
.watch-facts svg { width: 17px; height: 17px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.watch-stop { margin-left: auto; height: 30px; padding: 0 12px; font-size: 12px; }
.watch-stop.armed { border-color: var(--bad); color: var(--bad); }
.watch-to { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; color: var(--text-2); font: 400 11px/1.4 var(--mono); }
.watch-to svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.watch-to span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-days { --shot: 50px; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.shot .shot-wait.glyph { display: grid; place-items: center; color: var(--subtle); }
.shot-wait.glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shot.next .shot-wait { display: grid; place-items: center; border: 1.5px dashed var(--subtle); background: transparent; box-shadow: none; color: var(--subtle); }
.shot.next .shot-wait svg { width: 16px; height: 16px; }
.shot-sent { position: absolute; top: calc(var(--shot) - 15px); right: -3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--solid); color: var(--signal); box-shadow: 0 0 0 1px var(--line); }
.shot-sent svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-sent.waiting { color: var(--muted); }
.shot-sent.refused { background: var(--bad); color: #FFFFFF; box-shadow: none; }
.shot.fresh::before { content: ""; position: absolute; z-index: 1; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--solid); }
.results.new::before { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--solid); }
.lib-name .bell-mark { margin: -2px 6px 0 0; vertical-align: middle; color: var(--signal); }
.lib-new { display: inline-block; width: 7px; height: 7px; margin: -2px 7px 0 0; border-radius: 50%; background: var(--signal); vertical-align: middle; }
.toast.news { padding: 0; }
.toast-open { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 36px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 500 13px/1 var(--sans); cursor: pointer; }
.toast-open img { flex: none; width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: var(--nodata); }
.toast-open .bell-mark { margin-left: 4px; color: var(--signal); }
.toast-open img + .bell-mark { margin-left: 0; }
.toast-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) { :root { --panel: 372px; } }
@media (max-width: 760px) {
  .mark { top: 12px; left: 12px; }
  .corner { top: 12px; right: 12px; }
  .map-tools { top: 58px; left: 12px; }
  .map-tool.zoom { display: none; }
  /* Under the stack's three buttons, above the reach of the sheet */
  .dial { --dial: 48px; top: 186px; left: 8px; }
  .lens .sky.docked { left: 15px; top: 245px; }
  /* In 3D a sheet, and the conversation, stop short of the sky button under the dial */
  body.three .panel, body.three .export-panel { max-height: min(62dvh, 640px, calc(100dvh - 296px)); }
  body.three .transcript { max-height: min(62dvh, calc(100dvh - 362px)); }
  :root { --shot: 48px; }
  .menu { top: 56px; right: 12px; }
  .key { left: 12px; right: 12px; top: 58px; width: auto; padding: 5px; border-radius: 16px; }
  /* The way home beside the key's row, at its head */
  body.has-map-tools .key { top: 58px; left: 60px; }
  .key-title { display: none; }
  .key-rows { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .key-row, .key-note { flex: none; width: auto; height: 30px; gap: 6px; padding: 0 9px 0 5px; font-size: 12.5px; }
  .key-note { margin: 0; border-top: 0; }
  .ask { bottom: 12px; height: 54px; padding-left: 18px; }
  .ask input { font-size: 16px; }
  /* The Earth's words across the phone, in the bar's gutters, three lines at most; what one might say next is one row
     of smaller pills, which runs sideways where they do not fit (the room kept for the words has one row). The whole
     conversation stops short of the way home */
  .words { bottom: calc(var(--dock, 66px) + 10px); }
  .words::before { inset: -12px -10px -6px; filter: blur(14px); }
  .said { font-size: 19px; line-height: 1.34; }
  .words-you { font-size: 12.5px; }
  .words-next { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
  .words-next::-webkit-scrollbar { display: none; }
  .say-next, .say-all { flex: none; }
  .say-next { padding: 0 11px; font-size: 12px; }
  .transcript { bottom: 74px; max-height: min(62dvh, calc(100dvh - 264px)); border-radius: 22px; }
  .lines { padding: 8px 14px 16px; }
  /* Typing on a phone, the keyboard takes half the screen: the time bar steps aside, and the Earth's words keep their
     last two lines alone, the visitor writing their own next, so that the window still shows above them */
  body.typing .time { display: none; }
  body.typing .words-you, body.typing .words-next { display: none; }
  body.typing .said { -webkit-line-clamp: 2; }
  /* The dock's rows come apart into three: the film and its days to see, the line, and under it the rest */
  .time { bottom: 76px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 10px 8px; border-radius: 20px; }
  .dock-row { display: contents; }
  .play { order: 1; align-self: flex-start; }  .strip { order: 2; flex: 1 1 0; margin-bottom: 8px; }  .go { order: 3; align-self: flex-start; }
  /* The line of days has a row of its own, the cloud button at its head: the bottom row has no room for it */
  .line-row { order: 4; flex: 1 0 100%; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .when { order: 5; flex: 0 1 auto; min-width: 0; max-width: 220px; }
  .time.has-period .when-text, .time.has-period .when::after { display: none; }
  .time.has-period .when { padding: 0 11px; }
  .mosaic-make { order: 6; margin: 0 0 0 auto; }  .dock-film > .mosaic-make { margin-top: 0; }
  .mosaic-make > svg { margin: 0 2px 0 5px; }  .mosaic-make button { min-width: 25px; padding: 0 5px; }
  .open-sheet { order: 7; margin-left: auto; }  .time.has-period .open-sheet { margin-left: 0; }
  .bell:not([hidden]) + .open-sheet { margin-left: 0; }
  .watch { width: 100%; padding: 12px; }  .watch-fields input { font-size: 16px; }
  .status { order: 8; flex: 1 0 100%; }
  .calendar { padding: 12px 10px 10px; }
  .cal-top { gap: 8px; }
  .modes button { padding: 0 10px; }
  .cal-pages { gap: 4px; font-size: 10px; letter-spacing: 0; }
  .cal-row { height: 26px; }
  .cal-year { width: 40px; height: 26px; line-height: 26px; }
  .cal-months { margin-left: 40px; font-size: 9.5px; }
  .cal-line .stroke { top: 7px; }
  .cal-quick { margin-left: 0; }
  /* The map's credits are the ⓘ's at the foot of the map's stack (renderCredits in app.js), in one place that never
     covers the window: a row of them over the map, one row above the room the words can take, lay across the picture
     wherever the window reached lower, after a pinch or on a short screen. Neither MapLibre's own ⓘ nor the page's
     lines for the ground and the terrain show apart */
  .maplibregl-ctrl-bottom-left { display: none; }
  .map-tool.credits { display: grid; }
  .credits-sheet { top: 58px; left: 60px; }
  /* The sheet under the window, as tall as what it holds up to the room the camera leaves it (viewPadding in app.js):
     a running day's steps, its picture being on the map, take a short sheet */
  .panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: min(62dvh, 640px); padding: 26px 16px 18px; border-radius: 22px; }
  /* Its grip, a quiet pill on a strip a finger takes hold of, in the padding over the content, stands with the × as the
     content scrolls under them, their top sticking at the padding's edge, where it already stands */
  .panel-grip { position: absolute; top: -26px; left: 50%; display: block; width: 96px; height: 16px; margin-left: -48px; }
  .panel-grip::before { content: ""; position: absolute; top: 8px; left: 30px; right: 30px; height: 4px; border-radius: 2px; background: var(--subtle); opacity: 0.6; }
  body.panel-open .time, body.panel-open .ask, body.panel-open .words, body.panel-open .transcript { display: none; }
  .sheet { align-items: end; padding: 0; }
  .sheet-card { max-height: 92dvh; padding: 26px 20px 22px; border-radius: 24px 24px 0 0; }
  /* Export's panel as a sheet from the foot, over the day's, never as tall as the dial's height, with the day's grip */
  .export-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: min(62dvh, 640px); padding: 26px 10px 12px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile.holding .tile-ring rect { stroke-dashoffset: 0; }
}
