/* RUMBO MAPS — the page's look (2026-09-28). Calm and plain: paper surfaces, white cards,
   ink text, the route in mint-ink, amber for accents. No red anywhere except heavy traffic
   on the map. Every colour is a token here; the dark theme redefines the tokens, nothing
   else. Measured contrast (text on its own background) is 4.5:1 or better:
     ink #122e34 on white 13.8:1 · muted #4b6166 on white 6.6:1, on paper 6.1:1
     route #007a6a on white 5.3:1 (mint #00c3a9 only ever on ink: 6.4:1)
     amber-ink #9a6200 on white 5.0:1 · ink on amber #f1aa3e 7.2:1
   Touch targets are 48px or more (chips extend theirs past the drawn pill). */

:root {
  --paper: #f4f6f2;
  --card: #ffffff;
  --card-2: #edf1ee;
  --ink: #122e34;
  --ink-2: #4b6166;
  --line: #d8e0dc;
  --route: #007a6a;
  --route-soft: #e1f1ee;
  --on-route: #ffffff;
  --mint: #00c3a9;
  --amber: #f1aa3e;
  --amber-ink: #9a6200;
  --amber-soft: #fdf1dc;
  --nav-banner: #007a6a;
  --nav-then: #00584d;
  --scrim: rgba(18, 46, 52, .42);
  --shadow: 0 1px 2px rgba(18, 46, 52, .18), 0 2px 8px rgba(18, 46, 52, .14);
  --shadow-up: 0 -2px 12px rgba(18, 46, 52, .16);
  --focus: #007a6a;
  --report-ink: #122e34;         /* ink on the amber report signs, in both themes (7.2:1) */
  --traffic-slow: #f5c542;       /* slow traffic (the map's own yellow) */
  --traffic-stopped: #e5484d;    /* heavy traffic (stopped): the only red, and only for traffic */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --side-w: clamp(300px, 42vw, 420px);
  --bar-h: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f282d; --card: #16353b; --card-2: #1d4148; --ink: #e6efed; --ink-2: #a9c2be; --line: #2b4f56;
    --route: #00c3a9; --route-soft: #123f3c; --on-route: #0f282d; --amber-ink: #f1aa3e; --amber-soft: #3a3322;
    --nav-banner: #0b4f47; --nav-then: #073a34; --scrim: rgba(0, 0, 0, .55);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .4); --shadow-up: 0 -2px 14px rgba(0, 0, 0, .45); --focus: #00c3a9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f282d; --card: #16353b; --card-2: #1d4148; --ink: #e6efed; --ink-2: #a9c2be; --line: #2b4f56;
  --route: #00c3a9; --route-soft: #123f3c; --on-route: #0f282d; --amber-ink: #f1aa3e; --amber-soft: #3a3322;
  --nav-banner: #0b4f47; --nav-then: #073a34; --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .4); --shadow-up: 0 -2px 14px rgba(0, 0, 0, .45); --focus: #00c3a9;
  color-scheme: dark;
}

/* ─── base ─────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4;
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.i { display: block; flex: none; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .92em; }
.hint { color: var(--ink-2); font-size: 14px; }
.lead { font-size: 17px; }
.pad { padding: 8px 16px; }

/* #map by id: lib/map.mjs gives this box its own class (.rumbo-map, position: relative) from a
   stylesheet that loads after this one; a class rule here would lose to it and the map would be
   0px tall. */
.app { position: fixed; inset: 0; }
#map.map { position: fixed; inset: 0; background: var(--paper); z-index: 0; }

/* ─── buttons ──────────────────────────────────────────────────────────────────────────── */
.btn {
  min-height: 48px; padding: 0 22px; border-radius: 24px; border: 1px solid transparent; font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); color: var(--ink);
}
.btn-primary { background: var(--route); color: var(--on-route); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--route); }
.btn-warn { background: var(--amber); color: #122e34; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .5; }
.link-btn { background: none; border: 0; color: var(--route); font-weight: 600; min-height: 48px; padding: 0 10px; }
.icon-btn {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--card-2); }
.icon-btn-route { color: var(--route); }
.fab {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; pointer-events: auto;
}
.fab.is-on { color: var(--route); }
.fab:disabled { opacity: .45; }
.nav-music[aria-pressed="true"] { color: var(--route); }
.fab.is-waiting { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.i .dir-arrow { stroke: var(--dir-arrow, var(--card)); }
.fab-go { width: 56px; height: 56px; border-radius: 18px; background: var(--route); color: var(--on-route); --dir-arrow: var(--route); }
.pill {
  min-height: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--route);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; flex: none;
}
.pill-primary { background: var(--route); border-color: var(--route); color: var(--on-route); --dir-arrow: var(--route); }
.pill-outline { border-color: var(--route); }
.pill-quiet { color: var(--ink); }
.pill-big { min-height: 52px; padding: 0 26px; font-size: 17px; }
.pill:disabled { opacity: .5; }
.pill[aria-pressed="true"] { background: var(--route-soft); }

