/* cycleSOS · styles (merged build)
   One accent (#6E66F6, brand purple) for the route, bikes and the main action; everything else stays quiet.
   Layer order: map → safety-zone particles → bike particles → route → labels (all canvas) → this UI. */

:root {
  --accent: #6e66f6;
  --accent-ink: #ffffff;          /* text on the accent */
  --accent-text: #4f47d6;         /* accent as text on light surfaces */
  --bg: #f1f1ee;
  --ink: #16171a;
  --muted: #676a64;
  --panel: rgba(255, 255, 255, 0.86);
  --field: rgba(22, 23, 26, 0.05);
  --border: rgba(22, 23, 26, 0.12);
  --shadow: 0 10px 40px rgba(22, 23, 26, 0.16);
  --label-halo: 0 0 6px rgba(241, 241, 238, 0.9);
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 24px;
}
body.night {
  --accent-text: #a8a2ff;
  --bg: #0d0e10;
  --ink: #f2f3ef;
  --muted: #8f928c;
  --panel: rgba(14, 15, 17, 0.78);
  --field: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  --label-halo: 0 0 8px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none;
  font-family: "Overpass", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--bg);
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#map { position: absolute; inset: 0; }

.glass { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }

/* ---------------- Loading ---------------- */
#splash {
  position: fixed; inset: 0; z-index: 200; background: #0d0e10; color: #f2f3ef;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.45s ease;
}
@keyframes bikeIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
#splash .t { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: -6px; }
#splash .tag { font-size: 15px; color: #a8a2ff; margin-top: -4px; }
#splash .m { font-size: 13.5px; color: #8f928c; text-align: center; padding: 0 30px; white-space: pre-line; line-height: 1.5; min-height: 40px; margin-top: 6px; }
#splash .loader { width: 140px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
#splash .loader i { display: block; width: 40%; height: 100%; border-radius: 2px; background: #6e66f6; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
#splash.fade { opacity: 0; pointer-events: none; }

