:root { --bg:#f3f4f6; --card:#fff; --ink:#111827; --muted:#6b7280; --line:#e5e7eb; --pri:#1d4ed8; --ok:#16a34a; --bad:#dc2626; --warn:#d97706; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); font-size:16px; }
a { color: var(--pri); }
h1 { font-size: 26px; margin: 0 0 16px; } h2 { font-size: 19px; margin: 0 0 12px; } h3 { font-size: 16px; margin: 18px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .hidden, [hidden] { display:none !important; }
.warn { color: var(--warn); font-weight:600; }
.card { background:var(--card); border-radius:12px; padding:18px; margin-bottom:16px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.card.narrow { max-width: 460px; width:100%; }
.center-page { display:flex; justify-content:center; align-items:flex-start; padding:40px 16px; min-height:100vh; }
label { display:block; margin-bottom:12px; font-size:14px; color:#374151; font-weight:500; }
label.check { display:flex; gap:8px; align-items:center; }
input, select, textarea { display:block; width:100%; margin-top:4px; padding:10px 12px; font-size:16px; border:1px solid #d1d5db; border-radius:8px; background:#fff; color:var(--ink); }
input[type=checkbox] { width:auto; display:inline-block; margin:0; transform:scale(1.3); }
.btn { display:inline-block; padding:9px 16px; border-radius:8px; border:1px solid #d1d5db; background:#fff; color:var(--ink); font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; text-align:center; margin:4px 4px 4px 0; }
.btn:disabled { opacity:.45; cursor:default; }
.btn.primary { background:var(--pri); border-color:var(--pri); color:#fff; }
.btn.danger { color:var(--bad); border-color:#fca5a5; }
.btn.big { display:block; width:100%; padding:15px; font-size:18px; margin:10px 0; }
.btn.huge { display:block; width:100%; padding:24px; font-size:24px; margin:12px 0; }
.btn.sm { padding:5px 10px; font-size:13px; }
.btn.accept { background:var(--ok); border-color:var(--ok); color:#fff; }
.btn.decline { background:#fff; color:var(--bad); border-color:var(--bad); }
.btn.sel { background:var(--pri); color:#fff; border-color:var(--pri); }
.photo-btn { background:#eef2ff; border-color:#c7d2fe; }
.alert { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.okbox { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.checks { list-style:none; padding:0; } .checks li { padding:3px 0; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.thumb { max-height:70px; border-radius:6px; vertical-align:middle; margin-right:8px; }

/* Top navigation (staff) */
.topnav { display:flex; align-items:center; gap:18px; background:#111827; color:#fff; padding:10px 18px; }
.topnav a { color:#d1d5db; text-decoration:none; font-weight:600; } .topnav a.on, .topnav a:hover { color:#fff; }
.topnav .brand { font-weight:800; margin-right:10px; } .spacer { flex:1; } .who { color:#9ca3af; font-size:14px; }
.page { padding:18px; max-width:1500px; margin:0 auto; }
.tabs { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.tab { padding:8px 14px; border-radius:8px; background:#e5e7eb; color:#374151; text-decoration:none; font-weight:600; border:0; font-size:14px; cursor:pointer; }
.tab.on { background:var(--pri); color:#fff; }
.inline-form { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; } .inline-form label { margin:0; min-width:150px; }
.tbl { width:100%; border-collapse:collapse; font-size:14px; } .tbl th { text-align:left; color:var(--muted); font-weight:600; padding:6px; border-bottom:1px solid var(--line); }
.tbl td { padding:6px; border-bottom:1px solid var(--line); vertical-align:top; } .tbl tr.flag td { background:#fffbeb; }
.gtable .grow { display:flex; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid var(--line); }
.gtable .grow > span { flex:1; min-width:0; } .gtable .grow input:not([type=checkbox]), .gtable .grow select { margin:0; padding:7px 9px; font-size:14px; }
.gtable .head span { color:var(--muted); font-weight:600; font-size:13px; }
.scroll { overflow-x:auto; } .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.settings { max-width:640px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.stats.wide { grid-template-columns:repeat(6,1fr); }
.stats > div { background:#fff; border-radius:12px; padding:14px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.stats b { display:block; font-size:22px; } .stats span { color:var(--muted); font-size:13px; }

/* Status badges */
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; background:#e5e7eb; color:#374151; text-transform:capitalize; }
.badge.open { background:#fef3c7; color:#92400e; } .badge.offered { background:#ffedd5; color:#9a3412; }
.badge.accepted { background:#dbeafe; color:#1e40af; } .badge.arrived { background:#ede9fe; color:#5b21b6; }
.badge.onboard { background:#fee2e2; color:#991b1b; } .badge.completed { background:#dcfce7; color:#166534; }
.badge.cancelled { background:#f3f4f6; color:#6b7280; } .badge.free { background:#dcfce7; color:#166534; }
.badge.offline { background:#e5e7eb; color:#6b7280; } .badge.direct { background:#e0e7ff; color:#3730a3; } .badge.warnb { background:#fef3c7; color:#92400e; }

/* Dispatch */
.dgrid { display:grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr); gap:16px; padding:16px; }
.map { height:440px; border-radius:12px; margin-bottom:16px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.vmark { color:#fff; font-size:11px; font-weight:700; padding:3px 6px; border-radius:6px; white-space:nowrap; border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.4); transform:translate(-50%,-50%); display:inline-block; }
.trip-row { display:flex; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; }
.tr-main { flex:1; min-width:0; } .tr-main > * { margin-right:4px; } .tr-addr { font-weight:600; margin:4px 0; }
.tr-side { text-align:right; min-width:130px; } .tr-side .fare { font-weight:800; font-size:17px; } .tr-btns { margin-top:6px; }
.sched-sm { font-size:13px; font-weight:700; color:#7c2d12; }

/* Driver iPad */
body.driver { background:#0f172a; }
.dbar { display:flex; align-items:center; gap:10px; padding:10px 16px; padding-top:max(10px, env(safe-area-inset-top)); background:#020617; color:#fff; }
.dbar .brand { font-weight:800; }
.pill { font-size:13px; padding:3px 10px; border-radius:999px; background:#334155; color:#fff; } .pill.ok { background:#166534; } .pill.bad { background:#b91c1c; }
.dmain { max-width:760px; margin:0 auto; padding:16px; }
.dmain .muted { color:#94a3b8; } .dmain .card .muted { color:var(--muted); }
.center { text-align:center; } .status-big { font-size:30px; font-weight:800; margin:14px 0 6px; }
.actions.two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.offer { border:4px solid var(--ok); }
.offer-head { display:flex; justify-content:space-between; align-items:center; font-size:26px; font-weight:800; margin-bottom:12px; }
.count { background:var(--ok); color:#fff; border-radius:999px; min-width:56px; padding:6px 12px; text-align:center; }
.addr { font-size:22px; font-weight:700; padding:10px 0; border-bottom:1px solid var(--line); }
.addr span { display:block; font-size:13px; color:var(--muted); font-weight:600; text-transform:uppercase; }
.addr.hl { background:#eff6ff; margin:0 -18px; padding:10px 18px; }
.fare-big { font-size:36px; font-weight:800; margin:12px 0; }
.notes { background:#fffbeb; border:1px solid #fde68a; padding:10px; border-radius:8px; margin:8px 0; }
.sched { background:#fff7ed; color:#9a3412; font-weight:700; padding:8px 10px; border-radius:8px; margin-bottom:6px; }
.trip-head { display:flex; gap:8px; align-items:center; margin-bottom:6px; } .trip-head .badge { font-size:15px; padding:4px 12px; }
.pay { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .pay .btn { margin:0; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; justify-content:center; align-items:flex-start; padding:24px 12px; overflow-y:auto; z-index:1000; }
.modal-card { background:#fff; border-radius:14px; padding:20px; width:100%; max-width:620px; }
.modal-card .card { box-shadow:none; padding:0; margin:0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#111827; color:#fff; padding:12px 18px; border-radius:10px; z-index:2000; max-width:90%; font-weight:600; }
.toast.bad { background:var(--bad); }
.w60 { max-width:70px; } .w80 { max-width:100px; } .wide { min-width:200px; }
@media (max-width: 1000px) { .dgrid { grid-template-columns:1fr; } .grid2 { grid-template-columns:1fr; } .stats.wide { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns:1fr; } .stats { grid-template-columns:repeat(2,1fr); } }

/* v1.1: PIN keypad, vehicles, cash-up, map cars */
.pinpage { max-width:560px; margin:0 auto; padding:24px 16px; }
.pincard h2 { margin-top:16px; }
.vphoto { width:100%; max-height:220px; object-fit:cover; border-radius:10px; margin-bottom:10px; }
.vname { font-size:26px; font-weight:800; }
.plate { display:inline-block; margin-top:8px; padding:4px 14px; border:3px solid #1e3a8a; border-radius:6px; font-weight:800; letter-spacing:2px; background:#fff; color:#1e3a8a; font-size:20px; }
.plate.sm { font-size:12px; padding:1px 6px; border-width:2px; letter-spacing:1px; margin:0; }
.vline { font-weight:700; font-size:18px; }
.pindots { display:flex; justify-content:center; gap:18px; margin:16px 0; }
.pindots span { width:22px; height:22px; border-radius:50%; border:3px solid var(--pri); }
.pindots span.on { background:var(--pri); }
.keypad { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; max-width:380px; margin:0 auto; }
.keypad button { font-size:30px; font-weight:700; padding:20px 0; border-radius:14px; border:1px solid #d1d5db; background:#f9fafb; color:var(--ink); cursor:pointer; }
.keypad button:active { background:#dbeafe; }
.keypad button[data-k=clear], .keypad button[data-k=back] { font-size:18px; }
.pay.three { grid-template-columns:1fr 1fr 1fr; } .pay.three .btn { font-size:14px; padding:12px 6px; }
.deposit { font-size:20px; margin:12px 0; padding:12px; background:#f0fdf4; border-radius:8px; }
.big-num { font-size:24px; }
.vgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(380px, 1fr)); gap:16px; }
.vcard.inactive { opacity:.6; }
.devline { margin-top:10px; padding-top:10px; border-top:1px solid var(--line); font-size:14px; }
.carwrap { width:34px; height:34px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.carwrap svg { transition:transform .6s; }
.carlabel { position:absolute; top:34px; left:50%; transform:translateX(-50%); background:rgba(17,24,39,.85); color:#fff; font-size:10px; font-weight:700; padding:1px 5px; border-radius:4px; white-space:nowrap; }
.vpop { min-width:200px; } .vpop img { width:100%; max-height:120px; object-fit:cover; border-radius:6px; margin-bottom:6px; }
.vpop-title { font-weight:800; font-size:15px; }
.legend { background:#fff; padding:6px 8px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,.3); font-size:12px; display:flex; flex-direction:column; gap:3px; }
.legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.stats { grid-template-columns:repeat(4,1fr); }
.callcard { border-left:6px solid #9ca3af; } .callcard.live { border-left-color:var(--bad); animation:pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 4px rgba(220,38,38,.25); } }
.call-head { margin-bottom:6px; } .chip { border:1px solid #c7d2fe; background:#eef2ff; border-radius:999px; padding:2px 10px; margin:2px; font-size:13px; cursor:pointer; }
.ai-box { background:#f5f3ff; border:1px solid #ddd6fe; border-radius:8px; padding:8px 10px; margin:8px 0; font-size:14px; }
.callcard audio { width:100%; margin:6px 0; height:34px; }
.transcript { white-space:pre-wrap; background:#f9fafb; padding:8px; border-radius:6px; max-height:200px; overflow:auto; font-family:inherit; }

/* v1.2: customer booking page */
body.bookpage { background:#eef2ff; }
.bhead { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; padding-top:max(12px, env(safe-area-inset-top)); background:var(--pri); color:#fff; font-size:18px; }
.bhead a { color:#fff; text-decoration:none; font-weight:600; font-size:15px; }
.bmain { max-width:560px; margin:0 auto; padding:12px; }
.bmain h1 { font-size:24px; }
.addr-field { position:relative; }
.addr-field #locate { position:absolute; right:0; top:-6px; }
.sugg { position:absolute; left:0; right:0; top:62px; z-index:1500; background:#fff; border:1px solid #d1d5db; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.15); overflow:hidden; }
.sugg button { display:block; width:100%; text-align:left; padding:12px; border:0; border-bottom:1px solid var(--line); background:#fff; font-size:15px; cursor:pointer; }
.sugg div { padding:12px; }
.maptabs { display:flex; gap:6px; margin:8px 0; } .maptabs .tab { flex:1; font-size:13px; }
.bmap { height:260px; border-radius:12px; margin-bottom:12px; } .bmap.tall { height:340px; }
.bpin { width:30px; height:30px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.4); }
.bpin.pickup { background:#16a34a; } .bpin.dropoff { background:#dc2626; }
.bcar { width:30px; height:30px; border-radius:50%; background:var(--pri); color:#fff; display:flex; align-items:center; justify-content:center; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.4); font-size:14px; }
.fare-est { background:#f0fdf4; border-radius:10px; padding:12px; margin:8px 0; font-size:17px; }
.steps { list-style:none; padding:0; margin:10px 0; } .steps li { padding:6px 0 6px 28px; position:relative; color:var(--muted); }
.steps li::before { content:''; position:absolute; left:6px; top:10px; width:12px; height:12px; border-radius:50%; border:2px solid #d1d5db; }
.steps li.done { color:var(--ink); } .steps li.done::before { background:var(--ok); border-color:var(--ok); }
.steps li.now { color:var(--ink); font-weight:800; } .steps li.now::before { background:var(--pri); border-color:var(--pri); box-shadow:0 0 0 4px #bfdbfe; }
.carcard { display:flex; gap:12px; align-items:center; background:#f9fafb; border-radius:10px; padding:10px; margin:10px 0; }
.carcard img { width:110px; height:70px; object-fit:cover; border-radius:8px; }
.atstop { background:#fef3c7; border:2px solid #f59e0b; border-radius:10px; padding:10px; font-weight:700; margin:8px 0; text-align:center; font-size:18px; }
.badge.web { background:#cffafe; color:#155e75; }
.qr-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:3000; display:flex; align-items:center; justify-content:center; padding:16px; }
.qr-overlay .modal-card { max-width:420px; } #qrBox svg { width:280px; height:280px; }
.btn.pulse { animation:pulse 1.2s infinite; box-shadow:0 0 0 6px rgba(245,158,11,.5); }

/* ---------- Printing (office reports / admin on letter paper) ---------- */
.print-only { display: none; }
tr.total td { font-weight: 700; border-top: 2px solid #111; }
@media print {
  @page { size: letter landscape; margin: 10mm; }
  body { background: #fff !important; color: #000; font-size: 10px; }
  .topnav, .inline-form, .okbox, .no-print, .btn, button, .alert, .tabs, nav { display: none !important; }
  .print-only { display: block !important; }
  .print-head h1 { font-size: 16px; margin: 0 0 2px; }
  .print-head p { margin: 0 0 8px; font-size: 11px; }
  .page { padding: 0 !important; max-width: none !important; }
  .card { box-shadow: none !important; border: 1px solid #bbb !important; padding: 6px 8px !important; margin: 0 0 8px !important; break-inside: auto; }
  .card h2 { font-size: 13px; margin: 0 0 4px; }
  .scroll { overflow: visible !important; max-height: none !important; }
  .tbl { width: 100%; font-size: 9px; }
  .tbl th, .tbl td { padding: 2px 4px !important; }
  .tbl tr { break-inside: avoid; }
  .stats, .stats.wide { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; gap: 4px !important; margin-bottom: 8px; }
  .stats > div { border: 1px solid #bbb; box-shadow: none !important; padding: 4px !important; }
  .grid2 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .badge { border: 1px solid #999; background: none !important; color: #000 !important; }
  a { color: #000; text-decoration: none; }
  .flag td { background: #eee !important; }
  .tbl .small, .tbl .muted { font-size: 8px !important; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { border: none !important; padding: 0 0 0 1px !important; margin: 0 !important; background: none !important; -webkit-appearance: none; appearance: none; font-size: 10px !important; box-shadow: none !important; }
  input::placeholder { color: transparent !important; }
  details:not([open]) { display: none !important; }
}

.staff-h { font-size: 15px; color: #6b7280; border-top: 1px solid #e5e7eb; padding-top: 14px; margin-top: 18px; }
a.btn.big { display: block; text-align: center; text-decoration: none; }
/* v1.5 installable app */
.bhead-r { display:flex; gap:12px; align-items:center; }
.installbtn { background:#fff; color:var(--pri); border:0; border-radius:999px; padding:6px 12px; font-weight:700; font-size:14px; cursor:pointer; }
.sheet-bg { position:fixed; inset:0; background:rgba(17,24,39,.55); z-index:1500; display:flex; align-items:flex-end; justify-content:center; }
.sheet { background:#fff; width:100%; max-width:520px; border-radius:16px 16px 0 0; padding:20px 20px max(20px, env(safe-area-inset-bottom)); max-height:85vh; overflow:auto; }
.sheet h2 { margin:0 0 6px; }
.isteps { list-style:none; padding:0; margin:14px 0; counter-reset:s; }
.isteps li { counter-increment:s; display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #f1f5f9; font-size:16px; }
.isteps li::before { content:counter(s); flex:0 0 28px; height:28px; border-radius:50%; background:var(--pri); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.isteps .ico { display:inline-flex; vertical-align:middle; background:#f1f5f9; border-radius:6px; padding:3px 5px; margin:0 2px; }
.isteps .ico svg { width:20px; height:20px; }
.appcard { display:flex; gap:12px; align-items:center; background:#eff6ff; border:1px solid #bfdbfe; border-radius:12px; padding:12px; margin:12px 0; }
.appcard img { width:52px; height:52px; border-radius:12px; }
.appcard .btn { margin-left:auto; white-space:nowrap; }
.alertcard { background:#fefce8; border:1px solid #fde68a; border-radius:12px; padding:12px; margin:12px 0; }
.bhead b, .bhead a, .installbtn { white-space:nowrap; }
.bhead b { overflow:hidden; text-overflow:ellipsis; min-width:0; }
@media (max-width: 440px) { body.bookpage .bhead a .ph { display:none; } .bhead a[href^="tel:"] { font-size:20px; } }
/* v1.6 receipt page + review */
.starpick { display:flex; flex-direction:row-reverse; justify-content:center; gap:6px; margin:10px 0 16px; }
.starpick input { position:absolute; opacity:0; pointer-events:none; }
.starpick label { font-size:46px; line-height:1; color:#d1d5db; cursor:pointer; padding:0 2px; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color:#f59e0b; }
.starpick input:focus-visible + label { outline:2px solid var(--pri); border-radius:6px; }
.stars-show { color:#f59e0b; font-size:22px; letter-spacing:2px; }
.card.review h1 { font-size:22px; }
.err { color:var(--bad); font-weight:600; }
@media print { body.bookpage .bhead, body.bookpage .card.review, body.bookpage .btn { display:none !important; } body.bookpage { background:#fff; } body.bookpage .card { box-shadow:none; } }
.stars { color:#f59e0b; letter-spacing:1px; white-space:nowrap; }
.flagnav { background:#f59e0b; color:#111 !important; border-radius:999px; padding:2px 10px !important; font-weight:700; }
/* v1.6 iPad live meter */
.meter { margin:12px 0; }
.mgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
.mt { background:#f1f5f9; border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; }
.mt span { font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; font-weight:700; }
.mt b { font-size:30px; font-weight:800; line-height:1.15; font-variant-numeric:tabular-nums; }
.mt small { font-size:13px; color:#475569; }
.mt.fare { background:#111827; color:#fff; } .mt.fare span, .mt.fare small { color:#cbd5e1; } .mt.fare b { color:#facc15; font-size:38px; }
.mt.warn { background:#fef3c7; }
/* v1.7 off-trip alerts */
.otcard { border:2px solid #7c3aed; background:#faf5ff; }
.otcard p { margin:6px 0; }
.otact { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.otact select, .otact input { padding:5px 6px; }
/* v1.7 route map report */
.rmap { height: 560px; border-radius: 10px; }
.rp-head h1 { margin: 0 0 4px; font-size: 22px; }
.rp-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.rp-tot > div { background: #f1f5f9; border-radius: 10px; padding: 8px 10px; border-left: 5px solid #94a3b8; }
.rp-tot span { display: block; font-size: 12px; text-transform: uppercase; color: #64748b; font-weight: 700; }
.rp-tot b { font-size: 22px; } .rp-tot small { display: block; color: #475569; font-size: 12px; }
.rp-tot .c-trip { border-color: #dc2626; } .rp-tot .c-pickup { border-color: #2563eb; } .rp-tot .c-empty { border-color: #16a34a; } .rp-tot .c-unexplained { border-color: #7c3aed; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; margin-top: 8px; }
.lg { display: inline-block; width: 26px; height: 5px; border-radius: 3px; vertical-align: middle; margin-right: -8px; }
.lg.trip { background: #dc2626; } .lg.pickup { background: #2563eb; } .lg.empty { background: #16a34a; } .lg.unexplained { background: #7c3aed; height: 7px; }
.lg.gap { background: repeating-linear-gradient(90deg, #6b7280 0 4px, transparent 4px 10px); }
.pin, .rpin { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px #111; }
.pin.p, .rpin.p { background: #16a34a; } .pin.d, .rpin.d { background: #dc2626; } .pin.s, .rpin.s { background: #f59e0b; font-size: 9px; }
.rp-play { display: flex; gap: 10px; align-items: center; margin-top: 10px; } .rp-play input[type=range] { flex: 1; min-width: 200px; width: auto; padding: 0; } .rp-play select { width: auto; } .rp-play .btn { white-space: nowrap; }
@media print {
  body.routepage .topnav, body.routepage .no-print { display: none !important; }
  body.routepage .rmap { height: 4.7in; }
  body.routepage .rp-tot { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  body.routepage .rp-tot > div { padding: 4px 6px; }
  body.routepage .rp-head { padding: 6px 10px; margin-bottom: 6px; }
  body.routepage .rp-head h1 { font-size: 16px; }
  body.routepage .rp-mapcard { padding: 6px; }
  body.routepage main.page { padding: 0; }
  body.routepage .leaflet-control-zoom { display: none; }
  body.routepage .card { box-shadow: none; break-inside: avoid; }
  body.routepage .rp-mapcard { break-after: page; }
  body.routepage .rp-tot b { font-size: 16px; }
  body.routepage * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