/* ─── the map screen: search bar, chips, floating buttons ─────────────────────────────── */
.chrome { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.chrome > * { pointer-events: auto; }
.chrome.is-hidden { display: none; }
.topbar {
  position: absolute; top: calc(var(--safe-t) + 8px); left: calc(var(--safe-l) + 10px); right: calc(var(--safe-r) + 10px);
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.searchbar {
  display: flex; align-items: center; height: 52px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); padding: 0 6px 0 2px;
}
.sb-btn { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.sb-field {
  flex: 1; min-width: 0; height: 48px; border: 0; background: none; display: flex; align-items: center; gap: 10px; padding: 0 6px;
  color: var(--ink-2); font-size: 17px; text-align: left;
}
.sb-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-mark { width: 36px; height: 36px; display: inline-flex; flex: none; margin-right: 4px; background: url(assets/rumbo-fox.webp) center / contain no-repeat; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: 0 -10px; padding-left: 10px; padding-right: 10px;
  scroll-padding: 10px; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: 38px; margin: 5px 0; padding: 0 14px 0 10px; border-radius: 19px; border: 0; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.chip::before { content: ""; position: absolute; inset: -5px 0; }       /* the 48px touch target around the drawn pill */
.chip .i { color: var(--route); }
.chip svg { flex: none; }
.chip-toggle { box-shadow: none; border: 1px solid var(--line); }
.chip-toggle[aria-pressed="true"] { background: var(--route-soft); color: var(--route); border-color: var(--route); }

.fabs-side {
  position: absolute; right: calc(var(--safe-r) + 12px); top: calc(var(--safe-t) + 132px);
  display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.fabs-side > * { pointer-events: auto; }
.compass .compass-needle { display: inline-flex; transition: transform .15s linear; }
.fabs-bottom {
  position: absolute; right: calc(var(--safe-r) + 14px); bottom: calc(var(--sheet-offset, 0px) + var(--safe-b) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; transition: bottom .22s ease; pointer-events: none;
}
.fabs-bottom > * { pointer-events: auto; }
html[data-sheet="full"] .fabs-bottom, html[data-sheet="full"] .scale { opacity: 0; pointer-events: none; }
.scale {
  position: absolute; left: calc(var(--safe-l) + 12px); bottom: calc(var(--sheet-offset, 0px) + var(--safe-b) + 34px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; pointer-events: none; transition: bottom .22s ease;
}
.scale-label { font-size: 12px; font-weight: 600; color: var(--ink); text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.scale-bar { height: 6px; border: 2px solid var(--ink); border-top: 0; min-width: 8px; }
.coverage {
  position: absolute; top: calc(var(--safe-t) + 132px); left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px);
  background: var(--card); color: var(--ink); border-left: 4px solid var(--amber); border-radius: 12px; box-shadow: var(--shadow);
  padding: 4px 4px 4px 12px; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600;
}
.search-area {
  position: absolute; top: calc(var(--safe-t) + 132px); left: 50%; transform: translateX(-50%);
  min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--card); color: var(--route); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
}
.search-area::before { content: ""; position: absolute; inset: -2px 0; }
.coverage:not([hidden]) ~ .search-area { top: calc(var(--safe-t) + 190px); }

/* MapLibre's own controls (the credit line) ride above the sheets and the drive's bar */
#map .maplibregl-ctrl-bottom-left, #map .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-offset, 0px) + var(--safe-b)); transition: bottom .22s ease; }
#map .maplibregl-ctrl-bottom-right { right: calc(var(--safe-r) + 84px); }
html[data-mode="nav"] #map .maplibregl-ctrl-bottom-left, html[data-mode="nav"] #map .maplibregl-ctrl-bottom-right { bottom: calc(var(--safe-b) + 92px); }
html[data-sheet="full"] #map .maplibregl-ctrl-bottom-left, html[data-sheet="full"] #map .maplibregl-ctrl-bottom-right { bottom: calc(var(--safe-b)); }

.no-map { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 150px) 32px 24px; text-align: center; color: var(--ink-2); }
html[data-nomap] .scale, html[data-nomap] .compass, html[data-nomap] .fabs-side { display: none; }

/* ─── sheets ───────────────────────────────────────────────────────────────────────────── */
.sheets { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--safe-t) + 10px);
  background: var(--card); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-up);
  display: flex; flex-direction: column; pointer-events: auto; transform: translate3d(0, 100%, 0);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1); will-change: transform; outline: none;
  padding-left: var(--safe-l); padding-right: var(--safe-r);
}
.sheet.is-dragging { transition: none; }
.sheet-grip { flex: none; height: 22px; display: flex; justify-content: center; align-items: center; touch-action: none; cursor: grab; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-head { flex: none; padding: 0 16px 10px; touch-action: pan-x; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--safe-b) + 16px); }
.sheet-x { position: absolute; top: 6px; right: calc(var(--safe-r) + 6px); }
.sheet-title { padding-right: 44px; }
.sheet-title h2 { font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.sheet-title p { margin-top: 2px; }
/* the actions wrap onto a second line rather than scroll sideways out of sight (R2 review, 2026-09-28: at 360 px only
   "Sav" of Save showed, and Share not at all, with nothing to say there was more) */
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0 0 4px; }

