:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#181b20;background:#fff;font-size:14px}*{box-sizing:border-box}body{margin:0}#map{position:fixed;inset:0;background:white}.panel{position:absolute;top:24px;left:24px;width:370px;max-height:calc(100dvh - 48px);overflow:auto;background:#fff;border:1px solid #e4e5e7;border-radius:18px;box-shadow:0 8px 40px #18213518;padding:24px}header{display:flex;align-items:center;gap:12px;margin-bottom:28px}h1{font-size:20px;letter-spacing:-.7px;margin:0}header p{font-size:10px;color:#737881;margin:5px 0 0}.badge{font-size:8px;letter-spacing:1px;margin-left:auto;color:#737881}label{display:block;font-weight:600;font-size:12px;margin-bottom:9px}.input-row{display:flex;gap:8px}input{width:100%;min-width:0;background:#f7f8fa;border:1px solid #e2e5e9;border-radius:8px;padding:12px;font:inherit}button{cursor:pointer;border:0;border-radius:8px;background:#2563eb;color:white;font:inherit;font-size:12px;font-weight:600;padding:12px 14px}button:hover{filter:brightness(.93)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible{outline:3px solid #8ab4ff;outline-offset:2px}.quiet{background:#f1f3f5;color:#434953}.tools{display:flex;gap:7px;margin-top:20px;flex-wrap:wrap}.tools button{background:#eef3ff;color:#2357b7}.tools .quiet{color:#626a76;background:#f4f5f6}.muted{font-size:12px;line-height:1.6;color:#777e88}.reports{border-top:1px solid #eceef0;margin-top:22px;padding-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:center}h2{font-size:14px;margin:0}#report-count{background:#f2f3f5;border-radius:5px;padding:3px 7px;color:#68707d;font-size:11px}.wide{width:100%;background:#181b20}.reports p{margin:8px 0 14px}#report-form{margin-top:15px}#report-form .input-row{margin-top:8px}.result{display:block;text-align:left;background:#f5f7fa;color:#252a33;width:100%;margin-top:6px;line-height:1.5}.report-item{display:flex;gap:8px;align-items:center;border-bottom:1px solid #eee;padding:10px 0}.report-item .report-focus{flex:1;text-align:left;background:white;color:#464c56;padding:0;overflow-wrap:anywhere}.report-item .delete{background:#f4f4f4;color:#707780;padding:5px 8px}footer{font-size:10px;color:#858b94;margin-top:24px;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#3d424b}.route-key{width:14px;height:3px;background:#2563eb}#status{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);background:#171b22;color:#fff;padding:12px 20px;border-radius:10px;max-width:calc(100% - 32px);font-size:12px;box-shadow:0 4px 24px #0002;pointer-events:none}.map-caption{position:absolute;bottom:40px;right:20px;color:#636b76;letter-spacing:2px;font-size:9px;pointer-events:none}.map-caption span{display:block;text-align:right;margin-top:8px;letter-spacing:1px;color:#969ca5}.construction-marker{border:2px solid #fff;background:#e9a02b;color:#171b22;width:30px;height:30px;border-radius:9px;box-shadow:0 2px 8px #0004;font-size:17px;padding:0}.maplibregl-popup-content{font:13px system-ui;padding:16px;max-width:250px;overflow-wrap:anywhere}.maplibregl-ctrl-attrib{font-size:10px}body.picking .maplibregl-canvas-container{cursor:crosshair}@media(max-width:640px){.panel{top:12px;left:12px;width:calc(100% - 72px);padding:16px;max-height:48dvh;border-radius:12px}header{margin-bottom:16px}.badge{display:none}.map-caption{display:none}#status{bottom:40px;width:max-content;max-width:90%}.maplibregl-ctrl-top-right{top:5px}}
select{width:100%;padding:10px;margin:0 0 12px;border:1px solid #ddd;border-radius:8px;background:white;color:#181b20;font:inherit}#instructions{padding-left:24px;font-size:12px;line-height:1.7;max-height:220px;overflow:auto}summary{cursor:pointer;font-size:12px}button{background:#181b20}.tools button{background:#f1f3f5;color:#181b20}.construction-marker{background:#181b20;color:white}select:focus-visible{outline:3px solid #8ab4ff}

.brand{background:#16191e;color:#fff;width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:750;font-size:25px}.brand span{font-size:16px;color:#6da0ff}

.service-note{font-size:10px}.service-note a{color:inherit}.location-marker{width:16px;height:16px;border:3px solid white;border-radius:50%;background:#181b20;box-shadow:0 0 0 2px #181b20;cursor:pointer}
.admin-page{background:#f5f5f5}.admin-container{max-width:900px;margin:24px auto;background:white;padding:24px;border:1px solid #ddd;border-radius:12px}.admin-container a{color:inherit}.admin-container h2{margin:24px 0 12px}.admin-report{padding:16px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.admin-report button{margin:8px 8px 0 0}.admin-report p,.admin-container li{line-height:1.6;overflow-wrap:anywhere}@media(max-width:640px){.admin-container{margin:12px;padding:16px}.admin-report button{width:100%;margin-right:0}}button,input,select{min-height:44px}

/* Color belongs to report categories; the base interface remains monochrome. */
/* MapLibre translates markers from the map origin; keep them out of document flow. */
.report-marker{position:absolute;top:0;left:0;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:3px solid #fff;border-radius:50% 50% 50% 8px;background:var(--report-color,#f97316);color:var(--report-foreground,#181b20);box-shadow:0 0 0 1px #181b2033,0 3px 10px #0004;font-family:system-ui,sans-serif;font-size:24px;font-weight:800;line-height:1;text-align:center;cursor:pointer}
.report-marker:hover{filter:brightness(1.08)}.report-marker:focus-visible{outline:3px solid #181b20;outline-offset:3px}
.report-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:12px 0 16px}.report-legend-item{display:flex;align-items:center;gap:7px;font-size:11px;color:#464c56}
.report-swatch{display:inline-grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border:1px solid #181b2022;border-radius:6px;background:var(--report-color,#f97316);color:var(--report-foreground,#181b20);font-family:system-ui,sans-serif;font-size:16px;font-weight:800;line-height:1}.report-item>.report-swatch{align-self:flex-start;margin-top:3px}

.report-icon{display:block;width:28px;height:28px;pointer-events:none}.report-swatch .report-icon{width:18px;height:18px}

.report-options{border:0;padding:0;margin:0 0 16px;min-width:0}.report-options legend{font-weight:600;font-size:12px;margin-bottom:10px}.report-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-choice{display:flex;align-items:center;gap:8px;text-align:left;background:#f7f8fa;color:#181b20;border:2px solid transparent;padding:10px;min-height:58px}.report-choice[aria-pressed="true"]{border-color:#181b20;background:#eef0f3}.report-choice .report-swatch{flex-shrink:0}

.report-marker-speed{width:52px;height:52px;align-content:center;gap:2px}.report-speed-value{font-size:22px;line-height:1}.report-speed-unit{font-size:10px;line-height:1;font-weight:600}

.result-row{display:flex;align-items:stretch;gap:6px;margin-top:6px}.result-row .result{flex:1;min-width:0;margin:0}.result-directions{flex-shrink:0;align-self:center;padding:10px}.result:focus-visible,.result-directions:focus-visible{outline:3px solid #8ab4ff;outline-offset:2px}

.result-match{display:block;margin-top:5px;font-size:11px;font-weight:400;line-height:1.4}
.journey{border:1px solid #e4e5e7;border-radius:10px;padding:14px;margin-top:16px}.journey h2{margin-bottom:10px}.journey p{overflow-wrap:anywhere}.journey .input-row{flex-wrap:wrap}.journey-actions{margin-top:8px}

.brand{object-fit:contain;background:transparent}
#route-options{display:grid;gap:8px;margin:12px 0}.route-option{text-align:left;line-height:1.6;background:#f5f7fa;color:#252a33;border:2px solid transparent}.route-option[aria-pressed="true"]{border-color:#2563eb;background:#eef3ff}.route-option:focus-visible{outline:3px solid #8ab4ff;outline-offset:2px}

/* Preserve supplied raster bytes and use nearest-neighbor scaling for truck art. */
.report-marker-vdot{width:auto;height:auto;min-width:32px;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none}.vdot-truck{display:block;width:64px;height:auto;max-width:none;object-fit:contain;image-rendering:crisp-edges;image-rendering:pixelated}.roadwork-panel{position:fixed;z-index:5;top:24px;right:80px;width:340px;max-height:calc(100dvh - 48px);overflow:auto;background:#fff;color:#181b20;border:1px solid #dedfe2;border-radius:14px;padding:20px;box-shadow:0 8px 40px #18213525}.roadwork-panel[hidden]{display:none}.roadwork-panel h2{margin-top:16px}.roadwork-panel dt{font-size:12px;font-weight:700;margin-top:12px}.roadwork-panel dd{margin:4px 0;font-size:13px;overflow-wrap:anywhere}.roadwork-panel:focus{outline:2px solid #181b20}#roadwork-fields{margin:12px 0;border:1px solid #dedfe2;border-radius:8px}#roadwork-fields input{margin-bottom:10px}.admin-roadwork-form{margin:20px 0;padding:16px;border:1px solid #dedfe2;border-radius:10px}.admin-roadwork-form input,.admin-roadwork-form select{margin-bottom:10px}.admin-report .input-row{margin-top:10px}@media(max-width:640px){.roadwork-panel{inset:12px 12px auto;width:auto;max-height:calc(100dvh - 24px)}}

.vdot-art{object-fit:contain;image-rendering:crisp-edges;image-rendering:pixelated}

.report-marker-vdot:hover{filter:none}

@media(max-width:640px){input,select{font-size:16px}.panel{padding-top:max(16px,env(safe-area-inset-top))}}

.settings-launch{width:100%;margin-bottom:12px;min-height:44px}
#settings-dialog{width:480px;max-width:calc(100% - 48px);max-height:calc(100dvh - 24px);padding:24px;border:1px solid #e4e5e7;border-radius:18px;color:#181b20;background:#fff;box-shadow:0 16px 64px #18213535;overflow:auto}
#settings-dialog::backdrop{background:#181b2066}
.settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.settings-heading h2{font-size:22px;letter-spacing:-.5px}.settings-heading p{margin:8px 0 20px}
#settings-form fieldset{border:0;border-top:1px solid #eceef0;padding:8px 0 12px;margin:0}#settings-form legend{font-size:12px;font-weight:700;padding:0 8px 0 0;color:#626a76}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;margin:0;font-size:14px;cursor:pointer}.setting-row small{display:block;margin-top:6px;font-size:12px;font-weight:400;color:#737881;line-height:1.5}.setting-row input{width:22px;height:22px;flex:0 0 22px;accent-color:#2563eb;cursor:pointer}
#settings-dialog button{min-height:44px}
body.large-text .panel{font-size:16px}body.large-text .panel :is(.muted,button,label,select,input,.result){font-size:16px}body.large-text #navigation-info,body.large-text #route-summary{line-height:1.65}
/* Appearance changes preserve route and report colors. */
html[data-theme="dark"]{color-scheme:dark;background:#171b22;color:#edf0f5}
html[data-theme="dark"] :is(.panel,#settings-dialog,.roadwork-panel,.maplibregl-popup-content){background:#171b22;color:#edf0f5;border-color:#39414d}
html[data-theme="dark"] #map{background:#171b22}
html[data-theme="dark"] :is(input,select,.quiet,.tools button,.result,.report-choice,.route-option,.report-item .report-focus,.report-item .delete,#report-count){background:#272e39;color:#edf0f5;border-color:#455061}
html[data-theme="dark"] :is(button.wide,#search-button,.journey-actions>button:first-child){background:#e4e9f0;color:#171b22}
html[data-theme="dark"] :is(.muted,header p,.badge,footer,.setting-row small,.report-legend-item,.map-caption,.map-caption span){color:#b4becc}
html[data-theme="dark"] :is(.journey,.reports,.report-item,#settings-form fieldset,#roadwork-fields){border-color:#39414d}
html[data-theme="dark"] #settings-form legend{color:#b4becc}
html[data-theme="dark"] .route-option[aria-pressed="true"]{border-color:#70a2ff;background:#233452}
html[data-theme="dark"] .report-choice[aria-pressed="true"]{border-color:#e4e9f0;background:#39414d}
html[data-theme="dark"] .maplibregl-ctrl-group,html[data-theme="dark"] .maplibregl-ctrl-attrib{background:#d9dfe8;color:#171b22}
html[data-theme="dark"] .maplibregl-popup-tip{border-top-color:#171b22}
#settings-dialog select{margin-top:4px}#settings-dialog label[for]{margin-top:12px}

.location-icon-choice{display:flex;align-items:center;gap:16px;margin:6px 0}.location-icon-choice img{flex:0 0 64px;border-radius:12px;background:#eef3ff;padding:4px}.location-icon-choice select{margin:0;flex:1}
.location-marker.location-vehicle{width:48px;height:48px;border:0;border-radius:0;background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat;box-shadow:none;filter:drop-shadow(0 1px 2px #0007)}
html[data-theme="dark"] .location-icon-choice img{background:#303b4d}

.offline-area{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e2e5e9}.offline-area span{flex:1 1 180px;font-size:12px;line-height:1.5}#setting-voice-volume{padding:6px 0;accent-color:#2563eb}#settings-form button{margin:6px 0}#offline-areas:empty{display:none}
/* Camera colors describe experimental observations within the camera view. */
.traffic { margin:16px 0; border-top:1px solid #9ca3af; padding-top:10px; }
.traffic label { display:flex; align-items:center; gap:8px; }
.traffic input[type="checkbox"] { width:auto; }
.traffic-marker { width:30px; height:30px; padding:0; border:2px solid white; border-radius:50%; color:white; font-weight:bold; box-shadow:0 1px 5px #0008; }
.traffic-item { display:block; width:100%; text-align:left; margin:6px 0; }

.traffic-color-key{display:flex;flex-wrap:wrap;gap:8px 14px;margin:10px 0;font-size:12px}.traffic-color-key span{display:flex;align-items:center;gap:6px}.traffic-color-key i{display:inline-block;width:20px;height:5px;border-radius:3px}.traffic-key-flow{background:#16a34a}.traffic-key-slow{background:#ffc105}.traffic-key-congested{background:#dc2626}

.location-icon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.location-icon-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 4px;border:2px solid #d7d9dd;border-radius:10px;background:transparent;color:inherit;font-size:12px;cursor:pointer}.location-icon-grid button[aria-pressed="true"]{border-color:#2563eb;background:#eef3ff;color:#181b20}.location-icon-grid button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.location-icon-grid img{object-fit:contain}html[data-theme="dark"] .location-icon-grid button[aria-pressed="true"]{background:#303b4d;color:#edf0f5}

/* Animate child effects so MapLibre retains control of the marker transform. */
.location-helicopter::before{content:"";position:absolute;width:42px;height:42px;left:3px;top:-9px;background:linear-gradient(transparent 46%,#172b46 46% 54%,transparent 54%),linear-gradient(90deg,transparent 46%,#172b46 46% 54%,transparent 54%);border-radius:50%;pointer-events:none}
.location-helicopter.location-moving::before{animation:location-rotor .16s linear infinite}
@keyframes location-rotor{to{transform:rotate(360deg)}}
.location-jet.location-moving::before,.location-jet.location-moving::after{content:"";position:absolute;top:39px;width:9px;height:12px;border-radius:50%;background:radial-gradient(ellipse,#bac1cd 15%,#8893a399 45%,transparent 72%);pointer-events:none;opacity:0;animation:location-exhaust .9s ease-out infinite}
.location-jet.location-moving::before{left:15px}.location-jet.location-moving::after{right:15px;animation-delay:-.45s}
@keyframes location-exhaust{0%{opacity:0;transform:translateY(0) scale(.5)}20%{opacity:.8}100%{opacity:0;transform:translateY(32px) scale(2.4)}}
@media(prefers-reduced-motion:reduce){.location-helicopter.location-moving::before{animation:none}.location-jet.location-moving::before,.location-jet.location-moving::after{animation:none;opacity:.4;transform:translateY(7px)}}

/* Keep startup black while the first device location is acquired. */
#startup-loading{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#000;color:#fff;font-family:system-ui,sans-serif;text-align:center}
#startup-loading[hidden]{display:none}
#startup-loading .startup-brand{font-size:clamp(36px,8vw,64px);font-weight:600;letter-spacing:-2px}
#startup-loading .startup-message{margin-top:24px;font-size:16px;letter-spacing:2px}
#startup-loading p{margin-top:12px;color:#999;font-size:13px}
.startup-dots{animation:startup-pulse 1.4s ease-in-out infinite}
@keyframes startup-pulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.startup-dots{animation:none}}

/* Large, glanceable driving instructions; preserves the existing blue route. */
.driving-card{margin:14px 0;padding:18px;border-radius:14px;background:#103e2e;color:#fff}
.driving-card[hidden]{display:none}.driving-main{display:flex;align-items:center;gap:16px}.driving-arrow{font-size:62px;line-height:1;min-width:60px;text-align:center}.driving-main strong{font-size:26px;line-height:1.15}.driving-main p{font-size:18px;line-height:1.35;margin:8px 0 0}.driving-then{font-size:15px;line-height:1.4;border-top:1px solid #ffffff40;padding-top:12px;margin-bottom:8px}.driving-trip{font-size:12px;line-height:1.5;color:#d7ece2;margin-bottom:0}.driving-controls{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.driving-controls button{flex:1;min-width:96px;min-height:44px;padding:10px;font-size:12px}.driving-controls button[aria-pressed="true"]{background:#103e2e;color:white}#building-info{font-size:11px;line-height:1.5}

/* Search, directions and reports share the map without a full-height control list. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.search-shell{position:fixed;z-index:4;top:20px;left:88px;width:380px;border-radius:28px;background:#fff;color:#181b20;box-shadow:0 2px 12px #18213526;padding:6px 8px}
.search-shell .input-row{align-items:center;gap:2px}.search-shell input{border:0;background:transparent;border-radius:0;padding:10px 6px;font-size:15px;outline-offset:-2px}.search-shell button{background:transparent;color:inherit;font-size:24px;padding:6px 12px;flex-shrink:0}.search-shell #search-button{border-left:1px solid #e4e5e7;border-radius:0;font-size:30px}
.search-details{padding:0 14px}.search-details>summary{font-size:10px;color:#737881;padding:3px 0 5px}.search-details[open]{padding-bottom:10px}.search-shell #results:not(:empty){padding:8px;max-height:45dvh;overflow:auto}.search-shell:has(#results:not(:empty)),.search-shell:has(.search-details[open]){border-radius:24px}
.map-rail{position:fixed;z-index:4;top:20px;left:12px;width:64px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 4px;border-radius:20px;background:#fff;box-shadow:0 2px 12px #18213520}.map-rail button{display:grid;justify-items:center;gap:4px;background:transparent;color:#364152;padding:8px 2px;width:100%;font-size:25px}.map-rail button span{font-size:10px}.map-rail button:hover{background:#edf3ff;color:#2563eb}
.panel{position:fixed;top:120px;left:88px;width:380px;max-height:calc(100dvh - 144px);padding:0;border:0;border-radius:22px;box-shadow:0 4px 24px #18213520;overscroll-behavior:contain;scrollbar-width:thin;z-index:3}.sheet-handle{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;color:inherit;border-radius:0;padding:18px 22px;border-bottom:1px solid #eceef0;font-size:16px}.sheet-handle>span:first-child{display:none}.sheet-chevron{font-size:20px}.is-collapsed .sheet-chevron{transform:rotate(180deg)}#trip-content{padding:0 20px 18px}#trip-content[hidden]{display:none}.journey{margin:0;padding:18px 0 12px;border:0;border-radius:0}.trip-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.journey h2{font-size:22px;margin:0;letter-spacing:-.6px}.travel-mode{padding:7px 12px;border-radius:20px;background:#eaf1ff;color:#2459b4;font-size:12px}
#start-info,#destination-info{position:relative;background:#f4f6f8;border-radius:12px;padding:14px 12px 14px 32px;margin:8px 0;color:inherit;font-size:13px;line-height:1.5}#start-info:before,#destination-info:before{position:absolute;left:12px;top:16px;content:'○';color:#2563eb;font-weight:800}#destination-info:before{content:'●'}.journey .endpoint-actions button{flex:1;background:transparent;color:#2563eb;padding:8px}.journey-actions button{flex:1}.journey>p:last-child{font-size:11px;margin-bottom:0}#route-summary{font-size:15px;line-height:1.6;color:inherit;border-top:1px solid #eceef0;padding-top:16px}.trip-primary>button{width:100%;background:#2563eb;color:#fff;border-radius:24px;font-size:15px;padding:14px}.location-tools{margin:14px 0}.location-tools summary{padding:10px 0;color:#737881}.location-tools .tools{margin-top:0}.panel footer,.panel>.service-note{display:none}#route-options:empty{display:none}#route-options .route-option{border-radius:14px;padding:14px}.panel details:has(#instructions:empty){display:none}
#reports-dialog{width:440px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:24px;border:0;border-radius:24px;background:#fff;color:#181b20;box-shadow:0 12px 48px #18213535;overscroll-behavior:contain}#reports-dialog::backdrop{background:#181b204d}#reports-dialog .reports{border:0;margin-top:0}#reports-dialog .reports>.section-heading{display:none}.quick-map-settings{margin-bottom:22px}.quick-map-settings h3{font-size:15px}.quick-map-settings .traffic{border-color:#eceef0}.quick-map-settings .traffic h2{font-size:16px;margin-bottom:12px}.quick-map-settings input[type=checkbox]{min-height:24px;accent-color:#2563eb}.quick-map-settings .driving-controls{display:grid;grid-template-columns:1fr 1fr}.quick-map-settings #preview-guidance{grid-column:1 / -1;grid-row:2}#settings-dialog{border-radius:24px}html[data-theme=dark] :is(.search-shell,.map-rail,#reports-dialog){background:#171b22;color:#edf0f5}html[data-theme=dark] :is(#start-info,#destination-info){background:#272e39}html[data-theme=dark] .map-rail button{color:#edf0f5}html[data-theme=dark] :is(.sheet-handle,#route-summary){border-color:#39414d}
@media(max-width:640px){
  .search-shell{top:max(12px,env(safe-area-inset-top));left:12px;right:12px;width:auto}.search-shell input{font-size:16px}.map-rail{top:126px;left:auto;right:12px;width:60px;gap:6px;padding:8px 4px}.map-rail>img{display:none}.panel{inset:auto 0 0;width:100%;max-height:47dvh;border-radius:24px 24px 0 0;padding:0 0 env(safe-area-inset-bottom);box-shadow:0 -4px 24px #18213520}.sheet-handle{position:relative;padding:22px 22px 12px;min-height:62px}.sheet-handle>span:first-child{display:block;position:absolute;top:8px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:#d2d6dd}#trip-content{padding:0 20px 12px}.journey{padding-top:14px}.maplibregl-ctrl-top-right{top:282px;right:2px}.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:48dvh}#status{bottom:calc(48dvh + 12px);font-size:11px;padding:8px 12px;z-index:2}.map-caption{display:none}#settings-dialog{max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:20px}#reports-dialog{padding:20px}.roadwork-panel{z-index:6;max-height:70dvh}.panel.is-collapsed{max-height:86px}body:has(.panel.is-collapsed) #status{bottom:100px}body:has(.panel.is-collapsed) .maplibregl-ctrl-bottom-right,body:has(.panel.is-collapsed) .maplibregl-ctrl-bottom-left{bottom:88px}
}
@media(max-height:500px) and (min-width:641px){.panel{top:112px;max-height:calc(100dvh - 124px)}.search-shell{top:12px}.map-rail{top:12px}}
.endpoint-row{display:flex;align-items:center;gap:6px;background:#f4f6f8;border-radius:12px;margin:8px 0}.endpoint-row p{flex:1;min-width:0}#start-info,#destination-info{margin:0;background:transparent}.endpoint-row button{background:transparent;color:#2563eb;flex-shrink:0;margin-right:4px}.map-rail .brand{width:36px;height:36px;flex-basis:36px}.journey{padding-bottom:0}.trip-heading{margin-bottom:12px}html[data-theme=dark] .endpoint-row{background:#272e39}
@media(max-width:640px){.map-rail .brand{display:none}.journey h2{font-size:18px}.trip-heading{margin-bottom:10px}.panel .journey{padding-top:12px}#route-summary{margin:10px 0;padding-top:10px}}

/* Kalkan Explorer: full-bleed map and contextual surfaces. */
:root{--surface:#fff;--ink:#202731;--secondary:#697583;--line:#e5e9ed;--soft:#f3f6f8;--accent:#2563eb;--shadow:0 6px 28px #13243d20}html[data-theme=dark]{--surface:#171f2a;--ink:#eef3fa;--secondary:#adb9ca;--line:#354150;--soft:#242f3e;--accent:#8ab4ff;--shadow:0 6px 28px #0005}body{color:var(--ink)}button,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #75a6ff;outline-offset:3px}button{transition:background .15s,color .15s,box-shadow .15s}a{color:var(--accent)}.muted{color:var(--secondary)}
.search-shell{left:92px;width:400px;top:20px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);border:1px solid var(--line)}.search-shell .input-row{min-height:48px}.search-shell input{color:inherit}.search-details>summary{padding-bottom:6px}.search-shell .result-row{border-top:1px solid var(--line);gap:4px;padding:6px 0}.search-shell .result{position:relative;padding:12px 10px 12px 44px;background:transparent;color:var(--ink);font-size:13px;line-height:1.6}.result-number{position:absolute;left:9px;top:14px;background:var(--accent);color:var(--surface);border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:12px;font-weight:700}.search-shell .result-directions{font-size:11px;background:var(--soft);border-radius:20px;padding:10px;max-width:85px;color:var(--accent)}.search-shell #search-button{display:grid;place-items:center;min-width:44px}.search-shell #results:not(:empty){max-height:min(440px,52dvh)}
.category-strip{position:fixed;z-index:3;top:112px;left:92px;display:flex;gap:8px;max-width:calc(100vw - 180px);overflow-x:auto;scrollbar-width:none;padding:2px 2px 6px}.category-strip button{border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);padding:9px 16px;white-space:nowrap;box-shadow:0 2px 6px #18213512;font-size:12px;min-height:40px}.category-strip button[aria-pressed=true]{background:#e9f1ff;color:#1648a9;border-color:#acc6ff}
.map-rail{background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);width:64px;gap:8px}.map-rail button{color:var(--secondary);font-size:24px;border-radius:12px}.map-rail button span{font-size:10px;font-weight:500}.map-rail button:hover{background:var(--soft);color:var(--accent)}
.panel{left:92px;top:172px;width:400px;max-height:calc(100dvh - 196px);background:var(--surface);color:var(--ink);box-shadow:var(--shadow);border:1px solid var(--line)}.sheet-handle{border-color:var(--line);font-size:14px;font-weight:600;padding:16px 20px;min-height:56px}.panel[data-panel=explore] :is(#place-details,#directions-content),.panel[data-panel=place] :is(#explore-content,#directions-content),.panel[data-panel=directions] :is(#explore-content,#place-details){display:none}#explore-content,#place-details{padding:24px 0 4px}#explore-content h2{font-size:27px;letter-spacing:-1px;line-height:1.22;max-width:270px}#explore-content>.muted{font-size:13px;line-height:1.8;margin:14px 0 22px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:var(--secondary);margin:0 0 14px}#place-name{font-size:24px;letter-spacing:-.7px;line-height:1.3;overflow-wrap:anywhere}.place-actions{display:flex;gap:8px;margin:20px 0}.place-actions button{border-radius:24px;flex:1;min-height:46px}.place-actions button:first-child{background:#2563eb;color:#fff}.place-actions button[aria-pressed=true]{background:#eaf1ff;color:#174ca5}#place-coordinates{font-variant-numeric:tabular-nums;border-top:1px solid var(--line);padding-top:16px}#share-link{font-size:12px}.map-actions{position:fixed;z-index:4;right:12px;bottom:90px;display:flex;flex-direction:column;gap:10px}.map-actions button{width:48px;height:48px;border-radius:50%;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);border:1px solid var(--line);font-size:16px;padding:8px}.map-actions #current-location{font-size:29px}.map-actions .has-location{color:var(--accent);background:#eaf1ff}.location-chip{position:fixed;z-index:2;bottom:24px;left:50%;transform:translateX(-50%);background:var(--surface);color:var(--ink);padding:8px 14px;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);font-size:11px;max-width:calc(100vw - 40px)}.location-chip[hidden]{display:none}
.endpoint-search{background:var(--soft);border:1px solid var(--line);color:var(--ink);font-size:14px;border-radius:12px;margin:5px 0;padding:13px 14px}.endpoint-row{background:transparent;margin:0 0 6px;min-height:28px}.endpoint-row p{font-size:10px!important;padding:2px 4px!important;color:var(--secondary)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.endpoint-row p:before{display:none}.endpoint-row button{font-size:10px;padding:0 8px;min-height:28px;line-height:1}.trip-heading{gap:10px}.trip-heading .travel-mode{margin-left:auto}.trip-heading #swap-route{border-radius:50%;width:44px;font-size:20px;padding:8px}.trip-primary{margin-top:16px}.journey-actions{display:flex;gap:8px}.location-tools .tools{gap:8px}.location-tools{border-bottom:1px solid var(--line);padding-bottom:6px}.panel #route-summary{border-color:var(--line);font-size:14px}.panel footer,.panel .service-note{display:none}.panel details:has(#instructions){margin-top:14px}.search-result-pin{position:absolute;top:0;left:0;width:32px;height:32px;min-height:32px;border:2px solid #fff;border-radius:50% 50% 50% 4px;background:#2563eb;color:#fff;padding:0;box-shadow:0 3px 8px #162d5740;font-size:13px;display:grid;place-items:center}
:is(#saved-dialog,#layers-dialog){width:460px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);padding:24px;box-shadow:var(--shadow);overscroll-behavior:contain}:is(#saved-dialog,#layers-dialog)::backdrop{background:#101c3260;backdrop-filter:blur(3px)}.layer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.layer-grid button{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:14px;padding:12px;min-height:48px}.layer-grid button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}.layer-thumbnail{display:block;height:64px;border-radius:8px;margin-bottom:10px}.street-thumbnail{background:linear-gradient(35deg,transparent 43%,#fff 44% 49%,#a9b6c4 50% 51%,#fff 52% 57%,transparent 58%),linear-gradient(-35deg,#dfe8da 30%,#f3eee5 31% 60%,#daedf5 61%)}.satellite-thumbnail{background:radial-gradient(ellipse at 40% 40%,#70906d 0 12%,#3b624b 13% 30%,#254c4a 31% 40%,#234a70 41% 60%,#14395c 61%);opacity:.85}.library-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:6px 0}.library-place,.recent-place{background:transparent;color:var(--ink);text-align:left;font-size:13px;line-height:1.6}.library-place{flex:1}.recent-place{display:block;width:100%;border-bottom:1px solid var(--line);padding:12px 0}.library-row>.quiet{font-size:11px;padding:8px}.gps-help{background:var(--soft);padding:14px;border-radius:14px;margin:12px 0}.gps-help h3{font-size:14px;margin-top:0}#settings-form .gps-help p{margin-bottom:0}.map-caption{display:none}#status{bottom:64px;font-size:11px;z-index:2}.maplibregl-ctrl-attrib{max-width:min(65vw,650px)}
@media(max-width:640px){
  .search-shell{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));width:auto}.category-strip{left:12px;right:12px;top:calc(max(12px,env(safe-area-inset-top)) + 94px);max-width:none;gap:6px}.category-strip button{padding:8px 14px;min-height:38px;font-size:12px}.map-rail{top:calc(max(12px,env(safe-area-inset-top)) + 150px);left:auto;right:12px;width:48px;padding:4px 2px;gap:2px;border-radius:18px}.map-rail button{padding:6px 2px;min-height:42px;font-size:21px}.map-rail button span{display:none}.map-rail .brand{display:none}.panel{inset:auto 0 0;width:100%;max-height:47dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom);border-bottom:0}.panel .sheet-handle{padding-top:23px;min-height:60px}.panel.is-collapsed{max-height:86px}.map-actions{right:72px;bottom:calc(47dvh + 16px);gap:8px}.map-actions button{width:44px;height:44px}.maplibregl-ctrl-top-right{top:calc(max(12px,env(safe-area-inset-top)) + 150px);right:72px}.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:calc(47dvh + 4px)}.location-chip{bottom:calc(47dvh + 8px);max-width:calc(100% - 150px);left:12px;transform:none;font-size:10px;line-height:1.5;padding:7px 10px}#status{bottom:calc(47dvh + 48px);max-width:calc(100% - 140px);left:12px;transform:none;font-size:10px;line-height:1.5}body:has(.panel.is-collapsed) .map-actions{bottom:108px}body:has(.panel.is-collapsed) :is(.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left){bottom:88px}body:has(.panel.is-collapsed) #status{bottom:150px}body:has(.panel.is-collapsed) .location-chip{bottom:106px}#explore-content,#place-details{padding-top:20px}#explore-content h2{font-size:24px}.endpoint-search{font-size:16px}.search-shell #results:not(:empty){max-height:42dvh}.maplibregl-ctrl-attrib{max-width:70vw}
}
@media(max-height:500px){.category-strip{top:100px}.panel{top:152px;max-height:calc(100dvh - 164px)}.map-rail{gap:0;top:10px}.map-rail button{min-height:36px}.map-rail button span{display:none}.map-rail .brand{display:none}}
@media(prefers-reduced-motion:reduce){button{transition:none}dialog::backdrop{backdrop-filter:none}}
.trip-location{background:transparent;color:var(--accent);font-size:12px;padding:4px 0;min-height:36px;text-align:left}.search-shell #query::placeholder{color:var(--secondary)}#directions-content[hidden],#place-details[hidden]{display:none}
