@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#081017;
  --panel:rgba(13,20,28,.78);
  --panel-strong:rgba(9,15,22,.96);
  --border:rgba(255,255,255,.12);
  --text:#f5f8fb;
  --muted:#99a8b8;
  --cyan:#62e9ff;
  --cyan-2:#21b7ff;
  --amber:#ffb34d;
  --danger:#ff6677;
  --shadow:0 18px 50px rgba(0,0,0,.30);
  --safe-top:max(14px,env(safe-area-inset-top));
  --safe-bottom:max(14px,env(safe-area-inset-bottom));
}

*{box-sizing:border-box}
html,body,#app,#map{width:100%;height:100%;margin:0}
html,body{background:var(--bg);overflow:hidden;font-family:Inter,Segoe UI,system-ui,sans-serif;color:var(--text)}
button,input{font:inherit}
button{color:inherit;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#app{position:relative;isolation:isolate}
#map{position:absolute;inset:0;background:#0b141d}
.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{display:none}

.map-vignette{
  position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(180deg,rgba(2,7,11,.42) 0%,rgba(2,7,11,0) 25%,rgba(2,7,11,0) 67%,rgba(2,7,11,.40) 100%);
}
body.navigation-active .map-vignette{
  background:linear-gradient(180deg,rgba(2,7,11,.55) 0%,rgba(2,7,11,0) 27%,rgba(2,7,11,0) 67%,rgba(2,7,11,.52) 100%);
}

.glass{
  background:var(--panel);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(22px) saturate(125%);
  -webkit-backdrop-filter:blur(22px) saturate(125%);
}

.top-shell{
  position:absolute;z-index:10;top:var(--safe-top);left:14px;right:14px;
  display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;
  transition:opacity .22s ease,transform .22s ease;
}
.icon-btn,.rail-btn{
  width:48px;height:48px;border-radius:17px;border:1px solid var(--border);
  display:grid;place-items:center;padding:0;cursor:pointer;
}
.search-pill{
  height:54px;border-radius:19px;padding:7px 12px 7px 14px;border:1px solid var(--border);
  display:grid;grid-template-columns:29px 1fr 32px;align-items:center;gap:9px;text-align:left;cursor:pointer;
}
.search-icon,.voice-icon{display:grid;place-items:center;color:#d8e6f2}
.search-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.search-copy strong{font-size:15px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.search-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.voice-icon{width:32px;height:32px;border-radius:12px;background:rgba(255,255,255,.07)}

.right-rail{
  position:absolute;right:14px;top:50%;transform:translateY(-42%);z-index:10;
  display:flex;flex-direction:column;gap:9px;
}
.rail-btn{position:relative;width:46px;height:46px;border-radius:16px}
.north{position:absolute;font-size:8px;font-weight:800;top:4px;color:var(--cyan)}

.report-fab{
  position:absolute;right:14px;bottom:137px;z-index:13;
  height:52px;border:0;border-radius:18px;padding:0 17px 0 12px;
  display:flex;align-items:center;gap:9px;cursor:pointer;
  font-weight:700;font-size:13px;letter-spacing:-.01em;
  background:linear-gradient(145deg,#ffbd63,#ff955b);
  color:#241509;box-shadow:0 14px 35px rgba(190,101,35,.28),inset 0 1px 0 rgba(255,255,255,.5);
  transition:all .24s ease;
}
body.navigation-active .report-fab{
  width:50px;height:50px;border-radius:18px;padding:0;bottom:106px;right:14px;justify-content:center;
}
body.navigation-active .report-fab>span:last-child{display:none}
body.navigation-active .report-icon{background:transparent}
.report-icon{width:32px;height:32px;border-radius:12px;background:rgba(255,255,255,.25);display:grid;place-items:center}
.report-icon svg{width:19px;height:19px;stroke-width:2.1}

.bottom-dock{
  position:absolute;left:14px;right:14px;bottom:var(--safe-bottom);z-index:10;
  min-height:94px;border-radius:25px;padding:10px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;
}
.vehicle-chip{
  border:0;background:transparent;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;
  gap:10px;align-items:center;text-align:left;padding:8px 7px;min-width:0;cursor:pointer;
}
.vehicle-icon{
  width:42px;height:42px;border-radius:15px;background:rgba(98,233,255,.10);
  color:var(--cyan);display:grid;place-items:center;border:1px solid rgba(98,233,255,.14)
}
.vehicle-chip span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.vehicle-chip small{font-size:8px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.vehicle-chip strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chev{width:18px;color:var(--muted)}
.start-btn{
  border:0;min-width:126px;border-radius:18px;padding:0 15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:7px;
  background:linear-gradient(145deg,var(--cyan),#34a9ff);color:#03131a;
  font-weight:800;font-size:12px;box-shadow:0 10px 28px rgba(33,183,255,.23)
}
.start-btn svg{width:17px;height:17px;stroke-width:2.3}

/* Route preview */
.route-preview-card{
  position:absolute;z-index:14;left:14px;right:14px;bottom:var(--safe-bottom);
  min-height:116px;border-radius:26px;padding:14px;
  display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:12px;align-items:stretch;
}
.preview-destination{display:flex;flex-direction:column;justify-content:center;min-width:0;padding-left:3px}
.preview-destination small,.nav-eyebrow{
  font-size:8px;font-weight:800;letter-spacing:.15em;color:var(--cyan)
}
.preview-destination strong{font-size:17px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-destination span{font-size:11px;color:var(--muted);margin-top:6px}
.preview-close{
  position:absolute;
  right:154px;
  top:12px;
  width:32px;
  height:32px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.055);
  border-radius:12px;
  color:#aebbc6;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:2;
}
.preview-close:active{
  background:rgba(255,255,255,.10);
}
.preview-destination{
  padding-right:40px;
}
.navigation-start{
  border:0;border-radius:20px;background:linear-gradient(145deg,var(--cyan),#34a9ff);
  color:#03131a;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  box-shadow:0 10px 28px rgba(33,183,255,.23)
}
.navigation-start span{display:flex;flex-direction:column;text-align:left}
.navigation-start small{font-size:8px;font-weight:800;letter-spacing:.13em;opacity:.7}
.navigation-start strong{font-size:13px}
.navigation-start svg{width:22px;height:22px;stroke-width:2.4}

/* Full navigation mode */
.nav-card{
  position:absolute;z-index:15;top:var(--safe-top);left:14px;right:14px;
  min-height:126px;border-radius:28px;padding:14px;
  display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;align-items:center;
  background:rgba(8,14,20,.90);
  border-color:rgba(255,255,255,.13);
}
.manoeuvre-icon{
  width:90px;height:96px;border-radius:24px;background:linear-gradient(145deg,rgba(98,233,255,.18),rgba(33,183,255,.07));
  color:var(--cyan);display:grid;place-items:center;border:1px solid rgba(98,233,255,.17)
}
.manoeuvre-icon svg{width:61px;height:61px;stroke-width:3.2}
.manoeuvre-copy{min-width:0}
.nav-eyebrow{margin-bottom:5px}
.distance{font-size:35px;font-weight:800;letter-spacing:-.055em;line-height:1}
.instruction{margin-top:7px;font-size:15px;font-weight:600;line-height:1.25;color:#d9e3eb;white-space:normal}
.instruction strong{color:#fff;font-weight:800}
.then-instruction{font-size:10px;color:var(--muted);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav-live-pill{
  position:absolute;z-index:14;top:calc(var(--safe-top) + 136px);left:14px;
  height:30px;border-radius:13px;padding:0 11px;display:flex;align-items:center;gap:7px;
  font-size:8px;font-weight:800;letter-spacing:.12em;color:#dce8ef;
}
.live-dot{width:7px;height:7px;border-radius:50%;background:#6df7a3;box-shadow:0 0 0 4px rgba(109,247,163,.11)}

.nav-right-rail{position:absolute;z-index:14;right:14px;top:calc(var(--safe-top) + 145px)}
.speed-hud{
  position:absolute;z-index:14;left:14px;bottom:106px;width:62px;height:67px;border-radius:21px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.speed-hud strong{font-size:27px;line-height:1;font-weight:800;letter-spacing:-.05em}
.speed-hud span{font-size:8px;color:var(--muted);margin-top:4px;font-weight:700}

.trip-card{
  position:absolute;z-index:15;left:14px;right:14px;bottom:var(--safe-bottom);
  min-height:82px;border-radius:24px;padding:10px 10px 10px 16px;
  display:grid;grid-template-columns:1.1fr .9fr auto;align-items:center;gap:10px;
  background:rgba(8,14,20,.90);
}
.trip-card div{display:flex;flex-direction:column;gap:3px}
.trip-card strong{font-size:17px}
.trip-card small{font-size:9px;color:var(--muted)}
.trip-card button{
  height:48px;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:0 18px;
  background:rgba(255,255,255,.07);font-weight:700;cursor:pointer
}
.recalculating{
  position:absolute;z-index:18;left:50%;top:calc(var(--safe-top) + 180px);transform:translateX(-50%);
  height:38px;border-radius:15px;padding:0 13px;display:flex;align-items:center;gap:9px;
  white-space:nowrap;font-size:10px;font-weight:700;
}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:var(--cyan);animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Sheets */
.sheet-backdrop{
  position:absolute;inset:0;z-index:20;background:rgba(2,6,10,.48);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.bottom-sheet{
  position:absolute;z-index:21;left:0;right:0;bottom:0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius:30px 30px 0 0;background:var(--panel-strong);border-top:1px solid rgba(255,255,255,.13);
  box-shadow:0 -25px 70px rgba(0,0,0,.38);animation:sheetIn .22s ease-out;
  max-height:min(82vh,720px);overflow:auto;
}
@keyframes sheetIn{from{transform:translateY(18px);opacity:0}to{transform:none;opacity:1}}
.sheet-handle{width:42px;height:4px;border-radius:999px;background:rgba(255,255,255,.22);margin:2px auto 18px}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.sheet-head small{font-size:9px;font-weight:800;letter-spacing:.13em;color:var(--cyan)}
.sheet-head h2{font-size:24px;letter-spacing:-.04em;margin:5px 0 0}
.sheet-close{width:38px;height:38px;border:0;border-radius:13px;background:rgba(255,255,255,.08);font-size:24px;color:var(--muted);cursor:pointer}
.report-location{margin:10px 0 16px;font-size:11px;color:var(--muted)}
.issue-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.issue-grid button{
  min-height:82px;border:1px solid rgba(255,255,255,.09);border-radius:19px;background:rgba(255,255,255,.05);
  display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:14px;text-align:left;cursor:pointer;
}
.issue-grid button span{font-size:22px;color:var(--amber);font-weight:800}
.issue-grid button strong{font-size:12px}
.sheet-note,.search-credit{font-size:9px;color:#7e8b99;text-align:center;margin:16px 0 3px}

/* Address search */
.search-sheet{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.address-search-wrap{
  height:56px;border-radius:19px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);
  display:grid;grid-template-columns:28px minmax(0,1fr) 32px;align-items:center;gap:8px;padding:0 11px 0 14px;margin-top:16px;
}
.address-search-wrap svg{width:20px;color:#d6e3ec}
.address-search-wrap input{
  width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:15px;font-weight:600;min-width:0
}
.address-search-wrap input::placeholder{color:#798795}
.clear-search{width:30px;height:30px;border:0;border-radius:11px;background:rgba(255,255,255,.07);color:var(--muted);font-size:19px}
.search-status{font-size:10px;color:var(--muted);padding:14px 4px 5px}
.section-label{font-size:8px;font-weight:800;letter-spacing:.14em;color:#738494;margin:18px 4px 8px}
.destination-list,.search-results{display:flex;flex-direction:column;gap:8px}
.destination-list:empty + .section-label{}
.destination-list button,.search-result{
  border:1px solid rgba(255,255,255,.085);background:rgba(255,255,255,.045);border-radius:18px;
  min-height:68px;padding:10px 13px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:center;text-align:left;cursor:pointer;
}
.dest-dot,.result-pin{
  width:12px;height:12px;border-radius:999px;background:var(--cyan);box-shadow:0 0 0 6px rgba(98,233,255,.09);justify-self:center
}
.search-result>span:last-child,.destination-list button>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.search-result strong,.destination-list strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result small,.destination-list small{font-size:10px;color:var(--muted);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result .distance-away{color:var(--cyan);font-size:9px}

/* Branded map popup */
.custom-nav-map-popup .maplibregl-popup-content{
  background:rgba(9,15,22,.94);color:var(--text);border:1px solid rgba(255,255,255,.11);
  border-radius:22px;padding:12px;box-shadow:0 18px 45px rgba(0,0,0,.32);
  backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);
}
.custom-nav-map-popup .maplibregl-popup-tip{border-top-color:rgba(9,15,22,.94)!important}
.custom-nav-map-popup .maplibregl-popup-close-button{display:none}
.tap-route-card{min-width:196px;display:flex;flex-direction:column;gap:10px}
.tap-route-meta{display:flex;flex-direction:column;gap:4px}
.tap-route-meta small{font-size:8px;font-weight:800;letter-spacing:.14em;color:var(--cyan)}
.tap-route-meta strong{font-size:18px;line-height:1.05;letter-spacing:-.03em}
.tap-route-meta span{font-size:10px;color:var(--muted)}
.tap-route-btn{
  border:0;border-radius:15px;min-height:44px;padding:0 15px;
  background:linear-gradient(145deg,var(--cyan),#34a9ff);color:#03131a;font-weight:800;font-size:12px;cursor:pointer;
}

/* Driver-reported road issue popup */
.custom-nav-issue-popup .maplibregl-popup-content{
  background:
    linear-gradient(145deg,rgba(69,30,20,.97),rgba(24,18,18,.97));
  color:#fff7f1;
  border:1px solid rgba(255,153,84,.42);
  border-radius:22px;
  padding:0;
  overflow:hidden;
  box-shadow:
    0 20px 48px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,102,72,.06),
    0 0 28px rgba(255,120,63,.10);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
}
.custom-nav-issue-popup .maplibregl-popup-tip{
  border-top-color:rgba(45,23,19,.97)!important;
}
.custom-nav-issue-popup .maplibregl-popup-close-button{
  color:#ffd9c5;
  top:8px;
  right:8px;
  width:30px;
  height:30px;
  border-radius:11px;
  font-size:20px;
  line-height:28px;
  background:rgba(255,255,255,.07);
}
.custom-nav-issue-popup .maplibregl-popup-close-button:hover{
  background:rgba(255,255,255,.11);
}
.issue-popup-card{
  min-width:218px;
  padding:14px 15px 15px;
}
.issue-popup-kicker{
  display:flex;
  align-items:center;
  gap:7px;
  padding-right:34px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.15em;
  color:#ffb36b;
}
.issue-popup-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:3px;
  background:#ff9b54;
  box-shadow:0 0 0 4px rgba(255,155,84,.10);
}
.issue-popup-title{
  display:block;
  margin-top:10px;
  font-size:18px;
  line-height:1.08;
  letter-spacing:-.03em;
  color:#fff8f4;
}
.issue-popup-copy{
  display:block;
  margin-top:6px;
  font-size:10px;
  line-height:1.4;
  color:#d9b9a9;
}
.issue-popup-status{
  display:inline-flex;
  align-items:center;
  margin-top:12px;
  padding:6px 9px;
  border-radius:10px;
  background:rgba(255,141,77,.10);
  border:1px solid rgba(255,159,92,.15);
  color:#ffc296;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}


/* Markers */
.user-marker-shell{width:40px;height:40px;display:grid;place-items:center}
.user-marker{
  width:27px;height:27px;border-radius:50%;background:#f5fbff;border:5px solid #209eff;
  box-shadow:0 0 0 6px rgba(32,158,255,.21),0 4px 18px rgba(0,0,0,.35);transition:all .2s ease;
}
.user-marker.navigation{
  width:26px;height:34px;border:0;border-radius:8px 8px 15px 15px;background:linear-gradient(180deg,#dffaff,#23b7ff);
  clip-path:polygon(50% 0,100% 76%,70% 68%,50% 100%,30% 68%,0 76%);
  box-shadow:0 5px 18px rgba(0,0,0,.36),0 0 0 5px rgba(33,183,255,.15);
}
.destination-marker{
  width:30px;height:30px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);
  background:var(--cyan);border:3px solid rgba(255,255,255,.92);box-shadow:0 8px 22px rgba(0,0,0,.35);position:relative
}
.destination-marker::after{
  content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#07131a;left:8px;top:8px
}
.issue-marker{width:30px;height:30px;border-radius:12px;background:var(--amber);color:#211407;display:grid;place-items:center;border:2px solid rgba(255,255,255,.6);box-shadow:0 7px 20px rgba(0,0,0,.28);font-weight:900}

/* Feedback */
.toast{
  position:absolute;z-index:30;left:50%;transform:translateX(-50%);bottom:137px;
  max-width:calc(100vw - 34px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:12px 16px;border-radius:15px;background:#f2f7fb;color:#0d1720;font-size:11px;font-weight:700;
  box-shadow:0 12px 35px rgba(0,0,0,.26);animation:toastIn .18s ease-out;
}
body.navigation-active .toast{bottom:108px}
@keyframes toastIn{from{transform:translate(-50%,10px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
.hidden{display:none!important}

@media (min-width:800px){
  .top-shell{left:22px;right:auto;width:520px}
  .right-rail{right:22px}
  .bottom-dock,.route-preview-card{left:22px;right:auto;width:520px;bottom:22px}
  .report-fab{right:22px;bottom:22px}
  body.navigation-active .report-fab{right:22px;bottom:22px}
  .nav-card{left:22px;right:auto;width:520px}
  .nav-live-pill{left:22px}
  .nav-right-rail{right:22px}
  .speed-hud{left:22px;bottom:22px}
  .trip-card{left:96px;right:auto;width:446px;bottom:22px}
  .bottom-sheet{left:auto;right:22px;bottom:22px;width:410px;border-radius:28px;padding-bottom:20px;border:1px solid rgba(255,255,255,.12)}
  .sheet-backdrop{background:rgba(2,6,10,.20)}
  .toast{bottom:32px}
}


/* V0.5 — truck routing / long press */
.route-engine-badge{
  display:inline-flex;
  width:max-content;
  align-items:center;
  margin-top:9px;
  padding:6px 8px;
  border-radius:9px;
  font-size:7px!important;
  line-height:1;
  font-weight:800;
  letter-spacing:.11em;
  color:#8ef2c0!important;
  background:rgba(80,224,151,.09);
  border:1px solid rgba(80,224,151,.16);
}
.route-engine-badge.fallback{
  color:#ffc184!important;
  background:rgba(255,164,84,.09);
  border-color:rgba(255,164,84,.17);
}

.vehicle-intro{
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  margin:10px 0 15px;
}
.vehicle-presets{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.vehicle-presets button{
  min-height:72px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:17px;
  padding:11px;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}
.vehicle-presets button.active{
  border-color:rgba(98,233,255,.36);
  background:rgba(98,233,255,.09);
  box-shadow:inset 0 0 0 1px rgba(98,233,255,.05);
}
.vehicle-presets strong{font-size:12px}
.vehicle-presets small{font-size:9px;color:var(--muted);line-height:1.3}

.vehicle-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:14px;
}
.vehicle-fields label{
  min-height:67px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:9px 11px;
}
.vehicle-fields label>span{
  display:block;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.vehicle-fields label>div{
  display:flex;
  align-items:baseline;
  gap:5px;
}
.vehicle-fields input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:18px;
  font-weight:800;
}
.vehicle-fields em{
  font-size:10px;
  font-style:normal;
  color:var(--muted);
}
.save-vehicle{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:17px;
  margin-top:13px;
  background:linear-gradient(145deg,var(--cyan),#34a9ff);
  color:#03131a;
  font-weight:800;
  cursor:pointer;
}
.vehicle-warning{
  margin-top:12px;
  border-radius:14px;
  padding:10px 11px;
  background:rgba(255,179,77,.065);
  border:1px solid rgba(255,179,77,.11);
  color:#bca58e;
  font-size:9px;
  line-height:1.4;
}

.long-press-hint{
  position:absolute;
  z-index:9;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(var(--safe-bottom) + 104px);
  height:34px;
  padding:0 12px;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#c5d0d9;
  font-size:9px;
  font-weight:700;
  pointer-events:none;
  transition:opacity .25s ease;
}
body.navigation-active .long-press-hint,
body.route-preview-active .long-press-hint{
  opacity:0;
}
.hold-ring{
  width:13px;
  height:13px;
  border:2px solid var(--cyan);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(98,233,255,.08);
}

/* Make report markers feel explicitly tappable. */
.issue-marker{
  cursor:pointer;
  touch-action:manipulation;
}
.issue-marker:active{
  transform:scale(.92);
}

/* The report popup is opened manually in V0.5, so it cannot be swallowed by
   the long-press / map gesture handler. */
.custom-nav-issue-popup{
  z-index:25;
}


/* V0.5.1 — bottom sheet dismissal */
.bottom-sheet{
  will-change:transform;
  overscroll-behavior:contain;
}
.sheet-handle{
  cursor:grab;
  touch-action:pan-y;
}


/* V0.6 official-network validation */
.network-validation{
  margin-top:8px;
  width:100%;
  min-height:45px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  padding:8px 9px;
  display:grid;
  grid-template-columns:11px minmax(0,1fr) 18px;
  gap:8px;
  align-items:center;
  text-align:left;
  cursor:pointer;
}
.network-validation-dot{
  width:9px;height:9px;border-radius:50%;
  background:#58e398;box-shadow:0 0 0 4px rgba(88,227,152,.09);
}
.network-validation.warning .network-validation-dot{background:#ffb24f;box-shadow:0 0 0 4px rgba(255,178,79,.09)}
.network-validation.danger .network-validation-dot{background:#ff6677;box-shadow:0 0 0 4px rgba(255,102,119,.09)}
.network-validation.neutral .network-validation-dot{background:#788895;box-shadow:none}
.network-validation>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.network-validation small{font-size:7px!important;font-weight:800;letter-spacing:.11em;color:#7f909e!important}
.network-validation strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.network-validation svg{width:16px;color:#7c8c99}

.layer-list{display:flex;flex-direction:column;gap:8px;margin-top:17px}
.layer-toggle{
  min-height:72px;border:1px solid rgba(255,255,255,.085);background:rgba(255,255,255,.04);
  border-radius:18px;padding:10px 11px;display:grid;grid-template-columns:34px minmax(0,1fr) 34px;
  gap:10px;align-items:center;text-align:left;cursor:pointer
}
.layer-toggle:not(.active){opacity:.55}
.layer-toggle>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.layer-toggle strong{font-size:12px}
.layer-toggle small{font-size:9px;color:var(--muted);line-height:1.35}
.toggle-state{font-size:8px;font-weight:800;color:var(--cyan);text-align:right}
.layer-swatch{width:32px;height:32px;border-radius:12px;display:grid;place-items:center}
.layer-swatch.network{
  background:linear-gradient(135deg,#43df91 0 33%,#ffb24f 33% 66%,#ff6677 66%);
  border:2px solid rgba(255,255,255,.14)
}
.layer-swatch.reports{background:var(--amber);color:#241509;font-weight:900}

.network-legend{
  margin-top:16px;display:grid;grid-template-columns:1fr;gap:8px;padding:12px;
  border-radius:17px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)
}
.network-legend div{display:flex;align-items:center;gap:10px;font-size:10px;color:#b8c4ce}
.legend-line{width:32px;height:4px;border-radius:999px}
.legend-line.approved{background:#43df91}
.legend-line.conditional{background:#ffb24f}
.legend-line.restricted{background:#ff6677}
.layer-source-note{font-size:8px;color:#748491;line-height:1.45;margin:13px 3px 2px}

.network-summary-hero{
  margin-top:16px;min-height:78px;border-radius:20px;padding:13px;
  display:flex;align-items:center;gap:13px;background:rgba(88,227,152,.07);border:1px solid rgba(88,227,152,.12)
}
.network-summary-hero.warning{background:rgba(255,178,79,.07);border-color:rgba(255,178,79,.14)}
.network-summary-hero.danger{background:rgba(255,102,119,.07);border-color:rgba(255,102,119,.14)}
.summary-icon{
  width:44px;height:44px;border-radius:15px;background:rgba(88,227,152,.12);display:grid;place-items:center;
  color:#71efac;font-size:21px;font-weight:900
}
.warning .summary-icon{background:rgba(255,178,79,.12);color:#ffc06e}
.danger .summary-icon{background:rgba(255,102,119,.12);color:#ff8794}
.network-summary-hero>div{display:flex;flex-direction:column;gap:5px}
.network-summary-hero strong{font-size:15px}
.network-summary-hero small{font-size:9px;color:var(--muted)}

.network-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.network-stats>div{
  min-height:74px;border-radius:17px;border:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.035);padding:11px;display:grid;
  grid-template-columns:7px 1fr;grid-template-rows:auto auto;column-gap:8px
}
.network-stats>div>span{grid-row:1/3;width:5px;border-radius:999px}
.network-stats .approved>span{background:#43df91}
.network-stats .conditional>span{background:#ffb24f}
.network-stats .restricted>span{background:#ff6677}
.network-stats .offnetwork>span{background:#788895}
.network-stats strong{font-size:16px}
.network-stats small{font-size:8px;color:var(--muted);margin-top:2px}

.network-explanation{
  margin-top:12px;padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.035);
  color:#b6c2cb;font-size:10px;line-height:1.5
}
.network-disclaimer{
  margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(255,179,77,.05);
  border:1px solid rgba(255,179,77,.09);font-size:8px;line-height:1.45;color:#9f8e7d
}


/* V0.6.1 route-level network warnings */
.route-issue-preview{
  width:100%;
  margin-top:8px;
  min-height:56px;
  border:1px solid rgba(255,102,119,.22);
  background:linear-gradient(145deg,rgba(255,102,119,.10),rgba(255,150,76,.055));
  border-radius:16px;
  padding:9px 10px;
  display:grid;
  grid-template-columns:31px minmax(0,1fr) 18px;
  gap:9px;
  align-items:center;
  text-align:left;
  cursor:pointer;
}
.route-issue-preview.warning{
  border-color:rgba(255,178,79,.23);
  background:linear-gradient(145deg,rgba(255,178,79,.10),rgba(255,138,66,.045));
}
.route-issue-icon{
  width:31px;height:31px;border-radius:11px;
  display:grid;place-items:center;
  background:rgba(255,102,119,.14);
  color:#ff8794;font-weight:900;font-size:16px;
}
.route-issue-preview.warning .route-issue-icon{
  background:rgba(255,178,79,.14);color:#ffc06e;
}
.route-issue-preview>span:nth-child(2){
  min-width:0;display:flex;flex-direction:column;gap:3px;
}
.route-issue-preview small{
  font-size:7px!important;font-weight:800;letter-spacing:.12em;color:#ff9aa5!important;
}
.route-issue-preview.warning small{color:#ffc06e!important}
.route-issue-preview strong{
  font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.route-issue-preview em{
  font-size:8px;font-style:normal;color:#bcaeb0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.route-issue-preview svg{width:16px;color:#8e777c}

.route-hazard-banner{
  position:absolute;z-index:17;
  top:calc(var(--safe-top) + 136px);
  left:14px;right:14px;
  min-height:54px;border-radius:18px;padding:9px 11px;
  display:grid;grid-template-columns:31px minmax(0,1fr) 18px;
  gap:9px;align-items:center;text-align:left;cursor:pointer;
  background:rgba(55,18,24,.92);
  border-color:rgba(255,102,119,.28);
}
.route-hazard-banner.warning{
  background:rgba(56,39,17,.92);
  border-color:rgba(255,178,79,.26);
}
.hazard-icon{
  width:31px;height:31px;border-radius:11px;
  display:grid;place-items:center;background:rgba(255,102,119,.15);
  color:#ff8794;font-weight:900;font-size:16px;
}
.route-hazard-banner.warning .hazard-icon{
  background:rgba(255,178,79,.14);color:#ffc06e;
}
.route-hazard-banner>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.route-hazard-banner small{font-size:7px;font-weight:800;letter-spacing:.12em;color:#ff9aa5}
.route-hazard-banner.warning small{color:#ffc06e}
.route-hazard-banner strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-hazard-banner svg{width:16px;color:#9c8085}

/* Warning segments intentionally sit above the cyan route. */
.maplibregl-map .network-warning-layer{
  pointer-events:none;
}

@media (min-width:800px){
  .route-hazard-banner{left:22px;right:auto;width:520px}
}


/* V0.7 — alternate route selection */
.route-preview-card{
  grid-template-rows:auto auto;
}
.route-options-row{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:2px;
}
.route-option-mini{
  min-width:0;
  min-height:64px;
  padding:8px 9px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.035);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  text-align:left;
  cursor:pointer;
}
.route-option-mini.selected{
  border-color:rgba(98,233,255,.35);
  background:rgba(98,233,255,.085);
  box-shadow:inset 0 0 0 1px rgba(98,233,255,.04);
}
.route-option-mini small{
  font-size:7px;
  font-weight:800;
  letter-spacing:.1em;
  color:#788894;
}
.route-option-mini strong{
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-option-mini em{
  font-size:8px;
  font-style:normal;
  color:#95a3af;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-option-mini .route-access-pill{
  margin-top:2px;
}

.route-access-pill{
  width:max-content;
  max-width:100%;
  padding:4px 6px;
  border-radius:7px;
  font-size:6px!important;
  line-height:1;
  font-weight:800;
  letter-spacing:.06em!important;
  text-transform:uppercase;
  color:#70e9aa!important;
  background:rgba(67,223,145,.08);
  border:1px solid rgba(67,223,145,.13);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-access-pill.warning{
  color:#ffc06e!important;
  background:rgba(255,178,79,.08);
  border-color:rgba(255,178,79,.14);
}
.route-access-pill.danger{
  color:#ff8b98!important;
  background:rgba(255,102,119,.08);
  border-color:rgba(255,102,119,.14);
}
.route-access-pill.neutral{
  color:#9babb7!important;
  background:rgba(150,165,177,.07);
  border-color:rgba(150,165,177,.10);
}

.nav-right-rail{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.routes-rail-btn{
  height:55px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.routes-rail-btn svg{width:19px;height:19px}
.routes-rail-btn span{
  font-size:7px;
  font-weight:800;
  letter-spacing:.05em;
  color:#b9c6d0;
}

.route-choice-intro{
  margin:12px 2px 13px;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.route-refresh-status{
  min-height:40px;
  margin-top:12px;
  padding:0 11px;
  border-radius:14px;
  background:rgba(98,233,255,.055);
  border:1px solid rgba(98,233,255,.09);
  display:flex;
  align-items:center;
  gap:9px;
  color:#bfcdd7;
  font-size:9px;
}
.route-choices-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.route-choice-card{
  min-height:83px;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.038);
  padding:11px 12px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  text-align:left;
  cursor:pointer;
}
.route-choice-card.selected{
  border-color:rgba(98,233,255,.34);
  background:rgba(98,233,255,.075);
}
.route-choice-number{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.065);
  font-size:13px;font-weight:800;
}
.route-choice-card.selected .route-choice-number{
  background:rgba(98,233,255,.13);
  color:var(--cyan);
}
.route-choice-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.route-choice-main strong{font-size:13px}
.route-choice-main small{font-size:9px;color:var(--muted)}
.route-choice-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
}
.route-choice-meta strong{font-size:12px}
.route-choice-meta small{font-size:8px;color:var(--muted)}
.route-choice-note{
  margin:12px 3px 2px;
  color:#73828e;
  font-size:8px;
  line-height:1.45;
}

/* Alternates sit underneath the selected cyan route. */
.route-alt-line{
  pointer-events:none;
}

/* Driver-facing terminology: access problem, not device/network problem. */
.route-issue-preview small,
.route-hazard-banner small{
  letter-spacing:.11em;
}

@media(max-width:420px){
  .route-options-row{gap:5px}
  .route-option-mini{padding:7px;min-height:61px}
  .route-option-mini strong{font-size:11px}
}


/* V0.7.1 — compact route preview and clean access lines */
.route-preview-card{min-height:0;padding:12px;display:block;border-radius:25px}
.preview-head{display:grid;grid-template-columns:minmax(0,1fr) 36px 122px;gap:9px;align-items:start}
.preview-destination{min-width:0;padding:3px 2px 0 3px;justify-content:flex-start}
.preview-destination strong{max-width:100%;margin-top:5px;font-size:18px}
.preview-destination span{margin-top:5px}
.preview-close{position:static;width:36px;height:36px;border-radius:13px;align-self:start}
.navigation-start{
  width:122px;height:58px;min-height:58px;align-self:start;border-radius:18px;
  padding:0 12px;justify-content:space-between
}
.navigation-start small{font-size:7px}
.navigation-start strong{font-size:12px}
.navigation-start svg{width:19px;height:19px}
.preview-access-row{display:block;margin-top:10px}
.preview-access-row .network-validation,.preview-access-row .route-issue-preview{width:100%;margin:0;min-height:50px}
.preview-access-row .network-validation{grid-template-columns:10px minmax(0,1fr) 17px;padding:8px 10px}
.preview-access-row .route-issue-preview{grid-template-columns:29px minmax(0,1fr) 17px;padding:8px 10px}
.route-options-row{margin-top:9px;gap:6px}
.route-option-mini{min-height:60px;border-radius:14px;padding:7px 8px}
.route-option-mini strong{font-size:11px}
.route-option-mini em{font-size:7.5px}

.custom-nav-access-popup .maplibregl-popup-content{
  background:rgba(15,18,22,.96);color:#fff;border:1px solid rgba(255,255,255,.11);
  border-radius:18px;padding:0;overflow:hidden;box-shadow:0 18px 42px rgba(0,0,0,.34);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.custom-nav-access-popup .maplibregl-popup-tip{border-top-color:rgba(15,18,22,.96)!important}
.custom-nav-access-popup .maplibregl-popup-close-button{display:none}
.access-popup-card{min-width:205px;padding:13px 14px}
.access-popup-card small{display:block;font-size:7px;font-weight:800;letter-spacing:.13em;color:#ffb36b}
.access-popup-card strong{display:block;margin-top:7px;font-size:15px}
.access-popup-card span{display:block;margin-top:5px;color:#aeb9c2;font-size:9px;line-height:1.4}

@media(max-width:390px){
  .preview-head{grid-template-columns:minmax(0,1fr) 34px 108px;gap:7px}
  .navigation-start{width:108px;padding:0 9px}
  .route-option-mini{padding:7px 6px}
}
\n\n/* V0.7.2 — context-aware reporting */
body.route-preview-active .report-fab{
  bottom:calc(var(--safe-bottom) + 248px);
}
body.navigation-active .report-fab{
  bottom:106px;
}
@media (min-width:800px){
  body.route-preview-active .report-fab{right:22px;bottom:22px}
}


/* V0.7.3 route preview redesign */
.route-preview-card{
  position:absolute;z-index:16;left:14px;right:14px;bottom:var(--safe-bottom);
  min-height:0;padding:14px;display:block;border-radius:26px;
  background:rgba(10,17,24,.93);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 22px 55px rgba(0,0,0,.34)
}
.route-preview-top{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:12px;align-items:start}
.route-preview-title{min-width:0;display:flex;flex-direction:column;gap:4px}
.route-preview-title small{color:var(--cyan);font-size:8px;font-weight:800;letter-spacing:.15em}
.route-preview-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:21px;line-height:1.1;letter-spacing:-.04em}
.route-preview-title span{color:var(--muted);font-size:11px}
.route-preview-close{
  position:relative;z-index:8;width:42px;height:42px;margin:0;padding:0;border:1px solid rgba(255,255,255,.09);
  border-radius:15px;background:rgba(255,255,255,.055);color:#aebbc6;display:grid;place-items:center;
  cursor:pointer;touch-action:manipulation
}
.route-preview-close:hover,.route-preview-close:active{background:rgba(255,255,255,.11);color:#fff}
.route-preview-close svg{width:19px;height:19px}

.route-mode-row{display:flex;align-items:center;gap:7px;margin-top:10px;flex-wrap:wrap}
.route-mode-row .route-engine-badge{margin:0!important}
.route-vehicle-badge{
  display:inline-flex;align-items:center;max-width:190px;padding:6px 8px;border-radius:9px;
  font-size:7px;font-weight:800;letter-spacing:.08em;color:#aebbc6;background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

.route-options-row.redesigned{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.route-options-row.redesigned .route-option-mini{
  min-width:0;min-height:72px;margin:0;padding:10px 9px;border-radius:17px;border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.035);display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:left;
  cursor:pointer;box-shadow:none
}
.route-options-row.redesigned .route-option-mini.selected{
  border-color:rgba(98,233,255,.38);
  background:linear-gradient(145deg,rgba(98,233,255,.10),rgba(33,183,255,.045));
  box-shadow:inset 0 0 0 1px rgba(98,233,255,.04)
}
.route-options-row.redesigned .route-option-mini small{color:#788894;font-size:7px;font-weight:800;letter-spacing:.12em}
.route-options-row.redesigned .route-option-mini strong{font-size:13px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-options-row.redesigned .route-option-mini em{font-size:8px;line-height:1.25;font-style:normal;color:#95a3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-options-row.redesigned .route-access-pill{margin-top:2px;max-width:100%;padding:4px 6px;font-size:6px!important}

.route-access-summary{
  width:100%;min-height:53px;margin-top:10px;padding:9px 10px;border-radius:16px;
  border:1px solid rgba(67,223,145,.13);background:rgba(67,223,145,.055);
  display:grid;grid-template-columns:10px minmax(0,1fr) 18px;gap:9px;align-items:center;text-align:left;cursor:pointer
}
.route-access-summary .route-access-indicator{width:9px;height:9px;border-radius:50%;background:#43df91;box-shadow:0 0 0 4px rgba(67,223,145,.09)}
.route-access-summary.warning{border-color:rgba(255,178,79,.18);background:rgba(255,178,79,.065)}
.route-access-summary.warning .route-access-indicator{background:#ffb24f;box-shadow:0 0 0 4px rgba(255,178,79,.09)}
.route-access-summary.danger{border-color:rgba(255,102,119,.19);background:rgba(255,102,119,.065)}
.route-access-summary.danger .route-access-indicator{background:#ff6677;box-shadow:0 0 0 4px rgba(255,102,119,.09)}
.route-access-summary.neutral{border-color:rgba(150,165,177,.10);background:rgba(150,165,177,.04)}
.route-access-summary.neutral .route-access-indicator{background:#8393a0;box-shadow:none}
.route-access-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.route-access-copy small{color:#7d8d99;font-size:7px;font-weight:800;letter-spacing:.11em}
.route-access-copy strong{min-width:0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-access-copy em{min-width:0;color:#a7b2ba;font-size:8px;line-height:1.3;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-access-summary>svg{width:16px;color:#8897a2}

.route-start-primary{
  width:100%;height:54px;min-height:54px;margin-top:11px;padding:0 17px;border:0;border-radius:18px;
  background:linear-gradient(145deg,var(--cyan),#34a9ff);color:#03131a;box-shadow:0 11px 28px rgba(33,183,255,.20);
  display:flex;align-items:center;justify-content:space-between;cursor:pointer;touch-action:manipulation
}
.route-start-primary span{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.route-start-primary small{font-size:7px;font-weight:800;letter-spacing:.13em;opacity:.66}
.route-start-primary strong{font-size:14px}
.route-start-primary svg{width:21px;height:21px;stroke-width:2.4}

body.route-preview-active .report-fab{bottom:calc(var(--safe-bottom) + 294px)}
@media (min-width:800px){
  .route-preview-card{left:22px;right:auto;width:480px;bottom:22px}
  body.route-preview-active .report-fab{right:22px;bottom:22px}
}
@media(max-width:390px){
  .route-preview-card{padding:12px}
  .route-preview-title strong{font-size:19px}
  .route-options-row.redesigned{gap:5px}
  .route-options-row.redesigned .route-option-mini{min-height:68px;padding:8px 7px}
  .route-options-row.redesigned .route-option-mini strong{font-size:12px}
}


/* ================================================================
   V0.7.4 — preview minimisation + validation evidence
   ================================================================ */

.route-preview-minibar{
  position:absolute;
  z-index:16;
  left:14px;
  right:14px;
  bottom:var(--safe-bottom);
  min-height:70px;
  padding:7px;
  border-radius:22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:7px;
  align-items:stretch;
}

.minibar-main{
  min-width:0;
  border:0;
  background:transparent;
  padding:2px 4px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.minibar-route-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(98,233,255,.09);
  border:1px solid rgba(98,233,255,.12);
  color:var(--cyan);
}

.minibar-route-icon svg{width:21px;height:21px}

.minibar-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.minibar-copy small{
  color:var(--cyan);
  font-size:7px;
  font-weight:800;
  letter-spacing:.13em;
}

.minibar-copy strong{
  min-width:0;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.minibar-copy em{
  color:var(--muted);
  font-size:9px;
  font-style:normal;
}

.minibar-open{
  min-width:44px;
  height:32px;
  border-radius:11px;
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  color:#d5e0e7;
  font-size:8px;
  font-weight:800;
}

.minibar-clear{
  width:38px;
  min-width:38px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  background:rgba(255,255,255,.045);
  color:#8f9ca7;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.minibar-clear:hover,.minibar-clear:active{
  background:rgba(255,255,255,.10);
  color:#fff;
}

.minibar-clear svg{width:17px;height:17px}

.network-confidence-block{
  margin-top:12px;
  padding:12px 13px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.03);
}

.network-confidence-head{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.network-confidence-head>span{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.network-confidence-head small{
  color:#758693;
  font-size:7px;
  font-weight:800;
  letter-spacing:.11em;
}

.network-confidence-head strong{font-size:16px}

.network-confidence-track{
  margin-top:11px;
  width:100%;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.065);
  overflow:hidden;
}

.network-confidence-track span{
  display:block;
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#71808d,#ffb24f);
  transition:width .25s ease;
}

.network-confidence-foot{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#80909c;
  font-size:8px;
  line-height:1.35;
}

.network-confidence-foot span:last-child{
  max-width:58%;
  text-align:right;
}

/* Report is navigation-only. */
body:not(.navigation-active) .report-fab{
  display:none!important;
}

/* Preview route cards stay intentionally simple; selected-route validation
   lives in the single access strip below the cards. */
.route-options-row.redesigned .route-access-pill{
  display:none!important;
}

@media(min-width:800px){
  .route-preview-minibar{
    left:22px;
    right:auto;
    width:480px;
    bottom:22px;
  }
}


/* ================================================================
   V0.7.5 — matched restriction visibility during inconclusive checks
   ================================================================ */

.matched-access-flags{
  margin-top:12px;
  padding:12px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.025);
}

.matched-access-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.matched-access-heading small{
  color:#758693;
  font-size:7px;
  font-weight:800;
  letter-spacing:.11em;
}

.matched-access-heading strong{
  font-size:9px;
  color:#aebac3;
}

.matched-access-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:9px;
}

.matched-access-item{
  min-height:52px;
  padding:8px 9px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
  display:grid;
  grid-template-columns:9px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
}

.matched-access-item .flag-dot{
  width:8px;
  height:8px;
  border-radius:50%;
}

.matched-access-item.conditional .flag-dot{
  background:#ffb24f;
  box-shadow:0 0 0 4px rgba(255,178,79,.08);
}

.matched-access-item.restricted .flag-dot{
  background:#ff5d70;
  box-shadow:0 0 0 4px rgba(255,93,112,.08);
}

.matched-access-item .flag-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.matched-access-item .flag-copy strong{
  min-width:0;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.matched-access-item .flag-copy small{
  color:#8897a2;
  font-size:8px;
  line-height:1.3;
}

.matched-access-item .flag-distance{
  color:#9daab4;
  font-size:8px;
  white-space:nowrap;
}

/* Flag markers on the preview map */
.route-access-flag-marker{
  width:28px;
  height:28px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:2px solid rgba(255,255,255,.72);
  box-shadow:0 8px 20px rgba(0,0,0,.30);
  color:#27120d;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}

.route-access-flag-marker.conditional{
  background:#ffb24f;
}

.route-access-flag-marker.restricted{
  background:#ff5d70;
  color:#fff;
}

/* Low-confidence matched warning line remains visible, but narrow enough
   that it cannot be mistaken for whole-route validation. */
.low-confidence-access-line{
  pointer-events:none;
}


/* ================================================================
   V0.7.6 — collapsed route controls + visible official access review
   ================================================================ */

.preview-reports-toggle{
  height:28px;
  padding:0 9px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.04);
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#8e9ca7;
  font-size:7px;
  font-weight:800;
  letter-spacing:.04em;
  cursor:pointer;
}

.report-toggle-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#596875;
}

.preview-reports-toggle.active{
  color:#ffd19a;
  border-color:rgba(255,179,77,.16);
  background:rgba(255,179,77,.06);
}

.preview-reports-toggle.active .report-toggle-dot{
  background:#ffb34d;
  box-shadow:0 0 0 3px rgba(255,179,77,.08);
}

/* Completely replaces the old fragile minibar. */
.route-collapsed-dock{
  position:absolute!important;
  z-index:60!important;
  left:14px;
  right:14px;
  bottom:var(--safe-bottom);
  min-height:128px;
  padding:8px;
  border-radius:24px;
  pointer-events:auto!important;
  isolation:isolate;
}

.route-collapsed-dock,
.route-collapsed-dock *{
  pointer-events:auto!important;
}

.collapsed-route-summary{
  width:100%;
  min-height:58px;
  padding:5px 7px;
  border:0;
  border-radius:17px;
  background:transparent;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  color:inherit;
  text-align:left;
  cursor:pointer;
  touch-action:manipulation;
}

.collapsed-route-icon{
  width:40px;
  height:40px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:rgba(98,233,255,.09);
  border:1px solid rgba(98,233,255,.12);
  color:var(--cyan);
}

.collapsed-route-icon svg{width:20px;height:20px}

.collapsed-route-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.collapsed-route-copy small{
  color:var(--cyan);
  font-size:7px;
  font-weight:800;
  letter-spacing:.12em;
}

.collapsed-route-copy strong{
  min-width:0;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.collapsed-route-copy em{
  color:var(--muted);
  font-size:8px;
  font-style:normal;
}

.collapsed-view-label{
  min-width:42px;
  height:30px;
  padding:0 9px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  font-size:8px;
  font-weight:800;
  color:#d9e4eb;
}

.collapsed-route-actions{
  display:grid;
  grid-template-columns:1.45fr repeat(3,1fr);
  gap:6px;
  margin-top:5px;
}

.collapsed-route-actions button{
  height:48px;
  min-width:0;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#b6c3cc;
  font-size:8px;
  font-weight:800;
  cursor:pointer;
  touch-action:manipulation;
}

.collapsed-route-actions button svg{
  width:16px;
  height:16px;
}

.collapsed-route-actions .collapsed-start{
  background:linear-gradient(145deg,var(--cyan),#34a9ff);
  color:#03131a;
  border:0;
}

.collapsed-route-actions .danger{
  color:#d39aa2;
}

.collapsed-route-actions button:hover,
.collapsed-route-actions button:active{
  filter:brightness(1.12);
}

/* Official conditional/restricted road data is deliberately rendered above
   the cyan route so it remains reviewable before travel. */
.official-access-review-marker{
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:2px solid rgba(255,255,255,.90);
  box-shadow:0 8px 24px rgba(0,0,0,.38);
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.official-access-review-marker.conditional{
  background:#ffad45;
  color:#2a1708;
}

.official-access-review-marker.restricted{
  background:#ff5065;
}

@media(min-width:800px){
  .route-collapsed-dock{
    left:22px;
    right:auto;
    width:480px;
    bottom:22px;
  }
}

@media(max-width:390px){
  .route-collapsed-dock{
    min-height:124px;
    padding:7px;
  }
  .collapsed-route-actions{
    gap:5px;
  }
  .collapsed-route-actions button{
    height:45px;
    font-size:7px;
  }
}


/* ================================================================
   V0.7.7 — route state reset + bottom-sheet stacking
   ================================================================ */

.sheet-backdrop{z-index:119!important}
.bottom-sheet{z-index:120!important}

/* The sheet owns the bottom of the screen while open. */
body.sheet-open .route-preview-card,
body.sheet-open .route-collapsed-dock,
body.sheet-open .bottom-dock,
body.sheet-open .trip-card{
  visibility:hidden!important;
  pointer-events:none!important;
}

.route-choices-sheet{
  max-height:min(90dvh,820px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scroll-padding-bottom:130px;
  padding-bottom:calc(34px + env(safe-area-inset-bottom))!important;
}

.route-choices-list{padding-bottom:4px}
.route-choice-note{margin-bottom:14px!important}

.route-sheet-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
  padding-bottom:6px;
}

.route-sheet-actions button{
  min-height:58px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.04);
  color:#b9c6cf;
  padding:9px 11px;
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:9px;
  align-items:center;
  text-align:left;
  cursor:pointer;
  touch-action:manipulation;
}

.route-sheet-actions button.primary{
  border-color:rgba(98,233,255,.18);
  background:rgba(98,233,255,.07);
  color:#d9faff;
}

.route-sheet-actions button svg{width:20px;height:20px;color:var(--cyan)}
.route-sheet-actions button span{display:flex;flex-direction:column;gap:2px;min-width:0}
.route-sheet-actions button small{font-size:7px;font-weight:800;letter-spacing:.11em;color:#758693}
.route-sheet-actions button strong{font-size:10px}

.change-destination-btn{
  width:100%;
  min-height:40px;
  margin-top:7px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.065);
  background:transparent;
  color:#8797a3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  touch-action:manipulation;
}

.change-destination-btn:hover,
.change-destination-btn:active{
  background:rgba(255,255,255,.045);
  color:#d6e1e8;
}

.change-destination-btn svg{width:15px;height:15px}
.collapsed-route-actions .new-trip{color:#b9c6cf}

body.routing-reset .bottom-dock{
  z-index:18!important;
  pointer-events:auto!important;
}

@media(min-width:800px){
  .route-choices-sheet{
    bottom:22px!important;
    max-height:calc(100dvh - 44px)!important;
    padding-bottom:28px!important;
  }
}

@media(max-width:420px){
  .route-sheet-actions{grid-template-columns:1fr}
}


/* V0.7.8 — universal panel close + NHVR source status */
.sheet-close,[data-close-sheet],.route-preview-close{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  position:relative;
  z-index:999!important;
}
body.sheet-open .bottom-sheet:not(.hidden){z-index:500!important}
body.sheet-open .sheet-backdrop{z-index:499!important}

.nhvr-source-status{
  margin-top:10px;min-height:48px;padding:9px 11px;border-radius:15px;
  border:1px solid rgba(255,255,255,.065);background:rgba(255,255,255,.025);
  display:grid;grid-template-columns:9px minmax(0,1fr);gap:9px;align-items:center
}
.nhvr-source-dot{width:8px;height:8px;border-radius:50%;background:#788995}
.nhvr-source-status.local{border-color:rgba(67,223,145,.14);background:rgba(67,223,145,.045)}
.nhvr-source-status.local .nhvr-source-dot{background:#43df91;box-shadow:0 0 0 4px rgba(67,223,145,.07)}
.nhvr-source-status.fallback{border-color:rgba(255,178,79,.14);background:rgba(255,178,79,.045)}
.nhvr-source-status.fallback .nhvr-source-dot{background:#ffb24f}
.nhvr-source-status small{display:block;color:#788995;font-size:7px;font-weight:800;letter-spacing:.11em}
.nhvr-source-status strong{display:block;margin-top:3px;font-size:9px;color:#b9c6cf}


/* ================================================================
   V0.8.0 — authoritative NHVR B-double network
   ================================================================ */

.nhvr-source-status em{
  display:block;
  margin-top:3px;
  color:#738590;
  font-size:7px;
  font-style:normal;
  line-height:1.35;
}

.route-access-summary.authoritative{
  border-color:rgba(67,223,145,.16);
}

.network-summary-hero.authoritative{
  box-shadow:inset 0 0 0 1px rgba(67,223,145,.04);
}


/* ================================================================
   V0.8.1 — selected-route access only
   ================================================================ */

/* Nearby NHVR network markers are disabled. The only amber/red geometry
   shown automatically is route-network-warnings, which follows the selected
   navigation route itself. */
.official-access-review-marker{
  display:none!important;
}


/* V0.8.2 — detailed NHVR reasoning + deterministic New Trip */
#routeIssuePreview .route-access-copy em{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  line-height:1.35;
  max-height:2.7em;
}
.matched-access-list{gap:9px!important}
.matched-access-item{
  align-items:start!important;
  min-height:0!important;
  padding:11px!important;
  cursor:pointer
}
.matched-access-item:hover,.matched-access-item:active{background:rgba(255,255,255,.045)}
.matched-access-item .flag-copy{gap:5px!important}
.matched-access-item .flag-copy strong{
  font-size:11px!important;
  white-space:normal!important;
  overflow:visible!important
}
.matched-access-item .flag-type{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 6px;
  border-radius:8px;
  background:rgba(255,255,255,.055);
  color:#aab7c0;
  font-size:7px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase
}
.matched-access-item .flag-reason{
  color:#d1d9df;
  font-size:9px;
  line-height:1.48;
  white-space:normal
}
.matched-access-item .flag-action{
  color:#899aa6;
  font-size:8px;
  line-height:1.4
}
.matched-access-item .flag-meta{
  grid-column:2/-1;
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#71818d;
  font-size:7px;
  line-height:1.4
}
.access-popup-card .access-reason{
  margin-top:4px;
  color:#e1e7eb;
  line-height:1.45
}
.access-popup-card .access-meta{
  color:#82929d;
  font-size:10px;
  line-height:1.4
}


/* V0.8.3 — fixed map-side controls + fail-safe browse restore */
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}
.right-rail,.nav-right-rail{
  width:50px!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;gap:9px!important
}
.right-rail.hidden,.nav-right-rail.hidden{display:none!important}
.rail-btn,.routes-rail-btn{
  box-sizing:border-box!important;flex:0 0 50px!important;
  width:50px!important;min-width:50px!important;max-width:50px!important;
  height:50px!important;min-height:50px!important;max-height:50px!important;
  padding:0!important;margin:0!important;border-radius:17px!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;
  line-height:1!important
}
.rail-btn>svg,.routes-rail-btn>svg{
  display:block!important;width:22px!important;height:22px!important;
  min-width:22px!important;min-height:22px!important;margin:0!important
}
.routes-rail-btn{gap:0!important}
.compass-rail-btn{padding-top:4px!important}
.compass-rail-btn .north{
  top:4px!important;left:0!important;right:0!important;width:100%!important;
  text-align:center!important;font-size:8px!important;line-height:1!important
}
.compass-rail-btn .compass-glyph{
  transform:translateY(3px);width:23px!important;height:23px!important
}
#recenterBtn.attention{
  border-color:rgba(98,233,255,.34)!important;
  background:rgba(98,233,255,.10)!important
}
body.fresh-browse #browseHeader,
body.fresh-browse #browseRail,
body.fresh-browse #browseDock{
  visibility:visible!important;opacity:1!important;pointer-events:auto!important
}
body.fresh-browse #navCard,
body.fresh-browse #navLivePill,
body.fresh-browse #navRail,
body.fresh-browse #speedHud,
body.fresh-browse #tripCard,
body.fresh-browse #routePreviewCard,
body.fresh-browse #routePreviewMinibar{display:none!important}