.place-kind { color: var(--ink-2); font-size: 15px; }
.place-trip { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-top: 4px; }
.open-state.is-open { color: var(--route); font-weight: 600; }
.open-state.is-closed { color: var(--amber-ink); font-weight: 600; }
.open-state.is-unknown { color: var(--ink-2); }
.place-body { padding: 4px 0; }
.info-row { display: flex; align-items: center; gap: 16px; padding: 8px 16px; min-height: 56px; width: 100%; background: none; border: 0; text-align: left; }
.info-btn:hover, .row:hover { background: var(--card-2); }
.set-row { display: flex; gap: 8px; padding: 8px 16px; flex-wrap: wrap; }
.source { padding: 8px 16px 0; font-size: 13px; }
.link { color: var(--route); text-decoration: underline; text-underline-offset: 3px; }

/* rows (search results, lists, settings) */
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 6px 16px; border: 0; background: none;
  text-align: left; color: var(--ink);
}
.row-wrap { display: flex; align-items: center; }
.row-wrap > .row { flex: 1; min-width: 0; }
.row-acts { display: flex; padding-right: 8px; }
.row-ic {
  width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--card-2); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.row-accent .row-ic { background: var(--route-soft); color: var(--route); }
.row-ic-art, .cat-ic-art { background: none !important; }
.row-ic-art svg, .cat-ic-art svg { display: block; }
.row-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-t { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.row-s { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.row-s:empty { display: none; }
.row-r { flex: none; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.row-chev { color: var(--ink-2); }
.list-h { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); padding: 18px 16px 6px; text-transform: uppercase; }
.list-h-row { display: flex; align-items: center; justify-content: space-between; padding-right: 6px; }
.empty { padding: 20px 16px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.empty-t { color: var(--ink); font-weight: 600; font-size: 17px; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 4px; }
.shortcut { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; min-width: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 4px 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 84px; padding: 10px 4px; border: 0; border-radius: 16px; background: none; font-size: 14px; color: var(--ink); }
.cat:hover { background: var(--card-2); }
.cat-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--route-soft); color: var(--route); display: inline-flex; align-items: center; justify-content: center; }

/* ─── full screens: search, saved, settings ────────────────────────────────────────────── */
.screens { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.screens > * { pointer-events: auto; }
.screen {
  position: absolute; inset: 0; background: var(--card); color: var(--ink); display: flex; flex-direction: column;
  padding: var(--safe-t) var(--safe-r) 0 var(--safe-l); z-index: 2; animation: rise .18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.search-head { display: flex; align-items: center; gap: 2px; height: 64px; padding: 0 4px; border-bottom: 1px solid var(--line); flex: none; }
.search-input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 18px; outline: none; padding: 0 6px; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::placeholder { color: var(--ink-2); opacity: 1; }
.search-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-status:not(:empty) { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding: 8px 16px 0; font-size: 13px; color: var(--ink-2); }
.search-body, .screen-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--safe-b) + 24px); }
.search-body.is-busy { opacity: .6; }
.page-head { display: flex; align-items: center; gap: 4px; min-height: 64px; padding: 0 4px; border-bottom: 1px solid var(--line); flex: none; }
.page-head h1 { font-size: 20px; font-weight: 600; }
.screen-body > .row, .screen-body > .opt-row, .screen-body > .opt-block { border-bottom: 1px solid var(--line); }

