:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #071b16;
  --muted: #62716c;
  --surface: #f7fbf9;
  --surface-strong: #ffffff;
  --line: #dce7e2;
  --accent: #16d98b;
  --accent-dark: #08734b;
  --danger: #b64141;
  --shadow: 0 20px 60px rgba(4, 30, 23, 0.18);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ink); background: var(--ink); }
body[data-resolved-theme="dark"] {
  --muted: #9fb4ac;
  --surface: #071b16;
  --surface-strong: #102c24;
  --line: #29483e;
  --accent-dark: #48e6a5;
  color-scheme: dark;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(22, 217, 139, 0.48); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell, .map { position: fixed; inset: 0; }
.map { background: #dfeae5; }

.brand-bar { position: fixed; top: 24px; left: 28px; z-index: 4; display: flex; align-items: center; gap: 11px; min-width: 280px; padding: 11px 14px; color: #fff; background: rgba(7, 27, 22, 0.94); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 14px 40px rgba(2,20,15,.25); backdrop-filter: blur(14px); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); border-radius: 12px; }
.brand-mark svg { width: 25px; height: 25px; fill: var(--ink); }
.brand-mark circle { fill: var(--accent); }
.eyebrow { margin: 0 0 1px; color: #a6bdb5; font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-bar h1 { margin: 0; font-size: 1.08rem; line-height: 1.1; letter-spacing: -.02em; }
.brand-bar h1 span { color: var(--accent); }
.icon-button { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-button { margin-left: 4px; font-size: 1.15rem; font-weight: 800; }

.panel { position: fixed; z-index: 5; top: 104px; left: 28px; bottom: 28px; width: min(390px, calc(100vw - 56px)); overflow-y: auto; padding: 26px; background: rgba(250, 253, 251, .97); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px); scrollbar-width: thin; scrollbar-color: #b7c9c1 transparent; transition: transform .3s ease, opacity .25s ease; }
.panel-handle { display: none; }
.search-block label { display: block; margin-bottom: 10px; font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; }
.search-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(7,27,22,.05); }
.search-row:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(22,217,139,.13); }
.search-row > svg { width: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-row input { width: 100%; height: 52px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-row input::placeholder { color: #83908c; }
.clear-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #edf3f0; color: #52615c; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.search-submit-button { min-height: 36px; flex: none; padding: 7px 10px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; cursor: pointer; font-size: .7rem; font-weight: 750; }
.search-submit-button:hover { background: var(--accent-dark); }
.search-submit-button:focus-visible { outline: 3px solid rgba(22,217,139,.32); outline-offset: 2px; }
.helper { margin: 8px 2px 0; color: var(--muted); font-size: .72rem; }
.search-results { margin-top: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(7,27,22,.1); }
.search-results button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid #edf2ef; background: #fff; cursor: pointer; }
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover { background: #f0faf5; }
.search-results strong, .search-results small, .favourite-item strong, .favourite-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results strong { font-size: .9rem; }
.search-results small { max-width: 290px; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.search-results button > span:last-child { min-width: 0; }
.result-badge { display: inline-block; margin-bottom: 4px; padding: 3px 6px; border-radius: 6px; background: #fff1c9; color: #765400; font-size: .62rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.result-badge.local { margin-right: 4px; background: #dff9ec; color: var(--accent-dark); }
.inline-loader { width: 14px; height: 14px; margin-left: auto; flex: none; border: 2px solid #b8c9c1; border-top-color: var(--accent-dark); border-radius: 50%; animation: spin .7s linear infinite; }
.search-results .result-warning { color: #765400; white-space: normal; }
.result-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #e1faee; color: var(--accent-dark); font-weight: 800; }
.results-message { margin: 0; padding: 18px; color: var(--muted); text-align: center; font-size: .85rem; }
.results-message.loading::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid #b8c9c1; border-top-color: var(--accent-dark); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }

.search-preview { margin-top: 12px; padding: 16px; border: 1px solid #b8dfce; border-radius: 17px; background: var(--surface-strong); box-shadow: 0 8px 24px rgba(7,27,22,.08); }
.search-preview h2 { margin: 0; font-size: 1rem; }
.search-preview > p:not(.route-label) { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.preview-actions .text-button { grid-column: 1 / -1; margin: 0; }

.point-card { margin-top: 14px; padding: 16px; border: 1px solid #b8dfce; border-radius: 17px; background: #f0faf5; box-shadow: 0 8px 24px rgba(7,27,22,.08); }
.point-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.point-card .route-label { color: var(--accent-dark); }
.point-card h2 { margin: 0; font-size: 1rem; }
.point-close { width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: #dfeee7; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.point-address { margin: 10px 0 3px; color: #31433d; font-size: .76rem; line-height: 1.4; }
.point-coordinates { margin: 0 0 12px; color: var(--muted); font: 600 .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.point-name-label { display: block; margin-bottom: 5px; color: #31433d; font-size: .7rem; font-weight: 750; }
.point-name { width: 100%; height: 43px; padding: 0 11px; border: 1px solid #b8cec4; border-radius: 10px; background: #fff; outline: 0; }
.point-name:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(22,217,139,.13); }
.point-error { margin: 7px 0 0; color: var(--danger); font-size: .7rem; }
.point-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.primary-button.compact { min-height: 42px; padding: 9px; font-size: .74rem; box-shadow: none; }
.outline-button { min-height: 42px; padding: 9px; border: 1px solid var(--accent-dark); border-radius: 12px; background: #fff; color: var(--accent-dark); cursor: pointer; font-size: .74rem; font-weight: 750; }
.outline-button:hover { background: #e1faee; }
.point-cancel { grid-column: 1 / -1; margin: 0; padding: 4px; }
.point-hint { margin: 9px 1px 0; color: var(--muted); font-size: .66rem; line-height: 1.35; }

.route-card { margin-top: 16px; padding: 17px; background: var(--ink); color: #fff; border-radius: 17px; }
.route-label { margin: 0 0 4px; color: var(--accent); font-size: .69rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.route-card h2 { margin: 0; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.route-notice { margin: 8px 0 0; color: #dce7e2; font-size: .72rem; line-height: 1.4; }
.route-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 14px; }
.route-stats div { padding: 10px 12px; background: rgba(255,255,255,.08); border-radius: 11px; }
.route-stats span, .route-stats small { display: block; }
.route-stats span { font-size: 1.1rem; font-weight: 750; }
.route-stats small { margin-top: 2px; color: #a9bcb5; font-size: .66rem; }
.secondary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font-size: .79rem; font-weight: 650; }
.secondary-button:hover, .secondary-button.is-saved { border-color: var(--accent); color: var(--accent); }
.secondary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.secondary-button.is-saved svg { fill: currentColor; }
.start-navigation-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 9px; padding: 10px 12px; border: 0; border-radius: 11px; background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 800; }
.start-navigation-button:hover { background: #27e39a; }
.start-navigation-button svg { width: 18px; fill: currentColor; }
.route-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 9px; padding: 4px; border-radius: 11px; background: rgba(255,255,255,.08); }
.route-mode button { min-height: 34px; border: 0; border-radius: 8px; background: transparent; color: #c8d8d2; cursor: pointer; font-size: .72rem; font-weight: 750; }
.route-mode button.is-active { background: #fff; color: #071b16; }
#find-parking { margin-bottom: 9px; }
.route-data-status { margin: 0 0 9px; color: #a9bcb5; font-size: .64rem; line-height: 1.35; text-align: center; }

.parking-card, .parked-car-section { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-strong); }
.parking-card .section-heading button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #edf3f0; color: #52615c; cursor: pointer; }
.data-caveat { margin: 8px 0 10px; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.parking-results { display: grid; gap: 7px; }
.parking-result { width: 100%; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.parking-result-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #071b16; font-size: .7rem; font-weight: 900; }
.parking-result strong, .parking-result small { display: block; }
.parking-result strong { font-size: .75rem; }
.parking-result small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
.parking-result-distance { color: var(--accent-dark); font-size: .68rem; font-weight: 800; }
.parked-car-section .section-heading span { max-width: 150px; text-align: right; }
.full-width { width: 100%; margin-top: 10px; }
.parked-car-summary { color: var(--muted); font-size: .72rem; }
.parked-car-fields { display: grid; gap: 6px; }
.parked-car-fields input { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.parked-car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.parked-car-actions button { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: .66rem; font-weight: 700; }
.parked-car-actions button:last-child { grid-column: 1 / -1; color: var(--danger); }

.navigation-overlay { position: fixed; z-index: 12; inset: 0; pointer-events: none; }
.navigation-panel { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); width: min(360px, calc(100vw - 36px)); max-height: calc(100vh - 130px); overflow-y: auto; padding: 14px; pointer-events: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(7,27,22,.96); color: #fff; box-shadow: 0 18px 50px rgba(2,20,15,.3); backdrop-filter: blur(16px); scrollbar-width: thin; }
.navigation-main { display: flex; align-items: center; gap: 15px; }
.nav-symbol { width: 56px; height: 56px; display: grid; place-items: center; flex: none; border-radius: 15px; background: var(--accent); color: var(--ink); font-size: 2.05rem; font-weight: 900; line-height: 1; }
.nav-instruction-block { min-width: 0; }
.nav-distance { margin: 0 0 2px; color: var(--accent); font-size: .84rem; font-weight: 850; }
.navigation-panel h2 { margin: 0; overflow: hidden; font-size: 1.05rem; line-height: 1.22; text-overflow: ellipsis; white-space: nowrap; }
.nav-road { margin: 4px 0 0; color: #b9ccc5; font-size: .73rem; }
.nav-second { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: .7rem; }
.nav-second span { color: #9fb4ac; font-weight: 750; text-transform: uppercase; }
.nav-second strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navigation-stats { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 36px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px; pointer-events: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(7,27,22,.94); color: #fff; box-shadow: 0 12px 36px rgba(2,20,15,.25); backdrop-filter: blur(14px); }
.navigation-stats div { padding: 6px 8px; border-radius: 9px; text-align: center; }
.navigation-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.navigation-stats strong, .navigation-stats span { display: block; }
.navigation-stats strong { font-size: .9rem; }
.navigation-stats span { margin-top: 1px; color: #9fb4ac; font-size: .62rem; }
.navigation-availability { display: flex; margin-top: 9px; color: #f1d38a; font-size: .67rem; }
.navigation-availability span { flex: 1; padding: 6px 8px; border-left: 3px solid #f0b84b; border-radius: 6px; background: rgba(240,184,75,.08); }
.navigation-availability span.is-ready { border-color: var(--accent); }
.navigation-availability span.is-warning { border-color: #ffb648; color: #ffe0a3; }
.navigation-availability span.is-error { border-color: #ff7777; }
.navigation-driving-data { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.navigation-driving-data div { padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
.navigation-driving-data strong, .navigation-driving-data span { display: block; }
.navigation-driving-data strong { font-size: .82rem; }
.navigation-driving-data span { color: #9fb4ac; font-size: .59rem; }
.nav-lanes { display: flex; gap: 4px; margin-top: 7px; padding: 6px; border-radius: 9px; background: rgba(255,255,255,.07); }
.nav-lane { min-width: 35px; flex: 1; padding: 5px; border-radius: 7px; background: rgba(255,255,255,.08); color: #9fb4ac; font-size: .65rem; text-align: center; }
.nav-lane.is-valid { background: rgba(22,217,139,.2); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(22,217,139,.38); }
.navigation-essential, .navigation-secondary-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.navigation-essential button, .navigation-secondary-controls button { min-height: 38px; padding: 6px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: .68rem; font-weight: 750; }
.navigation-essential button:hover, .navigation-secondary-controls button:hover { background: rgba(255,255,255,.15); }
.navigation-essential button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.navigation-essential .nav-end { border-color: rgba(255,119,119,.55); color: #ffaaaa; }
.navigation-more { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.navigation-more summary { padding: 8px 2px 0; cursor: pointer; color: #bed0c9; font-size: .68rem; font-weight: 750; text-align: center; }
.navigation-more-content { padding-top: 8px; }
.nav-voice-status { display: block; padding-left: 9px; border-left: 3px solid #f0b84b; color: #b9ccc5; font-size: .64rem; }
.nav-voice-status.is-ready { border-color: var(--accent); }
.nav-voice-status.is-error { border-color: #ff7777; }
.voice-settings { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: .68rem; }
.voice-settings label { color: #b9ccc5; font-weight: 750; }
.voice-settings select { min-height: 32px; padding: 4px 28px 4px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #17362d; color: #fff; }
.navigation-secondary-controls { grid-template-columns: repeat(2, 1fr); }
body.navigating .panel { opacity: 0; pointer-events: none; transform: translateX(calc(-100% - 48px)); }
body.navigating .brand-bar, body.navigating .layer-switcher, body.navigating .map-controls, body.navigating .aerial-quality { opacity: 0; pointer-events: none; }
body.navigating .status-toast { top: auto; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); }

.actions { margin-top: 18px; }
.primary-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 0; border-radius: 14px; background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 750; box-shadow: 0 7px 20px rgba(22,217,139,.22); }
.primary-button:hover { background: #27e39a; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .75; }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.primary-button.is-loading svg { animation: spin 1.2s linear infinite; }
.text-button { width: 100%; margin-top: 8px; padding: 8px; border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font-size: .79rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }

.favourites-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: .95rem; }
.section-heading span { color: var(--muted); font-size: .7rem; }
.favourites-list { margin-top: 9px; }
.empty-state { margin: 12px 0 0; color: var(--muted); font-size: .77rem; }
.favourite-item { display: flex; align-items: center; margin-bottom: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.favourite-open { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.favourite-open > span:last-child { min-width: 0; }
.favourite-item strong { font-size: .78rem; }
.favourite-item small { max-width: 235px; margin-top: 2px; color: var(--muted); font-size: .66rem; }
.favourite-pin { color: #e5a800; }
.favourite-edit, .favourite-remove { width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: .95rem; }
.favourite-edit:hover { background: #e1faee; color: var(--accent-dark); }
.favourite-remove { margin-right: 5px; font-size: 1.1rem; }
.favourite-remove:hover { background: #fff0f0; color: var(--danger); }
.panel-footer { margin-top: 22px; color: #66756f; font-size: .64rem; line-height: 1.45; text-align: center; }
.panel-footer > p { margin: 0; }
.panel-footer a { color: inherit; }
.service-info { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); text-align: left; }
.service-info summary { cursor: pointer; color: #43534d; font-weight: 750; text-align: center; }
.service-info p { margin: 7px 0 0; }

.map-controls { position: fixed; z-index: 4; top: 24px; right: 24px; display: grid; gap: 7px; }
.layer-switcher { position: fixed; z-index: 4; top: 24px; right: 80px; display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(7,27,22,.12); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(7,27,22,.15); backdrop-filter: blur(8px); }
.layer-option { min-height: 36px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: #52615c; cursor: pointer; font-size: .74rem; font-weight: 700; }
.layer-option:hover { background: #edf5f1; color: var(--ink); }
.layer-option.is-active { background: var(--ink); color: #fff; box-shadow: 0 3px 9px rgba(7,27,22,.18); }
.layer-option svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aerial-quality { position: fixed; z-index: 4; top: 78px; right: 80px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(7,27,22,.9); color: #fff; box-shadow: 0 7px 20px rgba(7,27,22,.18); backdrop-filter: blur(8px); font-size: .67rem; font-weight: 700; }
.aerial-quality::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #f0b84b; vertical-align: 1px; }
.map-button { width: 44px; height: 44px; border: 1px solid rgba(7,27,22,.12); border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(7,27,22,.15); cursor: pointer; font-size: 1.4rem; backdrop-filter: blur(8px); }
.status-toast { position: fixed; z-index: 20; top: 26px; left: 50%; max-width: min(460px, calc(100vw - 40px)); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 12px 36px rgba(3,21,16,.26); transform: translateX(-50%); font-size: .8rem; text-align: center; }
.status-toast[data-type="success"] { border-left: 4px solid var(--accent); }
.status-toast[data-type="error"] { border-left: 4px solid #ff7777; }
.manual-banner { position: fixed; z-index: 15; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow); transform: translateX(-50%); font-size: .8rem; }
.manual-banner button { padding: 7px 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; }
.selecting-start .map canvas { cursor: crosshair !important; }
.selecting-destination .map canvas { cursor: crosshair !important; }

.location-marker { width: 24px; height: 24px; border: 5px solid #fff; border-radius: 50%; background: #1689ff; box-shadow: 0 0 0 9px rgba(22,137,255,.2), 0 3px 10px rgba(0,0,0,.3); transition: background .2s ease, box-shadow .2s ease; }
.location-marker.is-inaccurate { background: #e49a1c; box-shadow: 0 0 0 15px rgba(228,154,28,.22), 0 3px 10px rgba(0,0,0,.3); }
.start-marker { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.start-marker span { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.start-marker.manual span { background: #f1a000; }
.destination-marker { width: 34px; height: 44px; position: relative; display: grid; place-items: start center; border-radius: 50% 50% 50% 6px; background: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.28); transform: rotate(-45deg); }
.destination-marker span { width: 12px; height: 12px; margin-top: 10px; border-radius: 50%; background: var(--ink); }
.selection-marker { width: 40px; height: 50px; position: relative; display: grid; place-items: start center; border: 4px solid #fff; border-radius: 50% 50% 50% 7px; background: var(--accent); box-shadow: 0 5px 18px rgba(0,0,0,.35); transform: rotate(-45deg); cursor: grab; }
.selection-marker:active { cursor: grabbing; }
.selection-marker span { width: 13px; height: 13px; margin-top: 9px; border-radius: 50%; background: var(--ink); }
.numbered-marker, .parking-marker { min-width: 32px; height: 38px; padding: 0 7px; border: 3px solid #fff; border-radius: 16px 16px 16px 3px; background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: pointer; transform: rotate(-45deg); font-size: .72rem; font-weight: 900; }
.numbered-marker::first-line, .parking-marker::first-line { transform: rotate(45deg); }
.parking-marker { background: #126ce5; }
.parked-car-marker { width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #126ce5; box-shadow: 0 4px 12px rgba(0,0,0,.3); font-size: 1.1rem; }

body[data-resolved-theme="dark"] .panel { background: rgba(7,27,22,.97); border-color: rgba(255,255,255,.12); color: #eaf7f1; }
body[data-resolved-theme="dark"] .search-row,
body[data-resolved-theme="dark"] .search-results,
body[data-resolved-theme="dark"] .search-results button,
body[data-resolved-theme="dark"] .favourite-item { background: var(--surface-strong); color: var(--ink); }
body[data-resolved-theme="dark"] .search-row,
body[data-resolved-theme="dark"] .search-results,
body[data-resolved-theme="dark"] .search-results button,
body[data-resolved-theme="dark"] .favourite-item,
body[data-resolved-theme="dark"] .parking-result,
body[data-resolved-theme="dark"] .parked-car-fields input,
body[data-resolved-theme="dark"] .parked-car-actions button { color: #eaf7f1; }
body[data-resolved-theme="dark"] .search-row input { color: #eaf7f1; }
body[data-resolved-theme="dark"] .search-results button:hover { background: #17362d; }
body[data-resolved-theme="dark"] .clear-button,
body[data-resolved-theme="dark"] .point-close { background: #25463b; color: var(--ink); }
body[data-resolved-theme="dark"] .point-card { background: #102c24; border-color: #315c4d; }
body[data-resolved-theme="dark"] .point-address,
body[data-resolved-theme="dark"] .point-name-label { color: #d6e8e1; }
body[data-resolved-theme="dark"] .point-name,
body[data-resolved-theme="dark"] .outline-button { background: #17362d; color: var(--ink); border-color: #3c6a5a; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 759px) {
  .brand-bar { top: max(12px, env(safe-area-inset-top)); left: 12px; min-width: 0; padding: 9px 11px; border-radius: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 22px; }
  .eyebrow { display: none; }
  .brand-bar h1 { font-size: .98rem; }
  .install-button { width: 34px; height: 34px; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 48vh; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .panel-handle { display: block; width: 40px; height: 4px; margin: -8px auto 12px; border-radius: 99px; background: #c6d1cc; }
  .search-block label { margin-bottom: 7px; font-size: 1.12rem; }
  .search-row input { height: 47px; }
  .search-row { gap: 7px; padding-right: 7px; }
  .search-submit-button { min-height: 34px; padding: 6px 8px; font-size: .66rem; }
  .search-results { position: absolute; z-index: 4; left: 18px; right: 18px; }
  .search-results small { max-width: calc(100vw - 110px); }
  .point-card { margin-top: 12px; }
  .point-actions { grid-template-columns: 1fr; }
  .navigation-panel { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); width: auto; max-height: calc(100vh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 10px; border-radius: 15px; }
  .navigation-main { gap: 10px; }
  .nav-symbol { width: 47px; height: 47px; border-radius: 13px; font-size: 1.75rem; }
  .navigation-panel h2 { font-size: .96rem; }
  .nav-road { margin-top: 2px; font-size: .66rem; }
  .nav-second { margin-top: 7px; padding: 5px 7px; }
  .navigation-availability { margin-top: 7px; }
  .navigation-essential { margin-top: 7px; }
  .navigation-essential button { min-height: 35px; }
  .navigation-more { margin-top: 6px; }
  .navigation-stats { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: auto; }
  .navigation-stats div { padding: 5px 6px; }
  .voice-settings { margin-top: 7px; }
  body.navigating .panel { opacity: 0; transform: translateY(calc(100% + 32px)); }
  body.navigating .maplibregl-ctrl-bottom-right { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.navigating .status-toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .map-controls { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  .layer-switcher { top: max(12px, env(safe-area-inset-top)); right: 60px; }
  .layer-option { min-height: 32px; padding: 6px 8px; font-size: .68rem; }
  .layer-option svg { width: 14px; height: 14px; }
  .aerial-quality { top: 61px; right: 60px; }
  .map-button { width: 40px; height: 40px; }
  .status-toast { top: 72px; }
  .manual-banner { bottom: calc(50vh + 14px); width: calc(100vw - 24px); justify-content: space-between; }
  .maplibregl-ctrl-bottom-right { bottom: 48vh; }
}

@media (max-height: 660px) and (max-width: 759px) {
  .panel { max-height: 55vh; }
  .maplibregl-ctrl-bottom-right { bottom: 55vh; }
  .manual-banner { bottom: calc(57vh + 8px); }
}

@media (max-height: 520px) {
  .navigation-panel { max-height: calc(100vh - 82px); }
  .nav-road { display: none !important; }
  .navigation-stats { bottom: max(5px, env(safe-area-inset-bottom)); }
}

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