:root {
  --water:  #a8c5d8;
  --land:   #e8e0d0;
  --ink:    #1a1a1a;
  --muted:  #6b7280;
  --ui-bg:  rgba(255,255,255,0.93);
  --blur:   blur(14px);
  --red:    #EE352E;
  --orange: #FF6319;
  --blue:   #0039A6;
  --green:  #00933C;
  --yellow: #FCCC0A;

  /* dark UI */
  --dark-bg:   rgba(18,18,18,0.92);
  --dark-bg2:  rgba(28,28,28,0.96);
  --dark-border: rgba(255,255,255,0.08);
  --dark-muted: rgba(255,255,255,0.45);
  --dark-text:  rgba(255,255,255,0.88);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #e8e4dc; }
body { font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 8px;
  background: var(--ink); color: #fff;
  padding: 6px 12px; border-radius: 0 0 8px 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }


/* ── MAP CONTAINER ── */
#map-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e8e4dc;
}

/* Mapbox attribution — hide the ⓘ toggle button, keep text accessible */
.mapboxgl-ctrl-attrib { font-size: 9px !important; }
.mapboxgl-ctrl-attrib-button { display: none !important; }
.mapboxgl-ctrl-attrib.mapboxgl-compact { background: transparent !important; }
.mapboxgl-ctrl-attrib a { color: rgba(255,255,255,.3) !important; }

/* ── IDENTITY HEADER ── */
#identity-header {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 16px;
  width: min(420px, calc(100vw - 32px));
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
#ih-main {
  background: var(--dark-bg); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.4), 0 0 0 .5px var(--dark-border);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
#ih-avatar {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 14px; object-fit: cover;
  border: 2px solid rgba(0,0,0,.08); display: block;
}
#ih-text { flex: 1; min-width: 0; }
#ih-name  { font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--dark-text); display: flex; align-items: center; gap: 7px; }
.sb-bullet {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  flex-shrink: 0;
}
#ih-role  { font-size: 11px; color: var(--dark-muted); margin-top: 1px; white-space: nowrap; }
#ih-current {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--dark-muted); margin-top: 3px;
  white-space: nowrap;
}
.ih-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
}
#ih-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* collapsed state when sheet is open */
#identity-header { transition: width .3s cubic-bezier(0.25,0.46,0.45,0.94); }
#identity-header.collapsed #ih-text,
#identity-header.collapsed #ih-actions,
#identity-header.collapsed #tour-start-btn { display: none; }
#identity-header.collapsed {
  width: auto;
  flex-direction: row;
  align-items: center;
}
#identity-header.collapsed #ih-main {
  padding: 0;
  border-radius: 18px;
  width: 66px; height: 66px; min-width: 66px;
  justify-content: center;
  gap: 0;
}
#identity-header.collapsed #ih-avatar { width: 66px; height: 66px; min-width: 66px; border-radius: 18px; }

#ih-collapsed-cta {
  display: none;
  font-size: 13px; font-weight: 600; color: #fff;
  background: #2563eb; border-radius: 10px;
  padding: 9px 18px; height: auto; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .15s;
  text-decoration: none; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  flex-shrink: 0;
}
#ih-collapsed-cta:hover { background: #1d4ed8; }
#identity-header.collapsed #ih-collapsed-cta { display: inline-flex; }

/* ── TAP HINT ── */
#tap-hint {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 20px; z-index: 200; pointer-events: none;
  opacity: 0; transition: opacity .4s;
  white-space: nowrap;
}
#tap-hint.show { opacity: 1; }