/* settings controls */
.opt-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; }
.opt-row.is-off { opacity: .75; }
.music-sign { flex: none; }
.opt-block { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.switch {
  position: relative; flex: none; width: 56px; height: 48px; border: 0; background: none; padding: 0;
}
.switch::before { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; }
.switch-knob { position: absolute; top: 14px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s; }
.switch[aria-checked="true"]::before { background: var(--route); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(24px); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.seg-btn { flex: 1; min-height: 48px; border: 0; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; padding: 0 8px; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-checked="true"] { background: var(--route-soft); color: var(--route); font-weight: 700; }
.opts { padding-bottom: 8px; }
.opts .seg { margin: 4px 16px 8px; }
.opts .hint { padding: 0 16px 8px; }
.sent { border-bottom: 1px solid var(--line); }
.sent summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; cursor: pointer; list-style: none; }
.sent summary::-webkit-details-marker { display: none; }
.payload, .licence {
  margin: 0 16px 14px; padding: 12px; border-radius: 12px; background: var(--card-2); color: var(--ink); font-family: var(--mono); font-size: 12.5px;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto;
}
.licence { max-height: none; }
.points { list-style: none; margin: 0; padding: 0 0 8px; }
.points li { display: flex; gap: 14px; padding: 8px 16px; align-items: flex-start; }
.about-head { display: flex; align-items: center; gap: 14px; padding: 18px 16px 8px; }
.about-mark { width: 56px; height: 56px; display: inline-flex; flex: none; background: url(assets/rumbo-fox.webp) center / contain no-repeat; }
.about-name { font-size: 22px; font-weight: 700; }

/* the menu drawer */
.drawer-wrap { position: absolute; inset: 0; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); background: var(--card); box-shadow: var(--shadow);
  padding: calc(var(--safe-t) + 8px) 0 var(--safe-b) var(--safe-l); transform: translateX(-100%); transition: transform .2s ease-out; overflow-y: auto;
}
.drawer-wrap.is-open .scrim { opacity: 1; }
.drawer-wrap.is-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 16px 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-mark { width: 44px; height: 44px; display: inline-flex; flex: none; background: url(assets/rumbo-fox.webp) center / contain no-repeat; }
/* The logo is Rumbo the fox (owner, 2026-09-29): the search bar, the menu and About draw it from the bundled
   WebP; the arrow glyph their markup still carries is not shown. The fox's orange is brand art, not a UI red. */
.sb-mark > svg, .drawer-mark > svg, .about-mark > svg { display: none; }
.drawer-name { font-size: 18px; font-weight: 700; }
.drawer-head .muted { font-size: 13px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 6px 16px; border: 0; background: none; text-align: left; }
.menu-item:hover { background: var(--card-2); }

/* ─── directions ──────────────────────────────────────────────────────────────────────── */
.dir-panel {
  position: absolute; top: 0; left: 0; right: 0; background: var(--card); box-shadow: var(--shadow);
  padding: calc(var(--safe-t) + 4px) calc(var(--safe-r) + 4px) 6px calc(var(--safe-l) + 4px); z-index: 1;
}
.dir-top { display: flex; align-items: center; gap: 2px; }
.dir-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.dir-row { display: flex; align-items: center; gap: 10px; }
.dir-dot { width: 20px; flex: none; display: inline-flex; justify-content: center; color: var(--amber-ink); }
.dir-dot-from::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--route); background: var(--card); }
.dir-field {
  flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); padding: 0 12px;
  text-align: left; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dir-field.is-here { color: var(--route); font-weight: 600; }
