/* Luncur — a calm, high contrast navigation cockpit. */
:root {
  color-scheme: dark;
  --canvas: #080808;
  --surface: #141414;
  --surface-raised: #202020;
  --surface-hover: #292929;
  --ink: #f5f5f5;
  --muted: #b8b8b8;
  --subtle: #858585;
  --line: #2b2b2b;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ff5c5c;
  --radius: 18px;
  --rail-width: 80px;
  --panel-width: 398px;
  --sheet-height: 52dvh;
  --mobile-nav-height: 76px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-width: 320px; height: 100%; }
body { background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select, textarea { border-radius: 0; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
::selection { background: #206a39; color: #fff; }
::placeholder { color: #919191; opacity: 1; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; }
button, a { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
button:active:not(:disabled) { transform: translateY(1px); }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #3c3c3c transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #3c3c3c; border-radius: 8px; }

.app-shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 27px 11px 20px; background: var(--canvas); border-right: 1px solid #222; z-index: 20; }
.brand-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; color: #080808; background: var(--ink); border-radius: 14px; }
.brand-mark .icon, .brand-mark > svg { width: 26px; height: 26px; stroke-width: 2.5; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 58px; width: 58px; padding: 10px 3px; border: 1px solid transparent; border-radius: 14px; color: #909090; background: transparent; font-size: 9px; font-weight: 550; letter-spacing: .03em; line-height: 1.2; }
.nav-item .icon { width: 21px; height: 21px; }
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item.active, .nav-item[aria-current="page"] { color: var(--ink); background: #242424; border-color: #3c3c3c; }
.rail-footer { display: flex; flex-direction: column; align-items: center; gap: 19px; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #292929; border: 1px solid #444; color: #dcdcdc; font-size: 12px; font-weight: 650; }
.workspace { display: grid; grid-template-columns: var(--panel-width) minmax(0, 1fr); min-width: 0; height: 100%; overflow: hidden; }
.journey-panel { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; border-right: 1px solid var(--line); background: var(--surface); z-index: 10; }
.panel-header { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 99px; padding: 28px 28px 23px; }
.wordmark { min-height: 48px; padding: 0; color: var(--ink); background: transparent; font-size: 25px; font-weight: 780; letter-spacing: -.065em; line-height: 1; }
.wordmark > span { color: var(--green); }
.panel-header > .badge { margin-left: auto; }
.panel-header > .icon-button:last-child { margin-left: auto; }
.panel-header .eyebrow { margin-top: 7px; }
.screen-content { flex: 1; min-height: 0; padding: 3px 28px 30px; overflow-y: auto; overscroll-behavior: contain; }
.screen-content > :last-child { margin-bottom: 0; }
.screen-content:focus { outline: none; }
.screen-content > * { animation: reveal 240ms ease both; }
.screen-content > :nth-child(2) { animation-delay: 25ms; }
.screen-content > :nth-child(3) { animation-delay: 45ms; }
.screen-content > :nth-child(4) { animation-delay: 65ms; }
.page-heading { font-size: 31px; line-height: 1.15; letter-spacing: -.055em; font-weight: 650; margin: 11px 0 10px; }
.subheading { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 24px; }
.eyebrow, .mini-label { color: var(--subtle); font-size: 10px; line-height: 1.5; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 8px; border: 1px solid #353535; border-radius: 6px; color: #bdbdbd; background: #1b1b1b; font-size: 9px; font-weight: 650; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.icon { flex: 0 0 auto; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: #1a1a1a; }
.icon-button:hover { color: var(--ink); background: #2b2b2b; border-color: #484848; }
.icon-button.active, .icon-button[aria-pressed="true"] { color: var(--green); background: #15301e; border-color: #2a5a37; }
.icon-button .icon { width: 19px; height: 19px; }

.search-box { display: flex; align-items: center; min-width: 0; height: 58px; gap: 11px; padding: 0 15px; margin-bottom: 14px; background: #202020; border: 1px solid #383838; border-radius: 14px; box-shadow: 0 4px 18px #0000000f; transition: border-color 160ms ease, box-shadow 160ms ease; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #22c55e13; }
.search-icon, .search-box > .icon { color: #a9a9a9; flex-shrink: 0; }
.search-box input { width: 100%; min-width: 0; height: 100%; padding: 0; background: none; border: 0; outline: none; color: var(--ink); font-size: 13px; }
.search-box input:focus-visible { outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; flex-shrink: 0; min-width: 48px; min-height: 48px; padding: 0; margin-right: -11px; color: var(--muted); border-radius: 10px; background: transparent; }
.search-clear:hover { background: #2e2e2e; color: #fff; }
.search-clear .icon { width: 16px; height: 16px; }
.chip-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 27px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 12px; border-radius: 11px; border: 1px solid #2f2f2f; background: #191919; color: #adadad; font-size: 11px; font-weight: 550; white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; }
.chip:hover { color: var(--ink); border-color: #505050; }
.chip.active, .chip[aria-pressed="true"] { color: #e8e8e8; background: #303030; border-color: #505050; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 25px 0 13px; }
.section-head h2, .section-head h3 { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.section-head > span { color: var(--subtle); font-size: 11px; }
.section-head .text-button { margin: -10px 0 -10px 0; font-size: 11px; min-height: 48px; }
.destination-list { display: flex; flex-direction: column; gap: 9px; }
.destination-card { display: flex; align-items: center; width: 100%; gap: 13px; min-height: 84px; padding: 15px; text-align: left; border: 1px solid #2b2b2b; border-radius: 15px; background: #1b1b1b; }
.destination-card:hover { border-color: #4d4d4d; background: #242424; }
.destination-card:focus-visible { outline-offset: 2px; }
.place-avatar { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: #d1d1d1; background: #2a2a2a; border: 1px solid #353535; border-radius: 12px; }
.place-avatar .icon { width: 21px; height: 21px; }
.place-avatar.green { background: #183721; border-color: #255534; }
.card-copy { min-width: 0; flex: 1; }
.card-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.card-subtitle { display: block; color: #9e9e9e; font-size: 11px; line-height: 1.5; margin-top: 3px; }
.card-trailing { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; color: #8f8f8f; font-size: 10px; }
.card-trailing .icon { width: 16px; height: 16px; }
.metric { color: #dedede; font-size: 11px; font-weight: 550; white-space: nowrap; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #22c55e0e; }
.status-dot.yellow { background: var(--yellow); }
.status-dot.red { background: var(--red); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: var(--green); border: 1px solid #235230; background: #16301e; border-radius: 6px; font-size: 10px; font-weight: 550; line-height: 1.4; }
.status-chip.yellow { color: var(--yellow); background: #312b12; border-color: #4e441c; }
.status-chip.red { color: var(--red); background: #371e1e; border-color: #593030; }
.status-chip .icon { width: 12px; height: 12px; }
.notice { color: #9c9c9c; font-size: 11px; line-height: 1.65; margin-top: 20px; padding: 13px 15px; border-radius: 12px; border: 1px solid #2b2b2b; background: #191919; }
.notice .icon { width: 15px; height: 15px; }
.mode-banner { display: flex; align-items: center; gap: 9px; color: #c6c6c6; font-size: 11px; padding: 12px 13px; border: 1px solid #383838; border-radius: 11px; background: #222; margin-bottom: 20px; }
.mode-banner .icon { width: 16px; height: 16px; color: var(--green); }

.place-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 28px 24px 23px; margin: 14px 0 22px; border-radius: 18px; background: radial-gradient(ellipse at 95% 15%, #2b3b2e 0, transparent 68%), #202520; border: 1px solid #354037; }
.place-hero::after { content: ""; position: absolute; pointer-events: none; width: 180px; height: 180px; right: -55px; top: -45px; border: 1px solid #62746823; border-radius: 50%; box-shadow: 0 0 0 25px #62746808, 0 0 0 50px #62746806; }
.place-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 25px; border-radius: 16px; background: #ffffff0b; border: 1px solid #ffffff16; color: #d7e9db; }
.place-symbol .icon { width: 29px; height: 29px; }
.place-hero h1, .place-hero h2 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 27px; line-height: 1.15; letter-spacing: -.045em; }
.place-type { color: #a2b3a6; font-size: 11px; }
.place-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 13px; }
.place-toolbar .text-button { margin-left: -8px; }
.detail-list { margin: 5px 0 24px; }
.detail-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; color: #d0d0d0; font-size: 12px; line-height: 1.6; border-bottom: 1px solid #272727; }
.detail-row > .icon { width: 17px; height: 17px; margin-top: 2px; color: #888; }
.detail-row:last-child { border-bottom: 0; }
.detail-row > :last-child { min-width: 0; }
.detail-row strong { display: block; color: #e0e0e0; font-size: 12px; font-weight: 550; }
.detail-row p { color: #959595; margin-top: 3px; font-size: 11px; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 52px; width: 100%; padding: 14px 18px; border-radius: 13px; font-size: 13px; line-height: 1.45; font-weight: 650; letter-spacing: -.01em; }
.primary-button { background: var(--ink); color: #111; border: 1px solid var(--ink); box-shadow: 0 4px 14px #0000000a; }
.primary-button:hover { background: #dedede; border-color: #dedede; box-shadow: 0 5px 20px #00000020; }
.primary-button .icon, .secondary-button .icon { width: 18px; height: 18px; }
.secondary-button { border: 1px solid #3b3b3b; background: #242424; color: #dedede; }
.secondary-button:hover { border-color: #5b5b5b; background: #2e2e2e; }
.secondary-button.red, .secondary-button.danger { background: #2b1c1c; border-color: #603030; color: var(--red); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 9px 8px; color: var(--muted); background: transparent; border-radius: 8px; font-size: 12px; }
.text-button:hover { color: var(--ink); background: #ffffff07; }
.text-button .icon { width: 16px; height: 16px; }
.button-row { display: flex; align-items: center; gap: 10px; margin-top: 19px; }
.button-row > * { flex: 1; }
.button-row > .icon-button { flex: 0 0 52px; height: 52px; }
.route-list { display: grid; gap: 12px; margin: 21px 0; }
.route-card { display: block; position: relative; width: 100%; padding: 19px; border: 1px solid #363636; border-radius: 16px; color: inherit; text-align: left; background: #1c1c1c; }
.route-card:hover { background: #242424; border-color: #555; }
.route-card.selected { background: #18251b; border-color: var(--green); box-shadow: 0 0 0 1px #22c55e12; }
.route-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.route-duration { color: #eee; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -.06em; }
.route-duration small, .route-duration span { color: #c9c9c9; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.route-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--green); background: #1e3b26; border: 1px solid #2d5538; padding: 5px 7px; border-radius: 6px; font-size: 9px; font-weight: 650; letter-spacing: .03em; }
.route-badge .icon { width: 12px; height: 12px; }
.route-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #bababa; font-size: 11px; }
.route-details .icon { width: 13px; height: 13px; }
.route-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; margin-top: 14px; border-top: 1px solid #ffffff0c; color: #929b94; font-size: 11px; }
.route-footer .icon { width: 16px; height: 16px; color: var(--green); }
.preference-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #b6b6b6; font-size: 11px; }
.preference-strip .icon { width: 15px; height: 15px; color: #858585; }
.preference-strip .text-button { margin: -12px -8px -12px auto; font-size: 11px; }

.navigation-maneuver { padding: 23px 22px; margin-top: 17px; background: #1c3423; border: 1px solid #2d633c; border-radius: 18px; }
.maneuver-arrow { color: var(--green); margin-bottom: 22px; }
.maneuver-arrow .icon { width: 55px; height: 55px; stroke-width: 1.8; }
.maneuver-distance { color: #f2fff5; font-size: 43px; font-weight: 650; letter-spacing: -.055em; line-height: 1; margin-bottom: 9px; }
.navigation-maneuver h2, .navigation-maneuver h3 { font-size: 17px; line-height: 1.4; font-weight: 550; }
.navigation-maneuver p { color: #aac3b0; margin-top: 5px; font-size: 12px; }
.eta-grid, .journey-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 22px 0; }
.stat { min-width: 0; }
.stat + .stat { padding-left: 13px; border-left: 1px solid #323232; }
.stat strong, .stat > b, .stat-value { display: block; color: var(--ink); font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; }
.stat strong small, .stat strong span { font-size: 11px; font-weight: 450; letter-spacing: 0; }
.stat-label { display: block; color: #959595; margin-top: 3px; font-size: 10px; }
.nav-actions { display: flex; gap: 8px; margin-top: 18px; }
.nav-actions > * { flex: 1; min-width: 0; }
.nav-actions .secondary-button { padding: 12px 8px; font-size: 11px; }
.timeline { margin: 24px 0; }
.timeline-item { position: relative; display: flex; gap: 13px; padding: 0 0 24px; font-size: 12px; }
.timeline-item > .icon { position: relative; z-index: 1; flex-shrink: 0; width: 25px; height: 25px; padding: 3px; color: #8c8c8c; background: var(--surface); }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; width: 1px; background: #343434; top: 26px; left: 12px; bottom: 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item p { color: #929292; font-size: 11px; margin-top: 3px; }
.timeline-item strong { font-size: 12px; font-weight: 550; }
.arrival-ring { display: grid; place-items: center; width: 104px; height: 104px; margin: 26px auto 28px; border: 1px solid #28683a; border-radius: 50%; color: var(--green); background: radial-gradient(circle, #24402c 0, #192a1e 70%); box-shadow: 0 0 0 12px #22c55e06, 0 0 0 25px #22c55e03; }
.arrival-ring .icon { width: 42px; height: 42px; }
body[data-screen="arrival"] .page-heading, body[data-screen="arrival"] .subheading { text-align: center; }
.trip-summary { padding: 19px; border: 1px solid var(--line); background: #1c1c1c; border-radius: 16px; margin: 23px 0; }
.trip-summary .journey-stats { margin: 15px 0 0; }

.setting-section { margin: 27px 0; }
.setting-section > h2, .setting-section > h3 { color: #838383; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid #2b2b2b; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > :first-child { min-width: 0; }
.setting-row strong, .setting-row h3, .setting-row h4 { display: block; font-size: 12px; font-weight: 550; line-height: 1.45; }
.setting-row p { max-width: 235px; color: #929292; font-size: 11px; margin: 4px 0 0; line-height: 1.6; }
.switch { position: relative; display: inline-flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.switch-track { position: relative; display: block; width: 42px; height: 24px; border: 1px solid #494949; border-radius: 20px; background: #313131; transition: background-color 180ms ease, border-color 180ms ease; }
.switch-track::after { position: absolute; content: ""; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #aaa; transition: transform 180ms ease, background-color 180ms ease; }
.switch input:checked + .switch-track { background: var(--green); border-color: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #092610; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--green); outline-offset: 5px; }
.switch input:disabled + .switch-track { opacity: .35; }
select { max-width: 155px; min-height: 48px; border: 1px solid #414141; border-radius: 10px; padding: 10px 30px 10px 12px; color: #e1e1e1; background: #242424; font-size: 12px; }
input[type="range"] { accent-color: var(--green); min-height: 48px; max-width: 100%; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
.radio-row { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 0; font-size: 12px; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; margin: 0; }
.choice-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; width: 100%; padding: 13px 15px; color: #bbb; background: #202020; border: 1px solid #363636; border-radius: 11px; font-size: 12px; text-align: left; }
.choice-button.selected, .choice-button[aria-pressed="true"] { border-color: var(--green); background: #193021; color: #e3f4e8; }
.offline-card { position: relative; padding: 21px; margin: 15px 0; border: 1px solid #373737; border-radius: 17px; background: radial-gradient(ellipse at 100% 0, #273329 0, transparent 75%), #1d1f1d; overflow: hidden; }
.offline-card h2, .offline-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.offline-card p { color: #aaa; font-size: 11px; margin-top: 6px; }
.offline-card .primary-button, .offline-card .secondary-button { margin-top: 20px; }
.offline-card > .icon { width: 28px; height: 28px; color: #96af9c; margin-bottom: 21px; }
.download-bar, .progress-line { position: relative; display: block; height: 5px; border-radius: 10px; background: #353a36; overflow: hidden; }
.download-bar { margin: 18px 0 8px; }
.download-bar > *, .progress-line > * { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width 300ms linear; }
.offline-progress { margin-top: 18px; color: #acb7ae; font-size: 11px; }
.offline-progress .row { justify-content: space-between; margin: 8px 0; }
.empty-state { padding: 36px 22px; margin: 18px 0; text-align: center; border: 1px dashed #383838; border-radius: 17px; background: #191919; }
.empty-state > .icon { width: 32px; height: 32px; margin: 0 auto 18px; color: #777; }
.empty-state h2, .empty-state h3 { font-size: 16px; font-weight: 550; margin-bottom: 7px; }
.empty-state p { color: #9e9e9e; font-size: 12px; line-height: 1.7; }
.empty-state button { margin-top: 15px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.report-tile { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; min-height: 100px; text-align: left; padding: 17px; border: 1px solid #383838; background: #222; color: #bbb; border-radius: 13px; font-size: 12px; font-weight: 550; }
.report-tile .icon { width: 24px; height: 24px; color: #a0a0a0; }
.report-tile:hover { background: #2b2b2b; border-color: #555; }
.report-tile.selected { border-color: var(--yellow); background: #302d1c; color: var(--yellow); }
.report-tile.selected .icon { color: var(--yellow); }
.alert-card { display: flex; align-items: flex-start; gap: 11px; padding: 16px; margin: 12px 0; border: 1px solid #48401f; border-radius: 14px; background: #272416; }
.alert-card > .icon { width: 19px; height: 19px; color: var(--yellow); margin-top: 2px; }
.alert-card h3, .alert-card strong { font-size: 12px; font-weight: 550; color: #e5d98e; }
.alert-card p { color: #a9a28a; margin-top: 5px; font-size: 11px; line-height: 1.6; }
.alert-card.red { border-color: #4e2c2c; background: #2a1c1c; }
.alert-card.red > .icon, .alert-card.red strong { color: var(--red); }
.alert-card .card-trailing { margin-left: auto; }

.map-stage { position: relative; isolation: isolate; min-width: 0; height: 100%; background: #1c1e1d; overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 0; background: #1c1e1d; }
.map-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 30px 0 55px -30px #0009; }
.map-topbar { position: absolute; top: 27px; left: 28px; right: 28px; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.map-location-pill, .demo-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 9px 13px; border: 1px solid #3d3d3d; border-radius: 10px; background: #171717ed; color: #d0d0d0; box-shadow: 0 3px 18px #0003; backdrop-filter: blur(12px); font-size: 10px; font-weight: 550; line-height: 1.2; pointer-events: auto; }
.map-location-pill .icon { width: 14px; height: 14px; color: #b4b4b4; }
.demo-pill { color: #b5b5b5; letter-spacing: .035em; font-weight: 450; }
.demo-pill .status-dot { width: 5px; height: 5px; background: var(--yellow); }
.map-controls { position: absolute; right: 27px; bottom: 69px; z-index: 500; display: flex; flex-direction: column; gap: 9px; }
.map-controls .icon-button { width: 48px; height: 48px; background: #161616f2; border: 1px solid #404040; box-shadow: 0 4px 14px #0003; color: #d3d3d3; backdrop-filter: blur(12px); }
.map-controls .icon-button:hover { background: #2e2e2e; }
.map-controls .icon-button.active, .map-controls .icon-button[aria-pressed="true"] { color: var(--green); border-color: #367648; background: #1b3021; }
.map-controls .divider { margin: 0 11px; border-color: #ffffff20; }
.map-bottom-note { position: absolute; bottom: 29px; left: 29px; z-index: 500; display: flex; align-items: center; gap: 8px; color: #a6a6a6; background: #131313e8; padding: 8px 11px; border: 1px solid #333; border-radius: 8px; box-shadow: 0 3px 18px #0002; font-size: 10px; line-height: 1.4; pointer-events: none; }
.map-bottom-note .icon { width: 13px; height: 13px; }
.navigation-hud { position: absolute; z-index: 500; top: 86px; left: 28px; pointer-events: none; }
.navigation-hud:empty { display: none; }
.navigation-hud .speed-orb { pointer-events: auto; }
.speed-orb { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 77px; height: 77px; border: 3px solid #e4e4e4; border-radius: 50%; color: #f2f2f2; background: #111111ed; box-shadow: 0 5px 20px #0004; font-size: 30px; font-weight: 650; line-height: 1; }
.speed-orb small, .speed-orb span:last-child { display: block; color: #bbb; font-size: 9px; font-weight: 550; margin-top: 5px; }
.leaflet-container { background: #202220 !important; font-family: inherit !important; }
.leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.7) contrast(1.15); }
.leaflet-control-attribution { border-top-left-radius: 5px; background: #101010ee !important; padding: 3px 7px !important; color: #a8a8a8 !important; font-size: 9px !important; line-height: 1.4 !important; }
.leaflet-control-attribution a { color: #c2c2c2 !important; text-decoration: underline; text-decoration-color: #777; text-underline-offset: 2px; }
.leaflet-control-attribution a:focus-visible { outline-offset: 0; }
.leaflet-control-attribution svg { display: inline !important; }
.leaflet-tooltip { background: #171717 !important; color: #ececec !important; border: 1px solid #555 !important; box-shadow: 0 3px 14px #0005 !important; border-radius: 7px !important; padding: 7px 10px !important; font-size: 10px !important; font-weight: 550; }
.leaflet-tooltip-top::before { border-top-color: #555 !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1d1d1d !important; color: #eee !important; }
.leaflet-popup-content-wrapper { border: 1px solid #444; border-radius: 13px !important; }
.leaflet-popup-content { font-size: 12px; line-height: 1.5; }
.leaflet-container a.leaflet-popup-close-button { color: #ccc; }
.poi-marker { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid #6b6b6b; border-radius: 11px; background: #202020; color: #ddd; box-shadow: 0 4px 12px #0006; }
.poi-marker .icon, .poi-marker svg { width: 16px; height: 16px; }
.poi-marker.selected { background: var(--green); color: #092911; border: 2px solid #b8f9ca; box-shadow: 0 0 0 7px #22c55e1a, 0 5px 18px #0008; transform: scale(1.13); }
.position-marker { display: grid; place-items: center; width: 24px; height: 24px; border: 3px solid #f0fff3; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 10px #22c55e1c, 0 0 0 22px #22c55e09, 0 4px 10px #0007; }
.position-marker .icon { width: 14px; height: 14px; }
.incident-map-marker { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #e0ba30; border-radius: 50%; background: #28210a; color: var(--yellow); box-shadow: 0 3px 15px #0006; font-size: 15px; font-weight: 750; }
.incident-map-marker .icon, .incident-map-marker svg { width: 16px; height: 16px; }
.map-fallback { position: absolute; inset: 0; overflow: hidden; background: #1a1e1b; color: #8e9a91; }
.fallback-grid { position: absolute; inset: -50%; background: linear-gradient(96deg, transparent 47%, #454b4655 48%, #454b4655 49%, transparent 50%), linear-gradient(0deg, transparent 44%, #454b4655 45%, #454b4655 46%, transparent 47%); background-size: 110px 130px; transform: rotate(-23deg); }
.fallback-city { position: absolute; inset: 0; display: grid; place-items: center; color: #a4ada5; letter-spacing: .18em; font-size: 11px; text-transform: uppercase; }
.map-fallback > p { position: absolute; bottom: 85px; left: 25px; max-width: 290px; margin: 0; padding: 12px 14px; background: #101810ee; border: 1px solid #3c4a3f; border-radius: 10px; color: #bac7bd; font-size: 11px; }
.map-fallback button { color: #dceade; }
.mobile-nav { display: none; }

.row { display: flex; align-items: center; gap: 9px; }
.stack { display: flex; flex-direction: column; gap: 11px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }
.divider { height: 0; border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #3a3a3a; border-radius: 6px; background: #222; color: #c0c0c0; font-size: 10px; line-height: 1.4; }
.pill .icon { width: 12px; height: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 3000; transform: translateY(-150%); padding: 14px 19px; color: #111; background: var(--ink); border-radius: 10px; font-size: 13px; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

dialog { max-width: min(440px, calc(100vw - 32px)); width: 440px; max-height: calc(100dvh - 48px); margin: auto; padding: 0; color: var(--ink); background: #191919; border: 1px solid #424242; border-radius: 22px; box-shadow: 0 28px 100px #0009; overflow-y: auto; }
dialog::backdrop { background: #0009; backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in 180ms ease-out; }
.dialog-content { padding: 27px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; padding-bottom: 18px; }
.modal-header h2 { margin: 3px 0 5px; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.modal-header p { color: #aaa; font-size: 12px; }
.modal-header .icon-button { margin-top: -6px; margin-right: -7px; background: transparent; border-color: transparent; }
.modal-body { color: #bbb; font-size: 12px; line-height: 1.7; }
.modal-body > p { margin-bottom: 14px; }
.modal-body label:not(.radio-row):not(.switch) { display: block; color: #cecece; font-size: 11px; margin: 15px 0 7px; }
.modal-body input[type="text"], .modal-body textarea { width: 100%; min-height: 48px; padding: 12px; color: #eee; background: #232323; border: 1px solid #454545; border-radius: 10px; }
.modal-body textarea { min-height: 90px; resize: vertical; }
.modal-footer { display: flex; align-items: center; gap: 10px; padding-top: 24px; }
.modal-footer > * { flex: 1; }
.toast { position: fixed; bottom: 28px; left: calc(var(--rail-width) + var(--panel-width) + (100vw - var(--rail-width) - var(--panel-width)) / 2); z-index: 2000; max-width: min(420px, calc(100vw - 32px)); transform: translate(-50%, 20px); padding: 13px 19px; color: #e7e7e7; background: #232323f5; border: 1px solid #535353; border-radius: 12px; box-shadow: 0 8px 35px #0005; text-align: center; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Screen composition hooks shared by the connected journeys. */
.page-intro { margin-bottom: 19px; }
.page-intro .subheading { margin-bottom: 0; }
.back-button { margin: -3px 0 5px -8px; color: #969696; }
.destination-card { padding: 12px; gap: 7px; }
.destination-main { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 54px; padding: 0; border-radius: 8px; color: inherit; background: transparent; text-align: left; }
.destination-main .card-trailing { font-size: 10px; }
.small-save { width: 48px; height: 48px; color: #777; background: transparent; border-color: transparent; }
.small-save:hover { background: #ffffff08; border-color: transparent; color: #ddd; }
.icon-button.is-saved { color: #e4e4e4; background: #303030; border-color: #414141; }
.icon-button.is-saved .icon { fill: #ffffff15; }
.small-save.is-saved { background: transparent; border-color: transparent; color: #ddd; }
.home-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: 27px; color: #777; font-size: 10px; line-height: 1.7; }
.home-footer .status-dot { margin-top: 5px; width: 5px; height: 5px; }
.explore-card { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 97px; margin-top: 20px; padding: 17px 15px; border: 1px solid #3c3c3c; border-radius: 15px; text-align: left; color: #dadada; background: radial-gradient(ellipse at 100% 0, #343434 0, transparent 70%), #232323; }
.explore-card:hover { background-color: #2b2b2b; border-color: #555; }
.explore-icon { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; color: #bbb; border: 1px solid #484848; border-radius: 50%; }
.explore-icon .icon { width: 19px; height: 19px; }
.explore-card strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 550; }
.explore-card small { display: block; color: #a2a2a2; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.explore-card > .icon:last-child { width: 17px; height: 17px; margin-left: auto; color: #aaa; }
.place-hero { min-height: 172px; justify-content: space-between; background: radial-gradient(ellipse at 95% 15%, #363a36 0, transparent 68%), #232623; }
.place-hero-pattern { position: absolute; inset: 0; opacity: .25; pointer-events: none; background: repeating-linear-gradient(120deg, transparent 0, transparent 42px, #c8d4ca28 43px, transparent 44px), repeating-linear-gradient(30deg, transparent 0, transparent 80px, #c8d4ca1a 81px, transparent 82px); }
.place-symbol, .place-type { position: relative; z-index: 1; }
.place-type { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; color: #afb9b1; }
.place-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.place-name { font-size: 25px; line-height: 1.15; letter-spacing: -.045em; }
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 17px; }
.place-description { color: #a9a9a9; font-size: 12px; line-height: 1.8; margin-bottom: 8px; }
.detail-row small { display: block; color: #858585; font-size: 10px; margin-bottom: 4px; }
.detail-row strong { font-size: 12px; font-weight: 500; }
.mini-note { color: #828282; font-size: 10px; line-height: 1.65; margin: 12px 0 4px; }
.primary-button > .icon:last-child:not(:first-child), .primary-button > span:last-child { margin-left: auto; }
.route-endpoints { position: relative; padding: 11px 15px; background: #1b1b1b; border: 1px solid #333; border-radius: 13px; }
.route-endpoints > div { display: flex; align-items: center; gap: 13px; min-height: 42px; color: #a7a7a7; font-size: 11px; }
.route-endpoints strong { color: #ddd; font-size: 12px; font-weight: 550; }
.route-endpoints .icon { position: relative; width: 16px; height: 16px; color: #d1d1d1; background: #1b1b1b; }
.endpoint-origin { position: relative; flex: 0 0 auto; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; border: 2px solid #aaa; background: #1b1b1b; }
.endpoint-line { position: absolute; left: 22px; top: 38px; height: 29px; border-left: 1px dashed #555; }
.preference-strip > span { display: flex; align-items: center; gap: 7px; }
.preference-strip > .chip { margin-left: auto; }
.preference-strip { padding: 8px 0; }
.route-duration { font-size: 28px; letter-spacing: -.05em; }
.route-badge:not(.green) { color: #bebebe; background: #2b2b2b; border-color: #414141; }
.route-details > span + span::before { content: "·"; color: #696969; margin-right: 8px; }
.route-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.notice { display: flex; align-items: flex-start; gap: 9px; }
.notice > .icon { flex-shrink: 0; margin-top: 2px; }
body[data-screen="routes"] .notice { margin-bottom: 18px; }
.navigation-maneuver { display: flex; align-items: center; gap: 20px; }
.maneuver-arrow { display: block; margin: 0; }
.navigation-maneuver h1 { font-size: 19px; line-height: 1.3; font-weight: 550; letter-spacing: -.025em; }
.navigation-road { color: #e0e0e0; font-size: 19px; font-weight: 550; letter-spacing: -.025em; line-height: 1.4; margin: 21px 0 11px; }
.next-maneuver { display: flex; align-items: center; gap: 10px; color: #9f9f9f; font-size: 11px; line-height: 1.5; }
.next-maneuver .icon { width: 17px; height: 17px; color: #7f7f7f; }
.eta-grid > div { min-width: 0; }
.eta-grid > div + div { border-left: 1px solid #333; padding-left: 12px; }
.eta-grid strong { display: block; color: #eee; font-size: 23px; font-weight: 600; letter-spacing: -.055em; line-height: 1.4; }
.eta-grid > div > span { display: block; color: #898989; font-size: 10px; margin-top: 3px; }
body[data-screen="navigation"] .alert-card { margin: 23px 0 0; border-color: #303a32; background: #1a211c; }
body[data-screen="navigation"] .alert-card strong { color: #d2dfd5; }
body[data-screen="navigation"] .alert-card p { color: #8e9d92; }
.demo-controls { padding-top: 20px; margin-top: 25px; border-top: 1px solid #303030; }
.demo-controls .button-row { margin-top: 10px; }
.demo-controls .primary-button, .demo-controls .secondary-button { font-size: 12px; padding: 13px; }
.end-trip { width: 100%; color: #b6b6b6; margin-top: 13px; }
.arrival-screen { text-align: center; padding-top: 4px; }
.arrival-screen > .eyebrow { color: #7f9d87; font-size: 9px; letter-spacing: .16em; }
.arrival-screen .page-heading { margin-top: 15px; }
.arrival-screen .trip-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 21px 15px; }
.trip-summary > div + div { border-left: 1px solid #393939; }
.trip-summary > div > strong { display: block; color: #f0f0f0; font-size: 25px; letter-spacing: -.05em; font-weight: 600; }
.trip-summary > div > span { display: block; color: #929292; font-size: 10px; margin-top: 4px; }
.arrival-screen .notice { text-align: left; margin-bottom: 23px; }
.arrival-screen > .secondary-button { margin-top: 11px; }
body[data-screen="saved"] .destination-list { margin-bottom: 23px; }
.community-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10px; color: #bbb; margin: 24px 0 18px; }
.community-summary strong { font-size: 11px; font-weight: 550; }
.community-summary > .muted { color: #838383; }
.community-card { padding: 18px; border: 1px solid #333; border-radius: 15px; background: #1c1c1c; margin: 11px 0; }
.community-card > .row:first-child { align-items: flex-start; gap: 11px; }
.community-card h2 { color: #dedede; font-size: 12px; font-weight: 550; line-height: 1.5; }
.community-card .card-subtitle { font-size: 10px; }
.community-card .pill { padding: 3px 5px; font-size: 8px; letter-spacing: .05em; }
.community-card > p { color: #9b9b9b; margin: 14px 0; font-size: 11px; line-height: 1.75; }
.community-card > .row:last-child { justify-content: space-between; margin-top: 12px; padding-top: 7px; border-top: 1px solid #2b2b2b; gap: 5px; }
.community-card .mini-label { font-size: 8px; letter-spacing: .07em; }
.community-card .text-button { padding: 8px 0 8px 8px; font-size: 10px; white-space: nowrap; }
.community-card .text-button[aria-pressed="true"] { color: var(--green); }
.incident-symbol { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #5b4c21; background: #332d1c; border-radius: 9px; }
.incident-symbol .icon { width: 18px; height: 18px; }
.incident-symbol.red { border-color: #5a3232; background: #352121; }
.storage-summary { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; margin-top: 13px; border-bottom: 1px solid #303030; }
.storage-summary strong { display: block; font-size: 34px; line-height: 1.2; letter-spacing: -.055em; font-weight: 550; margin-top: 7px; }
.storage-summary > .icon { width: 30px; height: 30px; color: #5d5d5d; margin-right: 9px; }
.offline-notice { margin-top: 20px; }
.offline-notice strong { color: #ccc; font-weight: 550; }
.offline-card h2 { font-size: 14px; letter-spacing: -.015em; }
.offline-card > p { margin-top: 15px; color: #919b93; line-height: 1.7; }
.offline-card > .row:last-child { justify-content: space-between; margin-top: 13px; padding-top: 6px; border-top: 1px solid #ffffff0b; }
.offline-card .button-row { margin-top: 8px; }
.offline-card .button-row .secondary-button { margin-top: 0; }
.setting-row { gap: 12px; }
.setting-symbol { display: grid; place-items: center; flex: 0 0 25px; width: 25px; color: #828282; }
.setting-symbol .icon { width: 19px; height: 19px; }
.setting-row .card-subtitle { color: #8e8e8e; font-size: 10px; line-height: 1.7; }
.privacy-note { display: flex; align-items: flex-start; gap: 11px; padding: 17px; margin: 11px 0 0; border: 1px solid #344138; border-radius: 13px; background: #1b241e; }
.privacy-note > .icon { width: 18px; height: 18px; color: #86ab90; margin-top: 2px; }
.privacy-note strong { display: block; color: #c0d4c6; font-size: 11px; font-weight: 550; }
.privacy-note p { margin: 6px 0 0; color: #91a297; font-size: 10px; line-height: 1.8; }
.reset-button { width: 100%; color: #c5c5c5; background: transparent; text-align: left; border-radius: 8px; }
.reset-button:hover { background: #ffffff05; }
.reset-button > .icon:last-child { width: 16px; height: 16px; color: #7e7e7e; }
.theme-swatch { display: block; width: 29px; height: 29px; border: 2px solid #555; border-radius: 50%; background: linear-gradient(90deg, #080808 50%, #f5f5f5 50%); margin-right: 10px; }
.app-signoff { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 15px 0 0; text-align: center; }
.app-signoff strong { color: #626262; font-size: 24px; font-weight: 750; letter-spacing: -.065em; }
.app-signoff > span { color: #777; font-size: 10px; }
.app-signoff small { color: #5f5f5f; font-size: 9px; margin-top: 3px; }
.resume-banner { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 12px; margin-bottom: 17px; color: #b4dfbf; background: #1a3021; border: 1px solid #31533b; border-radius: 11px; font-size: 10px; text-align: left; }
.resume-banner > .icon { width: 16px; height: 16px; }
.resume-banner > .icon:last-child { margin-left: auto; }
.hud-destination { display: flex; align-items: center; gap: 11px; max-width: min(350px, calc(100vw - 550px)); padding: 15px 17px; border: 1px solid #484848; border-radius: 13px; color: #eee; background: #181818f0; box-shadow: 0 8px 30px #0005; backdrop-filter: blur(12px); }
.hud-destination > .icon { width: 22px; height: 22px; color: #aaa; }
.hud-destination > span:not(.pill) { min-width: 0; }
.hud-destination small { display: block; color: #858585; font-size: 8px; letter-spacing: .12em; font-weight: 550; }
.hud-destination strong { display: block; color: #ddd; font-size: 13px; font-weight: 550; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-destination .pill { margin-left: 12px; font-size: 8px; padding: 3px 5px; }
.field-label { display: block; font-size: 11px; color: #c4c4c4; margin-bottom: 7px; }
.compact-mode .home-footer, .compact-mode .explore-card, .compact-mode .place-description, .compact-mode .community-card > p, .compact-mode .app-signoff { display: none; }
.compact-mode .destination-card { min-height: 72px; }

@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1550px) {
  :root { --panel-width: 420px; }
  .panel-header { padding: 31px 31px 25px; }
  .screen-content { padding-left: 31px; padding-right: 31px; }
  .page-heading { font-size: 34px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  :root { --rail-width: 72px; --panel-width: 360px; }
  .rail { padding-left: 7px; padding-right: 7px; }
  .panel-header { padding-left: 23px; padding-right: 23px; }
  .screen-content { padding-left: 23px; padding-right: 23px; }
  .map-topbar { top: 23px; left: 20px; right: 20px; flex-wrap: wrap; justify-content: flex-start; }
  .map-controls { right: 20px; }
  .map-bottom-note { left: 20px; max-width: calc(100% - 100px); }
  .navigation-hud { left: 20px; top: 110px; }
  .chip { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 760px) {
  :root { --sheet-height: 51dvh; --mobile-nav-height: calc(70px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 13px; }
  .app-shell { display: block; }
  .rail { display: none; }
  .workspace { display: block; position: relative; height: 100%; overflow: hidden; }
  .journey-panel { position: absolute; left: 0; right: 0; bottom: var(--mobile-nav-height); height: var(--sheet-height); border: 1px solid #3a3a3a; border-bottom: 0; border-radius: 25px 25px 0 0; z-index: 600; box-shadow: 0 -10px 35px #0003; }
  .journey-panel::before { content: ""; position: absolute; top: 8px; left: calc(50% - 16px); height: 3px; width: 32px; background: #555; border-radius: 5px; }
  .panel-header { padding: 23px 22px 12px; min-height: 62px; gap: 9px; }
  .wordmark { font-size: 21px; }
  .panel-header .eyebrow { font-size: 8px; margin-top: 5px; letter-spacing: .13em; }
  .panel-header > .badge { font-size: 8px; padding: 4px 6px; }
  .panel-header .icon-button { width: 48px; height: 48px; margin-top: -8px; margin-bottom: -8px; background: transparent; border: 0; }
  .screen-content { padding: 0 22px 26px; }
  .page-heading { font-size: 27px; margin-top: 3px; margin-bottom: 7px; }
  .subheading { font-size: 12px; margin-bottom: 17px; line-height: 1.6; }
  .search-box { height: 54px; margin-bottom: 12px; border-radius: 12px; }
  .search-box input { font-size: 16px; }
  .chip-list { flex-wrap: nowrap; gap: 7px; overflow-x: auto; margin: 0 -22px 20px; padding: 0 22px 3px; scrollbar-width: none; }
  .chip-list::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 48px; padding: 10px 13px; }
  .section-head { margin-top: 20px; margin-bottom: 12px; }
  .destination-card { min-height: 78px; padding: 12px; }
  .destination-list { gap: 8px; }
  .place-avatar { width: 43px; height: 43px; }
  .card-title { font-size: 13px; }
  .card-subtitle { font-size: 11px; }
  .map-stage { position: absolute; inset: 0 0 auto; height: calc(100dvh - var(--sheet-height) - var(--mobile-nav-height) + 23px); }
  .map-stage::after { box-shadow: inset 0 -40px 35px -38px #000; }
  .map-topbar { left: 17px; right: 17px; top: max(17px, env(safe-area-inset-top, 0px)); gap: 7px; align-items: flex-start; }
  .map-location-pill, .demo-pill { font-size: 9px; padding: 9px 10px; min-height: 33px; gap: 6px; }
  .map-location-pill .icon { width: 13px; height: 13px; }
  .demo-pill { max-width: 140px; }
  .map-controls { top: 69px; right: 17px; bottom: auto; gap: 7px; }
  .map-controls .icon-button { width: 48px; height: 48px; border-radius: 12px; }
  .map-bottom-note { bottom: 48px; left: 17px; max-width: calc(100% - 92px); padding: 6px 9px; font-size: 8px; border-radius: 7px; }
  .leaflet-bottom.leaflet-right { bottom: 24px; }
  .leaflet-control-attribution { font-size: 8px !important; padding: 2px 6px !important; }
  .luncur-map-attribution { bottom: 27px !important; right: 8px !important; font-size: 8px !important; }
  .map-fallback__message { max-width: 260px !important; margin-bottom: 16px; padding: 14px 16px !important; font-size: 12px !important; }
  .navigation-hud { left: 17px; top: 69px; }
  .speed-orb { width: 64px; height: 64px; font-size: 25px; }
  .speed-orb small, .speed-orb span:last-child { font-size: 8px; }
  .mobile-nav { position: fixed; display: flex; align-items: flex-start; justify-content: space-evenly; bottom: 0; left: 0; right: 0; z-index: 700; min-height: var(--mobile-nav-height); padding: 5px 7px env(safe-area-inset-bottom, 0px); border-top: 1px solid #313131; background: #101010; }
  .mobile-nav .nav-item { flex: 1; width: auto; max-width: 80px; min-width: 48px; min-height: 59px; padding: 8px 2px; font-size: 9px; gap: 5px; border-radius: 10px; }
  .mobile-nav .nav-item .icon { width: 20px; height: 20px; }
  .mobile-nav .nav-item.active, .mobile-nav .nav-item[aria-current="page"] { border-color: transparent; background: #292929; }
  body[data-screen="place"] { --sheet-height: 59dvh; }
  body[data-screen="routes"] { --sheet-height: 61dvh; }
  body[data-screen="navigation"] { --sheet-height: 46dvh; }
  body[data-screen="arrival"] { --sheet-height: 59dvh; }
  body[data-screen="settings"], body[data-screen="offline"], body[data-screen="community"], body[data-screen="saved"] { --sheet-height: 64dvh; }
  .place-toolbar { margin: 0 0 7px; }
  .place-hero { padding: 21px; margin-top: 5px; margin-bottom: 16px; }
  .place-symbol { width: 46px; height: 46px; margin-bottom: 17px; }
  .place-symbol .icon { width: 24px; height: 24px; }
  .place-hero h1, .place-hero h2 { font-size: 25px; }
  .detail-list { margin-bottom: 18px; }
  .route-list { margin-top: 17px; gap: 10px; }
  .route-card { padding: 17px; }
  .route-duration { font-size: 28px; }
  .navigation-maneuver { display: grid; grid-template-columns: 54px 1fr; gap: 3px 15px; padding: 18px; margin-top: 7px; border-radius: 15px; }
  .maneuver-arrow { grid-column: 1; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .maneuver-arrow .icon { width: 48px; height: 48px; }
  .maneuver-distance { grid-column: 2; font-size: 32px; margin-bottom: 3px; }
  .navigation-maneuver h2, .navigation-maneuver h3, .navigation-maneuver p { grid-column: 2; }
  .navigation-maneuver h2, .navigation-maneuver h3 { font-size: 14px; }
  .navigation-maneuver p { font-size: 11px; margin-top: 1px; }
  .eta-grid, .journey-stats { margin: 18px 0; }
  .stat strong, .stat > b, .stat-value { font-size: 22px; }
  .nav-actions { margin-top: 14px; }
  .arrival-ring { width: 78px; height: 78px; margin: 14px auto 24px; }
  .arrival-ring .icon { width: 34px; height: 34px; }
  .setting-section { margin-top: 21px; }
  .setting-row { padding: 15px 0; }
  .setting-row p { max-width: 270px; }
  .map-fallback > p { bottom: 75px; left: 16px; right: 85px; max-width: none; padding: 8px; font-size: 9px; }
  .fallback-city { font-size: 10px; }
  .toast { left: 50%; width: max-content; max-width: calc(100vw - 32px); bottom: calc(var(--mobile-nav-height) + 16px); font-size: 12px; }
  dialog { max-height: calc(100dvh - 32px); border-radius: 19px; }
  .dialog-content { padding: 23px; }
  .modal-body input[type="text"], .modal-body textarea { font-size: 16px; }
  .page-intro { margin-bottom: 17px; }
  .destination-main { min-height: 50px; gap: 10px; }
  .home-footer { margin-top: 21px; }
  .place-hero { min-height: 150px; }
  .place-name { font-size: 23px; }
  .place-tags { margin-top: -5px; }
  .navigation-maneuver { display: flex; gap: 15px; }
  .navigation-maneuver h1 { font-size: 16px; }
  .navigation-road { font-size: 17px; margin-top: 16px; margin-bottom: 7px; }
  .eta-grid strong { font-size: 23px; }
  .next-maneuver { font-size: 10px; }
  .demo-controls { padding-top: 17px; margin-top: 20px; }
  .hud-destination { max-width: calc(100vw - 105px); padding: 11px 13px; gap: 8px; }
  .hud-destination > .icon { width: 18px; height: 18px; }
  .hud-destination strong { font-size: 11px; }
  .hud-destination small { font-size: 7px; }
  .hud-destination .pill { display: none; }
  .arrival-screen .trip-summary { margin: 21px 0; }
  .community-card { padding: 16px; }
  .storage-summary { padding-top: 19px; }
  .setting-section > h2 { margin-top: 5px; }
}

@media (max-width: 380px) {
  .panel-header { padding-left: 18px; padding-right: 18px; }
  .screen-content { padding-left: 18px; padding-right: 18px; }
  .page-heading { font-size: 25px; }
  .chip-list { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .map-topbar { left: 12px; right: 12px; }
  .map-location-pill, .demo-pill { font-size: 8px; padding: 8px; }
  .map-controls { right: 12px; }
  .map-bottom-note { left: 12px; }
  .card-title { font-size: 12px; }
  .card-subtitle { font-size: 10px; }
  .destination-card { gap: 10px; }
  .place-avatar { width: 38px; height: 38px; border-radius: 10px; }
  .card-trailing { font-size: 9px; }
  .metric { font-size: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .secondary-button { font-size: 10px; gap: 5px; }
  .nav-actions .secondary-button .icon { width: 15px; height: 15px; }
  .report-tile { padding: 14px; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer > * { width: 100%; }
  .destination-main { gap: 8px; }
  .destination-main .card-trailing { font-size: 9px; }
  .destination-main .card-title { font-size: 12px; }
  .explore-card { gap: 10px; padding: 15px 12px; }
  .explore-card strong { font-size: 11px; }
  .explore-card small { font-size: 9px; }
  .explore-icon { width: 33px; height: 33px; }
  .eta-grid strong { font-size: 21px; }
  .community-card .mini-label { max-width: 130px; line-height: 1.6; }
  .community-summary { gap: 6px; }
}

@media (max-width: 760px) and (max-height: 650px) {
  :root { --sheet-height: 54dvh; }
  body[data-screen="navigation"] { --sheet-height: 55dvh; }
  .map-controls { flex-direction: row; top: auto; bottom: 45px; }
  .map-controls .icon-button { width: 48px; height: 48px; }
  .map-controls .divider { display: none; }
  .map-bottom-note { display: none; }
  .navigation-hud { top: 64px; }
  .panel-header { min-height: 53px; padding-top: 21px; padding-bottom: 8px; }
}

@media (max-height: 680px) and (min-width: 761px) {
  .rail { padding-top: 20px; gap: 22px; }
  .rail-nav { gap: 3px; }
  .nav-item { min-height: 53px; }
  .panel-header { min-height: 82px; padding-top: 25px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
