:root {
  --ink: #16151a;
  --ink-2: #232128;
  --ink-3: #322f38;
  --paper: #f4f2ec;
  --rail-text: #f2efe8;
  --rail-dim: #a9a49b;
  --line-7: #b933ad;
  --grade-blue: #1d5fad;
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
button { touch-action: manipulation; }
button, input { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}

.frame { display: flex; height: 100vh; height: 100dvh; }
.sheet-handle { display: none; }

/* ---------- rail ---------- */
.rail {
  width: 330px;
  flex: 0 0 330px;
  background: var(--ink);
  color: var(--rail-text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) var(--ink);
}
.brand { padding: 22px 20px 14px; border-bottom: 1px solid var(--ink-3); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.tagline { margin: 0 0 6px; font-size: 13px; color: var(--rail-text); }
.strapline { margin: 0; font-size: 11.5px; color: var(--rail-dim); }
.mono { font-family: var(--font-mono); }

.tabs { display: flex; border-bottom: 1px solid var(--ink-3); }
.tab {
  flex: 1; padding: 11px 0 9px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--rail-dim); font: 600 13px var(--font-body);
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.tab.is-on { color: var(--rail-text); border-bottom-color: var(--line-7); }
.tab:hover { color: var(--rail-text); }

.pane { padding: 14px 20px 8px; }
.eyebrow {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rail-dim); margin: 14px 0 8px;
}
.eyebrow:first-child { margin-top: 2px; }
.beta { color: var(--line-7); letter-spacing: 0.06em; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: 999px; color: var(--rail-text);
  font: 500 12px var(--font-body); cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.chip:hover { transform: translateY(-1px); border-color: #56525e; }
.chip[aria-pressed="true"] { background: var(--rail-text); color: var(--ink); border-color: var(--rail-text); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.chip .dot.hollow { background: transparent !important; border: 2px solid currentColor; width: 7px; height: 7px; }
.chip .ct { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.65; }
.region-label {
  flex-basis: 100%; font: 500 9.5px var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--rail-dim);
  margin: 6px 0 0;
}
.region-label:first-child { margin-top: 0; }

.toggles { display: flex; flex-direction: column; gap: 6px; }
.toggle {
  text-align: left; padding: 7px 10px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
  color: var(--rail-dim); font: 500 12.5px var(--font-body); cursor: pointer;
}
.toggle[aria-pressed="true"] { color: var(--rail-text); border-color: var(--line-7); }
.toggle[aria-pressed="true"]::before { content: "● "; color: var(--line-7); }
.toggle[aria-pressed="false"]::before { content: "○ "; }
.toggle.near {
  display: inline-flex; width: auto; margin-top: 8px; padding: 6px 12px;
  border-radius: 999px;
}
.toggle.near::before { content: ""; }
.toggle.near[aria-pressed="true"] { color: var(--rail-text); background: var(--ink-3); }

/* picks — menu leaders */
.picks { list-style: none; margin: 0; padding: 0; }
.picks li { margin: 0 0 2px; }
.pick-row {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  background: none; border: none; padding: 5px 0; cursor: pointer;
  color: var(--rail-text); font: 500 13px var(--font-body); text-align: left;
}
.pick-row:hover .pick-name { color: #fff; text-decoration: underline; }
.pick-rank { font: 500 10.5px var(--font-mono); color: var(--rail-dim); flex: 0 0 18px; }
.pick-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
.pick-lead { flex: 1; border-bottom: 1px dotted var(--ink-3); transform: translateY(-3px); min-width: 12px; }
.pick-score { font: 500 12px var(--font-mono); color: var(--rail-text); }
.footnote { font-size: 11px; color: var(--rail-dim); margin: 10px 0 4px; line-height: 1.5; }

/* crawl cards — subway strip maps */
.crawl-card {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius);
  padding: 14px 14px 12px; margin-bottom: 12px;
}
.crawl-card.is-active { border-color: var(--crawl-color, var(--line-7)); }
.crawl-name {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  margin: 0 0 4px; color: var(--rail-text);
}
.crawl-tagline { font-size: 12px; color: var(--rail-dim); margin: 0 0 10px; line-height: 1.5; }
.strip { list-style: none; margin: 0 0 10px; padding: 0; position: relative; }
.strip::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 3px; background: var(--crawl-color, var(--line-7)); border-radius: 2px;
}
.strip li { position: relative; padding: 3px 0 3px 24px; font-size: 12.5px; color: var(--rail-text); }
.strip li::before {
  content: ""; position: absolute; left: 2.5px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-2); border: 2.5px solid var(--crawl-color, var(--line-7));
}
.strip .station { display: block; font: 400 10px var(--font-mono); color: var(--rail-dim); }
.crawl-meta { font: 500 11px var(--font-mono); color: var(--rail-dim); margin-bottom: 10px; }
.crawl-actions { display: flex; gap: 8px; }
.btn {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--ink-3);
  background: var(--ink-3); color: var(--rail-text);
  font: 600 12px var(--font-body); cursor: pointer;
}
.btn:hover { background: #3d3945; }
.btn-primary { background: var(--crawl-color, var(--line-7)); border-color: transparent; color: #fff; }
.btn-primary:hover { filter: brightness(1.12); background: var(--crawl-color, var(--line-7)); }

.p-name {
  width: 100%; padding: 8px 12px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
  color: var(--rail-text); font: 400 13px var(--font-body);
}
.p-name::placeholder { color: var(--rail-dim); }
.p-name:focus { outline: none; border-color: var(--line-7); }
.p-stats { font-size: 11px; color: var(--rail-dim); margin: 10px 0 2px; }
.crawl-fav {
  background: none; border: none; cursor: pointer;
  color: var(--rail-dim); font-size: 15px; padding: 4px 6px; line-height: 1;
}
.crawl-fav:hover { color: var(--rail-text); }
.crawl-fav[aria-pressed="true"] { color: var(--line-7); }
.saved-crawls-row .s-dot { flex: 0 0 8px; }
.saved-crawls-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin-bottom: 6px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
}
.saved-crawls-row .nm {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: none; border: none; text-align: left; cursor: pointer;
  color: var(--rail-text); font: 500 12.5px var(--font-body);
}
.saved-crawls-row .nm:hover { text-decoration: underline; }
.saved-crawls-row .ct { font: 400 10.5px var(--font-mono); color: var(--rail-dim); white-space: nowrap; }
.stop-marker.done { background: #0e9b72; }

.credits { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid var(--ink-3); }
.credits p { margin: 0 0 4px; font-size: 10.5px; color: var(--rail-dim); line-height: 1.5; }
.credits a { color: var(--rail-dim); }

/* ---------- stage ---------- */
.stage { position: relative; flex: 1; min-width: 0; }
#map { position: absolute; inset: 0; }

.detail {
  position: absolute; top: 16px; right: 16px; width: 300px;
  background: #fffdf8; border: 1px solid #d9d2c3; border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 30px rgba(22, 21, 26, 0.18);
  animation: card-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes card-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sub-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.detail-actions { display: flex; align-items: center; gap: 12px; }
.detail-actions .btn-add { flex: 1; width: auto; }
.dir-link {
  font: 600 12px var(--font-body); color: var(--ink); white-space: nowrap;
  text-decoration: none; border-bottom: 1px solid #d9d2c3; padding-bottom: 1px;
}
.dir-link:hover { border-bottom-color: var(--ink); }
.flag-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.btn-flag {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid #d9d2c3; background: none; color: var(--ink);
  font: 600 11.5px var(--font-body); cursor: pointer;
}
.btn-flag:hover { border-color: var(--ink); }
.btn-flag[aria-pressed="true"] { background: var(--ink); color: var(--rail-text); border-color: var(--ink); }
.open-badge { margin-left: auto; font-size: 10.5px; color: #0f6e56; }
.open-badge.closed { color: #a32d2d; }

/* community notes — light skin (detail card) and dark skin (crawl cards) */
.notes { margin-top: 10px; border-top: 1px solid #e6dfd0; padding-top: 8px; }
.notes summary {
  cursor: pointer; font: 600 12px var(--font-body); color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.notes summary::before { content: "▸"; font-size: 10px; transition: transform 150ms ease; }
.notes[open] summary::before { transform: rotate(90deg); }
.notes-count { font-size: 10.5px; color: #8d8677; }
.notes-list { list-style: none; margin: 8px 0; padding: 0; max-height: 160px; overflow-y: auto; }
.note { position: relative; padding: 6px 20px 6px 0; border-bottom: 1px dotted #e6dfd0; }
.note:last-child { border-bottom: none; }
.note-head { display: block; font-size: 10px; color: #8d8677; margin-bottom: 1px; }
.note-text { font-size: 12.5px; line-height: 1.45; overflow-wrap: break-word; }
.notes-empty { font-size: 12px; color: #8d8677; padding: 4px 0; }
.note-del {
  position: absolute; top: 4px; right: 0; background: none; border: none;
  color: #8d8677; font-size: 14px; cursor: pointer; padding: 2px;
}
.note-del:hover { color: #a32d2d; }
.notes-form { display: flex; gap: 6px; }
.notes-form .note-name { flex: 0 0 84px; min-width: 0; }
.notes-form .note-input { flex: 1; min-width: 0; }
.notes-form input {
  padding: 6px 8px; border: 1px solid #d9d2c3; border-radius: 6px;
  background: #fff; color: var(--ink); font: 400 12px var(--font-body);
}
.notes-form input:focus { outline: none; border-color: var(--line-7); }
.btn-post {
  padding: 6px 12px; border: none; border-radius: 6px;
  background: var(--ink); color: var(--rail-text);
  font: 600 11.5px var(--font-body); cursor: pointer;
}
.btn-post:hover { background: var(--ink-3); }
.crawl-card .notes { border-top-color: var(--ink-3); }
.crawl-card .notes summary { color: var(--rail-text); }
.crawl-card .notes-count, .crawl-card .note-head, .crawl-card .notes-empty { color: var(--rail-dim); }
.crawl-card .note { border-bottom-color: var(--ink-3); }
.crawl-card .note-text { color: var(--rail-text); }
.crawl-card .notes-form input { background: var(--ink-2); border-color: var(--ink-3); color: var(--rail-text); }
.crawl-card .btn-post { background: var(--rail-text); color: var(--ink); }
.notes-off .notes { display: none; }
.detail-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 20px; line-height: 1;
  color: #8d8677; cursor: pointer; padding: 4px;
}
.detail-close:hover { color: var(--ink); }
.detail-sub { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8d8677; margin: 0 0 4px; }
.detail-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.05; margin: 0 0 8px; }
.detail-blurb { font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.detail-order {
  font-size: 12.5px; line-height: 1.5; margin: 0 0 10px;
  padding: 8px 10px; background: #f6f2e8; border-radius: 8px;
}
.order-label {
  display: block; font: 500 9.5px var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: #8d8677;
  margin-bottom: 2px;
}
.detail-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.grade-card {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 4px;
  background: #fff; border: 1.5px solid var(--grade-blue);
  color: var(--grade-blue); font: 700 15px var(--font-body);
}
.grade-card.none { display: none; }
.score { font-size: 13px; }
.chain-flag { font-size: 10.5px; color: #8d8677; }
.detail-addr { font-size: 11px; color: #6f6a5e; margin: 0 0 12px; }
.btn-add {
  width: 100%; padding: 9px 0; border: none; border-radius: 8px;
  background: var(--ink); color: var(--rail-text);
  font: 600 13px var(--font-body); cursor: pointer;
}
.btn-add:hover { background: var(--ink-3); }
.btn-add.in-crawl { background: var(--line-7); }

/* my-crawl HUD */
.hud {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--rail-text);
  border-radius: 999px; padding: 8px 10px 8px 18px;
  box-shadow: 0 10px 30px rgba(22, 21, 26, 0.35);
  max-width: min(92%, 720px);
}
.hud-title { font: 600 12px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.hud-stops { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.hud-stop {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--line-7); color: #fff; border: none;
  font: 500 11px var(--font-mono); cursor: pointer;
}
.hud-stop:hover { background: #d24bc6; }
.hud-dist { font-size: 11.5px; color: var(--rail-dim); white-space: nowrap; }
.hud-btn {
  padding: 6px 13px; border-radius: 999px; border: none;
  background: var(--rail-text); color: var(--ink);
  font: 600 12px var(--font-body); cursor: pointer; white-space: nowrap;
}
.hud-btn:hover { background: #fff; }
.hud-clear { background: var(--ink-3); color: var(--rail-dim); }
.hud-clear:hover { background: #3d3945; color: var(--rail-text); }

/* map markers + popups */
.stop-marker {
  appearance: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mk, var(--line-7)); color: #fff;
  border: 2px solid #fffdf8;
  font: 500 12px var(--font-mono);
  box-shadow: 0 2px 8px rgba(22, 21, 26, 0.35);
}
.maplibregl-popup-content {
  font-family: var(--font-body); font-size: 12.5px;
  border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(22, 21, 26, 0.25);
}
.maplibregl-popup-content strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.pop-note { margin: 3px 0 0; color: #6f6a5e; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--line-7); outline-offset: 2px; border-radius: 4px;
}

@media (max-width: 900px) {
  .frame { flex-direction: column; }
  .stage { order: 1; flex: 1 1 auto; min-height: 0; }
  .rail {
    order: 2; width: 100%; flex: 0 0 auto;
    height: 218px;
    transition: height 300ms cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .rail.sheet-open { height: 78dvh; }
  .sheet-handle {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 8px 0 2px;
    background: none; border: none; cursor: pointer;
  }
  .sheet-handle span { width: 42px; height: 4px; border-radius: 2px; background: #56525e; }
  .brand { padding: 2px 16px 8px; border-bottom: none; }
  .wordmark { font-size: 22px; line-height: 1; display: inline; }
  .wordmark br { display: none; }
  .tagline { display: inline; margin-left: 8px; font-size: 12px; }
  .strapline { display: none; }
  .search { padding: 0 16px; }
  .tabs { border-top: 1px solid var(--ink-3); margin-top: 10px; }
  .pane { padding: 12px 16px 8px; }
  .rail:not(.sheet-open) .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .detail { left: 12px; right: 12px; top: 12px; width: auto; max-height: 42dvh; overflow-y: auto; }
  .hud { bottom: 12px; max-width: calc(100% - 24px); padding-left: 14px; }
  .tourbar { bottom: 12px; max-width: calc(100% - 24px); }
  .mini { flex-basis: 28px; width: 28px; height: 28px; }
  html, body { overscroll-behavior: none; }
}

/* ---------- search ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.search { position: relative; padding: 14px 20px 0; }
.search input {
  width: 100%; padding: 9px 34px 9px 12px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
  color: var(--rail-text); font: 400 13px var(--font-body);
  transition: border-color 150ms ease;
}
.search input::placeholder { color: var(--rail-dim); }
.search input:focus { outline: none; border-color: var(--line-7); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 26px; top: 19px;
  background: none; border: none; color: var(--rail-dim);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px;
}
.search-clear:hover { color: var(--rail-text); }
.search-results {
  list-style: none; margin: 6px 0 0; padding: 4px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
  max-height: 296px; overflow-y: auto; scrollbar-width: thin;
  animation: rise 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.s-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; border-radius: 6px;
  padding: 7px 8px; cursor: pointer; text-align: left;
  color: var(--rail-text); font: 500 12.5px var(--font-body);
}
.s-row:hover, .s-row:focus-visible { background: var(--ink-3); }
.s-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.s-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-sub { font: 400 10.5px var(--font-mono); color: var(--rail-dim); margin-left: auto; white-space: nowrap; }
.search-hint { font-size: 11px; color: var(--rail-dim); margin: 6px 0 0; }
.search-hint b { color: var(--rail-text); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; }
.clear-all {
  background: none; border: none; cursor: pointer;
  font: 500 10.5px var(--font-mono); color: var(--line-7); padding: 2px 0;
}
.clear-all:hover { text-decoration: underline; }

/* ---------- my-crawl builder ---------- */
.my-empty { font-size: 12px; color: var(--rail-dim); line-height: 1.55; margin: 0; }
.my-row { display: flex; align-items: center; gap: 4px; }
.my-row .nm {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: none; color: var(--rail-text);
  font: 500 12.5px var(--font-body); text-align: left; cursor: pointer; padding: 2px 0;
}
.my-row .nm:hover { text-decoration: underline; }
.mini {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink-3); color: var(--rail-dim); border: none;
  font: 500 11px var(--font-mono); cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.mini:hover { background: #3d3945; color: var(--rail-text); }
.mini:disabled { opacity: 0.35; cursor: default; }
.mini:disabled:hover { background: var(--ink-3); color: var(--rail-dim); }
.grip {
  flex: 0 0 auto; cursor: grab; color: var(--rail-dim);
  font-size: 11px; letter-spacing: -1px; padding-right: 2px; user-select: none;
}
#my-strip li { border-radius: 4px; }
#my-strip li.dragging { opacity: 0.4; }
#my-strip li.drop-above { box-shadow: 0 -2px 0 0 var(--line-7); }
#my-strip li.drop-below { box-shadow: 0 2px 0 0 var(--line-7); }
#my-strip.drag-active { user-select: none; }
#my-strip.drag-active .nm { pointer-events: none; }
.row-moved { animation: rowpulse 450ms ease-out; }
@keyframes rowpulse { from { background: rgba(185, 51, 173, 0.28); } to { background: transparent; } }
.btn.copied { background: #0e9b72; border-color: transparent; color: #fff; }

.toast {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--ink); color: var(--rail-text);
  border-radius: 999px; padding: 8px 18px;
  font: 500 12.5px var(--font-body); white-space: nowrap;
  box-shadow: 0 10px 30px rgba(22, 21, 26, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(92%, 480px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- crawl preview stepper ---------- */
.tourbar {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--rail-text);
  border-radius: 14px; padding: 10px 12px 10px 16px;
  box-shadow: 0 10px 30px rgba(22, 21, 26, 0.35);
  max-width: min(92%, 620px);
  animation: rise 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tour-label { font-size: 11.5px; white-space: nowrap; }
.tour-note { font: 400 12px var(--font-body); color: var(--rail-dim); line-height: 1.4; }
.tour-btn {
  padding: 7px 14px; border-radius: 999px; border: none;
  background: var(--ink-3); color: var(--rail-text);
  font: 600 12px var(--font-body); cursor: pointer; white-space: nowrap;
}
.tour-btn:hover { background: #3d3945; }
.tour-btn:disabled { opacity: 0.4; cursor: default; }
.tour-btn:disabled:hover { background: var(--ink-3); }
.tour-primary { background: var(--line-7); }
.tour-primary:hover { background: #d24bc6; }
.tour-close {
  background: none; border: none; color: var(--rail-dim);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.tour-close:hover { color: var(--rail-text); }
.stop-marker.current { width: 30px; height: 30px; font-size: 14px; border-width: 3px; z-index: 2; }

.detail-crawls { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.detail-crawls:empty { display: none; }
.on-crawl {
  border: 1px solid #d9d2c3; border-radius: 999px; background: #f7f3ea;
  padding: 3px 10px; font: 500 11px var(--font-body); color: var(--ink);
  cursor: pointer;
}
.on-crawl:hover { border-color: var(--ink); }
.hud-title {
  background: none; border: none; color: var(--rail-text); cursor: pointer; padding: 0;
}
.hud-title:hover { text-decoration: underline; }

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

[hidden] { display: none !important; }