.dir-field.is-empty { color: var(--ink-2); }
.dir-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 4px 0 44px; }
@media (max-width: 440px) { .dir-tabs { padding-left: 4px; } .dir-tab { padding: 0 12px; } }
.dir-tabs::-webkit-scrollbar { display: none; }
.dir-tablist { display: flex; gap: 4px; flex: none; }
.dir-tab {
  min-height: 48px; padding: 0 14px; border-radius: 24px; border: 0; background: none; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; flex: none;
}
.dir-tab.is-on { background: var(--route-soft); color: var(--route); }
.tab-time:empty { display: none; }
.dir-tab.has-time .tab-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sheet-routes { top: calc(var(--dir-h, 150px) + 6px); }
.route-sum { min-height: 52px; }
.route-time { font-size: 24px; }
.route-time b { color: var(--route); font-weight: 700; }
.route-time span { color: var(--ink-2); font-size: 18px; }
.route-empty { font-size: 18px; font-weight: 600; }
.route-note { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.route-note.is-approx { color: var(--amber-ink); font-weight: 600; }
.route-cards { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 0; }
.route-card {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; width: 100%; min-height: 64px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left;
}
.route-card.is-on { border: 2px solid var(--route); background: var(--route-soft); }
.rc-main { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.rc-sub { color: var(--ink); font-size: 15px; }
.rc-note { color: var(--ink-2); font-size: 13px; }
.rc-flag { color: var(--amber-ink); font-size: 13px; font-weight: 600; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--route); color: var(--on-route); }
.steps { list-style: none; margin: 0; padding: 0 0 12px; }
.step { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.step-ic { width: 32px; height: 32px; flex: none; color: var(--route); }

/* choose on map */
.choose { position: absolute; inset: 0; pointer-events: none; }
.choose > * { pointer-events: auto; }
.choose-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 4px; padding: calc(var(--safe-t) + 4px) 8px 4px; background: var(--card); box-shadow: var(--shadow); }
.choose-top h1 { font-size: 18px; font-weight: 600; }
.choose-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--card); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.choose-pin .i path:first-child { fill: var(--ink); stroke: var(--card); stroke-width: 1.6; }
.choose-pin .i circle { fill: var(--amber); stroke: none; }
.choose-pin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 4px; margin-left: -4px; border-radius: 50%; background: rgba(18, 46, 52, .45); }
.choose-card {
  position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px;
}
html[data-choosing] .dir-panel, html[data-choosing] .sheets { display: none; }

