/* ShadeClock · Project Lumin */
:root {
  --navy: #16326d;
  --navy-700: #12295a;
  --navy-900: #0b1a3d;
  --glass: rgba(13, 28, 64, 0.86);
  --glass-strong: rgba(11, 24, 56, 0.94);
  --gold: #f4a730;
  --gold-hi: #ffc25c;
  --cream: #fff9f3;
  --ink: #0f1d3d;
  --text: #f4f1ec;
  --muted: rgba(244, 241, 236, 0.62);
  --faint: rgba(244, 241, 236, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --shade: #7fa2f2;
  --sun: #f4a730;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -12px rgba(5, 14, 40, 0.45), 0 2px 8px rgba(5, 14, 40, 0.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --left-w: 368px;
  --gap: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e9edf3; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; }
.shadow-canvas { position: absolute; left: 0; top: 0; pointer-events: none; mix-blend-mode: multiply; }

/* ---------- Left column ---------- */
.left-col {
  position: fixed; z-index: 5;
  top: var(--gap); left: var(--gap); bottom: calc(var(--gap) + 104px + var(--gap));
  width: var(--left-w);
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}
.left-col > * { pointer-events: auto; }

.brand-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; line-height: 0; }
.brand-lockup { height: 46px; width: auto; }
.brand-icon { display: none; height: 40px; width: auto; }
.product { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.product-name {
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .02em;
  color: var(--cream); background: var(--navy); padding: 5px 10px; border-radius: 999px;
}
.product-live { font-size: 11.5px; font-weight: 600; color: #4a5a7d; display: flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244,167,48,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,167,48,.55);} 70% { box-shadow: 0 0 0 8px rgba(244,167,48,0);} 100% { box-shadow: 0 0 0 0 rgba(244,167,48,0);} }

.search { position: relative; margin-top: 12px; }
.search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6b7898; width: 17px; height: 17px; }
.search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1.5px solid #e4ddd3; background: #fff;
  padding: 0 12px 0 38px; color: var(--ink); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22,50,109,.12); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  max-height: 300px; overflow: auto;
}
.search-results li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.3; }
.search-results li b { display: block; font-weight: 600; color: var(--ink); }
.search-results li span { color: #6b7898; font-size: 12px; }
.search-results li:hover, .search-results li.active { background: #f2efe9; }
.search-results li.empty { cursor: default; color: #6b7898; }

/* ---------- Spot panel ---------- */
.panel {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-grip { display: none; }
.spot-head { padding: 16px 18px 10px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.spot-head h1 { margin: 4px 0 2px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spot-sub { font-size: 12.5px; color: var(--muted); }

.status {
  margin: 4px 14px 12px; padding: 12px 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.status-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); }
.status-ic svg { width: 22px; height: 22px; }
.status-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.status-detail { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.status[data-state="sun"] { background: linear-gradient(135deg, rgba(244,167,48,.22), rgba(244,167,48,.06)); border-color: rgba(244,167,48,.35); }
.status[data-state="sun"] .status-ic { background: var(--gold); color: var(--navy-900); }
.status[data-state="shade"] { background: linear-gradient(135deg, rgba(127,162,242,.24), rgba(127,162,242,.06)); border-color: rgba(127,162,242,.38); }
.status[data-state="shade"] .status-ic { background: var(--shade); color: var(--navy-900); }
.status[data-state="night"] .status-ic { background: #2a3f74; color: #c9d5f5; }

.panel-scroll { overflow-y: auto; padding: 0 14px 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 2px; }
.stat-v { font-family: var(--display); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat-k { font-size: 11px; color: var(--muted); }

.block { margin-top: 16px; }
.block h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.block-head h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.45; margin: 0 0 10px; }

.windows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.windows li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13.5px; cursor: pointer; transition: background .15s; }
.windows li:hover { background: rgba(255,255,255,.1); }
.windows li .w-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--shade); }
.windows li .w-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.windows li .w-len { margin-left: auto; color: var(--muted); font-size: 12px; }
.windows li.best { background: rgba(127,162,242,.16); }
.windows li.best .w-len::before { content: "Longest · "; color: var(--shade); font-weight: 600; }
.windows li.empty, .nearby li.empty { cursor: default; background: none; padding: 4px 0; color: var(--muted); font-size: 13px; }

.wx { display: flex; gap: 10px; align-items: stretch; }
.wx-uv { flex: none; width: 76px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #2c406f; color: #fff; transition: background .3s; }
.wx-uv-v { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.wx-uv-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-top: 4px; opacity: .85; text-align: center; padding: 0 4px; }
.wx-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wx-grid > div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; }
.wx-k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wx-v { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(244,167,48,.1); border: 1px solid rgba(244,167,48,.22); font-size: 12.8px; line-height: 1.45; color: #fbe9cf; }
.tip svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.nearby { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nearby li:not(.empty) { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.nearby li:not(.empty):hover { background: rgba(255,255,255,.08); }
.nb-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.nb-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-meta { font-size: 11.5px; color: var(--muted); }
.nb-score { text-align: right; }
.nb-score b { display: block; font-family: var(--display); font-size: 14px; font-variant-numeric: tabular-nums; }
.nb-score span { font-size: 10.5px; color: var(--muted); }
.meter { width: 54px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 3px; overflow: hidden; margin-left: auto; }
.meter i { display: block; height: 100%; background: var(--shade); border-radius: 4px; }

.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.btn:hover { background: rgba(255,255,255,.14); }
.btn svg { width: 17px; height: 17px; color: var(--gold); }
.btn.on, .rail-btn.on { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn.on svg { color: var(--navy-900); }
.btn-ghost { font-size: 12px; font-weight: 600; color: var(--gold); padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(244,167,48,.35); white-space: nowrap; transition: background .15s; }
.btn-ghost:hover { background: rgba(244,167,48,.12); }
.btn-ghost:disabled { opacity: .5; cursor: default; }
.btn-gold { background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; transition: background .15s; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold.wide { width: 100%; height: 44px; font-size: 14.5px; margin-top: 16px; }

.obstacles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.obstacles li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 8px 6px 10px; border-radius: 9px; background: rgba(255,255,255,.04); }
.obstacles li svg { width: 16px; height: 16px; color: var(--gold); }
.obstacles li .ob-h { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.obstacles li button { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.obstacles li button:hover { background: rgba(255,255,255,.1); color: #fff; }

.panel-foot { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--cream); color: var(--ink); }
.panel-foot img { height: 40px; width: auto; flex: none; }
.panel-foot p { margin: 0; font-size: 12px; line-height: 1.45; color: #34446b; }
.panel-foot strong { color: var(--navy); }

/* ---------- Rail ---------- */
.rail {
  position: fixed; z-index: 6; top: var(--gap); right: var(--gap);
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.rail-btn { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--text); transition: background .15s, color .15s; position: relative; }
.rail-btn svg { width: 21px; height: 21px; }
.rail-btn:hover { background: rgba(255,255,255,.1); }
.rail-btn.on:hover { background: var(--gold-hi); }
.rail-btn::after {
  content: attr(title); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--glass-strong); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.rail-btn:hover::after { opacity: 1; }
.rail-sep { height: 1px; margin: 3px 6px; background: var(--line-2); }
.pop {
  position: absolute; right: calc(100% + 10px); top: 0; width: 230px; padding: 14px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.pop-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pop-title:not(:first-child) { margin-top: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; }
.seg button { height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--cream); color: var(--navy); }
input[type=range] { width: 100%; accent-color: var(--gold); }
.legend { display: flex; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-shade { background: var(--shade); } .lg-sun { background: var(--sun); } .lg-night { background: #34477a; }

/* ---------- Banner ---------- */
.banner {
  position: fixed; z-index: 8; top: var(--gap); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--glass-strong); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 13.5px; max-width: calc(100vw - 32px); flex-wrap: wrap;
}
.banner-txt { font-weight: 600; }
.banner-h { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.banner-h input { width: 62px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); color: var(--text); padding: 0 8px; outline: none; }
.banner-h input:focus { border-color: var(--gold); }

/* ---------- Dock (timeline) ---------- */
.dock {
  position: fixed; z-index: 6;
  left: calc(var(--gap) + var(--left-w) + 12px); right: var(--gap); bottom: var(--gap);
  height: 104px; padding: 12px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dock-left { display: flex; align-items: center; gap: 14px; }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgba(244,167,48,.6); transition: transform .12s, background .15s; }
.play:hover { background: var(--gold-hi); transform: scale(1.04); }
.play svg { width: 24px; height: 24px; }
.clock { min-width: 136px; }
.clock-time { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-date { display: flex; align-items: center; gap: 2px; margin-top: 6px; margin-left: -6px; }
.mini { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.mini:hover { background: rgba(255,255,255,.1); color: #fff; }
.mini svg { width: 15px; height: 15px; }
.date-lbl { position: relative; font-size: 13px; font-weight: 600; color: var(--muted); padding: 3px 6px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.date-lbl:hover { background: rgba(255,255,255,.08); color: #fff; }
.date-lbl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.scrub-wrap { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.scrubber { position: relative; height: 54px; border-radius: 10px; cursor: pointer; outline: none; touch-action: none; }
.scrubber:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.scrubber canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; }
.thumb { position: absolute; top: -6px; bottom: -6px; width: 0; pointer-events: none; }
.thumb::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,26,61,.35), 0 0 12px rgba(255,255,255,.5); }
.thumb-knob { position: absolute; top: -5px; left: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.now-mark { position: absolute; top: -3px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--gold); transform: translateX(-5px); pointer-events: none; }
.ticks { position: relative; height: 14px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.dock-right { display: flex; align-items: center; gap: 14px; }
.compass { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.compass svg { width: 56px; height: 56px; overflow: visible; }
.c-ring { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.c-n { fill: var(--muted); font-size: 8px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; font-family: var(--font); }
.c-shadow { stroke: var(--shade); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.c-sun { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(244,167,48,.9)); }
.c-dot { fill: #fff; }
.compass-txt { font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dock-btns { display: flex; flex-direction: column; gap: 6px; }
.pill { height: 30px; min-width: 62px; padding: 0 12px; border-radius: 999px; background: var(--cream); color: var(--navy); font-weight: 700; font-size: 12.5px; transition: background .15s, opacity .15s; }
.pill:hover { background: #fff; }
.pill.ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line-2); }
.pill.ghost:hover { background: rgba(255,255,255,.14); }
.pill.is-now { opacity: .55; }

/* ---------- Map markers & popups ---------- */
.spot-marker { width: 44px; height: 52px; cursor: grab; filter: drop-shadow(0 6px 10px rgba(11,26,61,.4)); }
.spot-marker:active { cursor: grabbing; }
.spot-marker svg { width: 44px; height: 52px; display: block; }
.maplibregl-popup-content { background: var(--glass-strong); color: var(--text); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-family: var(--font); border: 1px solid var(--line); }
.maplibregl-popup-tip { border-top-color: var(--glass-strong) !important; border-bottom-color: var(--glass-strong) !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; right: 4px; top: 2px; }
.ob-pop { display: flex; flex-direction: column; gap: 8px; min-width: 180px; font-size: 13px; }
.ob-pop b { font-family: var(--display); }
.ob-pop label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ob-pop input { width: 70px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); color: var(--text); padding: 0 8px; }
.ob-pop .row { display: flex; gap: 6px; }
.maplibregl-ctrl-attrib { font-size: 10.5px; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--gap) + 104px + 6px); }
.maplibregl-ctrl-bottom-left { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(8, 18, 44, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(5,14,40,.6); animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #5b6889; }
.modal-x:hover { background: #efe8de; }
.modal-x svg { width: 18px; height: 18px; }
.modal-logo { height: 56px; width: auto; }
.modal-card h2 { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--navy); margin: 14px 0 6px; letter-spacing: -.01em; }
.modal-lede { margin: 0 0 16px; color: #3b4a6e; line-height: 1.5; font-size: 14.5px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; background: #fff; border-radius: 14px; font-size: 13.8px; line-height: 1.45; color: #34446b; border: 1px solid #efe7dc; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.steps li b { color: var(--navy); }
.modal-note { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: #55638a; background: #fbf1e3; border-radius: 12px; padding: 12px 14px; }
.modal-note b { color: #8a5a10; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--gap) + 104px + 16px); transform: translate(-50%, 10px);
  background: var(--glass-strong); color: var(--text); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.drawing #map .maplibregl-canvas { cursor: crosshair; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --left-w: 330px; }
  .compass { display: none; }
}
@media (max-width: 820px) {
  :root { --gap: 12px; }
  .left-col { top: var(--gap); left: var(--gap); right: var(--gap); width: auto; bottom: auto; }
  .brand-card { padding: 10px 12px; margin-right: 66px; }
  .brand-lockup { display: none; }
  .brand-icon { display: block; height: 34px; }
  .brand-card { display: flex; align-items: center; gap: 10px; }
  .brand-row { flex: none; }
  .product { display: none; }
  .search { margin-top: 0; flex: 1; }
  .search input { height: 38px; }

  .panel {
    position: fixed; left: var(--gap); right: var(--gap);
    bottom: calc(var(--gap) + 132px + 8px);
    max-height: 30vh; transition: max-height .3s ease;
  }
  .panel.open { max-height: calc(100vh - 220px); }
  .panel-grip { display: block; width: 100%; height: 16px; flex: none; }
  .panel-grip span { display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); margin: 7px auto 0; }
  .spot-head { padding: 4px 16px 6px; }
  .spot-head h1 { font-size: 17px; -webkit-line-clamp: 1; }
  .status { margin: 2px 12px 10px; padding: 10px 12px; }

  .rail { top: var(--gap); right: var(--gap); }
  .rail-btn { width: 38px; height: 38px; }
  .rail-btn::after { display: none; }
  .rail [data-mode], .rail .rail-sep:nth-of-type(2) { display: none; }

  .dock {
    left: var(--gap); right: var(--gap); height: 132px; padding: 10px 12px;
    grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 12px;
  }
  .dock-left { gap: 10px; }
  .play { width: 44px; height: 44px; }
  .clock { min-width: 0; }
  .clock-time { font-size: 22px; }
  .clock-date { margin-top: 3px; }
  .dock-right { justify-content: flex-end; }
  .dock-btns { flex-direction: row; }
  .scrub-wrap { grid-column: 1 / -1; grid-row: 2; }
  .scrubber { height: 44px; }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--gap) + 132px + 6px); }
  .toast { bottom: auto; top: 70px; }
}
