/* RoadLore — night-drive aesthetic */
:root {
  --ink: #0b1020;
  --ink-2: #111834;
  --ink-3: #1a2347;
  --card: rgba(22, 30, 60, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --amber: #ffb54d;
  --amber-deep: #ff9e1f;
  --violet: #b06bff;
  --blue: #5b6cff;
  --grad: linear-gradient(135deg, #5b6cff, #b06bff);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #1c2650 0%, var(--ink) 55%) fixed;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.screen { display: none; min-height: 100dvh; position: relative; }
.screen.active { display: block; }

/* ---------- decorative ---------- */
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 34% 8%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff7, transparent),
    radial-gradient(1px 1px at 76% 12%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, #fff6, transparent),
    radial-gradient(1px 1px at 22% 34%, #fff4, transparent),
    radial-gradient(1px 1px at 65% 38%, #fff5, transparent);
}
.road-glow {
  position: fixed; left: 50%; bottom: -28vh; width: 160vw; height: 60vh;
  transform: translateX(-50%);
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(255, 181, 77, .16), transparent 70%),
    conic-gradient(from 180deg at 50% 100%, transparent 42%, rgba(255,255,255,.05) 49%, rgba(255, 181, 77, .35) 50%, rgba(255,255,255,.05) 51%, transparent 58%);
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(40px, 9vh, 90px) 20px 8px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark { width: 58px; height: 58px; filter: drop-shadow(0 6px 18px rgba(91,108,255,.5)); }
.logo-text {
  font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(40px, 7vw, 58px);
  letter-spacing: -0.02em;
}
.logo-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); margin-top: 10px; }

/* ---------- plan card ---------- */
.plan-card {
  position: relative; margin: 34px auto 0; width: min(560px, calc(100% - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
/* prominent "use my location" — the primary first-run action */
.locate-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 4px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255,181,77,.1); border: 1.5px solid rgba(255,181,77,.45);
  color: var(--text); font-family: 'Inter', sans-serif; transition: all .16s;
}
.locate-btn:hover { background: rgba(255,181,77,.18); border-color: var(--amber); transform: translateY(-1px); }
.locate-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.locate-btn.located { background: rgba(126,224,163,.12); border-color: rgba(126,224,163,.55); }
.locate-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.locate-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.locate-text strong { font-size: 15.5px; font-weight: 700; }
.locate-text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.or-line {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.route-inputs { display: flex; gap: 16px; }
.route-line { display: flex; flex-direction: column; align-items: center; padding-top: 34px; padding-bottom: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-a { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.dot-b { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.dash { flex: 1; width: 2px; background: repeating-linear-gradient(180deg, var(--muted) 0 6px, transparent 6px 12px); opacity: .5; margin: 6px 0; }
.fields { flex: 1; display: flex; flex-direction: column; gap: 6px; position: relative; }
.field { position: relative; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 4px; }
.field input {
  width: 100%; padding: 14px 44px 14px 16px; font: 600 16px 'Inter', sans-serif;
  background: rgba(9, 13, 30, .8); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border .18s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,108,255,.22); }
.mini-btn {
  position: absolute; right: 8px; bottom: 7px; width: 34px; height: 34px; border-radius: 9px;
  background: transparent; color: var(--amber); border: none; font-size: 18px; cursor: pointer;
}
.mini-btn:hover { background: rgba(255,181,77,.12); }
.swap-btn {
  align-self: flex-end; margin: 2px 6px; width: 34px; height: 30px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 15px;
}
.swap-btn:hover { color: var(--text); border-color: var(--muted); }

.autocomplete {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #141b3a; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: none; box-shadow: var(--shadow);
}
.autocomplete.open { display: block; }
.ac-item { padding: 12px 14px; font-size: 14px; cursor: pointer; color: var(--text); }
.ac-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ac-item:hover, .ac-item.hl { background: rgba(91,108,255,.18); }

.btn-primary {
  width: 100%; margin-top: 18px; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
  font: 700 17px 'Inter', sans-serif; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px rgba(91,108,255,.4); transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(91,108,255,.55); }
.btn-primary:disabled { opacity: .55; transform: none; cursor: wait; }
.btn-secondary {
  width: 100%; padding: 16px; border-radius: 14px; cursor: pointer;
  font: 700 17px 'Inter', sans-serif; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.11); }
.plan-status { min-height: 20px; margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.plan-status.err { color: #ff8383; }

.resume-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(560px, calc(100% - 32px)); margin: 14px auto 0; padding: 14px 16px;
  background: rgba(255,181,77,.08); border: 1px solid rgba(255,181,77,.35);
  border-radius: 14px; backdrop-filter: blur(10px); position: relative;
}
.resume-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resume-label { font: 700 11px 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
#resume-desc { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.resume-go {
  padding: 10px 16px; border: none; border-radius: 10px; cursor: pointer;
  font: 700 14px 'Inter', sans-serif; color: #1a1205; background: var(--amber);
}
.resume-go:hover { background: var(--amber-deep); }
.resume-dismiss {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 14px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.resume-dismiss:hover { color: #ff8383; border-color: #ff8383; }

.inspo { text-align: center; margin: 26px 0 60px; color: var(--muted); font-size: 13px; position: relative; }
.inspo-chip {
  margin: 4px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 600 13px 'Inter', sans-serif;
  background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line);
}
.inspo-chip:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- curate ---------- */
.curate-topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  position: sticky; top: 0; z-index: 50; background: rgba(11,16,32,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ghost-btn {
  padding: 9px 14px; border-radius: 10px; cursor: pointer; font: 600 13px 'Inter', sans-serif;
  background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); white-space: nowrap;
}
.ghost-btn:hover { background: rgba(255,255,255,.12); }
.trip-summary { display: flex; flex-direction: column; min-width: 0; }
.trip-summary strong { font-family: 'Fraunces', serif; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-summary span { color: var(--muted); font-size: 12.5px; }
.trip-map { height: clamp(220px, 32vh, 340px); border-bottom: 1px solid var(--line); background: #0a0e1e; }

.curate-body { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 70px; }
.curate-h { font-family: 'Fraunces', serif; font-size: 28px; margin-bottom: 18px; }
.opt-group { margin-bottom: 24px; }
.opt-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opt-row { display: flex; gap: 18px; flex-wrap: wrap; }
.opt-row .half { flex: 1 1 260px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 15px; border-radius: 999px; cursor: pointer; font: 600 14px 'Inter', sans-serif;
  background: rgba(255,255,255,.05); color: var(--muted); border: 1.5px solid var(--line); transition: all .15s;
}
.chip.on { background: rgba(91,108,255,.2); border-color: var(--blue); color: var(--text); }
.chip:hover { border-color: var(--violet); }

.seg { display: flex; background: rgba(9,13,30,.8); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.trigger-sub { margin-top: 8px; }
.seg button {
  flex: 1; padding: 10px 6px; border: none; border-radius: 9px; cursor: pointer;
  font: 600 13.5px 'Inter', sans-serif; background: transparent; color: var(--muted); white-space: nowrap;
}
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(91,108,255,.35); }

.custom-freq {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  color: var(--muted); font-size: 13.5px;
}
.custom-freq input {
  width: 78px; padding: 10px 12px; font: 700 16px 'Inter', sans-serif; text-align: center;
  background: rgba(9,13,30,.8); color: var(--amber);
  border: 1.5px solid rgba(255,181,77,.4); border-radius: 10px; outline: none;
}
.custom-freq input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,181,77,.18); }

.narrator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.narrator {
  padding: 14px 10px; border-radius: 14px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.04); border: 1.5px solid var(--line); color: var(--text); transition: all .15s;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.narrator .n-emoji { font-size: 26px; }
.narrator strong { font-size: 14px; }
.narrator small { color: var(--muted); font-size: 11.5px; }
.narrator.on { border-color: var(--amber); background: rgba(255,181,77,.1); box-shadow: 0 0 0 3px rgba(255,181,77,.15); }

.go-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.go-row .big { flex: 1 1 240px; font-size: 18px; padding: 18px; margin-top: 0; }
.go-hint { color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.55; text-align: center; }

/* ---------- drive ---------- */
#screen-drive { height: 100dvh; overflow: hidden; }
.drive-map { position: absolute; inset: 0; background: #0a0e1e; }
.drive-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 400;
  background: linear-gradient(180deg, rgba(11,16,32,.8) 0%, transparent 18%, transparent 40%, rgba(11,16,32,.92) 78%); }
.drive-overlay {
  position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column;
  justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.drive-overlay > * { pointer-events: auto; }
.drive-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-in {
  font: 600 13px 'Inter', sans-serif; color: var(--amber); background: rgba(11,16,32,.75);
  border: 1px solid rgba(255,181,77,.35); border-radius: 999px; padding: 8px 16px; backdrop-filter: blur(8px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bottom-stack { display: flex; flex-direction: column; gap: 10px; width: min(680px, 100%); margin: 0 auto; }

/* Up the Road — tappable story stops */
.stops-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.stops-strip::-webkit-scrollbar { display: none; }
.stop-chip {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(15, 21, 44, .82); border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(10px); font: 600 13px 'Inter', sans-serif; max-width: 170px;
  transition: border-color .15s;
}
.stop-chip small { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stop-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stop-chip:hover { border-color: var(--violet); }
.stop-chip.played { opacity: .55; }
.stop-chip.played small { color: #7ee0a3; }
.stop-chip.current { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(255,181,77,.25); }
.stop-chip.current small { color: var(--amber); }

.chip small { font-size: 11px; color: inherit; opacity: .75; }

.player-card {
  width: min(680px, 100%); margin: 0 auto;
  background: rgba(15, 21, 44, .88); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 18px; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.np-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-cat {
  font: 700 11px 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); background: rgba(255,181,77,.12); border: 1px solid rgba(255,181,77,.3);
  padding: 5px 10px; border-radius: 999px;
}
.np-place { color: var(--muted); font-size: 13px; }
.np-title { font-family: 'Fraunces', serif; font-size: clamp(22px, 4.5vw, 30px); margin: 10px 0 8px; line-height: 1.15; }
.np-transcript {
  max-height: 22vh; overflow-y: auto; color: #c6cdec; font-size: 14.5px; line-height: 1.65;
  padding-right: 6px; scrollbar-width: thin;
}
.np-progress { height: 5px; background: rgba(255,255,255,.09); border-radius: 999px; margin: 14px 0 12px; overflow: hidden; }
.np-bar { height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width .3s linear; }
.np-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ctl {
  height: 52px; min-width: 60px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  font: 700 14px 'Inter', sans-serif; background: rgba(255,255,255,.07); color: var(--text);
  border: 1px solid var(--line);
}
.ctl:hover { background: rgba(255,255,255,.13); }
.ctl.main {
  min-width: 76px; height: 62px; font-size: 24px; background: var(--grad); border: none;
  box-shadow: 0 10px 26px rgba(91,108,255,.45);
}
.ctl.wide { font-size: 13.5px; color: var(--amber); border-color: rgba(255,181,77,.35); }
.ctl:disabled { opacity: .45; cursor: default; }

/* loading state — spinner in the main button + pulsing card */
.spinner {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.28); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ctl.main:disabled { opacity: 1; }
.player-card.loading .np-title,
.player-card.loading .np-transcript { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.player-card.loading .np-progress { position: relative; overflow: hidden; }
.player-card.loading .np-progress::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(139,123,255,.85), transparent);
  animation: sweep 1.4s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* leaflet dark-ify */
.leaflet-container { background: #0a0e1e; font: inherit; }
.leaflet-control-attribution { background: rgba(11,16,32,.7) !important; color: #667 !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #88a !important; }

/* 3D flyover */
#screen-flyover { height: 100dvh; overflow: hidden; position: relative; }
#fly-map { position: absolute; inset: 0; background: #0a0e1e; }
.fly-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 14px 14px;
  background: linear-gradient(180deg, rgba(11,16,32,.88), transparent);
}
.fly-status {
  font: 600 13px 'Inter', sans-serif; color: var(--amber);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fly-stop { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; opacity: 1 !important; }
.fly-stop-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber); color: #1a1205;
  font: 800 15px 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255,181,77,.95), 0 2px 10px rgba(0,0,0,.6);
  animation: pinpulse 2.4s ease-in-out infinite;
}
.fly-stop.start .fly-stop-dot {
  background: #7ee0a3; font-size: 17px; color: #0a2416;
  box-shadow: 0 0 20px rgba(126,224,163,.95), 0 2px 10px rgba(0,0,0,.6);
  animation: none;
}
.fly-stop.end .fly-stop-dot {
  background: var(--violet); font-size: 16px;
  box-shadow: 0 0 20px rgba(176,107,255,.95), 0 2px 10px rgba(0,0,0,.6);
  animation: none;
}
.fly-stop-name {
  font: 700 13px 'Inter', sans-serif; color: #fff;
  text-shadow: 0 1px 3px #000;
  background: rgba(11,16,32,.92); padding: 3px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
@keyframes pinpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* eats sheet — 3 curated food stops */
.eats-sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%);
  width: min(560px, calc(100% - 20px)); z-index: 960;
  background: rgba(15, 21, 44, .97); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  backdrop-filter: blur(16px); box-shadow: 0 -14px 50px rgba(0,0,0,.55);
  transition: transform .35s cubic-bezier(.3,1.1,.4,1); max-height: 72dvh; overflow-y: auto;
}
.eats-sheet.open { transform: translate(-50%, 0); }
.eats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eats-head strong { font-family: 'Fraunces', serif; font-size: 19px; }
.eats-head-btns { display: flex; gap: 8px; }
.eats-intro { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 10px 0 14px; }
.eats-list { display: flex; flex-direction: column; gap: 10px; }
.eats-card {
  text-align: left; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text);
  font-family: 'Inter', sans-serif; transition: border-color .15s, background .15s;
}
.eats-card:hover { border-color: var(--amber); background: rgba(255,181,77,.07); }
.eats-name { font-weight: 800; font-size: 16px; }
.eats-meta { display: flex; gap: 10px; margin: 3px 0 6px; }
.eats-meta span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.eats-pitch { font-size: 13.5px; color: #c6cdec; line-height: 1.5; }
.eats-go { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* floating play/pause — always reachable while a story is loaded */
.float-pp {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; z-index: 950;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; cursor: pointer; border: none;
  background: var(--grad); box-shadow: 0 12px 30px rgba(91,108,255,.5), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .15s;
}
.float-pp:hover { transform: scale(1.07); }
/* the drive screen has its own big play/pause in the player card */
body:has(#screen-drive.active) .float-pp { display: none !important; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(90px);
  background: #1c2650; color: var(--text); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 999;
  transition: transform .3s ease; box-shadow: var(--shadow); max-width: calc(100vw - 40px);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .route-inputs { gap: 10px; }
  .np-transcript { max-height: 26vh; }
  .ctl { min-width: 52px; }
}