/* ─── navigation ──────────────────────────────────────────────────────────────────────── */
.nav { position: absolute; inset: 0; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-top { position: absolute; top: calc(var(--safe-t) + 8px); left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); pointer-events: none; }
.nav-top > * { pointer-events: auto; }
.nav-banner {
  display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 12px 16px; border-radius: 18px;
  background: var(--nav-banner); color: #ffffff; box-shadow: var(--shadow);
}
.nav-arrow { width: 60px; height: 60px; flex: none; color: #ffffff; }
.nav-words { min-width: 0; flex: 1; }
.nav-dist { font-size: 30px; line-height: 1.1; }
.nav-dist b { font-weight: 700; }
.nav-dist span { font-size: 20px; font-weight: 600; opacity: .95; }
.nav-text { font-size: 21px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.nav-then {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 14px; padding: 8px 14px; border-radius: 0 0 14px 14px;
  background: var(--nav-then); color: #ffffff; font-size: 16px; font-weight: 600; max-width: calc(100% - 28px);
}
.nav-then > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.then-ic { width: 24px; height: 24px; flex: none; }
.nav-top { display: flex; flex-direction: column; align-items: flex-start; }
.nav-top > .nav-banner { align-self: stretch; }
.sim-badge {
  margin: 8px 0 0 6px; min-height: 48px; padding: 0 14px; border-radius: 24px; border: 0;
  background: var(--amber); color: #122e34; font-weight: 800; letter-spacing: .04em; font-size: 13px; box-shadow: var(--shadow);
}
.nav-side { position: absolute; right: calc(var(--safe-r) + 12px); top: calc(var(--safe-t) + 190px); display: flex; flex-direction: column; gap: 12px; }
.nav-left { position: absolute; left: calc(var(--safe-l) + 12px); bottom: calc(var(--safe-b) + 96px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nav-speeds { display: flex; align-items: flex-end; gap: 10px; }
.nav-speed {
  min-width: 72px; min-height: 72px; padding: 6px 10px; border-radius: 36px; background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
}
.nav-speed b { font-size: 26px; font-weight: 700; }
.nav-speed b:empty { display: none; }
.nav-speed small { font-size: 12px; color: var(--ink-2); text-align: center; max-width: 80px; }
.nav-speed .spd-src { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.nav-speed.is-over { background: var(--amber); color: #122e34; }
.nav-speed.is-over small { color: #122e34; }
.nav-limit {
  width: 60px; min-height: 74px; border-radius: 8px; background: #ffffff; color: #111111; border: 3px solid #111111; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 4px 2px;
}
.nav-limit small { font-size: 9px; font-weight: 800; text-align: center; letter-spacing: .02em; }
.nav-limit b { font-size: 26px; font-weight: 800; margin-top: 4px; }
.nav-recenter {
  min-height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: var(--card); color: var(--route); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
}
.nav-bar {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: calc(84px + var(--safe-b)); padding: 10px calc(var(--safe-r) + 10px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 10px);
  background: var(--card); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-up); display: flex; align-items: center; gap: 10px;
}
.nav-exit { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-eta { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.nav-mins { font-size: 28px; font-weight: 700; color: var(--route); line-height: 1.1; }
.nav-rest { font-size: 15px; color: var(--ink-2); }
.nav-walk { font-size: 13px; color: var(--amber-ink); font-weight: 600; }
.nav-steps {
  position: absolute; left: 0; right: 0; bottom: calc(84px + var(--safe-b)); max-height: 50vh; overflow-y: auto; background: var(--card);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-up); padding-top: 6px;
}
.nav-arrive {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 96px); background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.nav-arrive h2 { font-size: 22px; }
.arrive-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--route-soft); color: var(--route); display: inline-flex; align-items: center; justify-content: center; }
.nav-arrive .btn { min-width: 160px; margin-top: 6px; }

/* ─── first run, boot, toasts, dialogs ────────────────────────────────────────────────── */
.first {
  position: absolute; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; padding: calc(var(--safe-t) + 20px) calc(var(--safe-r) + 20px) calc(var(--safe-b) + 24px) calc(var(--safe-l) + 20px);
  transition: opacity .2s;
}
.first.is-leaving { opacity: 0; }
.first-inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.first-mark { width: 72px; height: 72px; border-radius: 20px; background: var(--route); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; }
.first-fox { width: 104px; height: 104px; display: block; }
.first h1 { font-size: 30px; font-weight: 700; }
.first-points li { padding: 6px 0; font-size: 16px; align-items: center; }
/* Continue stays on screen, the words scrolling beneath it (a fade shows there is more above) */
.first-foot { position: sticky; bottom: calc(-1 * (var(--safe-b) + 24px)); margin: 0 -4px calc(-1 * (var(--safe-b) + 24px)); padding: 18px 4px calc(var(--safe-b) + 24px); background: linear-gradient(to bottom, transparent, var(--paper) 18px); z-index: 1; }
.card-row { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.boot {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .25s;
}
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot-mark { width: 96px; height: 96px; display: block; }
.boot-name { font-size: 24px; font-weight: 700; }
.boot-status { color: var(--ink-2); padding: 0 24px; text-align: center; }
.noscript { padding: 24px; }
.toast-box {
  position: fixed; left: 50%; bottom: calc(var(--sheet-offset, 0px) + var(--safe-b) + 18px); transform: translate(-50%, 20px); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100% - 32px);
}
html[data-mode="nav"] .toast-box { bottom: calc(var(--safe-b) + 176px); }
.toast-box.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 8px; background: #122e34; color: #f4f6f2; border-radius: 14px; padding: 6px 6px 6px 16px; min-height: 48px; box-shadow: var(--shadow); font-size: 15px; }
.toast > span { padding: 6px 0; }
.toast-act { background: none; border: 0; color: #00c3a9; font-weight: 700; min-height: 44px; padding: 0 12px; }
.dialog-wrap { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px 20px 14px; width: min(400px, 100%); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.dialog h2 { font-size: 20px; }
.dialog p { color: var(--ink-2); }
.dialog-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ─── a phone on its side (and a wide screen): the sheet becomes a panel on the left ─────── */
@media (orientation: landscape) and (max-height: 620px), (min-width: 900px) and (orientation: landscape) {
  .topbar { flex-direction: row; align-items: flex-start; gap: 10px; }
  .searchbar { width: var(--side-w); flex: none; }
  .chips { flex: 1; margin: 0; padding: 0 2px; min-width: 0; }
  .chip { margin: 7px 0; }
  .fabs-side { top: calc(var(--safe-t) + 72px); }
  .coverage, .search-area { top: calc(var(--safe-t) + 72px); left: calc(var(--side-w) + 50% - var(--side-w) / 2); }
  .coverage:not([hidden]) ~ .search-area { top: calc(var(--safe-t) + 128px); }
  .sheet.is-side {
    left: calc(var(--safe-l) + 10px); right: auto; width: var(--side-w); top: calc(var(--safe-t) + 70px); bottom: 10px;
    border-radius: 18px; transform: none !important; box-shadow: var(--shadow); padding-left: 0; padding-right: 0;
  }
  .sheet.is-side .sheet-grip { visibility: hidden; height: 10px; }
  .sheet.is-side .sheet-body { padding-bottom: 12px; }
  .sheet-routes.is-side { top: calc(var(--dir-h, 150px) + 8px); }
  html[data-sheet="side"] .scale { left: calc(var(--side-w) + var(--safe-l) + 24px); }
  html[data-sheet="side"] #map .maplibregl-ctrl-bottom-left { left: calc(var(--side-w) + var(--safe-l) + 16px); }
  .dir-panel { right: auto; width: calc(var(--side-w) + var(--safe-l) + 10px); border-radius: 0 0 18px 0; }
  .dir-tabs { padding-left: 4px; }
  .choose-card { left: auto; right: calc(var(--safe-r) + 10px); width: min(420px, 60vw); }
  .screen:not(.search-screen) .screen-body, .screen .page-head { width: 100%; max-width: 760px; margin: 0 auto; }
  /* the drive: the turn and the trip on the left, the road on the right */
  .nav-top { right: auto; width: min(440px, 46vw); }
  .nav-banner { min-height: 84px; padding: 10px 14px; }
  .nav-arrow { width: 50px; height: 50px; }
  .nav-dist { font-size: 26px; }
  .nav-text { font-size: 18px; }
  .nav-side { top: calc(var(--safe-t) + 10px); }
  .nav-bar { right: auto; width: min(440px, 46vw); left: calc(var(--safe-l) + 8px); bottom: 8px; border-radius: 18px; min-height: 72px; padding: 8px 10px; box-shadow: var(--shadow); }
  .nav-left { left: auto; right: calc(var(--safe-r) + 12px); bottom: calc(var(--safe-b) + 14px); align-items: flex-end; }
  .nav-steps { right: auto; width: min(440px, 46vw); left: calc(var(--safe-l) + 8px); bottom: 88px; border-radius: 18px; max-height: 55vh; }
  .nav-arrive { left: calc(var(--safe-l) + 8px); right: auto; width: min(440px, 46vw); bottom: 88px; }
  html[data-mode="nav"] .toast-box { left: calc(min(440px, 46vw) + 50% - min(440px, 46vw) / 2); bottom: 20px; }
  html[data-mode="nav"] #map .maplibregl-ctrl-bottom-right { bottom: 0; }
  html[data-mode="nav"] #map .maplibregl-ctrl-bottom-left { left: calc(min(440px, 46vw) + 16px); bottom: 0; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .nav-then { padding: 5px 12px; font-size: 15px; }
  .nav-speed { min-width: 60px; min-height: 60px; }
  .nav-speed b { font-size: 22px; }
  .nav-limit { min-height: 64px; width: 54px; }
  .nav-arrive { padding: 12px; gap: 4px; }
  .first-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ─── round 2 (2026-09-28): road reports, work zones and the drive's alerts ──────────────────────
   Amber is the report colour (the button, the signs, the chip), with ink on it (7.2:1). A reported
   closure is the one sign drawn the other way round (ink, amber glyph). Red appears only as heavy
   traffic in the traffic banner's stripe, as on the map. */
.report-fab { width: 56px; height: 56px; background: var(--amber); color: var(--report-ink); }
.report-fab:hover { background: var(--amber); }
.fabs-left {
  position: absolute; left: calc(var(--safe-l) + 14px); bottom: calc(var(--sheet-offset, 0px) + var(--safe-b) + 70px);
  display: flex; flex-direction: column; gap: 12px; transition: bottom .22s ease; pointer-events: none;
}
.fabs-left > * { pointer-events: auto; }
html[data-sheet="full"] .fabs-left { opacity: 0; pointer-events: none; }

/* the six targets */
.report-wrap { position: absolute; inset: 0; z-index: 5; }
.rpt-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fadein .15s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.report-panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-up);
  padding: 16px calc(var(--safe-r) + 14px) calc(var(--safe-b) + 14px) calc(var(--safe-l) + 14px); animation: rise .18s ease-out;
  max-height: calc(100% - var(--safe-t) - 8px); overflow-y: auto; overscroll-behavior: contain;
}
.rpt-head { position: relative; padding-right: 52px; }
.rpt-head h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.rpt-where { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.rpt-where.is-note { color: var(--amber-ink); font-weight: 600; }
.rpt-x { position: absolute; top: -8px; right: -6px; }
.rpt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.rpt-target {
  min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
}
.rpt-target:active { background: var(--amber-soft); }
.rpt-target:disabled { opacity: .55; }
.rpt-grid.is-driving .rpt-target { min-height: 96px; font-size: 16px; }
.rpt-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--amber); color: var(--report-ink); display: inline-flex; align-items: center; justify-content: center; }
.rpt-grid.is-driving .rpt-ic { width: 52px; height: 52px; }
.rpt-target[data-kind="closure"] .rpt-ic { background: var(--report-ink); color: var(--amber); }
.rpt-foot { font-size: 13px; color: var(--ink-2); }

/* on the map: a diamond road sign per report, a round cone for a work zone (the dashed amber line is the map's) */
.rpt-mk { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 0; }
.rpt-mk-sign {
  width: 30px; height: 30px; border-radius: 7px; background: var(--amber); color: var(--report-ink); border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; transform: rotate(45deg);
}
.rpt-mk-sign .i { transform: rotate(-45deg); }
.rpt-mk-closure .rpt-mk-sign { background: var(--report-ink); color: var(--amber); }
.rpt-mk.is-zone .rpt-mk-sign { border-radius: 50%; transform: none; width: 32px; height: 32px; }
.rpt-mk.is-zone .rpt-mk-sign .i { transform: none; }
.rpt-mk:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-radius: 50%; }
.rpt-info { display: flex; align-items: flex-start; gap: 14px; }
.rpt-info h2 { font-size: 22px; font-weight: 600; }
.rpt-info-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--amber); color: var(--report-ink); display: inline-flex; align-items: center; justify-content: center; }
.rpt-info-ic.rpt-mk-closure { background: var(--report-ink); color: var(--amber); }

/* the drive: under the turn, the traffic banner and the next report or work zone */
.nav-alerts { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; pointer-events: none; }
.nav-alerts > * { pointer-events: auto; }
.nav-alerts:not(:has(> :not([hidden]))) { display: none; }
.nav-jam {
  align-self: stretch; min-height: 48px; padding: 10px 14px 10px 14px; border-radius: 14px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); border-left: 8px solid var(--amber); font-weight: 700; font-size: 17px; line-height: 1.25; display: flex; align-items: center;
}
.nav-jam.is-slow { border-left-color: var(--traffic-slow); }
.nav-jam.is-stopped { border-left-color: var(--traffic-stopped); }
.nav-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 7px 16px 7px 8px; border-radius: 24px;
  background: var(--amber); color: var(--report-ink); box-shadow: var(--shadow); font-weight: 700; font-size: 17px;
}
.nav-chip-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--report-ink); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; }
.nav-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-fab-nav { box-shadow: var(--shadow); }

