/* carve.run/plan — the desktop route planner (2026-10-29). The current
   site's look: Figtree only, the deep Carve green, pill buttons, soft white
   cards with shadows, no ink outlines. The map fills the window; the
   planner is a card floating over its left side, like the app's sheet.
   Large type throughout: the planners this is for plan on big screens and
   read in reading glasses. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2?v=eddba2ef40") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --green: #1D5B3A;
  --green-tint: #14301F;
  --mint: #14301F;
  --ink: #EEF1EE;
  --ink-2: #C3CAC5;
  --ink-3: #9AA39D;
  --fill: #1D2420;
  --fill-2: #161B18;
  --line: #2A332E;
  --map: #0E1210;
  --start: #2E9E52;
  --stop: #E4731C;
  --wp: #6A5FE8;
  --route: #2E92FF;
  --shadow: 0 10px 30px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.3);
  --bar: 64px;
  --green-ink: #6FD39A;
  /* dark (the user, 2026-11-01: the whole site dark): page #0E1210, card #161B18, raised #1D2420, line #2A332E */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--map); color: var(--ink);
  font-family: "Figtree", -apple-system, system-ui, sans-serif; font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
a { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
/* On the green bar a green ring can't be seen. */
.bar :focus-visible, .sheet :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--ink-3); }
.center { text-align: center; }
.small { font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
[hidden] { display: none !important; }

/* ── buttons ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 22px; border: none; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.pill svg { width: 18px; height: 18px; flex: none; }
.pill:active:not(:disabled) { transform: translateY(1px); }
.pill.big { height: 58px; font-size: 18px; width: 100%; }
.pill.green { background: var(--green); color: #fff; }
.pill.green:hover:not(:disabled) { background: #174a2f; }
.pill.green:disabled { background: #242C27; color: #9AA39D; }
.pill.white { background: #161B18; color: var(--ink); }
.pill.grey { background: var(--fill); color: var(--ink); }
.pill.grey:hover, .pill.white:hover { background: #242C27; }
.pill.black { background: #000; color: #fff; }
.pill.outline { background: #161B18; color: var(--ink); box-shadow: inset 0 0 0 1.5px #2A332E; }
.round {
  width: 44px; height: 44px; border: none; border-radius: 999px; background: var(--fill);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.round svg { width: 19px; height: 19px; }
.round:disabled { opacity: .4; }
.linkish {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px;
  border: none; background: none; font-weight: 700; color: var(--green-ink);
}
.linkish svg { width: 17px; height: 17px; }
.linkish.grey { color: var(--ink-3); }
.field {
  width: 100%; height: 54px; border: none; border-radius: 14px; background: var(--fill);
  padding: 0 16px; font-size: 18px; font-weight: 600;
}
.field::placeholder { color: #737C76; font-weight: 500; }

/* ── the site bar ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 10px; padding: 0 20px 0 24px;
  background: #0E1210; color: #fff; box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}
.brand { display: flex; color: #fff; margin-right: 10px; }
.wordmark { width: 112px; height: 17px; }
.links { display: flex; gap: 4px; }
.links a {
  padding: 10px 14px; border-radius: 999px; color: rgba(255,255,255,.86);
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
.grow { flex: 1; }
.bar .pill { height: 44px; font-size: 16px; padding: 0 18px; }
.bar .pill.white { background: #fff; color: #0E1210; }
.who { position: relative; }
.who-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px;
  border: none; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 16px;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #372F15; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink); }
.avatar svg { width: 22px; height: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.chev { width: 12px; height: 12px; }
.who-menu {
  position: absolute; right: 0; top: 52px; min-width: 180px; padding: 6px; border-radius: 16px;
  background: #161B18; box-shadow: 0 14px 36px rgba(0,0,0,.2); color: var(--ink);
}
.who-menu button { width: 100%; height: 44px; padding: 0 14px; border: none; border-radius: 10px; background: none; text-align: left; font-weight: 700; }
.who-menu button:hover { background: var(--fill); }
.menu-btn { width: 44px; height: 44px; border: none; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.sheet {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 19; padding: 8px 20px 24px;
  background: var(--green); display: flex; flex-direction: column;
}
.sheet a { display: block; padding: 16px 6px; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }

/* ── computers and tablets vs phones ── */
@media (max-width: 699px) { .wide-only { display: none !important; } .bar .links { display: none; } .bar { padding: 0 12px 0 16px; } .bar .wordmark { width: 100px; height: 15px; } }
/* The smallest phones: Get the App without its logo, so the menu fits. */
@media (max-width: 360px) { .bar .pill { padding: 0 12px; font-size: 14.5px; } .bar .pill svg { display: none; } .bar .wordmark { width: 88px; height: 13px; } }
@media (min-width: 700px) { .narrow-only { display: none !important; } .sheet { display: none !important; } }

/* ── phone gate ── */
.phone-gate { padding: calc(var(--bar) + 32px) 24px 32px; display: flex; flex-direction: column; gap: 18px; background: #1D2420; min-height: 100%; }
.gate-art { height: 300px; border-radius: 24px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 28px;
  background: radial-gradient(120% 90% at 50% 0%, #2B5A3E 0%, #14301F 60%, #0B1C12 100%); }
/* The app's own plan screen, cut off at the card's foot like a phone held up */
.gate-phone { width: 210px; flex: none; border-radius: 34px 34px 0 0; padding: 7px 7px 0; background: #0A0C0E;
  box-shadow: 0 0 0 1.5px #3A3F45, 0 24px 48px rgba(0,0,0,.45); }
.gate-phone img { display: block; width: 100%; height: auto; border-radius: 28px 28px 0 0; }
.phone-gate h1 { font-size: 30px; }
.phone-gate p { font-size: 18px; color: var(--ink-2); }

/* ── the planner ── */
.app { position: fixed; inset: var(--bar) 0 0 0; }
.map { position: absolute; inset: 0; }
.no-map { position: absolute; inset: 0 0 0 512px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.no-map p { max-width: 460px; padding: 20px 24px; border-radius: 20px; background: #161B18; box-shadow: var(--shadow); color: var(--ink-2); }
.panel {
  position: absolute; left: 16px; top: 16px; bottom: 16px; width: 480px; z-index: 5;
  background: #161B18; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden;
}
@media (min-width: 1400px) { .panel { width: 530px; } .no-map { left: 562px; } }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.foot { flex: none; padding: 16px 22px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.foot.join { border-top: none; padding: 0 22px 16px; }
.foot:not([hidden]) + .foot.join { margin-top: -8px; }
.foot.join p { margin: 0; font-size: 15px; }
.textlink { border: 0; padding: 0; background: none; font: inherit; color: var(--green-ink); font-weight: 700; cursor: pointer; }
.textlink:hover { text-decoration: underline; }
.foot.quiet { padding: 10px 16px 12px; align-items: center; }
.intro h1 { font-size: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { height: 38px; border: none; border-radius: 999px; background: none; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.mode-note { margin-top: 14px; font-size: 16px; line-height: 1.55; }
.seg button[aria-selected="true"] { background: #161B18; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.notice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 44px 12px 14px; border-radius: 18px; background: var(--mint);
}
.notice .tick { width: 22px; height: 22px; flex: none; color: var(--green-ink); margin-top: 1px; }
.notice strong { display: block; font-size: 16px; }
.notice span { display: block; font-size: 15px; color: #C3CAC5; }
.notice .x { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: none; border-radius: 999px; background: none; color: #C3CAC5; display: flex; align-items: center; justify-content: center; }
.notice .x svg { width: 16px; height: 16px; }

.list-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 4px; }
.undo { display: flex; align-items: center; gap: 6px; }
/* The header's pills share the trip dropdown's height (the user, 2026-10-29). */
.undo .pill.small { height: 34px; padding: 0 13px; font-size: 14.5px; }
.undo .round { width: 34px; height: 34px; }
.undo .round svg { width: 16px; height: 16px; }
.pill.small { height: 44px; padding: 0 16px; font-size: 15px; }
.pill.small:disabled { opacity: .4; }
.bot-check { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; padding: 16px 18px; border-radius: 20px; background: #161B18; box-shadow: 0 16px 40px rgba(0,0,0,.22); text-align: center; }
.bot-check p { margin-bottom: 10px; font-weight: 700; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* Rows never shrink, or a two-line stop squashes over its divider; the
   destination stays pinned while the rows above it scroll (the user's
   review, 2026-10-29). */
.rows { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--fill-2); }
.row {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 12px;
  border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--fill-2);
}
.row:first-child { border-radius: 18px 18px 0 0; }
.row.dest { border-bottom: none; border-radius: 0 0 18px 18px; }
.row.searching { z-index: 6; background: #161B18; }
.row.dragging { opacity: .5; }
.row.drop-before { box-shadow: inset 0 3px 0 var(--green); }
.badge { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
.badge.start { background: var(--start); }
.badge.dest { background: #15181C; }
.badge svg, .pin svg, .legend i svg, .dot-start svg { width: 62%; height: 62%; }
.badge.stop { background: var(--stop); font-size: 13px; }
.badge.wp { background: var(--wp); }
.badge.new { box-shadow: inset 0 0 0 2px #2A332E; color: #737C76; font-size: 16px; font-weight: 700; }
.cell { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-line { display: flex; align-items: center; gap: 8px; }
.input-wrap { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.row-input {
  width: 100%; height: 46px; border: none; border-radius: 12px; background: #161B18;
  padding: 0 14px; font-size: 17px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.row-input::placeholder { color: #737C76; font-weight: 500; }
.row-input:focus { outline: none; box-shadow: 0 0 0 3px var(--green); }
.row-input.empty { padding-right: 14px; }
.row-input.timed { padding-right: 46px; }
/* Remove: past the handle, shown on the row being pointed at (always on
   touch screens, which can't point). */
.clear {
  flex: none; margin-left: -6px;
  width: 30px; height: 30px; border: none; border-radius: 999px; background: var(--fill);
  color: var(--ink-3); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.clear:hover { background: #242C27; color: var(--ink); }
@media (hover: hover) {
  .row .clear { visibility: hidden; }
  .row:hover .clear, .row:focus-within .clear { visibility: visible; }
}
.row .clear.off { visibility: hidden; }
.grip { width: 32px; height: 44px; border: none; background: none; color: #B5B8BD; cursor: grab; display: flex; align-items: center; justify-content: center; flex: none; }
.grip svg { width: 20px; height: 20px; }
.grip.off { visibility: hidden; }
.kind { flex: none; position: relative; display: inline-flex; align-items: center; }
/* A box like the fields', ending where the start's and destination's do. */
.kind select { appearance: none; -webkit-appearance: none; width: 116px; height: 46px; padding: 0 30px 0 14px; border: none; border-radius: 12px; background: #161B18; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.kind select:hover { color: var(--ink); }
.kind select:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green); }
.kind svg { position: absolute; right: 13px; width: 12px; height: 12px; pointer-events: none; color: var(--ink-3); }
/* A stop's stay: a timer in a circle inside the field, left of the ×. The
   select sits invisibly over it, so picking is the browser's own list. */
.stay { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 999px; background: var(--fill); color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.stay:hover { background: #242C27; color: var(--ink); }
.stay.set { background: var(--stop); color: #fff; }
.stay svg { width: 17px; height: 17px; pointer-events: none; }
.stay select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: none; }
.stay:focus-within { box-shadow: 0 0 0 3px var(--green); }
.suggest {
  position: absolute; left: 44px; right: 8px; top: calc(100% - 4px); z-index: 7;
  margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: #161B18;
  box-shadow: 0 14px 36px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.08);
}
.suggest li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--green-tint); }
.suggest svg { width: 18px; height: 18px; flex: none; color: #737C76; }
.suggest li[aria-selected="true"] svg { color: var(--green-ink); }
.suggest .n { display: block; font-size: 16px; font-weight: 500; }
.suggest .n b { font-weight: 800; }
.suggest .a { display: block; font-size: 13.5px; color: var(--ink-3); }
.suggest .none { color: var(--ink-3); cursor: default; }
.hint { padding: 0 4px; font-size: 15.5px; color: var(--ink-3); margin-top: -4px; }
.head-left { display: flex; align-items: center; gap: 10px; }
.select.small select { height: 34px; padding: 0 32px 0 13px; font-size: 14.5px; }
.select.small svg { right: 12px; width: 12px; height: 12px; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 16px; border: none; border-radius: 999px; background: var(--fill); font-weight: 700; font-size: 16px; }
.select svg { position: absolute; right: 16px; width: 14px; height: 14px; pointer-events: none; color: var(--ink-2); }
.bring { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.bring .paste input { background: var(--fill); }
.paste { display: flex; gap: 8px; }
.paste input { flex: 1 1 auto; min-width: 0; height: 52px; border: none; border-radius: 14px; background: #161B18; padding: 0 14px; font-size: 17px; font-weight: 600; }
.paste .pill { height: 52px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; color: #C3CAC5; }
.sources span { display: inline-flex; align-items: center; gap: 6px; }
.sources img { width: 18px; height: 18px; border-radius: 5px; }
.sources img.pin { border-radius: 0; }
.gpx-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 76px; padding: 14px 18px;
  border: 2px dashed #2A332E; border-radius: 16px; background: var(--fill-2); color: var(--ink-3);
  font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.gpx-drop svg { width: 20px; height: 20px; flex: none; }
.gpx-drop u { color: var(--green-ink); text-decoration: none; font-weight: 700; }
.gpx-drop:hover, .gpx-drop.over { border-color: var(--green); background: var(--green-tint); color: var(--ink-2); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 4px; }
.figures b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
/* The figures roll to a new value, slot-machine style (plan.js roll). */
.figures b { font-variant-numeric: tabular-nums; }
.figures b span { font-size: inherit; color: inherit; }
.slot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.reel { display: block; transition: transform .75s cubic-bezier(.18, .9, .25, 1); }
.reel span { display: block; height: 1.1em; line-height: 1.1; }
.figures span { font-size: 14.5px; color: var(--ink-3); }

/* ── saved ── */
.edit { position: absolute; right: 0; top: 0; z-index: 2; height: 40px; font-size: 15px; padding: 0 16px 0 12px; }
.edit svg { width: 15px; height: 15px; }
.saved-head { position: relative; padding-right: 84px; }
.ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7BE09F; }
.ok svg { width: 14px; height: 14px; color: #7BE09F; }
.saved-head h1 { overflow-wrap: anywhere; margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.saved-head p { margin-top: 5px; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; color: #9AA39D; }
.facts b { color: #EEF1EE; }
.facts .sep { width: 4px; height: 4px; border-radius: 50%; background: #8E8E93; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; }
.chip svg { width: 13px; height: 13px; }
.scan { padding: 16px; border-radius: 20px; background: #1D2420; display: flex; flex-direction: column; gap: 14px; }
.scan-top { display: flex; align-items: center; gap: 16px; }
.scan-top b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.scan-top .dim { display: block; font-size: 14px; margin-top: 4px; }
.qr { width: 124px; height: 124px; flex: none; border-radius: 12px; background: #fff; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.two .pill { height: 42px; font-size: 14.5px; padding: 0 10px; }
#link-out { background: #1D2420; font-weight: 700; }
.unit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.unit-head b { font-size: 15px; }
.unit-head .dim { font-size: 13px; }
#blurb { margin-top: 6px; font-size: 16px; line-height: 1.5; color: #C3CAC5; }
.shimmer { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.shimmer i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #242C27 0%, #1D2420 40%, #242C27 80%); background-size: 200% 100%; animation: shim 1.4s ease-in-out infinite; }
.shimmer i:nth-child(2) { width: 94%; } .shimmer i:nth-child(3) { width: 62%; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .shimmer i { animation: none; } }
#elev { display: block; width: 100%; height: 44px; margin-top: 6px; }
/* The saved route's places and the drives near it, as a route's page has them. */
.along-list { list-style: none; margin: 8px 0 0; padding: 0; }
.along-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.along-list li:last-child { border-bottom: 0; }
.along-list .badge { width: 24px; height: 24px; }
.near-cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.near-cards a { display: block; text-decoration: none; color: inherit; }
.near-cards img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; border-radius: 14px; background: var(--fill); display: block; }
.near-cards .n { display: block; font-weight: 700; font-size: 15px; margin-top: 7px; line-height: 1.25; }
.near-cards .m { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.near-cards a:hover .n { color: var(--green-ink); }
.curve-bar { margin-top: 8px; height: 12px; border-radius: 6px; }
.key { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #9AA39D; }
.key i { flex: 0 0 60px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #152B37, #5B7CFA, #9B4DEB, #FF3D8B); }

/* ── over the map ── */
.map-hint, .legend, .toast {
  position: absolute; z-index: 4; background: #161B18; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.map-hint { left: calc(512px + (100% - 512px) / 2); top: 24px; transform: translateX(-50%); padding: 14px 22px; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.dot-start { width: 24px; height: 24px; border-radius: 50%; background: var(--start); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.legend { left: 512px; bottom: 16px; display: flex; gap: 14px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; color: #C3CAC5; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }
.k-start { width: 18px; height: 18px; border-radius: 50%; background: var(--start); }
.k-stop { width: 18px; height: 18px; border-radius: 50%; background: var(--stop); }
.k-wp { width: 18px; height: 18px; border-radius: 50%; background: var(--wp); }
.k-end { width: 18px; height: 18px; border-radius: 50%; background: #15181C; }
@media (min-width: 1400px) { .legend { left: 562px; } .map-hint { left: calc(562px + (100% - 562px) / 2); } }
.toast { left: 50%; bottom: 70px; transform: translateX(-50%); padding: 12px 20px; font-size: 16px; font-weight: 700; max-width: 520px; text-align: center; border-radius: 18px; }
.toast.bad { background: #371715; color: #EC796F; }
.click-menu {
  position: absolute; z-index: 8; width: 220px; padding: 8px; border-radius: 18px; background: #161B18;
  box-shadow: 0 14px 36px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 2px;
}
.click-menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; border: none; border-radius: 12px; background: none; font-size: 17px; font-weight: 600; text-align: left; }
.click-menu button:hover, .click-menu button:focus-visible, .click-menu button.on { background: var(--green-tint); font-weight: 700; }
.click-menu .badge { flex: none; }
.click-menu .cancel { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--ink-3); font-weight: 700; }
.drop { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; background: rgba(29,91,58,.18); }
.drop span { padding: 18px 26px; border-radius: 999px; background: #161B18; font-size: 20px; font-weight: 800; box-shadow: var(--shadow); }

/* map pins (HTML markers) */
.pin { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: grab; }
.pin.start { width: 30px; height: 30px; border-radius: 50%; background: var(--start); }
.pin.dest { width: 30px; height: 30px; border-radius: 50%; background: #15181C; }
.pin.stop { width: 30px; height: 30px; border-radius: 50%; background: var(--stop); font-size: 14px; }
.pin.wp { width: 24px; height: 24px; border-radius: 50%; background: var(--wp); font-size: 12px; }
/* Pointed at: a little bigger, with what it is above it (the user,
   2026-10-29). The mark grows inside its wrapper: the map positions the
   wrapper with a transform, which a scale on it would multiply. */
.pin-wrap { display: flex; }
.pin { transition: transform .15s ease; }
.pin-wrap:hover .pin { transform: scale(1.3); }
.pin-tip {
  position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; max-width: 260px;
  display: flex; flex-direction: column; gap: 1px; padding: 9px 13px; border-radius: 14px;
  background: #161B18; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 15px; line-height: 1.3;
}
.pin-tip b { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pin-tip .pt-start { color: var(--start); } .pin-tip .pt-dest { color: var(--ink); }
.pin-tip .pt-stop { color: var(--stop); } .pin-tip .pt-wp { color: var(--wp); }
.pin-tip span { font-weight: 600; overflow-wrap: anywhere; }
.pin-tip .dim { font-weight: 500; }
.pin-tip .small { font-size: 12.5px; margin-top: 2px; }
/* The map's key: the dashed violet roads, explained on hover. */
.roads-key { cursor: help; }
.roads-key:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.k-road { width: 30px; height: 0; border-top: 3px dashed #6A4CFF; }
.key-tip {
  display: none; position: absolute; left: 0; bottom: calc(100% + 10px); width: 300px; padding: 12px 14px;
  border-radius: 14px; background: #161B18; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ink-2);
}
.key-tip b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 800; color: var(--ink); }
.roads-key:hover .key-tip, .roads-key:focus .key-tip { display: block; }
.pin.temp { width: 16px; height: 16px; border-radius: 50%; background: #15181C; border-width: 4px; cursor: default; }
.road-chip { padding: 4px 10px; border-radius: 999px; background: #161B18; box-shadow: 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 1.5px var(--route); font-size: 13px; font-weight: 800; color: #6DA8EE; white-space: nowrap; pointer-events: none; }
.maplibregl-ctrl-group { border-radius: 16px !important; box-shadow: 0 6px 18px rgba(0,0,0,.14) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }

/* ── dialog ── */
.sheet-dialog {
  width: min(480px, calc(100vw - 32px)); padding: 40px 36px 30px; border: none; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--ink);
}
.sheet-dialog::backdrop { background: rgba(10,28,19,.48); }
.sheet-dialog > div, .sheet-dialog > form { display: flex; flex-direction: column; gap: 14px; }
.sheet-dialog h2 { font-size: 30px; padding-right: 40px; }
.sheet-dialog p.dim { font-size: 18px; color: var(--ink-2); }
.x-top { position: absolute; right: 16px; top: 16px; }
.field.code { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 800; }
.row-links { display: flex; justify-content: space-between; }
.error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #371715; color: #EC796F; font-weight: 600; }

/* ── print: page 1 the QR sheet, page 2 the turns ── */
.printout { display: none; }
@media print {
  @page { size: letter; margin: 0.6in; }
  body { background: #fff; }
  body > *:not(.printout) { display: none !important; }
  .printout { display: block; color: #111; font-family: "Figtree", system-ui, sans-serif; }
  .pp { break-after: page; }
  .pp:last-child { break-after: auto; }
  .pp h1 { font-size: 30pt; margin: 10pt 0 4pt; letter-spacing: -0.02em; }
  .pp .sub { font-size: 13pt; color: #444; }
  .pp .wm { width: 80pt; height: 12pt; color: #1D5B3A; }
  .pp .qrbig { width: 2.6in; height: 2.6in; }
  .pp .scanrow { display: flex; gap: 24pt; align-items: center; margin-top: 18pt; }
  .pp .scanrow b { font-size: 18pt; display: block; }
  .pp .scanrow .url { font-size: 15pt; font-weight: 800; margin-top: 8pt; display: block; }
  .pp .foot-note { margin-top: 24pt; padding-top: 10pt; border-top: 1px solid #ccc; font-size: 10pt; color: #555; }
  .pp table { width: 100%; border-collapse: collapse; margin-top: 12pt; font-size: 11.5pt; }
  .pp th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; color: #555; padding: 4pt 4pt; border-bottom: 1px solid #999; }
  .pp td { padding: 5pt 4pt; border-bottom: 1px solid #ddd; vertical-align: middle; }
  .pp td.n { width: 18pt; color: #555; font-weight: 800; }
  .pp td.ic { width: 22pt; }
  .pp td.ic svg { width: 16pt; height: 16pt; display: block; }
  .pp td.d, .pp td.m { text-align: right; white-space: nowrap; width: 54pt; }
  .pp td.m { font-weight: 700; }
  .pp tr.stoprow td { background: #FFF3EA; font-weight: 700; }
}

/* ── good roads on the map: Carve's drives as dashed violet lines; the
   name beside the cursor on one, and its card beside the click menu (the
   user, 2026-10-29) ── */
.road-hover {
  position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none;
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 5px; border-radius: 999px;
  background: #161B18; box-shadow: 0 4px 14px rgba(0,0,0,.18), 0 0 0 1.5px #6A4CFF;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.twist { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 1.5px #fff inset; }
.twist.bare { width: auto; height: auto; background: none !important; box-shadow: none; }
/* The click menu on one of them: the road first, then what to do here. */
.click-menu.with-road { width: 290px; padding-top: 0; overflow: hidden; }
.road-head { margin: 0 -8px 6px; border-bottom: 1px solid var(--line); }
.road-head img { display: block; width: 100%; height: 104px; object-fit: cover; background: var(--fill); }
.rh-body { padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.rh-name { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.2; }
.rh-name .twist { width: 24px; height: 24px; }
.rh-facts { display: flex; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.rh-facts .lvl { font-weight: 800; }
.rh-facts .fig { white-space: nowrap; }
.rh-facts .fig + .fig::before { content: "·"; margin: 0 7px; color: var(--ink-3); }
.rh-body a { font-size: 14px; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.rh-body a:hover { text-decoration: underline; }
.click-menu .badge.whole { background: #1A1537; color: #775CFF; }
.click-menu .badge.whole svg { width: 18px; height: 18px; }
.click-menu button.whole { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.click-menu .two { display: flex; flex-direction: column; line-height: 1.25; }
.click-menu .two small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }

/* MapLibre's own controls and popups, dark like the site (the user, 2026-11-01) */
@media (prefers-color-scheme: dark) {
.maplibregl-ctrl-group { background: #161B18 !important; box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px #2A332E !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid #2A332E !important; }
.maplibregl-ctrl-group button:hover { background-color: #1D2420 !important; }
.maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1) brightness(.92); }
.maplibregl-ctrl-attrib, .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(14, 18, 16, .78) !important; color: #9AA39D; }
.maplibregl-ctrl-attrib a { color: #C3CAC5 !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent !important; }
.maplibregl-popup-content { background: #161B18 !important; color: #EEF1EE; }
.maplibregl-popup-tip { border-top-color: #161B18 !important; border-bottom-color: #161B18 !important; }
}

/* light theme (scripts/light_theme.py): the device's light setting */
@media not all and (prefers-color-scheme: dark) {
  :root { color-scheme: light; --green-tint: #EEF5F0; --mint: #DCF1E2; --ink: #15181C; --ink-2: #4A5058; --ink-3: #5D636C; --fill: #F1F1EF; --fill-2: #F7F6F2; --line: #ECEAE4; --map: #EFEDE6; --shadow: 0 10px 30px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.06); --green-ink: #1D5B3A; }
  a { color: var(--green); }
  .dim { color: var(--ink-3); }
  .eyebrow { color: var(--ink-3); }
  .pill.green { color: #fff; }
  .pill.green:disabled { background: #EDECE8; color: #6B7079; }
  .pill.white { background: #fff; color: var(--ink); }
  .pill.grey { background: var(--fill); color: var(--ink); }
  .pill.grey:hover, .pill.white:hover { background: #E8E7E3; }
  .pill.black { background: #000; color: #fff; }
  .pill.outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #DADCE0; }
  .round { background: var(--fill); color: var(--ink); }
  .linkish { background: none; color: var(--green); }
  .linkish.grey { color: var(--ink-3); }
  .field { background: var(--fill); }
  .field::placeholder { color: #8B9098; }
  .bar { background: var(--green); color: #fff; box-shadow: none; }
  .brand { color: #fff; }
  .links a { color: rgba(255,255,255,.86); }
  .links a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
  .bar .pill.white { background: #fff; color: var(--green); }
  .who-btn { background: rgba(255,255,255,.14); color: #fff; }
  .avatar { background: #F2C94C; color: var(--ink); }
  .who-menu { background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.2); color: var(--ink); }
  .who-menu button { background: none; }
  .who-menu button:hover { background: var(--fill); }
  .menu-btn { background: rgba(255,255,255,.14); color: #fff; }
  .sheet { background: var(--green); }
  .sheet a { color: #fff; }
  .phone-gate { background: #FBF8EF; }
  .gate-art { background: radial-gradient(120% 90% at 50% 0%, #2B5A3E 0%, #14301F 60%, #0B1C12 100%); }
  .gate-phone { background: #0A0C0E; box-shadow: 0 0 0 1.5px #3A3F45, 0 24px 48px rgba(0,0,0,.45); }
  .phone-gate p { color: var(--ink-2); }
  .no-map p { background: #fff; box-shadow: var(--shadow); color: var(--ink-2); }
  .panel { background: #fff; box-shadow: var(--shadow); }
  .textlink { background: none; color: var(--green); }
  .seg { background: var(--fill); }
  .seg button { background: none; color: var(--ink-3); }
  .seg button:hover { color: var(--ink); }
  .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
  .notice { background: var(--mint); }
  .notice .tick { color: var(--green); }
  .notice span { color: #2F4A3A; }
  .notice .x { background: none; color: #2F4A3A; }
  .bot-check { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
  .rows { background: var(--fill-2); }
  .row { background: var(--fill-2); }
  .row.searching { background: #fff; }
  .row.drop-before { box-shadow: inset 0 3px 0 var(--green); }
  .badge { color: #fff; }
  .badge.start { background: var(--start); }
  .badge.dest { background: var(--ink); }
  .badge.stop { background: var(--stop); }
  .badge.wp { background: var(--wp); }
  .badge.new { box-shadow: inset 0 0 0 2px #B5B8BD; color: #8B9098; }
  .row-input { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .row-input::placeholder { color: #8B9098; }
  .row-input:focus { box-shadow: 0 0 0 3px var(--green); }
  .clear { background: var(--fill); color: var(--ink-3); }
  .clear:hover { background: #E4E3DE; color: var(--ink); }
  .grip { background: none; color: #B5B8BD; }
  .kind select { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--ink-2); }
  .kind select:hover { color: var(--ink); }
  .kind select:focus-visible { box-shadow: 0 0 0 3px var(--green); }
  .kind svg { color: var(--ink-3); }
  .stay { background: var(--fill); color: var(--ink-3); }
  .stay:hover { background: #E4E3DE; color: var(--ink); }
  .stay.set { background: var(--stop); color: #fff; }
  .stay:focus-within { box-shadow: 0 0 0 3px var(--green); }
  .suggest { background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.08); }
  .suggest li[aria-selected="true"], .suggest li:hover { background: var(--green-tint); }
  .suggest svg { color: #8B9098; }
  .suggest li[aria-selected="true"] svg { color: var(--green); }
  .suggest .a { color: var(--ink-3); }
  .suggest .none { color: var(--ink-3); }
  .hint { color: var(--ink-3); }
  .select select { background: var(--fill); }
  .select svg { color: var(--ink-2); }
  .bring .paste input { background: var(--fill); }
  .paste input { background: #fff; }
  .sources { color: #2F4A3A; }
  .gpx-drop { border: 2px dashed #D3D1CB; background: var(--fill-2); color: var(--ink-3); }
  .gpx-drop u { color: var(--green); }
  .gpx-drop:hover, .gpx-drop.over { border-color: var(--green); background: var(--green-tint); color: var(--ink-2); }
  .figures b span { color: inherit; }
  .figures span { color: var(--ink-3); }
  .ok { color: #1D7A3E; }
  .ok svg { color: #1D7A3E; }
  .facts { color: #6E6E73; }
  .facts b { color: #111113; }
  .facts .sep { background: #8E8E93; }
  .chip { color: #fff; }
  .scan { background: #F2F2F7; }
  .qr { background: #fff; }
  #link-out { background: #F2F2F7; }
  #blurb { color: #3A3A3C; }
  .shimmer i { background: linear-gradient(90deg, #ECECF1 0%, #F7F7FA 40%, #ECECF1 80%); }
  .along-list li { border-bottom: 1px solid var(--line); }
  .along-list li:last-child { border-bottom: 0; }
  .near-cards a { color: inherit; }
  .near-cards img { background: var(--fill); }
  .near-cards .m { color: var(--ink-3); }
  .near-cards a:hover .n { color: var(--green); }
  .key { color: #6E6E73; }
  .key i { background: linear-gradient(90deg, #8FD8FF, #5B7CFA, #9B4DEB, #FF3D8B); }
  .map-hint, .legend, .toast { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
  .dot-start { background: var(--start); color: #fff; }
  .legend { color: #3A3A3C; }
  .legend i { color: #fff; }
  .k-start { background: var(--start); }
  .k-stop { background: var(--stop); }
  .k-wp { background: var(--wp); }
  .k-end { background: var(--ink); }
  .toast.bad { background: #FFF1F0; color: #8A1C12; }
  .click-menu { background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.2); }
  .click-menu button { border: none; background: none; }
  .click-menu button:hover, .click-menu button:focus-visible, .click-menu button.on { background: var(--green-tint); }
  .click-menu .cancel { border-top: 1px solid var(--line); color: var(--ink-3); }
  .drop { background: rgba(29,91,58,.18); }
  .drop span { background: #fff; box-shadow: var(--shadow); }
  .pin { color: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
  .pin.start { background: var(--start); }
  .pin.dest { background: var(--ink); }
  .pin.stop { background: var(--stop); }
  .pin.wp { background: var(--wp); }
  .pin-tip { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .pin-tip .pt-start { color: var(--start); }
  .pin-tip .pt-dest { color: var(--ink); }
  .pin-tip .pt-stop { color: var(--stop); }
  .pin-tip .pt-wp { color: var(--wp); }
  .k-road { border-top: 3px dashed #6A4CFF; }
  .key-tip { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); color: var(--ink-2); }
  .key-tip b { color: var(--ink); }
  .pin.temp { background: var(--ink); }
  .road-chip { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 1.5px var(--route); color: #1660B8; }
  .maplibregl-ctrl-group { box-shadow: 0 6px 18px rgba(0,0,0,.14) !important; }
  .sheet-dialog { border: none; box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--ink); }
  .sheet-dialog::backdrop { background: rgba(10,28,19,.48); }
  .sheet-dialog p.dim { color: var(--ink-2); }
  .error { background: #FFF1F0; color: #8A1C12; }
  .road-hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18), 0 0 0 1.5px #6A4CFF; }
  .twist { box-shadow: 0 0 0 1.5px #fff inset; }
  .twist.bare { background: none !important; box-shadow: none; }
  .road-head { border-bottom: 1px solid var(--line); }
  .road-head img { background: var(--fill); }
  .rh-facts { color: var(--ink-2); }
  .rh-facts .fig + .fig::before { color: var(--ink-3); }
  .rh-body a { color: var(--green); }
  .click-menu .badge.whole { background: #EEEBFF; color: #6A4CFF; }
  .click-menu .two small { color: var(--ink-3); }
}
/* end light theme */
