/* Recce: Waypoint's visual language. Archivo for headings, Helvetica Neue for text, Space Mono for labels. */
:root {
  color-scheme: light;
  --bg: #F2F1EE; --surface: #FFFFFF; --soft: #F7F6F3; --ink: #131313; --muted: #64635F; --grey: #929292;
  --line: #E3E0D9; --line2: #ECEAE4; --chip: #E9E7E1; --chip-ink: #4A4945;
  --teal: #4A5C5A; --teal-hover: #3D4D4B; --teal-soft: #E2E9E8; --teal-ink: #2F3D3B;
  --ochre: #C9A876; --sand: #F6EFE2; --sand-ink: #5E4A26; --rust: #85471B; --rust-bg: #F5E7DB; --rust-strong: #B35A1F;
  --head: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Space Mono', 'Courier New', Courier, monospace;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.s { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.l { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 12px; font-weight: 500; white-space: nowrap; border: 0; }
button.chip { cursor: pointer; }
.chip-ink { background: var(--ink); color: #fff; }
.chip-blue { background: var(--teal-soft); color: var(--teal-ink); }
.chip-orange { background: var(--rust-bg); color: var(--rust); }
.chip-sand { background: var(--sand); color: var(--sand-ink); }
.chip-dash { background: transparent; border: 1px dashed var(--grey); color: var(--chip-ink); }
.chip-white { background: #fff; border: 1px solid var(--line); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Buttons and inputs ---------- */
.btn { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid #CFCCC4; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--grey); color: var(--ink); }
.btn.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.pri:hover { background: var(--teal-hover); color: #fff; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--rust); border-color: #E2C9B5; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 48px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.ib { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; color: var(--chip-ink); cursor: pointer; flex: none; }
.ib:hover { background: var(--chip); color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 600; cursor: pointer; font-size: 14px; }
.fil { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 13px/1 var(--body); color: var(--chip-ink); cursor: pointer; white-space: nowrap; }
.fil.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { display: inline-flex; padding: 3px; background: var(--chip); border-radius: 8px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; font: 600 13px/1 var(--body); color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

input, select, textarea { font: 15px/1.3 var(--body); color: var(--ink); background: #fff; border: 1px solid #CFCCC4; border-radius: 8px; padding: 0 12px; height: 40px; width: 100%; }
textarea { padding: 10px 12px; height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--teal); padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
/* Inline editable cells: look like text until focused */
.ed { border: 1px solid transparent; background: transparent; height: 34px; padding: 0 8px; border-radius: 6px; }
.ed:hover { border-color: var(--line); background: #fff; }
.ed:focus { background: #fff; }
textarea.ed { padding: 7px 8px; min-height: 34px; }

/* ---------- Desktop shell ---------- */
.top { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.top .logo img { height: 18px; width: auto; }
.top nav { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.top nav a.off { color: var(--muted); font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--chip); font: 700 12px/32px var(--head); text-align: center; color: var(--chip-ink); cursor: pointer; }
main.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs b { color: var(--ink); font-weight: 500; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: -8px; overflow-x: auto; }
.tabs a { padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 18px 20px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 600px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banner { border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.banner.sand { background: var(--sand); color: var(--sand-ink); }
.banner.rust { background: var(--rust-bg); color: var(--rust); }
.banner.teal { background: var(--teal-soft); color: var(--teal-ink); }
.banner b { display: block; }

/* Projects */
.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pcard .ph { aspect-ratio: 16/9; background: var(--chip); position: relative; }
.pcard .ph .chip { position: absolute; left: 12px; top: 12px; background: #fff; }
.segs { display: flex; gap: 4px; }
.segs span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.segs span.on { background: var(--ink); }

/* Stage cards */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stage { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.stage.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.stage .num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 12px var(--mono); background: var(--chip); color: var(--muted); }
.stage .num.done { background: var(--ink); color: #fff; }
.stage .num.cur { background: var(--teal); color: #fff; }
.stage .foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--muted); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); }
.li:first-child { border-top: 0; }
.bullet { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grey); }
.bullet.ink { background: var(--ink); } .bullet.teal { background: var(--teal); } .bullet.rust { background: var(--rust-strong); }

/* Tables */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .ed { width: 100%; min-width: 80px; }

/* Run sheet */
.stop { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line2); }
.stop:first-child { border-top: 0; }
.stop.dragover { background: var(--teal-soft); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 80px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.thumb .img, .frame .img { aspect-ratio: 16/9; background: var(--chip); border-radius: 6px; overflow: hidden; position: relative; }
.img img { width: 100%; height: 100%; object-fit: cover; }
.img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 11px var(--mono); color: var(--grey); }
.thumb .x { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.thumb:hover .x { display: flex; }
.drop { width: 80px; aspect-ratio: 16/9; border: 1px dashed #B9B5AB; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--grey); font-size: 18px; background: transparent; cursor: pointer; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.frame { overflow: hidden; display: flex; flex-direction: column; }
.frame .img { border-radius: 0; }
.frame .n { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 6px; background: #fff; font: 11px/22px var(--mono); }
.frame .chg { position: absolute; right: 8px; top: 8px; }
.tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tray .t { padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: grab; display: flex; flex-direction: column; gap: 6px; background: #fff; }

/* Map */
.mapbox { height: 300px; background: var(--chip); position: relative; }
.maplibregl-map { font-family: var(--body); }
.pin { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 11px/26px var(--mono); text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pin.next { background: var(--teal); }
.pin.done { background: var(--grey); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #2F6FEB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,111,235,.2); }

/* Kit */
.kc { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 88px; padding: 0 8px; border-radius: 6px; font: 600 12px/1 var(--body); cursor: pointer; border: 1px solid transparent; }
.k-own { background: #fff; border-color: #CFCCC4; color: var(--chip-ink); }
.k-ship { background: var(--teal-soft); color: var(--teal-ink); }
.k-out { background: var(--rust-bg); color: var(--rust); }
.k-no { background: transparent; border: 1px dashed #C3BFB5; color: var(--grey); }
.kc.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
dl.kv { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; align-items: center; }
dl.kv dt { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
dl.kv dd { margin: 0; }

/* Itinerary */
.day { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding: 18px 20px; }

/* ---------- Modal + toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(19,19,19,.35); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; z-index: 100; overflow: auto; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 20px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields > * { grid-column: span 2; }
.fields > .half { grid-column: span 1; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--rust); }

/* ---------- Phone (on the day) ---------- */
.phone { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.pbar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.pbar img { height: 14px; width: auto; }
.pbar .back { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px 0 0; font-size: 15px; font-weight: 600; margin-left: -6px; }
.pbody { flex: 1; padding: 18px 16px 100px; display: flex; flex-direction: column; gap: 14px; }
.pnav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 30; max-width: 560px; margin: 0 auto; }
.pnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pnav a.on { color: var(--ink); }

/* On a computer: the on-the-day view in a phone frame, centred, with a back button above.
   The frame's transform makes the fixed tab bar and full-screen map stay inside it, and only the
   middle (.pbody) scrolls, so the header and tabs stay put. On a real phone none of this applies. */
.stage-back, .island { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  body:has(.stage) { background: #E7E5E0; }
  .stage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; box-sizing: border-box; }
  .stage-back { display: inline-flex; align-self: center; width: 390px; max-width: 100%; justify-content: flex-start; box-sizing: border-box; }
  .stage .phone {
    width: 390px; height: min(844px, calc(100vh - 120px)); min-height: 560px; max-width: none; margin: 0;
    border: 11px solid #131313; border-radius: 52px; overflow: hidden; transform: translateZ(0); position: relative;
    box-shadow: 0 0 0 1px #2c2c2c, 0 30px 70px rgba(19,19,19,.22), 0 6px 18px rgba(19,19,19,.12);
    padding-top: 34px; box-sizing: border-box; background: #fff;
  }
  .stage .island { display: block; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 104px; height: 28px; border-radius: 20px; background: #131313; z-index: 40; }
  .stage .pbar { position: relative; top: auto; padding-top: 0; }
  .stage .pbody { overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding-bottom: 84px; }
  .stage .pnav { max-width: none; padding-bottom: 12px; border-radius: 0 0 40px 40px; }
  .stage .fullmap { position: fixed; top: calc(34px + 57px); bottom: 72px; left: 0; right: 0; max-width: none; }
  .stage .pfoot { padding-bottom: 12px; }
}
.big { font-family: var(--mono); font-size: 20px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-card { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.next-card:hover { color: #fff; }
.next-card .lbl { color: #B5B2AA; }
.next-card .go { height: 44px; border-radius: 8px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.tl li { display: flex; align-items: center; gap: 12px; min-height: 50px; border-top: 1px solid var(--line2); }
.tl li:first-child { border-top: 0; }
.tl .t { font: 13px var(--mono); width: 48px; flex: none; }
.tl .done .t, .tl .done .nm { color: var(--grey); }
.tl .done .t { text-decoration: line-through; }
.tl .nx .nm { font-weight: 700; }
.shot { display: flex; align-items: center; gap: 12px; min-height: 60px; cursor: pointer; }
.shot .img { width: 96px; flex: none; aspect-ratio: 16/9; background: var(--chip); border-radius: 6px; overflow: hidden; position: relative; }
.bframe { display: flex; gap: 12px; align-items: center; padding: 10px; }
.bframe.here { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.bframe .img { width: 128px; flex: none; aspect-ratio: 16/9; background: var(--chip); border-radius: 6px; overflow: hidden; position: relative; }
.callbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #CFCCC4; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sos { height: 64px; border-radius: var(--r); background: var(--rust-strong); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 18px var(--head); }
.sos:hover { color: #fff; }
.pfoot { position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.fullmap { position: fixed; inset: 0; top: calc(57px + env(safe-area-inset-top)); bottom: calc(61px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.mapsheet { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.08); z-index: 5; }
.mapchips { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; z-index: 5; }
.mapbtns { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.fab { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Sign in */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth .box > .card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth img.lockup { height: 22px; width: auto; align-self: flex-start; }
.loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; color: var(--muted); font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 640px) {
  main.page { padding: 20px 16px 80px; }
  h1 { font-size: 24px; }
  .top { padding: 0 16px; }
  .stop { grid-template-columns: 56px minmax(0, 1fr); }
  .stop > .acts { grid-column: 2; }
  .fields { grid-template-columns: 1fr; }
  .fields > .half { grid-column: span 2; }
}
@media print {
  .top, .tabs, .btn, .pnav { display: none !important; }
  body { background: #fff; }
}

/* Team positions */
.tm { width: 30px; height: 30px; border-radius: 50%; background: var(--ochre); color: var(--ink); font: 700 11px/30px var(--head); text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; padding: 0; position: relative; }
.tm.stale { opacity: .55; }
.tm.open::after { content: attr(data-label); position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); background: var(--ink); color: #fff; font: 600 12px/1.3 var(--body); padding: 6px 8px; border-radius: 6px; white-space: nowrap; }

/* ---------- Place search (stop location) ---------- */
.placebox { position: relative; }
.placebox input { width: 100%; }
.placelist { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(19,19,19,.12); max-height: 280px; overflow: auto; }
.placelist li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.placelist li.on, .placelist li:hover { background: var(--soft); }
.placelist .pl-main { font-weight: 600; color: var(--ink); }
.placelist .pl-sub { font-size: 12px; color: var(--muted); }
.placelist li.pl-credit { cursor: default; font-size: 10px; color: var(--grey); padding: 4px 10px; align-items: flex-end; }
.placelist li.pl-credit:hover { background: none; }