/* ── MODE PILLS ── */
#mode-switcher {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 400;
  max-width: calc(100vw - 32px);
  scrollbar-width: none;
  transition: bottom .35s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: bottom;
}
body.sheet-open #mode-switcher {
  bottom: var(--sheet-height, 20px);
}
#mode-switcher::-webkit-scrollbar { display: none; }
@media (max-width: 680px) {
  #identity-header { width: calc(100vw - 32px); }
}
.mode-pill {
  background: var(--dark-bg); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: none; border-radius: 10px;
  padding: 8px 10px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.92); cursor: pointer;
  box-shadow: none; flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap; font-family: inherit;
}
.mode-pill:hover { color: #fff; background: var(--dark-bg2); }
.mode-pill:focus { outline: none; }
.mode-pill.active { background: #FF6319; color: #ffffff; }

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lb-img-wrap {
  width: 100%; max-width: 900px;
  height: calc(100vh - 100px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 60px 0;
  box-sizing: border-box;
}
#lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; display: block; }
#lb-footer { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 900px; padding: 12px 60px 24px; flex-shrink: 0; }
#lb-cap     { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; }
#lb-counter { color: rgba(255,255,255,.45); font-size: 13px; }
#lb-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#lb-close:hover { background: rgba(255,255,255,.25); }
#lb-prev, #lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, opacity .15s; }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,.25); }

/* ── DESKTOP RUNNING PHOTOS ── */
.run-photo-desktop { display: flex; gap: 4px; border-radius: 10px; overflow: hidden; margin-bottom: 2px; }
.rpd-hero { position: relative; flex: 2; cursor: pointer; }
.rpd-hero img { width: 100%; height: 220px; object-fit: cover; display: block; }
.rpd-cap { position: absolute; bottom: 0; left: 0; right: 0; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); padding: 20px 8px 6px; }
.rpd-thumbs { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rpd-thumb { position: relative; flex: 1; cursor: pointer; }
.rpd-thumb img { width: 100%; height: 108px; object-fit: cover; display: block; }
.rpd-thumb span { position: absolute; bottom: 0; left: 0; right: 0; font-size: 9px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); padding: 12px 5px 4px; }
.rpd-hero:hover img, .rpd-thumb:hover img { filter: brightness(1.07); }
.run-photo-tap { cursor: pointer; }

/* ── LOGO MARKERS ── */
.logo-marker {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom center;
}
.logo-marker img {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: width .25s cubic-bezier(0.34,1.56,0.64,1),
              height .25s cubic-bezier(0.34,1.56,0.64,1),
              border-radius .25s ease;
  display: block;
}
.logo-label {
  font-size: 10px; font-weight: 700; color: #FF6319;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 6px; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.logo-marker:hover img,
.logo-marker.active img {
  width: 80px; height: 80px;
  border-radius: 14px;
}
.logo-marker:hover .logo-label,
.logo-marker.active .logo-label {
  opacity: 1; transform: translateY(0);
}

/* ── PHOTO MARKERS (map) ── */
.photo-marker {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom center;
}
.photo-marker img {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: width .25s cubic-bezier(0.34,1.56,0.64,1),
              height .25s cubic-bezier(0.34,1.56,0.64,1),
              border-radius .25s ease;
  display: block;
}
.photo-marker-cap {
  font-size: 10px; font-weight: 700; color: #EE352E;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 7px; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.photo-marker:hover img,
.photo-marker.expanded img {
  width: 120px; height: 120px;
  border-radius: 12px;
}
.photo-marker.expanded .photo-marker-cap,
.photo-marker:hover .photo-marker-cap {
  opacity: 1; transform: translateY(0);
}

/* ── WORK SHEET PAGER ── */
.ws-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 16px; padding-top: 12px;
  border-top: .5px solid rgba(0,0,0,.08);
}
.ws-arrow {
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: rgba(0,0,0,.07);
  font-size: 16px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ws-arrow:hover:not(:disabled) { background: rgba(0,0,0,.13); }
.ws-arrow:disabled { opacity: .3; cursor: default; }
.ws-counter { font-size: 12px; color: var(--muted); font-weight: 600; min-width: 40px; text-align: center; }

/* ── RUNNING PHOTO GRID ── */
.run-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  border-radius: 10px; overflow: hidden; margin-bottom: 2px;
}
.run-photo-cell { position: relative; }
.run-photo-cell img { width: 100%; height: 180px; object-fit: cover; display: block; }
.run-photo-cell span {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 9px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 16px 4px 4px; line-height: 1.2;
}

/* ── SHARED LINK/BUTTON STYLE ── */
.id-link {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--dark-text);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s; flex-shrink: 0;
}
.id-link:hover { background: rgba(255,255,255,.18); }

/* ── JOB BULLETS IN BOTTOM SHEET ── */
.job-bullets { margin: 8px 0 0; padding-left: 16px; font-size: 13px; line-height: 1.6; color: #374151; }
.job-bullets li { margin-bottom: 5px; }
.job-bullets em { font-style: normal; font-weight: 600; color: var(--ink); }

/* ── PANEL CARD (kept for bottom sheet action buttons) ── */
.pc-actions { display: flex; gap: 7px; margin-top: 9px; }
.w-date { font-size: 10px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.stats-row { display: flex; border-top: .5px solid rgba(0,0,0,.08); margin-top: 4px; }
.stat-item { flex: 1; text-align: center; padding: 9px 4px; border-right: .5px solid rgba(0,0,0,.08); }
.stat-item:last-child { border-right: none; }
.stat-n { font-size: 19px; font-weight: 700; line-height: 1; }
.stat-l { font-size: 9px; color: var(--muted); margin-top: 2px; }
.pc-collapse { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.06); border: none; cursor: pointer; font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .1s; }
.pc-collapse:hover { background: rgba(0,0,0,.12); }
.ac-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: rgba(0,0,0,.06); border-radius: 9px; padding: 7px 12px; text-decoration: none; color: var(--ink); border: none; font-family: inherit; cursor: pointer; transition: background .1s; }
.ac-btn:hover { background: rgba(0,0,0,.1); }
.ac-icon  { font-size: 15px; }
.ac-label { font-size: 10px; font-weight: 600; color: #3b82f6; }
.cl { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: .5px solid rgba(0,0,0,.07); text-decoration: none; color: var(--ink); transition: background .1s; }
.cl:last-child { border-bottom: none; }
.cl:hover { background: rgba(0,0,0,.03); }
.cl-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.cl-label { font-size: 13px; font-weight: 500; }
.cl-value { font-size: 11px; color: var(--muted); }
.cl-chev  { margin-left: auto; color: #d1d5db; font-size: 12px; }

/* ── BOTTOM SHEET ── */
#bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark-bg2); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,.5);
  z-index: 300;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(0.25,0.46,0.45,0.94);
  max-height: 50vh; overflow-y: auto;
}
#bottom-sheet.open { transform: translateY(0); }

.bs-handle-row {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px 6px;
  position: sticky; top: 0;
  background: var(--dark-bg2);
  border-radius: 20px 20px 0 0;
  z-index: 1;
  cursor: pointer;
  gap: 12px;
}
.bs-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.2); border-radius: 2px;
  flex-shrink: 0;
}
.bs-close {
  margin-left: auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--dark-muted);
  cursor: pointer; flex-shrink: 0;
}
.bs-close:hover { background: #d1d5db; }
#bs-body { padding: 0 16px 24px; color: var(--dark-text); }

/* override hardcoded inline light-mode colors inside bottom sheet */
#bs-body div, #bs-body p, #bs-body li, #bs-body td, #bs-body th, #bs-body span:not(.rpd-cap):not(.bs-handle) {
  color: inherit;
}
#bs-body [style*="color:#374151"] { color: rgba(255,255,255,.8) !important; }
#bs-body [style*="color:#6b7280"]  { color: rgba(255,255,255,.45) !important; }
#bs-body [style*="color:#9ca3af"]  { color: rgba(255,255,255,.35) !important; }
#bs-body [style*="color:#1a1a1a"]  { color: var(--dark-text) !important; }
#bs-body [style*="border-top:.5px solid rgba(0,0,0,.08)"] { border-top-color: var(--dark-border) !important; }
#bs-body [style*="border-bottom:.5px solid rgba(0,0,0,.08)"] { border-bottom-color: var(--dark-border) !important; }
.ws-pager { border-top-color: var(--dark-border) !important; }
.ws-arrow { background: rgba(255,255,255,.1); color: var(--dark-text); }
.ws-arrow:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.ws-counter { color: var(--dark-muted); }
.stat-item { border-right-color: var(--dark-border) !important; }
.stats-row { border-top-color: var(--dark-border) !important; }
.ac-btn { background: rgba(255,255,255,.08); color: var(--dark-text); }
.ac-btn:hover { background: rgba(255,255,255,.14); }
/* ── MAP CONTROLS ── */

