:root{color-scheme:light dark;--bg: #f6f7f9;--surface: #ffffff;--surface-2: #eef1f5;--text: #14181f;--text-muted: #4a5565;--border: #d5dae1;--border-control: #6b7585;--primary: #1d4ed8;--on-primary: #ffffff;--primary-hover: #1e40af;--focus: #1d4ed8;--day: #b45309;--night: #5b21b6;--track: #e2e6ec;--danger: #b91c1c;--on-danger: #ffffff;--success-bg: #dcfce7;--success-text: #166534;--warning-bg: #fef3c7;--warning-text: #92400e;--error-bg: #fee2e2;--error-text: #991b1b;--info-bg: #dbeafe;--info-text: #1e3a8a;--scrim: rgb(0 0 0 / 55%);--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.5rem;--space-6: 2rem;--space-7: 3rem;--radius-control: .5rem;--radius-card: .75rem;--radius-full: 999px;--target: 2.75rem;--content-width: 60rem;--bottom-bar: 4rem;--motion: .16s}@media(prefers-color-scheme:dark){:root{--bg: #0f131a;--surface: #181e27;--surface-2: #212936;--text: #f1f4f8;--text-muted: #aeb8c6;--border: #2e3847;--border-control: #7a869a;--primary: #8ab4ff;--on-primary: #0b1a33;--primary-hover: #a9c8ff;--focus: #a9c8ff;--day: #fbbf24;--night: #c4b5fd;--track: #2e3847;--danger: #fca5a5;--on-danger: #3b0a0a;--success-bg: #0f2e1c;--success-text: #86efac;--warning-bg: #3a2a08;--warning-text: #fcd34d;--error-bg: #3b1518;--error-text: #fecaca;--info-bg: #14264a;--info-text: #bfd6ff}}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:1rem;line-height:1.5rem;overflow-wrap:anywhere}h1{margin:0;font-size:1.75rem;line-height:2.25rem;font-weight:700}h2{margin:0;font-size:1.25rem;line-height:1.75rem;font-weight:600}h3{margin:0;font-size:1rem;line-height:1.5rem;font-weight:600}p,ul,dl,dd{margin:0}ul{padding:0;list-style:none}a{color:var(--primary)}a:hover{color:var(--primary-hover)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}h1:focus:not(:focus-visible),main:focus:not(:focus-visible){outline:none}.boot{padding:var(--space-6);text-align:center}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:absolute;left:var(--space-4);top:-10rem;z-index:30;padding:var(--space-3) var(--space-4);border-radius:var(--radius-control);background:var(--surface)}.skip-link:focus{top:var(--space-2)}.shell{min-height:100vh}.main{display:block;width:100%;max-width:calc(var(--content-width) + 2 * var(--space-4));margin:0 auto;padding:var(--space-5) var(--space-4) var(--space-7)}.nav{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);padding:var(--space-2) var(--space-4);border-bottom:1px solid var(--border);background:var(--surface)}.nav-list{display:flex;flex-wrap:wrap;gap:var(--space-1)}.nav-link{display:flex;align-items:center;justify-content:center;min-height:var(--target);padding:0 var(--space-3);border-radius:var(--radius-control);color:var(--text-muted);font-size:.875rem;font-weight:600;text-decoration:none}.nav-link.active{background:var(--surface-2);color:var(--text);text-decoration:underline;text-underline-offset:.35rem;text-decoration-thickness:2px}.brand{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--target);color:var(--text);font-weight:700;text-decoration:none}@media(max-width:599.98px){html{scroll-padding-bottom:calc(var(--bottom-bar) + var(--space-4))}.shell-with-nav .main{padding-bottom:calc(var(--bottom-bar) + var(--space-7))}.nav{position:fixed;inset:auto 0 0;z-index:20;min-height:var(--bottom-bar);padding:var(--space-1);border-top:1px solid var(--border);border-bottom:0}.nav .brand{display:none}.nav-list{flex:1;gap:0}.nav-list li{flex:1 1 auto}.nav-link{padding:0 .125rem;font-size:.75rem}}@media(min-width:900px){.shell-with-nav{display:grid;grid-template-columns:14rem minmax(0,1fr)}.nav{position:sticky;top:0;flex-direction:column;align-items:stretch;align-self:start;height:100vh;padding:var(--space-4);border-right:1px solid var(--border);border-bottom:0}.nav-list{flex-direction:column}.nav-link{justify-content:flex-start}}.stack{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-4)}.stack-tight{display:flex;flex-direction:column;gap:var(--space-2)}.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}.cluster-between{justify-content:space-between}.narrow{width:100%;max-width:30rem;margin:0 auto}.center{align-items:center;text-align:center}.card{padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}.muted{color:var(--text-muted)}.caption{color:var(--text-muted);font-size:.8125rem;line-height:1.125rem}.pre-line{white-space:pre-line}.button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:var(--target);min-width:var(--target);padding:var(--space-2) var(--space-4);border:1px solid var(--border-control);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:inherit;font-size:.875rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color var(--motion)}.button:hover{background:var(--surface-2);color:var(--text)}.button-primary{border-color:var(--primary);background:var(--primary);color:var(--on-primary)}.button-primary:hover{border-color:var(--primary-hover);background:var(--primary-hover);color:var(--on-primary)}.button-danger{border-color:var(--danger);background:var(--danger);color:var(--on-danger)}.button-danger:hover{background:var(--danger);color:var(--on-danger);text-decoration:underline}.button-danger-text,.button-danger-text:hover{color:var(--danger)}.button:disabled{cursor:not-allowed;opacity:.55}.button[aria-busy=true]:after,.switch[aria-busy=true]:after{content:"";flex:none;width:1rem;height:1rem;border:2px solid currentcolor;border-right-color:transparent;border-radius:var(--radius-full);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.field{display:flex;flex-direction:column;gap:var(--space-1)}.field>label,.label,legend{font-size:.875rem;line-height:1.25rem;font-weight:600}.input{width:100%;min-height:var(--target);padding:var(--space-2) var(--space-3);border:1px solid var(--border-control);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:inherit}.input[readonly]{background:var(--surface-2)}textarea.input{min-height:6rem;resize:vertical}.input[aria-invalid=true]{border-color:var(--danger);border-width:2px}.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:var(--space-4);align-items:start}.field-error{color:var(--danger);font-size:.875rem;font-weight:600}fieldset{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;border:0;min-width:0}.choice{display:flex;align-items:center;gap:var(--space-3);min-height:var(--target);cursor:pointer}.choice input{flex:none;width:1.25rem;height:1.25rem;margin:0;accent-color:var(--primary)}.switch input{appearance:none;position:relative;width:2.75rem;height:1.5rem;border:2px solid var(--border-control);border-radius:var(--radius-full);background:var(--surface);cursor:pointer}.switch input:before{content:"";position:absolute;top:.125rem;left:.125rem;width:1rem;height:1rem;border-radius:var(--radius-full);background:var(--border-control);transition:transform var(--motion)}.switch input:checked{border-color:var(--primary);background:var(--primary)}.switch input:checked:before{background:var(--on-primary);transform:translate(1.25rem)}.switch-state{margin-left:auto;color:var(--text-muted);font-size:.875rem}.chip{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);font-size:.8125rem;line-height:1.125rem;font-weight:600}.icon{flex:none;width:1rem;height:1rem;fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tone-success{background:var(--success-bg);color:var(--success-text)}.tone-warning{background:var(--warning-bg);color:var(--warning-text)}.tone-error{background:var(--error-bg);color:var(--error-text)}.tone-info{background:var(--info-bg);color:var(--info-text)}.tone-neutral{background:var(--surface-2);color:var(--text)}.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-control)}.banner a{color:inherit;font-weight:600}.banner-page{position:sticky;top:0;z-index:10;border-radius:0;justify-content:center}.toast-region{position:fixed;inset:auto var(--space-4) calc(var(--bottom-bar) + var(--space-3));z-index:25;display:flex;justify-content:center;pointer-events:none}.toast{padding:var(--space-3) var(--space-5);border-radius:var(--radius-control);background:var(--text);color:var(--bg)}@media(min-width:600px){.toast-region{bottom:var(--space-5)}}.dialog{width:min(30rem,calc(100vw - 2 * var(--space-4)));padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);color:var(--text)}.dialog::backdrop{background:var(--scrim)}.skeleton{height:5rem;border-radius:var(--radius-card);background:var(--track);animation:shimmer 1.2s ease-in-out infinite alternate}.skeleton-field{height:var(--target);border-radius:var(--radius-control)}@keyframes shimmer{to{opacity:.5}}.progress-track{display:block;width:100%;height:.75rem;border-radius:var(--radius-full);overflow:hidden;background:var(--track)}.progress-track svg{display:block;width:100%;height:100%}.fill-total{fill:var(--primary)}.fill-night{fill:var(--night)}.fill-weather{fill:var(--day)}.goal-reached{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--success-text)}.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));gap:var(--space-4)}.facts dt{color:var(--text-muted);font-size:.8125rem}.drive-card{display:flex;flex-direction:column;gap:var(--space-1);color:var(--text);text-decoration:none}a.drive-card:hover{background:var(--surface-2);color:var(--text)}.wide-only{display:none}@media(min-width:900px){.wide-only{display:block}.narrow-only{display:none}}.table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}.table{width:100%;border-collapse:collapse;font-size:.875rem;overflow-wrap:normal}.table th,.table td{padding:var(--space-3) var(--space-2);border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.table tbody tr{cursor:pointer}.table tbody tr:hover{background:var(--surface-2)}.table tbody tr:last-child td{border-bottom:0}.table .wrap{overflow-wrap:anywhere}.table .nowrap,.table .chip{white-space:nowrap}.route-box{position:relative;width:100%;max-width:40rem;aspect-ratio:320 / 220;min-height:13.75rem;max-height:60vh;overflow:hidden;border-radius:var(--radius-control);background:var(--surface-2)}.route-drawing{display:block;height:100%}.route-sketch{display:block;width:100%;height:100%}.route-stage{position:absolute;inset:0;visibility:hidden}.route-box-ready .route-stage{visibility:visible}.route-stage-inner,.route-canvas{width:100%;height:100%}.maplibregl-map{position:relative;overflow:hidden}.maplibregl-canvas,.maplibregl-marker{position:absolute;top:0;left:0}.map-marker{width:.9375rem;height:.9375rem}.map-marker-start{border:3px solid var(--primary);border-radius:var(--radius-full);background:var(--surface)}.map-marker-end{background:var(--primary)}.map-marker-label{position:absolute;white-space:nowrap;left:50%;transform:translate(-50%);color:var(--text);paint-order:stroke fill;-webkit-text-stroke:4px var(--surface-2);font-size:.75rem;font-weight:600;line-height:1rem}.map-marker-start .map-marker-label{bottom:100%}.map-marker-end .map-marker-label{top:100%}.map-credit{display:inline-flex;align-items:center;min-height:var(--target)}.map-embed,.map-embed body,.map-embed .route-canvas{height:100%}.map-embed body{margin:0;overflow:hidden;background:var(--surface-2)}.route-line{fill:none;stroke:var(--primary);stroke-width:3;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.route-start{fill:var(--surface);stroke:var(--primary);stroke-width:3}.route-end,.route-dot{fill:var(--primary)}.route-label{fill:var(--text);paint-order:stroke;stroke:var(--surface-2);stroke-width:4;font-size:.75rem;font-weight:600;text-anchor:middle}.tabs{display:flex;flex-wrap:wrap;gap:var(--space-2);border-bottom:1px solid var(--border)}.tab{min-height:var(--target);padding:var(--space-2) var(--space-4);border:0;border-bottom:3px solid transparent;background:none;color:var(--text-muted);font:inherit;font-weight:600;cursor:pointer}.tab[aria-selected=true]{border-bottom-color:var(--primary);color:var(--text)}.invite-code{font-size:2.5rem;line-height:3rem;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.1em;-webkit-user-select:all;user-select:all}.danger-zone{border-color:var(--danger)}.logo-background{fill:var(--primary)}.logo-road{fill:none;stroke:var(--on-primary);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.logo-lane{fill:none;stroke:var(--primary);stroke-width:1.5;stroke-dasharray:2.5 4}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
