:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;background:#f8fafc;color-scheme:light dark;--surface:#fff;--surface-soft:#f5f1fc;--muted:#64748b;--primary:#7c3aed;--action:#7030d4;--accent:#ec4899;--border:#e8e3f0;--emergency:#b91c1c;--emergency-surface:#fff1f2}
*{box-sizing:border-box}body{margin:0}main{max-width:760px;margin:auto;padding:28px 20px 40px}header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.brand-group{display:flex;flex-direction:column;gap:3px}.brand{font-size:28px;font-weight:850;letter-spacing:-.045em}.tagline{color:var(--muted);font-size:12px;letter-spacing:.07em}.viewer-label{color:var(--primary);background:var(--surface-soft);border:1px solid var(--border);padding:9px 12px;border-radius:999px;font-size:12px;font-weight:650}.card{padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:24px;margin-bottom:18px;overflow:hidden;box-shadow:0 7px 24px #0f172a05}h1{font-size:clamp(28px,6vw,38px);letter-spacing:-.045em;line-height:1.15;margin:10px 0 20px}h2{font-size:23px;letter-spacing:-.025em;margin:6px 0 16px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--primary);margin:0}p{line-height:1.6}#status{font-weight:700;font-size:16px;padding:13px 16px;border-left:3px solid var(--primary);border-radius:0 12px 12px 0;background:var(--surface-soft);margin:0}#explanation{font-size:13px;color:var(--muted);margin:14px 0 16px}button{font:inherit;font-weight:650;border:0;border-radius:12px;padding:12px 16px;min-height:48px;background:var(--action);color:#fff;cursor:pointer;margin:4px 4px 4px 0}button:hover{filter:brightness(.95)}button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}#close{background:var(--surface);color:var(--primary);border:1px solid var(--border)}#auth{margin:20px 0;padding-top:18px;border-top:1px solid var(--border)}#auth label{font-size:14px;font-weight:650}input{display:block;width:100%;min-height:48px;margin-top:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:inherit;padding:10px 12px;font:inherit}#emergency{color:var(--emergency);background:var(--emergency-surface);font-weight:700;padding:12px 14px;border-radius:12px}#emergency:empty{display:none}#map-status{color:var(--muted);font-size:12px}#street-map{height:clamp(280px,54vw,380px);width:100%;overflow:hidden;border-radius:18px}.route{background:var(--surface-soft);border:1px solid var(--border);border-radius:18px}.route svg{width:100%;height:clamp(240px,48vw,340px);display:block}.route polyline{fill:none;stroke:var(--primary);stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.route circle{fill:var(--accent);stroke:var(--surface);stroke-width:3}#street-map:not([hidden])+.route{display:none}.journey-metrics{display:grid;grid-template-columns:1.5fr 1fr 1fr;margin:0;padding:20px 0;gap:20px;border-bottom:1px solid var(--border)}dt{font-size:12px;color:var(--muted);margin-bottom:7px}dd{margin:0;font-size:16px;font-variant-numeric:tabular-nums;font-weight:700;line-height:1.45;overflow-wrap:anywhere}.latest-metric dd{color:var(--primary)}.caption,#coordinates,footer,#auth-help{font-size:12px;color:var(--muted)}#coordinates{margin:6px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}footer{padding:12px 20px;line-height:1.6}footer strong{font-size:13px;color:var(--primary)}footer p{margin:6px 0 0}[hidden]{display:none!important}
@media(prefers-color-scheme:dark){:root{color:#f8fafc;background:#0f172a;--surface:#182338;--surface-soft:#26213d;--muted:#b8c5d6;--primary:#b49aff;--action:#7738cf;--border:#374158;--emergency:#fca5a5;--emergency-surface:#3c202c}}
@media(max-width:480px){main{padding:20px 14px 28px}header{gap:10px;align-items:flex-start}.viewer-label{max-width:100px;text-align:center;font-size:11px}.card{padding:20px}.introduction button{width:100%}.journey-metrics{grid-template-columns:1fr 1fr;gap:16px;padding:18px 0}.latest-metric{grid-column:1/-1}}
@media(prefers-contrast:more){:root{--muted:#40516b;--primary:#5c21b0;--action:#5920b5;--border:#8f84a6}.card{border-width:2px;box-shadow:none}}
@media(prefers-color-scheme:dark) and (prefers-contrast:more){:root{--muted:#dde5f1;--primary:#d1bfff;--action:#6025b8;--border:#a69cb9}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