/* ── HERE BANNER ── */
#here-banner {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  background: var(--dark-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 20px; padding: 7px 14px;
  box-shadow: none;
  font-size: 12px; font-weight: 600; color: var(--dark-text); z-index: 200;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.here-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; animation: herePulse 2s infinite; }
@keyframes herePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(59,130,246,.08); }
}


/* ── GUIDES ── */
#guides-btn { position: fixed; bottom: 72px; right: 68px; background: var(--ui-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: none; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.1); z-index: 200; display: flex; align-items: center; gap: 5px; font-family: inherit; }
#guides-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 400; display: none; align-items: flex-end; }
#guides-sheet.open { display: flex; }
#guides-inner { background: #f2f2f7; border-radius: 20px 20px 0 0; width: 100%; max-height: 72vh; overflow-y: auto; padding-bottom: 40px; }
#guides-hdr { padding: 16px 20px 12px; border-bottom: .5px solid rgba(0,0,0,.1); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #f2f2f7; z-index: 1; }
#guides-hdr h2 { font-size: 18px; font-weight: 700; }
.g-close { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6b7280; }
.g-section { padding: 14px 20px 6px; }
.g-section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.g-card { background: white; border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 11px; cursor: pointer; transition: background .1s; }
.g-card:hover { background: #f9f9f9; }
.g-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.g-title { font-size: 14px; font-weight: 600; }
.g-sub   { font-size: 11px; color: var(--muted); margin-top: 1px; }
.g-chev  { margin-left: auto; color: #d1d5db; font-size: 14px; }

/* station cursor */
.station { cursor: pointer; }

/* ── ABOUT SHEET CTA BUTTONS ── */
.about-cta-btn {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; border: none;
  background: rgba(255,255,255,.1); color: var(--dark-text);
  transition: background .15s;
}
.about-cta-btn:hover { background: rgba(255,255,255,.18); }
.about-cta-btn--primary { background: #2563eb; color: #fff; }
.about-cta-btn--primary:hover { background: #1d4ed8; }

/* ── PULSING STOPS ── */
.pulse-stop {
  width: 40px; height: 40px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pulse-stop::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pulse-color);
  animation: pulse-ring 1.6s ease-out infinite;
}
.pulse-stop--fade { opacity: 0; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--pulse-color); transform: scale(1); }
  60%  { box-shadow: 0 0 0 14px transparent; transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}

/* Tour active: sheet lifts, year selector hides, mode pills hide */
body.tour-active #bottom-sheet          { bottom: 67px; }
body.tour-active #mode-switcher         { display: none; }
body.tour-active #scale-bar             { display: none; }


/* ── TOUR START BUTTON ── */
#tour-start-btn {
  display: block; width: auto;
  background: #2563eb; color: #fff;
  border: none; border-radius: 10px;
  padding: 9px 20px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; z-index: 200;
  transition: background .15s, opacity .25s, transform .25s;
  white-space: nowrap; letter-spacing: .01em;
}
#tour-start-btn:hover { background: #1d4ed8; }
#tour-start-btn.hidden { opacity: 0; pointer-events: none; transform: translateY(-4px); }
body.sheet-open #tour-start-btn { opacity: 0; pointer-events: none; transform: translateY(-4px); }

/* ── TOUR BAR ── */
#tour-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 400; pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
#tour-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

#tour-progress-track {
  height: 3px; background: rgba(0,0,0,.1);
  position: relative; overflow: hidden;
}
#tour-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink); width: 0%;
  transition: none;
}

#tour-controls {
  background: var(--dark-bg2); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 20px;
  box-shadow: none;
}

#tour-dots {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.tour-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .2s, transform .2s;
  display: inline-block;
}
.tour-dot.active {
  background: var(--dot-color, #fff);
  transform: scale(1.4);
}
.tour-dot.done {
  background: var(--dot-color, #fff);
  opacity: 0.4;
}

#tour-label {
  flex: 1; font-size: 12px; font-weight: 600; color: var(--dark-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#tour-btns { display: flex; gap: 8px; flex-shrink: 0; }

#tour-next {
  background: rgba(255,255,255,.15); color: #fff;
  border: none; border-radius: 18px;
  padding: 7px 16px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background .15s;
}
#tour-next:hover { background: rgba(255,255,255,.22); }

#tour-exit {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none;
  font-size: 13px; font-weight: 700; color: var(--dark-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#tour-exit:hover { background: rgba(255,255,255,.15); }