/* the one question at a time: "Still there?" or "Faster route found", with a bar that runs down */
.nav-prompt {
  position: absolute; left: calc(var(--safe-l) + 10px); right: calc(var(--safe-r) + 10px); bottom: calc(84px + var(--safe-b) + 12px); z-index: 3;
  background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: 0 4px 18px rgba(18, 46, 52, .3); padding: 14px 14px 0;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden; animation: rise .18s ease-out;
}
.prompt-t { font-size: 21px; font-weight: 700; line-height: 1.2; }
.prompt-s { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.prompt-count { color: var(--ink); font-weight: 600; }
.prompt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prompt-btn { min-height: 60px; font-size: 18px; border-radius: 16px; padding: 0 10px; }
.prompt-track { height: 6px; margin: 0 -14px; background: var(--card-2); }
.prompt-bar { display: block; height: 100%; background: var(--amber); transform-origin: left center; animation: countdown linear forwards; }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (orientation: landscape) and (max-height: 620px), (min-width: 900px) and (orientation: landscape) {
  html[data-sheet="side"] .fabs-left { left: calc(var(--side-w) + var(--safe-l) + 24px); }
  .report-panel { left: calc(var(--safe-l) + 8px); right: auto; width: min(460px, 52vw); bottom: 8px; border-radius: 20px; padding-bottom: 12px; max-height: calc(100% - 16px); }
  .rpt-grid { margin: 10px 0 8px; gap: 8px; }
  .rpt-grid.is-driving .rpt-target { min-height: 80px; }
  .rpt-grid.is-driving .rpt-ic { width: 46px; height: 46px; }
  .nav-prompt { left: auto; right: calc(var(--safe-r) + 12px); width: min(420px, 46vw); bottom: 12px; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .nav-jam { min-height: 44px; padding: 6px 12px; font-size: 15px; }
  .nav-chip { min-height: 44px; font-size: 15px; }
  .nav-chip-ic { width: 30px; height: 30px; }
  .prompt-t { font-size: 18px; }
  .prompt-btn { min-height: 56px; font-size: 16px; }
  .report-fab { width: 52px; height: 52px; }
}
