@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111827;
  --muted: #4b5563;
  --bg: #f8f7f3;
  --card: #ffffff;
  --line: #d6d3cd;
  --line-soft: #e5e7eb;
  --brand: #17382b;
  --brand-2: #2c4d3f;
  --brand-soft: #e8f0eb;
  --accent: #b4581c;
  --accent-ink: #994703;
  --cedar: #d97736;
  --cedar-soft: #fdf1e8;
  --ok: #137a3f;
  --warn: #8a4b00;
  --bad: #b42318;
  --info: #1d47b8;
  --radius: 16px;
  --r-ctl: 8px;
  --shadow: 0 2px 0 rgba(17, 24, 39, 0.05);
  --shadow-float: 0 4px 0 rgba(23, 56, 43, 0.08), 0 8px 16px rgba(17, 24, 39, 0.06);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); overflow-x: hidden; }
a { color: var(--brand-2); }
h1 { font-size: 1.6rem; line-height: 1.22; margin: 0.4em 0 0.5em; letter-spacing: -0.01em; font-weight: 750; }
h2 { font-size: 1.15rem; margin: 1.2em 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
img { max-width: 100%; }
code { font: 500 0.88em var(--mono); background: #efede6; padding: 0 4px; border-radius: 4px; }

.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 1000; min-height: 60px; border-bottom: 1px solid var(--line); }
.top a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; flex-shrink: 0; }
.brand-mark svg { width: 20px; height: 20px; }
.who { flex: 1; font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-gap { flex: 1; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 600 0.75rem/1 var(--mono); }
.lang a, .lang span { display: grid; place-items: center; min-width: 38px; min-height: 32px; padding: 0 8px; border-radius: 999px; color: var(--muted); }
.lang span { background: var(--brand); color: #fff; }
.out { font-size: 0.85rem; font-weight: 600; padding: 0 12px; min-height: 38px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.net { font: 600 0.75rem/1 var(--mono); white-space: nowrap; color: var(--ok); }
.net.off { color: var(--accent-ink); }

.nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 60px; z-index: 999; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); font-size: 0.9rem; font-weight: 600; border: 1px solid transparent; }
.nav a[aria-current] { background: var(--brand); color: #fff; }

.main { max-width: 760px; margin: 0 auto; padding: 12px 16px 64px; }
body.wide .main { max-width: 1440px; }
.narrow { max-width: 440px; margin: 0 auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.eyebrow { display: block; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); border-top-style: dashed; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.head-row h1, .head-row h2 { margin: 0.3em 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 650 0.95rem/1.15 var(--sans); text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 rgba(17, 24, 39, 0.06); transition: transform 0.06s, box-shadow 0.06s; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 0 #0b1f17; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 0 #6d3000; }
.btn.danger { color: var(--bad); border-color: #eab3ac; }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.big { min-height: 56px; width: 100%; font-size: 1.05rem; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 0.85rem; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cedar); outline-offset: 1px; }

form.stack, .stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92rem; min-width: 0; }
input, select, textarea { font: 400 16px/1.3 var(--sans); padding: 12px; border: 1px solid #a8a49b; border-radius: var(--r-ctl); background: #fff; color: var(--ink); width: 100%; min-width: 0; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font-weight: 750; font-size: 1.02rem; margin-bottom: 8px; padding: 0; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ferr { color: var(--bad); font-size: 0.85rem; margin: -4px 0 0; font-weight: 600; }
.flash { padding: 12px 14px; border-radius: 12px; background: #e3f3ea; color: #0d5a31; font-weight: 600; border: 1px solid #b9dcc6; }
.flash.bad { background: #fde8e6; color: var(--bad); border-color: #f1c1bb; }
.flash.warn { background: var(--cedar-soft); color: var(--accent-ink); border-color: #f3c9a8; }

.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.choice input { width: auto; margin: 0; accent-color: var(--brand); }
.choice b { font-weight: 700; }
.choice span { flex-basis: 100%; color: var(--muted); font-size: 0.84rem; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; font: 600 0.85rem/1 var(--sans); color: var(--ink); cursor: pointer; min-height: 40px; }
.window-fields { display: grid; gap: 10px; }
.window-fields[hidden] { display: none; }

.quote { position: sticky; bottom: 8px; z-index: 5; }
.quote table { width: 100%; }
.quote .total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.quote .total span:last-child { font-family: var(--mono); }

.rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.row.bad { border-color: #f1c1bb; background: #fffafa; }
.row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.row-main > * { overflow-wrap: anywhere; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.row-side form { margin: 0; }
.price { font: 600 0.95rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; background: #eceae3; color: #3b4048; }
.s-new { background: #e7eefe; color: #1d47b8; }
.s-awaiting_payment { background: var(--cedar-soft); color: var(--accent-ink); }
.s-assigned { background: #efe7fb; color: #5b2bb5; }
.s-picked_up { background: var(--cedar-soft); color: var(--accent-ink); }
.s-delivered { background: #e3f3ea; color: #0d5a31; }
.s-failed { background: #fde8e6; color: var(--bad); }
.s-returning, .s-returned { background: #f1ecdf; color: #6b5420; }
.s-cancelled { background: #eceae3; color: #6c717b; }
.tag { display: inline-block; font: 600 0.72rem/1.4 var(--mono); padding: 2px 8px; border-radius: 6px; background: #eceae3; color: #3b4048; }
.tag.warn { background: var(--cedar-soft); color: var(--accent-ink); }
.tag.ok { background: #e3f3ea; color: #0d5a31; }

.map { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 14px; background: #f2efeb; z-index: 0; box-shadow: var(--shadow); }
.map.small { height: 220px; }
.map.tall { height: 46vh; min-height: 300px; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font: 800 12px/1 var(--sans); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.pin > span { transform: rotate(45deg); }
.pin.p { background: var(--brand); }
.pin.d { background: var(--accent); }
.pin.n { background: var(--info); }
.pin.f { background: var(--bad); }
.pin.sel { box-shadow: 0 0 0 4px rgba(217, 119, 54, 0.4); }
.rdot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); font: 800 11px/1 var(--sans); color: var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.rdot.busy { border-color: var(--cedar); color: var(--accent-ink); box-shadow: 0 0 0 5px rgba(217, 119, 54, 0.25), 0 1px 4px rgba(0, 0, 0, 0.3); }
.rdot.van { border-radius: 8px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }
.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lines th, .lines td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines th { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.lines .num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 0.92em; }
.lines th.num { font-family: var(--sans); font-size: 0.72rem; }
.lines td:first-child { white-space: nowrap; }
.lines .sum td { font-weight: 800; border-bottom: 0; font-size: 1.05rem; }
.lines tr.off td { background: #fff5f4; }
.lines tr.off .diff { color: var(--bad); font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.timeline time { color: var(--muted); font: 500 0.82rem/1.5 var(--mono); }
.pod-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pod-media figure { margin: 0; }
.pod-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #f7f6f2; }
.pod-media .sig img { object-fit: contain; background: #fff; }
.pod-media figcaption { font-size: 0.8rem; color: var(--muted); }
.pod.minor { opacity: 0.92; }
.card.fail { border-color: #f1c1bb; }
.eta { font-weight: 700; color: var(--brand); }
.big { font-size: 1.15rem; }
.big-num { font: 600 1.35rem/1.2 var(--mono); }
.plain { list-style: none; padding: 0; margin: 0 0 10px; }
.plain li { padding: 3px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stats span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stats b { font: 600 1.15rem/1.3 var(--mono); }
form.inline { display: flex; gap: 6px; flex-wrap: wrap; }
form.inline input { width: 170px; flex: 1; }

.demo-list { display: grid; gap: 8px; }
.demo-list form { margin: 0; }
.demo-btn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.demo-btn span { font-size: 0.85rem; color: var(--muted); }

.drop-zone { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; border: 2px dashed #9fb5a8; border-radius: 12px; background: var(--brand-soft); cursor: pointer; color: var(--brand); font-weight: 700; padding: 16px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cols dt { font-weight: 600; }

.steps { display: flex; list-style: none; padding: 0; margin: 10px 0 14px; gap: 4px; counter-reset: s; }
.steps li { flex: 1; font-size: 0.75rem; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.steps li.on { border-color: var(--brand); color: var(--ink); font-weight: 700; }
details.opt { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 12px; margin: 8px 0; background: #fff; }
details.opt summary { padding: 12px 0; font-weight: 650; cursor: pointer; }
details.opt[open] { padding-bottom: 12px; }
.prefs li { font-weight: 600; color: var(--brand); }

.board { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.board-map, .board-side { min-width: 0; }
@media (min-width: 1000px) { .board { grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); align-items: start; } .board-map { position: sticky; top: 64px; } .map.tall { height: calc(100vh - 190px); } }
.rider-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rcard { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 0.82rem; min-width: 150px; cursor: pointer; text-align: left; font-family: inherit; color: inherit; }
.rcard b { display: block; font-size: 0.9rem; }
.rcard.off { opacity: 0.55; }
.rcard .cash { color: var(--accent-ink); font-weight: 700; font-family: var(--mono); }
.selbar { position: sticky; top: 120px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 8px 8px 14px; border-radius: 12px; margin-bottom: 10px; }
.selbar[hidden] { display: none; }
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 6px; }
.job input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.job .meta { font-size: 0.82rem; color: var(--muted); }
.job .pref { font-size: 0.82rem; color: var(--brand); font-weight: 650; }
.job.urgent { border-left: 4px solid var(--cedar); }
.job a { text-decoration: none; color: inherit; }
.group h2 { display: flex; justify-content: space-between; align-items: baseline; }
.group h2 .n { font-size: 0.85rem; color: var(--muted); }
.panel { border: 2px solid var(--ink); }
.sugg { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.sugg.no { opacity: 0.55; }
.sugg .why { font-size: 0.82rem; color: var(--muted); }
.seq { list-style: none; padding: 0; margin: 0 0 10px; counter-reset: q; }
.seq li { display: grid; grid-template-columns: 2em 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.seq li::before { counter-increment: q; content: counter(q); font-weight: 800; color: var(--muted); text-align: center; }
.seq .k-pickup { color: var(--brand); font-weight: 700; }
.seq .k-drop { color: var(--accent-ink); font-weight: 700; }
.seq .k-return { color: var(--warn); font-weight: 700; }
.seq button { min-height: 32px; min-width: 32px; padding: 0 6px; }
.failcard img { max-height: 140px; border-radius: 8px; margin-top: 6px; }

body.rider .main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.stop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.stop.next { border: 2px solid var(--brand); position: relative; overflow: hidden; padding-top: 18px; box-shadow: var(--shadow-float); }
.stop.next::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--cedar)); }
.stop.done { opacity: 0.6; box-shadow: none; }
.stop.failed { border-color: #f1c1bb; opacity: 0.7; }
.stop .kind { font: 700 0.74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.stop .kind.pickup { color: var(--brand); }
.stop .kind.drop { color: var(--accent-ink); }
.stop .kind.return { color: var(--warn); }
.stop h3 { margin: 4px 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.stop .addr { font-size: 0.95rem; }
.stop .item { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; font-size: 0.92rem; }
.stop .ask { background: var(--brand-soft); color: var(--brand); padding: 6px 10px; border-radius: 8px; font-weight: 650; margin: 6px 0; font-size: 0.9rem; }
.stop .codbox { background: var(--cedar-soft); color: #6d3000; border: 1px solid #f3c9a8; padding: 6px 10px; border-radius: 8px; font-weight: 750; margin: 6px 0; }
.stop .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stop .btns .wide { grid-column: 1 / -1; }
.cashbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 650; box-shadow: var(--shadow); }
.syncbar { padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; background: var(--cedar-soft); color: var(--accent-ink); border: 1px solid #f3c9a8; }
.syncbar.ok { background: #e3f3ea; color: #0d5a31; }
.sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 20, 25, 0.5); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-body { background: #fff; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(17, 24, 39, 0.08); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; justify-content: center; } .sheet-body { max-width: 520px; border-radius: 24px; } }
.sheet h2 { margin-top: 0; }
.photo-prev { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; margin: 6px 0; }
.sigpad { width: 100%; height: 180px; border: 2px dashed #9fb5a8; border-radius: 12px; touch-action: none; background: #fff; display: block; }
.reasons { display: grid; gap: 6px; }
.reasons label { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.reasons input { width: auto; accent-color: var(--brand); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; z-index: 3000; font-weight: 600; }

.trk { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.trk .card { margin: 0; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.sender { display: flex; align-items: center; gap: 12px; }
.sender-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.sender-name { font-size: 1.15rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sender .grow { flex: 1; min-width: 0; }
.ref { font: 600 0.82rem/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); white-space: nowrap; }
.card-extra { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.card-extra .flash { margin: 0; }
.status-card { position: relative; overflow: hidden; padding-top: 22px; }
.status-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--cedar)); }
.status-card h1 { margin: 10px 0 14px; font-size: 1.75rem; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 700 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(19, 122, 63, 0.2); }
.live.done::before { background: var(--muted); box-shadow: none; }
.window-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.window-box .val { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.window-box .est { text-align: right; }
.window-box .est .eyebrow { color: var(--accent-ink); }
.window-box .est b { display: inline-block; font: 600 1rem/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; }
.eta-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--cedar-soft); border: 1px solid #f3c9a8; color: #6d3000; font-weight: 600; }
.eta-bar .ico { color: var(--accent); }
.delivered-to { font-size: 1.1rem; font-weight: 600; margin: 0; }
.stepper { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.stepper li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--brand); }
.stepper .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.stepper .dot svg { width: 18px; height: 18px; }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.now .dot { background: var(--cedar); border-color: var(--cedar); color: #fff; box-shadow: 0 0 0 5px rgba(217, 119, 54, 0.25); }
.stepper b { font-size: 0.85rem; font-weight: 650; margin-top: 6px; line-height: 1.25; overflow-wrap: anywhere; }
.stepper li.now b { color: var(--accent-ink); font-weight: 750; }
.stepper li.todo b { color: var(--muted); font-weight: 500; }
.stepper time, .stepper small { font: 500 0.72rem/1.3 var(--mono); color: var(--muted); }
.map-card { padding: 0; overflow: hidden; }
.map-card .map { margin: 0; border: 0; border-radius: 0; box-shadow: none; height: 280px; }
.map-wrap { position: relative; }
.map-chip { position: absolute; top: 10px; left: 10px; z-index: 500; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 70px); background: #fff; border: 1px solid rgba(23, 56, 43, 0.15); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow-float); font-size: 0.85rem; }
.map-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cedar); flex-shrink: 0; }
.map-chip b { display: block; font-size: 0.9rem; }
.map-chip span { font: 500 0.75rem/1.3 var(--mono); color: var(--muted); }
.map-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.map-foot .ico { color: var(--brand); width: 22px; height: 22px; }
.map-foot b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.rider-card { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand); font: 700 1.05rem/1 var(--sans); flex-shrink: 0; }
.rider-card .grow { flex: 1; min-width: 0; }
.help-card { display: flex; align-items: flex-start; gap: 14px; }
.help-card .grow { flex: 1; min-width: 0; }
.help-card .btn .ico { width: 18px; height: 18px; }
.rider-card .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.15rem; font-weight: 700; }
.chip-mono { font: 600 0.72rem/1 var(--mono); padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.ins-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ins-head h2 { margin: 0; }
.saved-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #b9dcc6; background: #e3f3ea; color: #0d5a31; font: 600 0.8rem/1 var(--mono); }
.saved-chip svg { width: 16px; height: 16px; }
.mine { list-style: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 650; display: flex; flex-direction: column; gap: 4px; }
.mine-clear { margin: 8px 0 0; }
.tabs { margin-top: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: var(--r-ctl); font-weight: 600; font-size: 0.85rem; text-align: center; color: var(--ink); cursor: pointer; line-height: 1.2; }
.seg input:checked + label { background: var(--brand); color: #fff; box-shadow: 0 2px 0 #0b1f17; }
.seg input:focus-visible + label { outline: 3px solid var(--cedar); outline-offset: 1px; }
.panel-ins { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tabs:has(#ins-neighbour:checked) [data-panel=neighbour], .tabs:has(#ins-after:checked) [data-panel=after], .tabs:has(#ins-note:checked) [data-panel=note] { display: block; }
.panel-ins .eyebrow { color: var(--ink); display: flex; align-items: center; gap: 6px; }
.panel-ins .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cedar); }
.panel-ins .btn.primary { align-self: flex-end; }

.invoice h1 { font-size: 1.3rem; }
.pay-box { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }
@media print { .top, .nav, .noprint, .pay-box { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 0; } }
