:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(18, 18, 22, .86);
  --panel-deep: rgba(12, 15, 22, .92);
  --card: rgba(26, 29, 38, .66);
  --line: rgba(255, 255, 255, .105);
  --text: #f7f9ff;
  --muted: #8e98aa;
  --green: #32d74b;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --amber: #ffbd67;
  --red: #ff453a;
  --blue: #0a84ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .72);
  --spring: cubic-bezier(.18, .92, .28, 1.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); }
body { font-family: "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif; }
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
#map { position: fixed; inset: 0; z-index: 0; background: #05090f; }
#map::after { content: ""; position: absolute; inset: 0; z-index: 550; pointer-events: none; background: radial-gradient(circle at 50% 46%, transparent 0 34%, rgba(0,0,0,.08) 54%, rgba(0,0,0,.52) 100%), linear-gradient(180deg, rgba(0,0,0,.5), transparent 24%, transparent 62%, rgba(0,0,0,.58)); }
#map .leaflet-tile-pane { filter: saturate(1.2) contrast(1.14) brightness(.72) hue-rotate(4deg); }
.leaflet-control-attribution, .leaflet-control-zoom { display: none; }
.ambient { position: fixed; inset: -30%; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 72%, rgba(50, 215, 75, .16), transparent 46%); mix-blend-mode: screen; opacity: .38; transition: background .35s ease; }
.topbar { position: fixed; z-index: 10; left: 14px; right: 14px; top: calc(12px + env(safe-area-inset-top)); display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; }
.brand, .search, .round, .fuelbar, .sheet, .tabbar, .side-controls button { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018)), var(--panel); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(34px) saturate(1.55); -webkit-backdrop-filter: blur(34px) saturate(1.55); }
.brand { height: 52px; min-width: 132px; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 22px; font-weight: 700; line-height: .92; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 14px rgba(50,215,75,.38)); }
.brand b { color: #6af5b2; }
.search { position: relative; min-width: 0; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 22px; color: var(--muted); }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-popover { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); z-index: 70; display: none; width: min(520px, calc(100vw - 40px)); max-height: min(360px, calc(100dvh - 180px)); overflow-y: auto; overflow-x: hidden; padding: 8px; border-radius: 22px; border: 1px solid var(--line); background: rgba(15,18,26,.94); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); transform: translateX(-50%); backdrop-filter: blur(28px) saturate(1.55); -webkit-backdrop-filter: blur(28px) saturate(1.55); }
.search-popover.show { display: grid; gap: 6px; }
.search-result { width: 100%; min-height: 56px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: transparent; color: #fff; text-align: left; }
.search-result:active, .search-result:hover { background: rgba(255,255,255,.07); }
.search-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(180deg, rgba(50,215,75,.24), rgba(50,215,75,.09)); border: 1px solid rgba(50,215,75,.35); color: #9cffc8; font-size: 12px; font-weight: 950; }
.search-result strong, .search-result small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result strong { font-size: 14px; letter-spacing: -.015em; }
.search-result small, .search-empty { color: var(--muted); font-size: 12px; }
.search-empty { padding: 14px; text-align: center; font-weight: 800; }
.offline-card { position: fixed; z-index: 35; left: 20px; right: 20px; top: calc(250px + env(safe-area-inset-top)); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,189,103,.16), rgba(255,255,255,.045)), rgba(16,18,24,.9); border: 1px solid rgba(255,189,103,.32); box-shadow: 0 18px 42px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); color: #fff; }
.offline-card.show { display: flex; animation: rise .22s ease both; }
.offline-card b, .offline-card span { display: block; min-width: 0; }
.offline-card b { font-size: 13px; letter-spacing: -.02em; }
.offline-card span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.offline-card a { flex: 0 0 auto; min-width: 58px; height: 38px; display: grid; place-items: center; border-radius: 14px; color: #07130d; background: linear-gradient(180deg, #5eff9c, #22d864); text-decoration: none; font-size: 13px; font-weight: 950; box-shadow: 0 10px 24px rgba(50,215,75,.28); }
.cache-intro { position: fixed; left: 14px; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90; display: block; pointer-events: none; }
.cache-intro[hidden] { display: none; }
.cache-intro-card { position: relative; width: min(520px, 100%); margin: 0 auto; padding: 16px 18px 14px; border-radius: 22px; color: #fff; background: linear-gradient(180deg, rgba(22,29,36,.96), rgba(14,19,26,.92)); border: 1px solid rgba(60,214,120,.34); box-shadow: 0 20px 46px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05); animation: rise .24s ease both; pointer-events: auto; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: start; }
.cache-close { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.06); color: #9fb1c7; font-size: 18px; line-height: 1; }
.cache-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #08140e; background: radial-gradient(circle at 32% 22%, #eafff1, #5eff9c 38%, #18c75b); box-shadow: 0 0 24px rgba(50,215,75,.22); font-size: 15px; font-weight: 950; letter-spacing: -.08em; }
.cache-copy { min-width: 0; padding-right: 34px; }
.cache-copy small { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; margin-bottom: 6px; border-radius: 999px; background: rgba(50,215,75,.14); color: #79f6b7; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.cache-intro h2 { margin: 0 0 4px; font-size: 22px; line-height: .98; letter-spacing: -.045em; }
.cache-intro p { margin: 0; color: #b8c2d1; font-size: 13px; line-height: 1.38; }
.cache-actions { grid-column: 2; display: flex; gap: 10px; margin-top: 12px; }
.cache-actions a, .cache-actions button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 13px; font-weight: 900; text-decoration: none; text-align: center; }
.cache-actions a { color: #07130d; background: linear-gradient(180deg, #67ffa4, #25d964); box-shadow: 0 10px 22px rgba(50,215,75,.18); }
.cache-actions button { color: #fff; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cache-actions a:active, .cache-actions button:active { transform: scale(.98); }
.round { width: 52px; height: 52px; border-radius: 50%; color: var(--blue); font-size: 24px; }
.side-controls { position: fixed; z-index: 18; right: 12px; top: calc(152px + env(safe-area-inset-top)); display: grid; gap: 7px; pointer-events: auto; }
.side-controls button { width: 48px; min-height: 48px; display: grid; place-items: center; gap: 0; padding: 5px 4px; border-radius: 17px; color: #f7f9ff; transition: transform .16s ease, border-color .22s ease, background .22s ease; }
.side-controls button:active { transform: scale(.95); }
.side-controls span { display: block; color: var(--blue); font-size: 20px; line-height: 1; font-weight: 900; }
.side-controls b { display: none; }
body.theme-light #map::after { background: radial-gradient(circle at 50% 46%, transparent 0 44%, rgba(0,0,0,.04) 64%, rgba(0,0,0,.24) 100%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 22%, transparent 70%, rgba(0,0,0,.28)); }
body.theme-light #map .leaflet-tile-pane { filter: saturate(1.04) contrast(1.02) brightness(1.08) hue-rotate(-6deg); }
body.theme-light .ambient { opacity: .14; }
.fuelbar { position: fixed; z-index: 9; left: 10px; right: 10px; display: flex; gap: 6px; overflow: hidden; padding: 7px; border-radius: 22px; scrollbar-width: none; top: calc(76px + env(safe-area-inset-top)); }
.fuelbar::-webkit-scrollbar { display: none; }
.fuelbar button { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 5px; border-radius: 14px; background: rgba(255,255,255,.065); color: #a8b3c7; font-size: clamp(11px, 2.8vw, 14px); font-weight: 900; letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 1px 0 rgba(255,255,255,.045); transition: transform .16s ease, box-shadow .22s ease, background .22s ease, color .22s ease; }
.fuelbar button:active { transform: scale(.96); }
.fuelbar button.on { background: linear-gradient(180deg, rgba(50,215,75,.34), rgba(50,215,75,.12)); color: #dfffee; border: 1px solid rgba(50,215,75,.62); box-shadow: 0 0 0 1px rgba(50,215,75,.18), 0 12px 28px rgba(50,215,75,.18), inset 0 1px 0 rgba(255,255,255,.12); text-shadow: 0 0 14px rgba(50,215,75,.6); }
.fuel-pin { width: 34px; height: 46px; position: relative; display: block; transform: translateY(-6px); filter: drop-shadow(0 10px 12px rgba(0,0,0,.38)); animation: pinIn .2s ease both; }
.pin-aura { position: absolute; left: 50%; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 82%, transparent) 0 24%, color-mix(in srgb, var(--c) 34%, transparent) 52%, transparent 76%); filter: blur(6px); opacity: .6; transform: translateX(-50%); }
.pin-card { position: absolute; left: 50%; top: 0; width: 28px; height: 36px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 14px 14px 15px 15px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 96%, #fff 4%), color-mix(in srgb, var(--c) 84%, #111 16%)); border: 1px solid rgba(255,255,255,.84); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 12%, transparent), 0 8px 14px rgba(0,0,0,.34); transition: transform .16s ease, box-shadow .2s ease; overflow: hidden; }
.pin-card::before { content: ""; position: absolute; inset: 2px; border-radius: 12px 12px 13px 13px; background: radial-gradient(circle at 50% 42%, rgba(11,16,24,.98) 0 58%, rgba(11,16,24,.94) 100%); border: 1px solid rgba(255,255,255,.08); }
.pin-card::after { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 2px; border-radius: 999px; background: rgba(255,255,255,.58); opacity: .7; }
.pin-core { position: relative; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.pin-core svg { width: 11px; height: 11px; fill: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.24)); }
.pin-tail { position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; border-radius: 0 0 4px 0; transform: translateX(-50%) rotate(45deg); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 90%, #fff 10%), color-mix(in srgb, var(--c) 72%, #111 28%)); border-right: 1px solid rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.72); box-shadow: 4px 4px 8px rgba(0,0,0,.18); }
.fuel-pin.sel .pin-card { transform: translateX(-50%) scale(1.08) translateY(-1px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent), 0 0 20px color-mix(in srgb, var(--c) 54%, transparent), 0 10px 16px rgba(0,0,0,.38); }
.fuel-pin.sel::after { content: ""; position: absolute; left: 50%; top: -4px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 54%, transparent); transform: translateX(-50%); animation: ripple 1.2s ease-out infinite; }
.station-cluster { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 950; font-size: 15px; letter-spacing: -.04em; background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.46), transparent 24%), linear-gradient(145deg, color-mix(in srgb, var(--c) 88%, #fff 12%), color-mix(in srgb, var(--c) 48%, #06101b 52%)); border: 2px solid rgba(255,255,255,.78); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 13%, transparent), 0 18px 36px rgba(0,0,0,.55), 0 0 30px color-mix(in srgb, var(--c) 64%, transparent); cursor: pointer; backdrop-filter: blur(8px); }
.station-cluster::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); }
.me-pin { width: 18px; height: 18px; position: relative; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #f4fbff 0 16%, #6ebeff 42%, #0a62ff 74%); border: 2px solid rgba(255,255,255,.94); box-shadow: 0 0 12px rgba(10,132,255,.38), 0 6px 12px rgba(0,0,0,.28); }
.me-pin::after { display: none; content: none; }
.me-pin i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes pinIn { from { opacity: 0; transform: translateY(2px) scale(.86); } }
@keyframes ripple { from { opacity: .65; transform: scale(.55); } to { opacity: 0; transform: scale(1.36); } }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; width: auto; max-width: 100vw; max-height: 88vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; border-radius: 36px 36px 0 0; padding: 24px 20px calc(100px + env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform .5s var(--spring); background: rgba(18,18,20,.88); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -20px 60px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); }
.sheet.show { transform: translateY(0); }
.sheet.show:has(#emptyView.show), .sheet.show:has(#stationView.show), .sheet.show:has(#addStationView.show), .sheet.show:has(#savedView.show), .sheet.show:has(#safetyView.show) { transform: translateY(0) !important; }
.grab { width: 48px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 24px; }
.sheet:has(#stationView.show) { max-height: calc(100dvh - 16px - env(safe-area-inset-top)); padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
.sheet:has(#stationView.show) .grab { display: none; }
.sheet:has(#emptyView.show) { max-height: min(46vh, 390px); padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet-view { display: none; }
.sheet-view.show { display: block; animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.empty-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 24px; line-height: 1; }
.empty-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.22), transparent 35%), rgba(50,215,75,.13); border: 1px solid rgba(50,215,75,.35); margin-bottom: 14px; font-size: 28px; box-shadow: 0 0 24px rgba(50,215,75,.16); }
.sheet *, .sheet *::before, .sheet *::after { min-width: 0; }
.add-station-cta { width: 100%; min-height: 64px; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin: 16px 0 0; padding: 10px 12px; border-radius: 20px; text-align: left; background: radial-gradient(circle at 16% 20%, rgba(50,215,75,.22), transparent 34%), rgba(255,255,255,.055); border: 1px solid rgba(50,215,75,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 28px rgba(0,0,0,.26); }
.add-station-cta span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: #04120a; background: linear-gradient(180deg, #6dffad, #28d864); font-size: 26px; font-weight: 900; box-shadow: 0 0 22px rgba(50,215,75,.24); }
.add-station-cta b, .add-station-cta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-station-cta b { color: #fff; font-size: 16px; letter-spacing: -.025em; }
.add-station-cta small { color: var(--muted); font-size: 12px; font-weight: 800; }
.nearest-mini { width: 100%; margin-top: 18px; display: grid; gap: 9px; overflow: hidden; }
.nearest-mini-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.nearest-mini-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearest-mini-title b { flex: 0 0 auto; color: #f7f9ff; font-size: 13px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.nearest-mini-list { display: grid; gap: 8px; }
.nearest-item { width: 100%; min-height: 58px; display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(46px, auto); gap: 10px; align-items: center; padding: 9px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); text-align: left; overflow: hidden; }
.nearest-logo { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #f8fbff, #dfe6f1); color: var(--brand, var(--green)); font-size: 12px; font-weight: 950; border: 1px solid rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(0,0,0,.28); }
.nearest-logo img { max-width: 88%; max-height: 88%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)); }
.nearest-item strong, .nearest-item small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearest-item strong { color: #fff; font-size: 14px; }
.nearest-item small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.nearest-status { justify-self: end; max-width: 66px; color: var(--c, var(--muted)); font-size: 12px; font-style: normal; font-weight: 950; line-height: 1.05; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.nearest-channel { background: linear-gradient(135deg, rgba(50,215,75,.14), rgba(255,255,255,.05)); border-color: rgba(50,215,75,.26); }
.nearest-channel .nearest-status { color: #6af5b2; }
.max-logo { position: relative; background: radial-gradient(circle at 30% 20%, rgba(120,255,170,.28), rgba(12,18,24,.96) 64%); border-color: rgba(80,255,170,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px rgba(0,0,0,.3), 0 0 0 1px rgba(80,255,170,.08); }
.max-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: saturate(1.02) contrast(1.05); }
.max-logo::after { content: "MAX"; position: absolute; right: 4px; bottom: 4px; min-width: 22px; height: 16px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: rgba(12,18,24,.84); border: 1px solid rgba(110,255,185,.32); color: #8dffbf; font-size: 8px; font-weight: 1000; letter-spacing: .08em; box-shadow: 0 4px 10px rgba(0,0,0,.28); }
h1 { margin: 0; font-size: 27px; letter-spacing: -.045em; line-height: 1.02; }
h2 { margin: 22px 0 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
p { color: var(--muted); line-height: 1.45; }
.gemini-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.gemini-head h1 { font-size: 28px; line-height: .98; letter-spacing: -.045em; max-width: 260px; }
.gemini-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.25; }
.gemini-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.icon-btn { width: 36px; height: 36px; border-radius: 18px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; display: grid; place-items: center; transition: .2s; }
.icon-btn.active { background: rgba(10,132,255,.2); color: var(--blue); box-shadow: 0 0 15px rgba(10,132,255,.35); }
.station-subline { margin: -14px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.grid-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 800; margin: 0 0 12px; }
.live-summary { margin: -8px 0 18px; padding: 15px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.07); border-left: 3px solid var(--status, var(--muted)); background: linear-gradient(90deg, color-mix(in srgb, var(--status, var(--muted)) 12%, transparent), transparent 56%), rgba(255,255,255,.052); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); }
.live-row { display: flex; align-items: center; gap: 9px; min-height: 26px; color: #f7f9ff; font-size: 14px; font-weight: 780; line-height: 1.25; }
.live-row + .live-row { margin-top: 4px; }
.live-row[hidden] { display: none; }
.live-row i { width: 20px; min-width: 20px; color: var(--status, var(--amber)); font-size: 16px; font-style: normal; text-align: center; }
.live-row.primary { font-size: 15px; font-weight: 920; }
.live-row.muted { color: var(--muted); font-size: 12px; font-weight: 740; }
.live-row.pause span { color: #ffb84d; font-weight: 800; }
.fuel-available { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fuel-chip { flex: 1 1 calc(50% - 4px); min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--status, var(--amber)) 62%, transparent); color: var(--status, var(--amber)); background: color-mix(in srgb, var(--status, var(--amber)) 10%, rgba(255,255,255,.05)); font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fuel-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--status, var(--amber)); box-shadow: 0 0 14px var(--status, var(--amber)); }
.station-actions { margin: 0 0 14px; display: grid; gap: 10px; grid-template-columns: 1fr auto; }
.station-actions .quick { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.station-actions .route { width: 100%; min-height: 58px; background: linear-gradient(180deg, #74f6bd, #32d74b); color: #03120a; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 32px rgba(50,215,75,.24), inset 0 1px 0 rgba(255,255,255,.38); }
.station-actions .edit-station { min-height: 58px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; }
.home-chip { margin-left: 0; padding: 10px 12px; border-radius: 999px; border: 1px solid rgba(255,215,0,.35); background: rgba(255,215,0,.12); color: #ffe566; font-weight: 800; white-space: nowrap; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.topbar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sidebar-filters { display: none; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.filter-head strong { color: #f7f9ff; font-size: 13px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.statusbar { display: flex; gap: 8px; }
.statusbar button { flex: 1 1 0; min-height: 38px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #a8b3c7; font-weight: 900; font-size: 13px; transition: .2s ease; }
.statusbar button.on { background: linear-gradient(180deg, rgba(50,215,75,.28), rgba(50,215,75,.1)); color: #dfffee; border-color: rgba(50,215,75,.55); box-shadow: 0 0 0 1px rgba(50,215,75,.16), inset 0 1px 0 rgba(255,255,255,.08); }
.statusbar button[data-status="out"].on { background: linear-gradient(180deg, rgba(255,69,58,.24), rgba(255,69,58,.08)); border-color: rgba(255,69,58,.45); color: #ffd2cf; box-shadow: none; }
.nearest-more { width: 100%; min-height: 46px; margin-top: 4px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font-weight: 800; }
.dup-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,159,10,.35); background: rgba(255,159,10,.12); color: #ffd699; font-size: 13px; line-height: 1.35; }
.dup-banner button { margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.edit-sheet { margin-top: 18px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.edit-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.edit-sheet-head button { border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; }
.edit-sheet-note { margin: 0 0 12px; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.35; }
.edit-actions { display: grid; gap: 8px; }
.edit-actions button { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font-weight: 650; }
.search-result .search-meta { display: block; margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.62); }
.search-save { margin-left: auto; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,215,0,.35); background: transparent; color: #ffe566; font-size: 11px; font-weight: 800; }
.fuel-title small { font-weight: 500; opacity: .72; }
.station-actions .route i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: rgba(3,18,10,.12); color: #03120a; }
.station-actions .route span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-actions .route b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(3,18,10,.14); font-size: 14px; line-height: 1; }
.report-title { margin-top: 4px; }
.fuel-title { margin-top: 0; }
.station-head { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: start; }
.station-head.compact { grid-template-columns: 1fr auto; }
.station-head small { color: var(--amber); text-transform: uppercase; font-weight: 900; letter-spacing: .08em; font-size: 11px; }
.station-head p { margin: 5px 0 0; font-size: 14px; }
.station-logo { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #f8fbff, #dfe6f1); border: 1px solid rgba(255,255,255,.32); overflow: hidden; font-weight: 900; color: var(--brand, var(--green)); box-shadow: 0 14px 28px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.75); }
.station-logo img { max-width: 88%; max-height: 88%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)); }
.close { width: 38px; height: 38px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 24px; }
.status-banner { margin: 18px 0; border-radius: 21px; padding: 16px; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--status, var(--muted)) 16%, transparent), transparent 62%), rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-left: 4px solid var(--status, var(--muted)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); }
.status-banner b { display: block; font-size: 18px; }
.status-banner span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.quick { min-height: 50px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(180deg, #74f6bd, #32d74b); color: #03120a; font-weight: 950; box-shadow: 0 12px 28px rgba(50,215,75,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.quick.ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.fuel-pick, .saved-list { display: grid; gap: 10px; }
.fuel-pick { grid-template-columns: repeat(4, max-content); margin-bottom: 20px; gap: 8px; }
.fuel-pick button { height: 38px; min-width: 58px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-weight: 700; border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.fuel-pick button.on { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.gemini-fuels { display: flex; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; clear: both; }
.card { position: relative; overflow: hidden; text-align: left; min-height: 122px; border-radius: 16px; padding: 16px 14px; background: rgba(26,26,28,.62); border: 1px solid rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.card:active { transform: scale(.97); }
.card i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 12px; font-size: 22px; font-style: normal; font-weight: 900; transition: .3s; }
.ph-gas-pump::before { content: "⛽"; }
.ph-warning::before, .ph-warning-octagon::before { content: "!"; }
.ph-car-profile::before { content: "≈"; }
.ph-ticket::before { content: "ℓ"; }
.ph-prohibit::before { content: "×"; }
.ph-clock::before { content: "◷"; }
.ph-check-circle::before { content: "✓"; }
.ph-pencil-simple::before { content: "✎"; }
.ph-navigation-arrow::before { content: "➤"; }
.ph-shield-check::before { content: "✓"; }
.ph-check::before { content: "✓"; }
.ph-paper-plane-tilt::before { content: "➤"; }
.ph-x::before { content: "×"; }
.ph-arrow-left::before { content: "←"; }
.ph-bookmark-simple::before { content: "⌑"; }
.ph-device-mobile::before { content: "▯"; }
.card b, .card span { display: block; }
.card b { font-size: 15px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.card span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.2; }
.card.green i { background: rgba(50,215,75,.1); color: var(--green); }
.card.yellow i { background: rgba(255,214,10,.1); color: var(--yellow); }
.card.orange i { background: rgba(255,159,10,.1); color: var(--orange); }
.card.amber i { background: rgba(255,214,10,.1); color: var(--yellow); }
.card.red i { background: rgba(255,69,58,.1); color: var(--red); }
.card.on { border-color: var(--active, var(--green)); background: color-mix(in srgb, var(--active, var(--green)) 8%, rgba(26,26,28,.68)); box-shadow: 0 4px 20px color-mix(in srgb, var(--active, var(--green)) 15%, transparent); }
.card.on i { background: var(--active, var(--green)); color: #04110b; }
.limits-panel { background: rgba(255,214,10,.055); border: 1px solid transparent; border-radius: 16px; overflow: hidden; max-height: 0; opacity: 0; padding: 0 16px; margin: 0; transition: all .4s var(--spring); }
.limits-panel.show { max-height: 300px; opacity: 1; padding: 16px; margin: -6px 0 20px; border-color: rgba(255,214,10,.35); }
.limits-title { color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.limit-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.limit-tag { height: 38px; padding: 0 16px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.limit-tag.selected { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.95); }
.limit-input { width: 100%; height: 46px; background: rgba(0,0,0,.36); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 15px; padding: 0 14px; border-radius: 12px; outline: none; }
.limit-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,214,10,.1); }
.btn-group { display: flex; gap: 12px; margin-top: 22px; }
.btn-back { width: 60px; height: 56px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font-size: 20px; display: grid; place-items: center; transition: .2s; }
.btn-submit { flex: 1; height: 56px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--active, var(--green)) 42%, transparent); background: rgba(255,255,255,.045); color: var(--active, var(--green)); font-size: 16px; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 0 20px color-mix(in srgb, var(--active, var(--green)) 14%, transparent); transition: .3s; }
.btn-back:active, .btn-submit:active { transform: scale(.96); }
.submit { width: 100%; min-height: 56px; margin-top: 14px; border-radius: 18px; background: linear-gradient(180deg, #74f6bd, #32d74b); color: #03120a; font-weight: 950; font-size: 16px; box-shadow: 0 14px 30px rgba(50,215,75,.24), inset 0 1px 0 rgba(255,255,255,.35); }
.add-head { margin-bottom: 18px; }
.add-head p { max-width: 320px; }
.add-map-hint { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; margin: 0 0 14px; border-radius: 20px; border: 1px solid rgba(50,215,75,.22); background: linear-gradient(135deg, rgba(50,215,75,.12), rgba(255,255,255,.045)); box-shadow: inset 0 1px 0 rgba(255,255,255,.055); }
.add-pin { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; color: #9cffc8; background: rgba(50,215,75,.12); border: 1px solid rgba(50,215,75,.28); font-size: 24px; box-shadow: 0 0 22px rgba(50,215,75,.12); }
.add-map-hint b, .add-map-hint small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-map-hint b { color: #fff; font-size: 14px; }
.add-map-hint small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.form-field { display: grid; gap: 8px; margin: 13px 0; }
.form-field span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-field input { width: 100%; height: 54px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; padding: 0 15px; color: #fff; background: rgba(0,0,0,.24); outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.form-field input:focus { border-color: rgba(50,215,75,.62); box-shadow: 0 0 0 3px rgba(50,215,75,.1), inset 0 1px 0 rgba(255,255,255,.05); }
.add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.add-secondary { min-height: 48px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); color: #fff; font-weight: 900; }
.add-submit { margin-top: 12px; }
.add-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.saved-item { min-height: 72px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; text-align: left; }
.saved-item strong, .saved-item small { display: block; }
.saved-item small { margin-top: 4px; color: var(--muted); }
.security-card { background: #081b12; border: 1px solid #143d26; border-radius: 20px; padding: 24px; margin: 22px 0 24px; }
.sec-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sec-icon { width: 48px; height: 48px; background: rgba(50,215,75,.15); color: var(--green); border-radius: 14px; display: grid; place-items: center; font-size: 28px; border: 1px solid rgba(50,215,75,.3); }
.sec-title { font-size: 20px; font-weight: 800; color: #fff; }
.sec-list { list-style: none; margin: 0 0 20px; padding: 0; }
.sec-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: #e0e0e0; }
.sec-list i { color: var(--green); font-size: 18px; font-weight: 900; }
.sec-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
.fallback-box { background: rgba(255,42,95,.08); border: 1px solid rgba(255,42,95,.3); border-radius: 16px; padding: 16px; }
.fallback-box h4 { color: var(--red); margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.fallback-box p { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.35; }
.btn-bot { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); width: 100%; min-height: 44px; border-radius: 12px; color: #fff; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; transition: .2s; }
.btn-bot:active { transform: scale(.96); }
.install-help { margin-top: 14px; padding: 16px; border-radius: 16px; border: 1px solid rgba(50,215,75,.24); background: rgba(50,215,75,.07); }
.install-help h4 { margin: 0 0 10px; color: #fff; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.install-help p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.38; }
.install-help b { color: #f7f9ff; }
.tabbar { position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; padding: 8px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.018)), rgba(18,18,22,.9); transform: translateX(-50%); box-shadow: 0 18px 44px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.06); }
.tabbar button { width: 56px; min-width: 56px; min-height: 56px; padding: 0; border-radius: 20px; background: transparent; color: rgba(233,239,248,.66); position: relative; display: grid; place-items: center; transition: transform .16s ease, color .22s ease, background .22s ease, box-shadow .22s ease; }
.tabbar button:active { transform: scale(.95); }
.tabbar button span { width: 22px; height: 22px; display: block; }
.tabbar button svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.tabbar button.on { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); color: #f4f8ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.18); }
.tabbar button.on span { filter: drop-shadow(0 0 8px rgba(255,255,255,.12)); }
.tabbar i { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); position: absolute; right: 14px; top: 14px; }
.tabbar i.show { display: block; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 22px); opacity: 0; pointer-events: none; transition: .25s ease; max-width: calc(100vw - 36px); padding: 13px 16px; border-radius: 18px; background: rgba(15,18,27,.94); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 380px) {
  .fuelbar { gap: 4px; padding: 6px; }
  .fuelbar button { height: 32px; padding: 0 3px; border-radius: 12px; font-size: clamp(9px, 2.7vw, 11px); letter-spacing: -.05em; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  .nearest-item { grid-template-columns: 40px minmax(0, 1fr) minmax(42px, auto); gap: 8px; padding: 8px; }
  .nearest-logo { width: 40px; height: 40px; }
  .nearest-status { max-width: 58px; font-size: 11px; }
}
@media (max-width: 460px) {
  .cache-intro { left: 10px; right: 10px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .cache-intro-card { width: 100%; padding: 14px 14px 12px; grid-template-columns: 42px minmax(0,1fr); gap: 10px; border-radius: 20px; }
  .cache-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 13px; }
  .cache-copy { padding-right: 28px; }
  .cache-copy small { margin-bottom: 5px; font-size: 10px; }
  .cache-intro h2 { font-size: 18px; }
  .cache-intro p { font-size: 12px; }
  .cache-actions { grid-column: 1 / -1; margin-top: 10px; }
  .cache-actions a, .cache-actions button { flex: 1 1 0; min-height: 38px; font-size: 12px; padding: 0 10px; }
  .topbar { left: 20px; right: 20px; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .brand { min-width: 0; width: 58px; justify-content: center; gap: 0; padding: 8px; overflow: hidden; border-radius: 20px; }
  .brand img { width: 34px; height: 34px; flex: 0 0 34px; }
  .brand span { display: none; }
  .round { width: 52px; height: 52px; }
  .search { padding: 0 10px; }
  .search-popover { left: 20px; right: 20px; top: calc(78px + env(safe-area-inset-top)); width: calc(100vw - 40px); max-height: min(330px, calc(100dvh - 180px)); transform: none; }
  .search input { font-size: clamp(13px, 3.9vw, 16px); }
  .fuelbar { left: 12px; right: 12px; gap: 5px; padding: 6px; border-radius: 19px; }
  .fuelbar { top: calc(72px + env(safe-area-inset-top)); }
  .fuelbar button { height: 34px; border-radius: 13px; font-size: clamp(9px, 2.75vw, 12px); padding: 0 3px; letter-spacing: -.06em; }
  .side-controls { right: 12px; top: calc(122px + env(safe-area-inset-top)); gap: 6px; }
  .side-controls button { width: 42px; min-height: 42px; border-radius: 15px; }
  .side-controls span { font-size: 18px; }
}
@media (max-width: 819px) {
  .sidebar { display: contents; }
  .topbar { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .topbar .search { grid-column: 2 / 3; }
  .topbar-tools { display: flex; align-items: center; gap: 6px; }
  #locateBtn { display: none; }
  .home-chip { max-width: 28vw; padding: 8px 10px; font-size: 12px; }
  .top-share { width: 38px; height: 38px; }
}
@media (min-width: 820px) {
  :root { --rail-w: min(420px, 36vw); }
  .sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 14px 12px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), rgba(10,12,18,.96);
    box-shadow: 18px 0 60px rgba(0,0,0,.28);
    overflow: hidden;
  }
  #map { left: var(--rail-w); width: auto; }
  .ambient { left: var(--rail-w); width: auto; }
  .topbar {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "search search";
    gap: 10px;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
  }
  .topbar .brand { grid-area: brand; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .topbar-tools { grid-area: tools; }
  .topbar .search { grid-area: search; position: static; width: 100%; border-radius: 18px; }
  .search-popover { left: 14px; right: 14px; top: 118px; width: auto; transform: none; max-height: min(420px, calc(100dvh - 160px)); }
  .fuelbar {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    padding: 6px;
    border-radius: 18px;
  }
  .sidebar-filters { display: block; padding: 0 2px; }
  .side-controls { right: 24px; top: 50%; transform: translateY(-50%); }
  .offline-card { left: calc(var(--rail-w) + 24px); right: auto; top: 24px; width: min(420px, calc(100vw - var(--rail-w) - 48px)); }
  .sheet {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    transform: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    padding: 4px 2px 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .sheet.show { transform: none !important; }
  .sheet:has(#emptyView.show),
  .sheet:has(#stationView.show) { max-height: none; padding: 4px 2px 8px; border-radius: 0; }
  .empty-close { display: none; }
  .empty-hero { display: none; }
  .add-station-cta { margin-top: 0; min-height: 56px; }
  .grab { display: none; }
  .tabbar {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 20px;
  }
  .toast { left: calc(var(--rail-w) + 50%); transform: translate(-50%, 22px); }
  .toast.show { transform: translate(-50%, 0); }
  .cache-intro { left: calc(var(--rail-w) + 24px); right: 24px; width: auto; }
}
@media (max-width: 460px) {
  .search-popover { left: 20px; right: 20px; top: calc(78px + env(safe-area-inset-top)); width: calc(100vw - 40px) !important; min-width: 0; transform: none; }
}
@media (max-width: 820px) {
  #map::after { background: radial-gradient(circle at 50% 46%, transparent 0 44%, rgba(0,0,0,.06) 64%, rgba(0,0,0,.38) 100%), linear-gradient(180deg, rgba(0,0,0,.34), transparent 22%, transparent 68%, rgba(0,0,0,.44)); }
  #map .leaflet-tile-pane { filter: saturate(1.08) contrast(1.08) brightness(.82); }
  .ambient { opacity: .24; }
  .fuel-pin { filter: drop-shadow(0 12px 14px rgba(0,0,0,.44)); }
  .pin-aura { filter: blur(7px); opacity: .68; }
  .pin-card { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 10%, transparent), 0 6px 10px rgba(0,0,0,.3); }
  .fuel-pin.sel .pin-card { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent), 0 0 16px color-mix(in srgb, var(--c) 42%, transparent), 0 8px 12px rgba(0,0,0,.34); }
  .station-cluster { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 12%, transparent), 0 10px 22px rgba(0,0,0,.48), 0 0 18px color-mix(in srgb, var(--c) 42%, transparent); backdrop-filter: none; }
  .station-cluster::after { display: none; }
}

@media (max-width: 819px) {
  .topbar {
    grid-template-columns: 58px minmax(0, 1fr) 46px;
    grid-template-areas: "brand search tools";
    align-items: center;
  }
  .topbar .brand { grid-area: brand; }
  .topbar .search {
    grid-area: search;
    grid-column: auto;
    min-width: 0;
  }
  .topbar-tools {
    grid-area: tools;
    justify-content: flex-end;
    min-width: 0;
  }
}

.top-share { margin-left: 6px; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.share-situation { width: 100%; margin: 0 0 14px; min-height: 50px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.quick-confirm { margin: 0 0 16px; padding: 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--status, #32d74b) 45%, transparent); background: color-mix(in srgb, var(--status, #32d74b) 10%, rgba(255,255,255,.04)); display: grid; gap: 12px; }
.quick-confirm-badge { font-size: 28px; line-height: 1; }
.quick-confirm-copy b { display: block; font-size: 20px; margin-bottom: 4px; }
.quick-confirm-copy span { color: rgba(255,255,255,.68); font-size: 13px; }
.quick-confirm-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,159,10,.14); color: #ffd699; font-size: 13px; line-height: 1.35; }
.quick-confirm-actions { display: grid; gap: 8px; }
.quick-yes { min-height: 52px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #74f6bd, #32d74b); color: #03120a; font-weight: 800; }
.quick-change { min-height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; font-weight: 650; }
#reportDetail[hidden] { display: none !important; }
.geo-prompt, .share-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.geo-prompt[hidden], .share-modal[hidden] { display: none !important; }
.geo-prompt-card, .share-modal-card { width: min(420px, 100%); border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: #0d1520; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.geo-prompt-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(50,215,75,.14); color: #74f6bd; font-size: 24px; margin-bottom: 12px; }
.geo-prompt-card h2, .share-modal-head b { margin: 0 0 8px; font-size: 22px; }
.geo-prompt-card p { margin: 0 0 16px; color: rgba(255,255,255,.72); line-height: 1.45; font-size: 14px; }
.geo-prompt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.geo-prompt-actions button { min-height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; }
.geo-prompt-actions button:last-child { border: 0; background: linear-gradient(180deg, #74f6bd, #32d74b); color: #03120a; }
.share-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.share-modal-head button { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; }
.share-preview { margin: 0 0 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.86); font: 12px/1.45 inherit; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions button, .share-actions a { min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.share-note { margin: 12px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.35; }