/* ---------------- Corners ---------------- */
.logo {
  position: absolute; z-index: 20; top: calc(var(--gutter) + var(--top)); left: var(--gutter);
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-shadow: var(--label-halo);
  pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
/* legend: zone swatches use the same colours as the map layer (see ZONE_COLORS in cyclesos.js) */
.legend {
  position: absolute; z-index: 20; top: calc(var(--gutter) + 46px + var(--top)); left: var(--gutter);
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 12.5px; color: var(--muted); pointer-events: none;
}
.lg-row { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 16px; height: 11px; border-radius: 4px; flex: none; }
.legend .sw.strong { background: rgba(110, 102, 246, 0.25); box-shadow: inset 0 0 0 1px rgba(110, 102, 246, 0.5); }
.legend .sw.moderate { background: rgba(110, 102, 246, 0.14); box-shadow: inset 0 0 0 1px rgba(110, 102, 246, 0.35); }
.legend .sw.weak { background: rgba(196, 128, 40, 0.2); box-shadow: inset 0 0 0 1px rgba(196, 128, 40, 0.45); }
body.night .legend .sw.strong { background: rgba(110, 102, 246, 0.2); box-shadow: inset 0 0 0 1px rgba(110, 102, 246, 0.45); }
body.night .legend .sw.moderate { background: rgba(110, 102, 246, 0.13); box-shadow: inset 0 0 0 1px rgba(110, 102, 246, 0.25); }
body.night .legend .sw.weak { background: rgba(178, 112, 34, 0.18); box-shadow: inset 0 0 0 1px rgba(178, 112, 34, 0.5); }
.legend .dot { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px #4f47d6; flex: none; }
body.night .legend .dot { box-shadow: 0 0 0 1px #0d0e10; }
.legend .dot.empty { background: transparent; box-shadow: inset 0 0 0 1.4px #4f47d6; }
.legend .lg-mesh, .legend .lg-light { display: none; }
body.show-mesh .legend .lg-mesh, body.show-light .legend .lg-light { display: flex; }
.legend .ln.lit { background: #ffcc00; } .legend .ln.unlit { background: #ff453a; margin-left: 6px; }
.legend .lg-note { font-size: 11px; opacity: 0.85; }
body[data-tab="insights"] .legend.browse-only { display: none; }
body.night .legend .dot.empty { box-shadow: inset 0 0 0 1.4px rgba(110, 102, 246, 0.7); }

.mode {
  position: absolute; z-index: 20; top: calc(var(--gutter) - 6px + var(--top)); right: var(--gutter);
  height: 52px; padding: 5px; border-radius: 999px; display: flex; gap: 4px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mode button {
  border: none; background: transparent; border-radius: 999px; padding: 0 18px; display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--muted); transition: background 0.2s ease, color 0.2s ease;
}
.mode button svg { width: 18px; height: 18px; }
.mode button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.side {
  position: absolute; z-index: 15; right: var(--gutter); top: calc(var(--gutter) + 62px + var(--top));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.round {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); padding: 0;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background 0.2s ease, color 0.2s ease, transform 0.12s var(--ease);
}
.round:active { transform: scale(0.92); }
.round svg { width: 19px; height: 19px; }
.round.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.round.loading svg { animation: blink 0.9s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
/* the light-up button carries a label so people find it */
.round.beacon-btn { width: auto; min-width: 46px; padding: 0 16px 0 13px; border-radius: 999px; display: flex; gap: 7px; font-size: 14px; font-weight: 700; }
.round.beacon-btn svg { color: var(--accent-text); }
.round.beacon-btn.on svg { color: var(--accent-ink); animation: glow 1.4s ease-in-out infinite; }
body.beacon-sos .round.beacon-btn.on { background: var(--risk); color: #fff; }
body.beacon-sos .round.beacon-btn.on svg { color: #fff; }
@keyframes glow { 50% { transform: scale(1.12); filter: drop-shadow(0 0 4px rgba(13,14,16,0.4)); } }

/* ---------------- Floating panel ---------------- */
#panel {
  position: absolute; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--gutter) + var(--bot)); width: min(1040px, calc(100% - 2 * var(--gutter)));
  padding: 16px 18px 12px; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.panel-row { display: flex; align-items: center; gap: 14px; }

.search {
  position: relative; flex: 1; min-width: 0; height: 58px; border-radius: 999px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 22px;
  background: var(--field); border: 1px solid var(--border); transition: border-color 0.15s ease;
}
.search:focus-within { border-color: var(--accent); }
.search > svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent;
  font: inherit; font-size: 18px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.x-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--field); color: var(--muted); display: grid; place-items: center; padding: 0; flex: none; }
.x-btn svg { width: 14px; height: 14px; }

.cta {
  flex: none; height: 58px; padding: 0 26px 0 30px; border: none; border-radius: 999px;
  display: flex; align-items: center; gap: 12px; background: var(--accent); color: var(--accent-ink);
  font-size: 18px; font-weight: 700; transition: transform 0.12s var(--ease), filter 0.15s ease;
}
.cta svg { width: 22px; height: 22px; }
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(0.97); }

.bikes {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; height: 44px;
  border-left: 1px solid var(--border); font-size: 17px; white-space: nowrap;
}
.bikes svg { width: 34px; height: 34px; color: var(--accent-text); }
body.night .bikes svg { filter: drop-shadow(0 0 6px rgba(110, 102, 246, 0.45)); }
.bikes b { font-weight: 700; font-variant-numeric: tabular-nums; }

.summary {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 30px; margin-top: 10px;
  font-size: 16px; text-align: center;
}
#st-route-row { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; }
#st-route-row > * { white-space: nowrap; flex: none; }
#st-route-row .route-ico { width: 22px; height: 22px; color: var(--accent-text); }
#st-route { color: var(--accent-text); font-weight: 700; }
#st-time, #st-reports { font-variant-numeric: tabular-nums; }
.sep { color: var(--muted); margin: 0 2px; }
#st-reports-row { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.clear { width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--field); color: var(--muted); display: grid; place-items: center; padding: 0; margin-left: 4px; }
.clear svg { width: 12px; height: 12px; }
.summary .hint { font-size: 14px; color: var(--muted); }

/* suggestions open upwards, above the panel */
#suggest {
  position: absolute; bottom: calc(100% + 12px); left: 0; right: 0; max-height: 50vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 20px; padding: 6px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.sug { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; width: 100%; border: none; background: transparent; text-align: left; }
.sug:hover, .sug.hl { background: var(--field); }
.sug .pin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--field); color: var(--muted); }
.sug .pin svg { width: 16px; height: 16px; }
.sug .grow { flex: 1; min-width: 0; }
.sug .main { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .main b { font-weight: 800; }
.sug .second { font-size: 13px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .dist { font-size: 13px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.sug-head { font-size: 13px; color: var(--muted); padding: 8px 12px 4px; }

/* ---------------- Toast + tooltip ---------------- */
#toast {
  position: absolute; z-index: 150; left: 50%; top: calc(28px + var(--top)); transform: translate(-50%, -8px); opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s var(--ease); pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  max-width: calc(100% - 40px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

#callout {
  position: absolute; z-index: 30; width: 230px; border-radius: 16px; padding: 12px 14px; pointer-events: none;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translate(-50%, calc(-100% - 22px));
}
#callout .c-t { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
#callout .c-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 8px rgba(110, 102, 246, 0.6); }
#callout .c-s { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
/* v17: alarm trigger count */
#callout .c-n { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
#callout .c-n b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
#callout .c-n span { width: 100%; font-size: 12px; color: var(--muted); margin-top: -2px; }
#callout .c-demo { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); }

/* ---------------- Navigation ---------------- */
/* browse view vs navigation view */
body:not(.navigating) .nav-only { display: none !important; }
body.navigating .browse-only { display: none !important; }
:root { --safe: #34c759; --caution: #ffb020; --risk: #ff604c; }

/* 3D: the whole map layer (basemap + overlay) is tilted and turned so the way ahead points up */
#stage { position: absolute; inset: 0; overflow: hidden; }
#plane { position: absolute; inset: 0; }
#nav-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
body.navigating #nav-canvas { display: block; }
body.nav3d #stage { perspective: 800px; perspective-origin: 50% 20%; }
body.nav3d #plane {
  inset: auto; left: 50%; top: 67%; width: 200vmax; height: 200vmax;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(var(--nav-rot, 0deg)) scale(var(--nav-scale, 1));
}
body.navigating:not(.nav3d) #plane { transform: scale(var(--nav-scale, 1)); }
/* horizon fog so the far edge of the tilted map fades out instead of ending in a hard line */
#fog {
  position: absolute; left: 0; right: 0; top: 0; height: 36%; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 38%, transparent 100%); transition: opacity 0.4s ease;
}
body.nav3d #fog { opacity: 1; }

.start {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 18px 0 14px; margin-left: 6px;
  border: none; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700;
}
.start svg { width: 16px; height: 16px; }
.start:active { transform: scale(0.97); }

#nav-top {
  position: absolute; z-index: 20; top: calc(var(--gutter) - 6px + var(--top)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 460px)); border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
#nav-top[data-status="safe"] { --st: var(--safe); }
#nav-top[data-status="caution"] { --st: var(--caution); }
#nav-top[data-status="risk"] { --st: var(--risk); }
/* the instruction: dark in both modes for maximum contrast, like Google's banner */
.nt-turn { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; background: #121316; color: #f2f3ef; transition: background 0.3s ease; }
#nav-top.soon .nt-turn { background: #1d1b3d; }
.nt-icon { width: 56px; height: 56px; flex: none; color: #a8a2ff; display: grid; place-items: center; }
.nt-icon svg { width: 52px; height: 52px; }
#nav-top.soon .nt-icon { animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.08); } }
.nt-main { flex: 1; min-width: 0; }
.nt-dist { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nt-instr { font-size: 16px; font-weight: 600; margin-top: 3px; color: rgba(242,243,239,0.86); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
#nav-top.arrived .nt-dist { font-size: 26px; }
.nt-safety { display: flex; align-items: center; gap: 12px; padding: 10px 14px 11px 18px; box-shadow: inset 0 3px 0 var(--st, var(--safe)); }
.nt-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--safe); box-shadow: 0 0 10px var(--st, var(--safe)); }
.nt-text { flex: 1; min-width: 0; }
.nt-title { font-size: 15px; font-weight: 700; }
.nt-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-mode { flex: none; font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--field); border: 1px solid transparent; white-space: nowrap; }
.nt-mode.tap { border-color: var(--border); color: var(--ink); }
.nt-then {
  position: absolute; z-index: 19; left: 50%; transform: translateX(-50%); top: calc(var(--gutter) + 150px + var(--top));
  width: min(560px, calc(100% - 460px)); display: flex; align-items: center; gap: 8px; padding: 0 16px;
  font-size: 14px; font-weight: 700; color: #f2f3ef;
}
.nt-then::before { content: ""; position: absolute; inset: -4px auto -4px 12px; width: 108px; border-radius: 0 0 14px 14px; background: #121316; z-index: -1; }
.nt-then svg { width: 24px; height: 24px; color: #a8a2ff; }

.view-toggle {
  position: absolute; z-index: 20; right: var(--gutter); top: calc(var(--gutter) + 58px + var(--top));
  display: flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.view-toggle button { border: none; background: transparent; border-radius: 999px; width: 50px; height: 38px; font-size: 15px; font-weight: 700; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.legend .ln { width: 18px; height: 4px; border-radius: 2px; flex: none; }
.legend .ln.safe { background: var(--safe); }
.legend .ln.caution { background: var(--caution); }
.legend .ln.risk { background: var(--risk); }

#nav-panel {
  position: absolute; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--gutter) + var(--bot)); width: min(1040px, calc(100% - 2 * var(--gutter)));
  padding: 16px 20px 14px; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.np-row { display: flex; align-items: center; gap: 22px; }
.np-eta { display: flex; flex-direction: column; margin-right: auto; }
.np-eta b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.np-eta span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-stat { display: flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; padding-left: 22px; border-left: 1px solid var(--border); }
.np-stat svg { width: 30px; height: 30px; color: var(--accent-text); }
.np-stat b { font-weight: 700; font-variant-numeric: tabular-nums; }
.np-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(110, 102, 246, 0.6); margin: 0 5px; }
.np-end {
  height: 50px; padding: 0 28px; border: none; border-radius: 999px; font-size: 16px; font-weight: 700;
  background: rgba(255, 96, 76, 0.14); color: var(--risk);
}
body:not(.night) .np-end { color: #c73a28; }
.np-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.np-act {
  height: 42px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--field);
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
}
.np-act svg { width: 18px; height: 18px; color: var(--accent-text); }
.np-act.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.np-act.on svg { color: var(--accent-ink); animation: glow 1.4s ease-in-out infinite; }
body.beacon-sos .np-act.on { background: var(--risk); color: #fff; }
.np-unlock { height: 42px; padding: 0 18px; border: none; border-radius: 999px; background: var(--brand, var(--accent)); color: #fff; font-size: 15px; font-weight: 800; margin-left: auto; }
.np-strip-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.np-strip-l { font-size: 13px; color: var(--muted); white-space: nowrap; }
.np-strip { flex: 1; height: 8px; display: flex; gap: 2px; border-radius: 999px; overflow: hidden; background: var(--field); }
.np-strip i { display: block; height: 100%; }
.np-strip i.safe { background: var(--safe); }
.np-strip i.caution { background: var(--caution); }
.np-strip i.risk { background: var(--risk); }

/* ---------------- Small screens ---------------- */
@media (max-width: 820px) {
  :root { --gutter: 14px; }
  .logo { font-size: 23px; top: calc(var(--gutter) + 8px + var(--top)); }
  .legend { top: calc(var(--gutter) + 46px + var(--top)); padding: 8px 10px; gap: 4px; font-size: 11.5px; }
  .mode { height: 46px; }
  .mode button { padding: 0 13px; font-size: 14px; }
  .side { top: calc(var(--gutter) + 56px + var(--top)); gap: 8px; }
  .round.beacon-btn .lbl { display: none; }
  .round.beacon-btn { padding: 0; width: 46px; justify-content: center; }
  #panel { padding: 12px 12px 10px; border-radius: 22px; }
  .panel-row { flex-wrap: wrap; gap: 10px; }
  .search { flex: 1 0 100%; height: 52px; }
  .search input { font-size: 16px; }
  .cta { flex: 1 1 auto; min-width: 0; height: 50px; justify-content: center; font-size: 15px; padding: 0 12px; gap: 6px; white-space: nowrap; }
  .cta svg { width: 18px; height: 18px; }
  .bikes { border-left: none; padding: 0 2px; gap: 7px; font-size: 13.5px; }
  .bikes svg { width: 24px; height: 24px; }
  .summary { font-size: 14px; flex-wrap: wrap; }
  #st-route-row .start { flex: 1 0 100%; height: 46px; justify-content: center; margin: 4px 0 0; font-size: 16px; }
  #nav-top { top: calc(var(--gutter) + 46px + var(--top)); left: var(--gutter); right: var(--gutter); width: auto; transform: none; border-radius: 20px; }
  .nt-turn { padding: 12px 14px 12px 10px; gap: 10px; }
  .nt-icon { width: 48px; height: 48px; } .nt-icon svg { width: 44px; height: 44px; }
  .nt-dist { font-size: 27px; } .nt-instr { font-size: 14.5px; }
  .nt-then { left: var(--gutter); right: var(--gutter); width: auto; transform: none; top: calc(var(--gutter) + 188px + var(--top)); }
  .view-toggle { top: auto; left: var(--gutter); right: auto; bottom: calc(var(--dock-h, 180px) + var(--gutter) + var(--bot) + 12px); }
  .legend.nav-only { display: none !important; }
  #nav-panel { padding: 12px 14px 12px; border-radius: 22px; }
  .np-row { flex-wrap: wrap; gap: 10px 14px; }
  .np-eta b { font-size: 26px; }
  .np-stat { border-left: none; padding-left: 0; font-size: 14px; order: 3; }
  .np-stat svg { width: 24px; height: 24px; }
  .np-end { height: 44px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================================================
   Merged features, in the same visual language: one purple accent, frosted panels, Overpass.
   ===================================================================================================== */
:root { --dock-h: 170px; --sos: #ff3b30; }

/* ---------------- Panel views + tab bar ---------------- */
.view { animation: viewIn 0.22s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.view.scroll { max-height: min(58vh, 560px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px 4px; }
.v-head { display: flex; flex-direction: column; gap: 2px; margin: 2px 4px 12px; }
.v-head b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.v-head span { font-size: 13.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); }
.tabs button {
  flex: 1; height: 42px; border: none; border-radius: 999px; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 700; position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs button svg { width: 18px; height: 18px; flex: none; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
#tab-contact.set::after { content: ""; position: absolute; top: 8px; right: calc(50% - 26px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.score { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 3px 10px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); font-size: 13px; color: var(--muted); cursor: help; }
.score b { color: var(--accent-text); font-size: 14px; }
.summary .hint { max-width: 100%; }

/* ---------------- Walk ---------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 4px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--field); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: transparent; }
#walk-list { display: flex; flex-direction: column; gap: 8px; }
.wopt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 18px; text-align: left;
  background: var(--field); border: 1.5px solid var(--border); transition: border-color 0.15s ease, transform 0.12s var(--ease);
}
.wopt:active { transform: scale(0.985); }
.wopt.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 102, 246, 0.18); }
.w-time { display: flex; flex-direction: column; align-items: center; min-width: 46px; font-size: 12px; color: var(--muted); }
.w-time b { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.w-mid { flex: 1; min-width: 0; }
.w-t { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-m { font-size: 13px; color: var(--muted); margin-top: 1px; }
.w-pills { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); color: var(--muted); }
.pill.ok { color: var(--accent-text); border-color: rgba(110, 102, 246, 0.45); }
.pill.warn { color: #b86e00; border-color: rgba(255, 176, 32, 0.5); }
body.night .pill.warn { color: var(--caution); }
.ring { width: 44px; height: 44px; flex: none; }
.cta.wide { width: 100%; margin-top: 12px; justify-content: center; }
.hint { font-size: 14px; color: var(--muted); padding: 6px 4px; }
.skel { height: 66px; border-radius: 18px; background: linear-gradient(90deg, var(--field) 25%, rgba(127,127,127,.16) 50%, var(--field) 75%); background-size: 200% 100%; animation: shimmer 1.1s infinite; }
.skel + .skel { margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- Insights ---------------- */
.net { padding: 14px 14px 12px; border-radius: 18px; background: var(--field); border: 1px solid var(--border); margin-bottom: 10px; }
.net-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.net-head div { font-size: 15px; } .net-head b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.net-head span { font-size: 12.5px; color: var(--muted); }
.net-bars { display: flex; flex-direction: column; gap: 7px; }
.nb { display: grid; grid-template-columns: 78px 1fr 58px 30px; align-items: center; gap: 10px; font-size: 13px; }
.nb .bar { margin: 0; height: 8px; }
.nb .bar i { background: var(--accent); }
body:not(.night) .nb .bar i { background: #6e66f6; }
.nb b { text-align: right; font-variant-numeric: tabular-nums; }
.nb em { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.nb em.live { color: var(--accent-text); }
.net-foot { font-size: 12px; color: var(--muted); margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px; border-radius: 16px; background: var(--field); border: 1px solid var(--border); }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.section-title { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 16px 4px 8px; }
.hot { border-radius: 18px; overflow: hidden; background: var(--field); border: 1px solid var(--border); }
.hot + .hot { margin-top: 8px; }
.hot-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; width: 100%; border: none; background: transparent; text-align: left; }
.hot-thumb { width: 56px; height: 56px; border-radius: 12px; flex: none; background: var(--field); position: relative; overflow: hidden; }
.hot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-thumb span { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--risk); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.hot .grow, .grow { flex: 1; min-width: 0; }
.rt { font-size: 15px; font-weight: 700; }
.rs { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.chev { color: var(--muted); flex: none; }
.hot-body { padding: 0 12px 14px; animation: viewIn 0.22s var(--ease); }
.pano { height: 190px; border-radius: 14px; overflow: hidden; background: var(--field); margin-bottom: 12px; position: relative; }
.pano img { width: 100%; height: 100%; object-fit: cover; }
.pano .credit { position: absolute; right: 6px; bottom: 6px; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 6px; border-radius: 6px; z-index: 2; }
.bar { height: 6px; border-radius: 3px; background: var(--field); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 12.5px; color: var(--muted); }
.kv b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.cats { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.cats .cr { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.recs { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.rec { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-text); margin-top: 6px; flex: none; }
.records { margin-top: 12px; border-top: 1px solid var(--border); }
.record { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; line-height: 1.35; }
.record .cdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.record b { font-size: 13.5px; }
.record .o { color: var(--muted); }
.sent { color: var(--accent-text); font-weight: 700; font-size: 13px; margin-top: 8px; }
.src { font-size: 11.5px; color: var(--muted); margin: 12px 4px 0; line-height: 1.45; }
.src a { color: inherit; }

/* ---------------- Buttons (modals, Insights) ---------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; background: var(--field); color: var(--ink);
  transition: transform 0.12s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn.go { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { background: var(--sos); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn + .btn { margin-top: 8px; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.btn-row .btn { margin-top: 0; height: 46px; font-size: 15px; }

/* ---------------- Floating above the bottom panel: SOS + light-up pill + operator card ---------------- */


#lit-pill {
  position: absolute; z-index: 24; left: var(--gutter); right: calc(var(--gutter) + 80px); max-width: 440px;
  bottom: calc(var(--dock-h) + var(--gutter) + var(--bot) + 16px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: #121316; color: #f2f3ef; border: 1px solid rgba(110, 102, 246, 0.35); box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  animation: viewIn 0.25s var(--ease); transition: bottom 0.3s var(--ease);
}
.lp-dot { width: 12px; height: 12px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 0 3px rgba(255,233,168,.25), 0 0 14px 4px rgba(255, 220, 120, 0.8); flex: none; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(255,233,168,.15), 0 0 22px 8px rgba(255, 220, 120, 0.9); } }
body.beacon-sos #lit-pill { border-color: rgba(255, 96, 76, 0.6); }
body.beacon-sos .lp-dot { background: #ff604c; box-shadow: 0 0 14px 4px rgba(255,96,76,.8); animation: strobe 0.52s steps(2) infinite; }
@keyframes strobe { 50% { background: #fff; } }
.lp-t { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-s { font-size: 12px; color: rgba(242,243,239,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-btn { flex: none; height: 32px; padding: 0 12px; border: none; border-radius: 999px; background: #6e66f6; color: #fff; font-size: 13px; font-weight: 800; }
.lp-x { flex: none; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255,255,255,0.12); color: #f2f3ef; display: grid; place-items: center; padding: 0; }
.lp-x svg { width: 13px; height: 13px; }

/* the big "bikes lit up" alert: drops in over the map, then settles into the pill */
#lit-alert {
  position: absolute; z-index: 110; left: 50%; top: calc(var(--gutter) + 64px + var(--top)); width: min(460px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 16px 16px; border-radius: 22px; cursor: pointer;
  background: #121316; color: #f2f3ef; border: 1px solid rgba(255, 226, 140, 0.45);
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), 0 0 60px rgba(255, 220, 120, 0.25);
  opacity: 0; transform: translate(-50%, -14px) scale(0.97); transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
#lit-alert.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
body.navigating #lit-alert { top: calc(var(--gutter) + 186px + var(--top)); }
.la-ico { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #3a2e00; background: radial-gradient(circle at 50% 45%, #fff7d6 0%, #ffe28a 55%, #ffc93c 100%); box-shadow: 0 0 24px 6px rgba(255, 214, 100, 0.55); animation: breathe 1.8s ease-in-out infinite; }
.la-ico svg { width: 24px; height: 24px; }
.la-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.la-s { font-size: 13.5px; color: rgba(242,243,239,0.78); margin-top: 4px; line-height: 1.45; }
.la-demo { flex: none; font-size: 10.5px; font-weight: 700; color: rgba(242,243,239,0.6); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); }
#lit-alert.small { padding: 12px 14px; align-items: center; }
#lit-alert.small .la-ico { width: 36px; height: 36px; border-radius: 11px; } #lit-alert.small .la-t { font-size: 15.5px; } #lit-alert.small .la-s { font-size: 12.5px; }
#lit-alert.sos { border-color: rgba(255, 96, 76, 0.7); box-shadow: 0 16px 50px rgba(0,0,0,0.45), 0 0 60px rgba(255, 96, 76, 0.35); }
#lit-alert.sos .la-ico { background: radial-gradient(circle, #fff 0%, #ff8a7a 50%, #ff3b30 100%); color: #fff; animation: strobe 0.52s steps(2) infinite; }

/* operator card: the one place brand colours and logos appear */
#place {
  position: absolute; z-index: 26; left: var(--gutter); right: var(--gutter); margin: 0 auto; max-width: 460px;
  bottom: calc(var(--dock-h) + var(--gutter) + var(--bot) + 88px);
  padding: 16px 16px 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); animation: viewIn 0.22s var(--ease);
}
.pc-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--field); color: var(--muted); display: grid; place-items: center; padding: 0; }
.pc-x svg { width: 13px; height: 13px; }
.pc-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; padding-right: 36px; }
.pc-t span { display: block; font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-top: 1px; }
.pc-s { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.pc-s em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); margin-left: 2px; }
.pc-ops { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.pc-op {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px 8px 8px; border-radius: 16px; text-align: left;
  background: var(--field); border: 1px solid var(--border); transition: transform 0.12s var(--ease);
}
.pc-op:active { transform: scale(0.985); }
.op-logo { position: relative; width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--brand); display: grid; place-items: center; overflow: hidden; }
.op-logo b { color: #fff; font-size: 16px; font-weight: 800; }
.op-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.pc-name { flex: 1; font-size: 15.5px; font-weight: 700; }
.pc-n { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-n small { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-left: 2px; }
.pc-go { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 800; display: grid; place-items: center; }
.pc-walk { width: 100%; height: 44px; margin-top: 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; font-size: 15px; font-weight: 700; color: var(--ink); }

/* someone's shared live location */
#watch-banner {
  position: absolute; z-index: 30; top: calc(var(--gutter) + 46px + var(--top)); left: 50%; transform: translateX(-50%);
  width: min(520px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px;
  background: #121316; color: #f2f3ef; border: 1px solid rgba(110,102,246,.35); box-shadow: var(--shadow);
}
#watch-banner.alert { background: #b3261e; border-color: transparent; animation: sosPulse 1.6s infinite; }
.wb-ico { width: 40px; height: 40px; border-radius: 12px; background: #6e66f6; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.wb-t { font-size: 16px; font-weight: 800; } .wb-s { font-size: 12.5px; opacity: 0.8; margin-top: 1px; }
.wb-dir { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; text-decoration: none; }

/* ---------------- Modals ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.5); animation: fadeIn 0.2s ease; }
.modal .mc {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(20px + var(--bot)); background: var(--bg); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: sheetUp 0.35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 12px; }
.modal h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.modal .lead { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.field { background: var(--field); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.field label { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 52px; }
.field label + label { border-top: 1px solid var(--border); }
.field span:not(.switch):not(.wide) { width: 92px; flex: none; font-size: 15px; font-weight: 600; }
.field span.wide { flex: 1; font-size: 15px; font-weight: 600; }
.field input[type=text], .field input[type=tel] { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
.switch { position: relative; width: 51px; height: 31px; flex: none; margin-left: auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--border); transition: background 0.2s ease; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform 0.25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 2px 4px 14px; }
.sos-hero { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }
.sos-hero h2 { margin: 0; }
.sos-hero .sub { font-size: 14px; color: var(--muted); }
.sos-hero .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--sos); display: grid; place-items: center; animation: sosPulse 1.6s infinite; flex: none; }
.sos-hero .dot svg { width: 26px; height: 26px; }
.steps { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 11px; }
.step { display: flex; align-items: center; gap: 12px; font-size: 15px; opacity: 0.3; transition: opacity 0.3s ease, transform 0.3s var(--ease); transform: translateX(-6px); }
.step.done { opacity: 1; transform: none; }
.step .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }

/* callout (hover, laptops only) sits above everything */
#callout { z-index: 40; }

@media (max-width: 820px) {
  .tabs { margin-top: 10px; }
  .tabs button { height: 40px; font-size: 13px; gap: 5px; }
  .tabs button svg { width: 16px; height: 16px; }
  .view.scroll { max-height: 50vh; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 10px; } .stat .v { font-size: 19px; } .stat .k { font-size: 11px; }
  #lit-pill { right: calc(var(--gutter) + 72px); }
  #lit-alert { top: calc(var(--gutter) + 50px + var(--top)); }
  body.navigating #lit-alert { top: calc(var(--gutter) + 230px + var(--top)); }
  .np-actions { gap: 8px; }
  .np-act { height: 40px; font-size: 13.5px; padding: 0 13px 0 11px; }
  .np-unlock { margin-left: 0; flex: 1 0 100%; }
  #place { bottom: calc(var(--dock-h) + var(--gutter) + var(--bot) + 80px); }
}
@media (max-width: 380px) {
  .tabs button span { font-size: 12px; }
  .round.beacon-btn { width: 46px; }
}



/* cycleSOS logo */
#splash .lg { width: 104px; height: auto; margin-top: -2px; animation: bikeIn 0.9s var(--ease) both; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo img { width: 40px; height: auto; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }

.sheet-logo { display: block; width: 54px; height: auto; margin: 0 auto 10px; opacity: 0.95; }
@media (max-width: 480px) { .logo img { width: 34px; } }

/* =====================================================================================================
   v3 revamp: the button is the product. Quiet map chrome, icon-only controls, a short bottom bar.
   ===================================================================================================== */
:root { --press: #ff5a48; --panel-pad: 10px; }

/* top-left: bikes nearby (plus rows for whichever layer is on) */
.legend { top: calc(var(--gutter) + 50px + var(--top)); padding: 8px 14px 8px 11px; border-radius: 20px; font-size: 13.5px; gap: 5px; color: var(--ink); }
.legend .lg-bikes b { font-weight: 800; font-variant-numeric: tabular-nums; }
.legend .lg-bikes span span { color: var(--muted); }
.legend .dot { box-shadow: 0 0 0 2px rgba(110,102,246,0.25); }
.legend .lg-press, .legend .lg-mesh, .legend .lg-light { font-size: 12px; color: var(--muted); }
.pdot { width: 9px; height: 9px; margin: 0 3.5px; border-radius: 50%; background: var(--press); box-shadow: 0 0 0 1.5px #fff; flex: none; }

/* top-right: day / night as two icons */
.mode { height: 46px; padding: 4px; top: calc(var(--gutter) - 2px + var(--top)); }
.mode button { width: 44px; padding: 0; justify-content: center; }
.mode button svg { width: 19px; height: 19px; }

/* right column: my location + the folding layers circle */
.side { top: calc(var(--gutter) + 56px + var(--top)); gap: 10px; }
.layers { position: relative; display: flex; align-items: center; }
.round.main { z-index: 2; }
.round.main .ic-x { display: none; }
.layers.open .round.main .ic-stack { display: none; }
.layers.open .round.main .ic-x { display: block; }
.layers.open .round.main { background: var(--ink); color: var(--bg); border-color: transparent; }
.round.main .badge { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.fold { position: absolute; right: 0; top: 0; display: flex; gap: 10px; flex-direction: row-reverse; padding-right: 56px; pointer-events: none; }
.fold .round { opacity: 0; transform: translateX(34px) scale(0.6); transition: opacity 0.18s ease, transform 0.28s var(--ease), background 0.2s ease, color 0.2s ease; }
.layers.open .fold { pointer-events: auto; }
.layers.open .fold .round { opacity: 1; transform: none; }
.layers.open .fold .round:nth-child(2) { transition-delay: 0.03s; }
.layers.open .fold .round:nth-child(3) { transition-delay: 0.06s; }
.round.beacon-btn { width: 46px; padding: 0; justify-content: center; }
.round.beacon-btn .lbl { display: none; }

/* bottom bar: search + route options + icon tabs, nothing else */
#panel { padding: var(--panel-pad); border-radius: 28px; width: min(560px, calc(100% - 2 * var(--gutter))); }
.panel-row { gap: 8px; flex-wrap: nowrap; }
.search { height: 50px; padding: 0 10px 0 18px; }
.search > svg { width: 20px; height: 20px; color: var(--muted); }
.search input { font-size: 16.5px; }
.tabs { margin-top: 8px; padding: 3px; background: transparent; border: none; gap: 2px; }
.tabs button { height: 44px; }
.tabs button svg { width: 22px; height: 22px; }
#tab-contact.set::after { top: 7px; right: calc(50% - 17px); }
#view-ride .view { animation: none; }

.routes { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; animation: viewIn 0.22s var(--ease); }
.r-list { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.r-list::-webkit-scrollbar { display: none; }
.rc {
  flex: 0 0 auto; min-width: 118px; padding: 9px 12px 9px; border-radius: 18px; text-align: left; scroll-snap-align: start;
  background: var(--field); border: 1.5px solid var(--border); color: var(--ink); transition: border-color 0.15s ease, transform 0.12s var(--ease);
}
.rc:active { transform: scale(0.97); }
.rc.sel { border-color: var(--accent); background: rgba(110,102,246,0.1); }
.rc-top { display: flex; align-items: center; gap: 8px; }
.rc-top b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-sc { margin-left: auto; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; color: #fff; background: var(--muted); }
.rc-sc.good { background: #2fa84f; } .rc-sc.ok { background: #e08a00; } .rc-sc.bad { background: #e5484d; }
.rc-sub { font-size: 12.5px; font-weight: 700; color: var(--accent-text); margin-top: 2px; white-space: nowrap; }
.rc-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.rc-meta .pdot { width: 7px; height: 7px; margin: 0 1px; box-shadow: none; }
.rc.skel { min-width: 118px; height: 72px; border: none; }
.r-side { display: flex; flex-direction: column; gap: 6px; flex: none; }
.r-go { flex: 1; width: 56px; border: none; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(110,102,246,0.4); transition: transform 0.12s var(--ease), opacity 0.2s ease; }
.r-go svg { width: 22px; height: 22px; }
.r-go:active { transform: scale(0.94); }
.r-go:disabled { opacity: 0.4; box-shadow: none; }
.r-x { height: 26px; width: 56px; border: none; border-radius: 13px; background: var(--field); color: var(--muted); display: grid; place-items: center; padding: 0; }
.r-x svg { width: 12px; height: 12px; }

/* light-up pill: full width now that there is no SOS button */
#lit-pill { right: var(--gutter); left: var(--gutter); margin: 0 auto; max-width: 520px; border-color: rgba(168,162,255,0.4); }

/* ---------------- The button press card ---------------- */
#press {
  position: absolute; z-index: 120; left: 50%; top: calc(var(--gutter) + 6px + var(--top)); width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 14px; border-radius: 24px; background: #15141f; color: #f2f3ef; border: 1px solid rgba(168,162,255,0.45);
  box-shadow: 0 18px 60px rgba(0,0,0,0.5), 0 0 70px rgba(110,102,246,0.35);
  opacity: 0; transform: translate(-50%, -16px) scale(0.97); transition: opacity 0.25s ease, transform 0.4s var(--ease);
}
#press.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pr-head { display: flex; align-items: center; gap: 12px; }
.pr-ico { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; background: #ff5a48; box-shadow: 0 0 0 4px #fff inset, 0 0 0 0 rgba(255,90,72,0.6); animation: prPulse 1.4s ease-out infinite; }
.pr-ico i { position: absolute; inset: 13px; border-radius: 50%; background: #fff; opacity: 0.9; }
@keyframes prPulse { 70% { box-shadow: 0 0 0 4px #fff inset, 0 0 0 9px rgba(255,90,72,0); } 100% { box-shadow: 0 0 0 4px #fff inset, 0 0 0 0 rgba(255,90,72,0); } }
.pr-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pr-s { font-size: 13px; color: rgba(242,243,239,0.72); margin-top: 1px; }
.pr-tag { flex: none; align-self: flex-start; font-size: 10.5px; font-weight: 700; color: rgba(242,243,239,0.6); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); }
.pr-steps { display: flex; flex-direction: column; gap: 8px; margin: 14px 2px 14px; }
.pr-step { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.25; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.pr-step.done { opacity: 1; transform: none; }
.pr-step .ck { width: 22px; height: 22px; border-radius: 50%; background: #6e66f6; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.pr-actions { display: flex; gap: 8px; }
.pr-btn { flex: 1; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #f2f3ef; font-size: 15px; font-weight: 800; }
.pr-btn.go { background: #6e66f6; border-color: transparent; color: #fff; }
.pr-btn:active { transform: scale(0.97); }
body.press-on #lit-alert { display: none; }

/* ---------------- Insights: button presses ---------------- */
.presses { padding: 14px; border-radius: 20px; background: var(--field); border: 1px solid var(--border); }
.ps-head { display: flex; align-items: flex-end; gap: 10px; }
.ps-head b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-head span { font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.ps-head em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent-text); padding-bottom: 3px; }
.hours { display: flex; align-items: flex-end; gap: 2px; height: 58px; margin-top: 14px; }
.hours i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(110,102,246,0.35); transition: background 0.15s ease; }
.hours i.night { background: var(--accent); }
.hours i:hover { background: var(--ink); }
.hours-ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hours-cap { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.hours-cap i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ps-stats .stat { background: var(--bg); }
#press-list { display: flex; flex-direction: column; }
.pl { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 14px; width: 100%; border-left: none; border-right: none; border-top: none; background: transparent; text-align: left; }
.pl:last-child { border-bottom: none; }
.pl .pdot { box-shadow: none; }
.pl b { font-weight: 700; }
.pl span { color: var(--muted); font-size: 12.5px; }
.pl em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pl.mine b::after { content: "You"; margin-left: 6px; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; vertical-align: 1px; }
.ins-sub { font-size: 12.5px; color: var(--muted); margin: -4px 4px 8px; }

/* callout: press count */
#callout .c-dot { background: var(--press); box-shadow: 0 0 8px rgba(255,90,72,0.6); }

@media (max-width: 820px) {
  .legend { top: calc(var(--gutter) + 46px + var(--top)); font-size: 12.5px; padding: 7px 12px 7px 9px; }
  .mode { height: 44px; }
  .mode button { width: 42px; padding: 0; }
  .side { top: calc(var(--gutter) + 54px + var(--top)); }
  #panel { padding: 8px; border-radius: 26px; }
  .search { flex: 1 1 auto; height: 48px; }
  .tabs { margin-top: 6px; }
  .tabs button { height: 42px; }
  .tabs button svg { width: 21px; height: 21px; }
  #press { top: calc(var(--gutter) + var(--top)); }
}
.r-list .rc:only-child { flex: 1; }
body.night .logo img { filter: brightness(1.4) saturate(0.9) drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
@media (min-width: 821px) { .legend { font-size: 14px; } .legend .lg-press, .legend .lg-mesh, .legend .lg-light { font-size: 12.5px; } }

/* v4: bird's-eye navigation (no tilted view), labelled tabs */
.view-toggle, #nav-canvas, #fog { display: none !important; }
body.navigating #plane { transform: none !important; }
.tabs { gap: 4px; }
.tabs button { flex-direction: column; gap: 3px; height: 56px; padding: 0; border-radius: 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: transparent; color: var(--ink); }
.tabs button .ti { width: 58px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background 0.2s ease, color 0.2s ease; }
.tabs button[aria-selected="true"] .ti { background: var(--accent); color: #fff; }
.tabs button svg { width: 21px; height: 21px; }
.tabs button .tl { line-height: 1; white-space: nowrap; }
#tab-contact.set::after { top: 3px; right: calc(50% - 26px); }
@media (max-width: 820px) { .tabs button { height: 54px; } .tabs button svg { width: 20px; height: 20px; } }

/* v5: single theme button, compact search results + routes */
.mode#theme { width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.mode#theme svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.3s var(--ease); }
.mode#theme .t-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
.mode#theme.dark .t-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
.mode#theme.dark .t-moon { opacity: 1; transform: none; }
.mode#theme .t-auto { display: none; position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.mode#theme.auto .t-auto { display: grid; }
.mode#theme:active { transform: scale(0.92); }
.side { top: calc(var(--gutter) + 56px + var(--top)); }

#suggest { max-height: 34vh; padding: 4px; border-radius: 18px; bottom: calc(100% + 8px); }
.sug { padding: 7px 10px; gap: 10px; border-radius: 12px; }
.sug .pin { width: 26px; height: 26px; }
.sug .pin svg { width: 14px; height: 14px; }
.sug .grow { display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.sug .main { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 70%; }
.sug .second { font-size: 12.5px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.routes { margin-top: 6px; gap: 6px; }
.r-list { gap: 6px; }
.rc { min-width: 0; height: 44px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rc b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-sc { margin-left: 0; height: 20px; min-width: 26px; font-size: 11.5px; }
.rc-sub { font-size: 12.5px; font-weight: 700; color: var(--accent-text); margin: 0; }
.rc-meta { margin: 0 0 0 auto; font-size: 12.5px; gap: 4px; }
.r-list .rc:only-child { flex: 1; }
.rc.skel { height: 44px; min-width: 60%; }
.r-side { flex-direction: row; gap: 6px; }
.r-go { flex: none; width: 52px; height: 44px; border-radius: 14px; }
.r-x { width: 32px; height: 44px; border-radius: 12px; }

/* Find a button: compact list */
#op-chips { display: none; }
#view-walk .v-head { margin: 2px 6px 8px; }
#view-walk .v-head b { font-size: 17px; }
#walk-list { gap: 6px; }
.wopt { padding: 0 12px; height: 52px; border-radius: 14px; gap: 10px; }
.w-min { font-size: 15px; font-weight: 800; min-width: 52px; font-variant-numeric: tabular-nums; }
.w-mid { display: flex; flex-direction: column; min-width: 0; }
.wopt .w-t { font-size: 14.5px; }
.wopt .w-m { font-size: 12px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#walk-go.cta.wide { height: 46px; margin-top: 8px; font-size: 16px; }

/* v6: logo mark only; compact navigation (Google-style); Voi badge */
.logo { font-size: 0; }
.logo img { width: 42px; }
.op-voi { background: #fff !important; }
.op-voi b { color: var(--brand) !important; font-size: 19px !important; letter-spacing: -0.04em; }
#map { will-change: auto; }

#nav-top { border-radius: 20px; }
.nt-turn { padding: 10px 14px 10px 10px; gap: 10px; }
.nt-icon { width: 44px; height: 44px; } .nt-icon svg { width: 40px; height: 40px; }
.nt-dist { font-size: 24px; }
.nt-instr { font-size: 15px; margin-top: 1px; -webkit-line-clamp: 1; }
.nt-safety { padding: 7px 10px 7px 14px; gap: 9px; box-shadow: inset 0 2px 0 var(--st, var(--safe)); }
.nt-dot { width: 9px; height: 9px; }
.nt-title { font-size: 13px; }
.nt-sub { display: none; }
.nt-mode { font-size: 11px; padding: 3px 8px; }
.nt-then { top: calc(var(--gutter) + 118px + var(--top)); }

#nav-panel { padding: 10px 12px; border-radius: 22px; width: min(560px, calc(100% - 2 * var(--gutter))); }
#nav-panel .np-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
#nav-panel .np-end { order: 0; height: 44px; padding: 0 16px; font-size: 15px; flex: none; }
#nav-panel .np-eta { flex: 1; align-items: center; margin: 0; text-align: center; }
#nav-panel .np-eta b { font-size: 24px; color: #2fa84f; }
body.night #nav-panel .np-eta b { color: #4cd964; }
#nav-panel .np-eta span { font-size: 13px; }
.np-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--field); color: var(--ink); display: grid; place-items: center; padding: 0; }
.np-icon svg { width: 19px; height: 19px; }
#nav-panel .np-strip { height: 4px; margin-top: 9px; }
#nav-panel .np-unlock { width: 100%; margin: 8px 0 0; height: 44px; }
@media (max-width: 820px) {
  #nav-top { top: calc(var(--gutter) + var(--top)); }
  body.navigating .logo, body.navigating .mode#theme { display: none; }
  #lit-alert, body.navigating #lit-alert { top: calc(var(--gutter) + 130px + var(--top)); }
}
body.navigating .logo { display: none; }

/* v7: physical button counter · logo splash · lighter rendering */
/* The physical button: drawn as the button itself (the same ring-and-cap icon as "Find a button"), with the press count
   as a badge on its corner, so it never reads as a SafeScore. Live = coral (the colour of presses on the map);
   connecting = pulsing; offline or not set up = grey. */
.alarm-sync {
  position: absolute; z-index: 20; left: var(--gutter); top: calc(var(--gutter) + 56px + var(--top));
  width: 46px; height: 46px; border-radius: 50%; padding: 0; display: grid; place-items: center; overflow: visible;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--muted);
  transition: color 0.3s ease;
}
.alarm-sync .as-btn { width: 24px; height: 24px; transition: transform 0.2s var(--ease); }
.alarm-sync .as-cap { transform-origin: 12px 12px; }
.alarm-sync .as-n {
  position: absolute; top: -5px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  color: #fff; background: #8f928c; border: 2px solid var(--bg, #fff); box-sizing: border-box; transition: background 0.3s ease;
}
body.night .alarm-sync .as-n { border-color: #0d0e10; }
.alarm-sync[data-state="live"] { color: var(--press); }
.alarm-sync[data-state="live"] .as-n { background: var(--press); }
.alarm-sync[data-state="syncing"] .as-btn { animation: alarmSyncPulse 1.2s ease-in-out infinite; }
.alarm-sync:active { transform: scale(0.92); }
.alarm-sync.bump { animation: alarmBump 0.9s var(--ease); }
.alarm-sync.bump .as-cap { animation: alarmCap 0.5s var(--ease); }
@keyframes alarmSyncPulse { 50% { opacity: 0.45; } }
@keyframes alarmBump { 0% { box-shadow: var(--shadow), 0 0 0 0 rgba(255,90,72,0.7); } 100% { box-shadow: var(--shadow), 0 0 0 18px rgba(255,90,72,0); } }
@keyframes alarmCap { 40% { transform: scale(0.6); } }

/* Your area's SafeScore (tap the blue dot) */
.here-top { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.here-top .ring { width: 52px; height: 52px; }
.here-top .pc-t { padding-right: 0; }
.here-f { display: grid; gap: 7px; margin-top: 12px; }
.hf { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 4px; font-size: 13px; }
.hf span { color: var(--muted); font-weight: 600; }
.hf b { font-weight: 700; font-variant-numeric: tabular-nums; }
.hf .hb { grid-column: 1 / -1; display: block; height: 4px; border-radius: 99px; background: var(--field); overflow: hidden; }
.hf .hb i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.hf .hb i.good { background: #2fa84f; } .hf .hb i.ok { background: #e08a00; } .hf .hb i.bad { background: #e5484d; }
#callout .c-demo.live { color: #1f6d25; border-color: rgba(105,227,111,0.42); background: rgba(105,227,111,0.12); }
body.night #callout .c-demo.live { color: #a7f4ab; }
@media (max-width: 820px) { .alarm-sync { top: calc(var(--gutter) + 54px + var(--top)); } }

#splash { gap: 14px; transition: opacity 0.25s ease; }
#splash .lg { width: 132px; margin: 0; animation: bikeIn 0.5s var(--ease) both; }
#splash .t { font-size: 34px; margin: 0; }
#splash .m { min-height: 0; margin: 0; }

/* blur behind every floating panel is expensive on phones over a live map: solid, near-opaque panels instead */
:root { --panel: rgba(255, 255, 255, 0.97); }
body.night { --panel: rgba(18, 19, 22, 0.96); }
* { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#map { contain: strict; }
