:root{--bg: #f8fafc;--surface: #ffffff;--text: #0f172a;--muted: #475569;--border: #cbd5e1;--accent: #0f766e;--accent-text: #ffffff;--ok: #15803d;--warn: #b45309;--danger: #b91c1c;--high: #15803d;--medium: #b45309;--low: #b91c1c;--focus: #2563eb;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0f172a;--surface: #1e293b;--text: #f1f5f9;--muted: #cbd5e1;--border: #475569;--accent: #2dd4bf;--accent-text: #0f172a;--ok: #4ade80;--warn: #fbbf24;--danger: #f87171;--high: #4ade80;--medium: #fbbf24;--low: #f87171;--focus: #93c5fd;color-scheme:dark}}:root[data-theme=dark]{--bg: #0f172a;--surface: #1e293b;--text: #f1f5f9;--muted: #cbd5e1;--border: #475569;--accent: #2dd4bf;--accent-text: #0f172a;--ok: #4ade80;--warn: #fbbf24;--danger: #f87171;--high: #4ade80;--medium: #fbbf24;--low: #f87171;--focus: #93c5fd;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;padding-bottom:env(safe-area-inset-bottom)}a{color:var(--accent)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:absolute;left:-999px}.skip-link:focus{left:8px;top:8px;background:var(--surface);padding:8px;z-index:1000}.app-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.15rem;color:var(--text);text-decoration:none}.settings{position:relative}.settings summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;font-size:1.4rem;cursor:pointer;border-radius:10px}.settings summary::-webkit-details-marker{display:none}.settings-panel{position:absolute;right:0;top:48px;z-index:2000;display:grid;gap:10px;min-width:220px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 32px #0003}.settings-panel label{display:grid;gap:4px;font-weight:600}.app-nav{display:flex;gap:4px;margin-left:auto;overflow-x:auto}.app-nav a{padding:8px 12px;border-radius:999px;text-decoration:none;color:var(--muted);white-space:nowrap}.app-nav a.active{background:var(--accent);color:var(--accent-text)}main{max-width:1200px;margin:0 auto;padding:12px 16px 40px}h2{font-size:1.25rem;margin:16px 0 8px}h3{font-size:1.05rem;margin:0}button,.button,select,input{font:inherit;color:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-decoration:none;cursor:pointer}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}button.danger{border-color:var(--danger);color:var(--danger)}.link-button{border:none;background:none;color:var(--accent);padding:8px 0;min-height:0}.icon-button{min-width:44px;padding:0}select,input[type=text],input:not([type]){min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);width:100%}.settings select{width:auto;min-height:36px;padding:4px 6px}.row{display:flex;gap:8px;align-items:center}.field{display:grid;gap:4px;position:relative}.field label{font-weight:600}.suggestions{position:absolute;top:100%;left:0;right:0;z-index:1000;margin:2px 0 0;padding:4px 0;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #00000026}.suggestions li{padding:10px 12px;cursor:pointer}.suggestions li[aria-selected=true],.suggestions li:hover{background:var(--bg)}.segmented{border:none;margin:0;padding:0}.segmented legend{font-weight:600;margin-bottom:4px}.segments{display:flex;flex-wrap:wrap;gap:6px}.segments label{display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);cursor:pointer}.segments label.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.segments input{position:absolute;opacity:0;pointer-events:none}.segments label:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.switch{display:inline-flex;align-items:center;gap:8px;min-height:44px}.switch input{width:22px;height:22px}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;margin:10px 0}.form{display:grid;gap:14px}.waypoint{display:flex;gap:8px;align-items:end}.waypoint .field{flex:1}.saved-routes{list-style:none;margin:0;padding:0}.saved-route{display:flex;align-items:center;gap:8px;padding:0 8px 0 0}.saved-link{flex:1;display:grid;gap:2px;padding:14px;color:var(--text);text-decoration:none;min-height:64px}.nearby-button{width:100%;margin-top:4px}.station-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.station-head h3 a{color:var(--text)}.price{text-align:right;white-space:nowrap}.price strong{font-size:1.5rem}.out-label{font-size:1rem!important;color:var(--danger)}.station.out{opacity:.8}.station.recommended{border:2px solid var(--accent)}.ribbon{margin:0 0 6px;color:var(--accent);font-weight:700}.facts{display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0 4px}.facts-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0 0}.facts-grid dd{margin:0}.muted{color:var(--muted)}.small{font-size:.9rem}.ok{color:var(--ok)}.warning{color:var(--warn)}.error{color:var(--danger)}.loading{color:var(--muted);padding:16px 0}.confidence{margin:6px 0}.badge{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid currentColor;font-size:.85rem;font-weight:600}.badge-high,.status-ok{color:var(--high)}.badge-medium,.status-never_run{color:var(--medium)}.badge-low,.status-failing{color:var(--low)}.warnings{list-style:none;margin:4px 0;padding:0}.nav-buttons{display:flex;gap:8px;margin-top:10px}.nav-buttons .button{flex:1}.controls{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:end;margin:12px 0 4px}.tabs{display:flex;gap:6px;margin:8px 0}.tabs button{flex:1}.tabs button.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.map{height:60vh;min-height:320px;border-radius:14px;overflow:hidden;border:1px solid var(--border)}.map .leaflet-container{height:100%;width:100%}.results-body.wide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.results-body.wide .map{position:sticky;top:12px;height:calc(100vh - 24px)}.results-head h2{margin-bottom:2px}.save-route input{flex:1}.fuel-list,.source-list,.sources{list-style:none;margin:0;padding:0}.sources li{padding:4px 0}details summary{cursor:pointer;color:var(--accent);min-height:32px}.hours{border-collapse:collapse;width:100%;max-width:420px}.hours th,.hours td{text-align:left;padding:4px 8px 4px 0;border-bottom:1px solid var(--border)}.services{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0}.services li{padding:4px 10px;border:1px solid var(--border);border-radius:999px;font-size:.9rem}.route-buttons,.station-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}.route-button{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:14px}.route-button:first-child{border:2px solid var(--accent)}.route-link{flex:1;display:grid;gap:2px;padding:16px;min-height:72px;color:var(--text);text-decoration:none;font-size:1.05rem}.icon-button.quiet{border:none;background:none;color:var(--muted)}.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.home-actions>*{min-height:52px}.home-actions button.selected{border-color:var(--accent);color:var(--accent)}button.big{min-height:56px;font-size:1.1rem}.more-options summary{color:var(--accent);margin-bottom:10px}.more-options{display:grid;gap:12px}.card.recommended{border:2px solid var(--accent)}.card.recommended.selected{box-shadow:0 0 0 3px var(--accent)}.card-select{display:grid;justify-items:start;gap:4px;width:100%;padding:0;border:none;background:none;text-align:left}.big-price{font-size:2.2rem;font-weight:800;line-height:1.1}.card-title{font-size:1.15rem;font-weight:700}.sheet-link{display:inline-block;margin-top:8px}.station-row{background:var(--surface);border:1px solid var(--border);border-radius:12px}.station-row.selected{border:2px solid var(--text)}.station-row.out{opacity:.75}.row-select{display:flex;align-items:center;gap:12px;width:100%;border:none;background:none;text-align:left;padding:10px 12px}.row-price{font-weight:800;font-size:1.1rem;min-width:5.5em}.row-main{flex:1;display:grid;min-width:0}.row-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions{padding:0 12px 12px}.dot{display:inline-block;width:12px;height:12px;border-radius:50%;flex:none;vertical-align:middle}.dot-high{background:var(--high)}.dot-medium{background:var(--medium)}.dot-low{background:var(--low)}.list-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;margin-top:12px}.list-head p{margin:0}.filters[open]{flex-basis:100%}.filters-panel{display:grid;gap:14px;margin:8px 0 0}.segments label .dot{margin-right:6px}.filters summary{color:var(--accent);cursor:pointer;min-height:32px}.map{position:relative}.map-button{position:absolute;right:12px;bottom:24px;z-index:1000;width:48px;height:48px;border-radius:50%;font-size:1.4rem;box-shadow:0 4px 12px #00000040}.search-bar{display:grid;gap:12px}.fuel-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;border:1px solid var(--border);color:var(--muted);font-size:.75rem;font-weight:600;vertical-align:middle}.row-price{display:grid;justify-items:start}.row-price .fuel-tag{margin:2px 0 0}.roads{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.roads button.selected{background:#2563eb;border-color:#2563eb;color:#fff}.map-legend{position:absolute;left:10px;bottom:22px;z-index:1000;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;max-width:calc(100% - 80px);padding:4px 8px;border-radius:8px;background:#ffffffeb;color:#0f172a;font-size:.75rem;box-shadow:0 2px 8px #0003}.legend-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.legend-dot.hollow{margin-left:6px;background:#fff;border:2px solid}.legend-item{display:inline-flex;align-items:center;gap:4px}.dot.hollow{background:transparent;border:2px solid}.map-area{position:relative}.results-body.wide .map-area{position:sticky;top:12px}.results-body.wide .map-area .map{position:relative;top:0}.map-sheet{position:absolute;left:8px;right:8px;bottom:8px;z-index:1100;max-height:60%;overflow:auto;padding:12px 14px;background:var(--surface);color:var(--text);border:2px solid var(--text);border-radius:14px;box-shadow:0 8px 24px #0000004d}.map-sheet p{margin:2px 0}.sheet-close{position:absolute;top:4px;right:4px}.sheet-price{font-size:1.6rem;font-weight:800}.sheet-button{width:100%;margin-top:8px}.leaflet-tooltip.road-label{padding:3px 8px;border:2px solid #64748b;border-radius:999px;background:#fff;color:#0f172a;font-weight:700;cursor:pointer}.leaflet-tooltip.road-label.chosen{border-color:#2563eb;color:#1d4ed8;cursor:default}.leaflet-tooltip.road-label:before{display:none}.link-button,.filters summary,.more-options summary,.button.small{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1.5px solid var(--accent);border-radius:999px;background:var(--surface);color:var(--accent);font-weight:600;text-decoration:none;cursor:pointer;list-style:none}.filters summary::-webkit-details-marker,.more-options summary::-webkit-details-marker{display:none}.filters[open] summary,.more-options[open] summary{background:var(--accent);color:var(--accent-text)}.more-options summary{justify-self:start}.road-popup .road-info{margin:0 0 8px;font-weight:700}@media(max-width:899px){.map-sheet{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));max-height:55dvh;z-index:2000}}:root{--off-bg: #e2e8f0;--off-text: #64748b}:root[data-theme=dark]{--off-bg: #334155;--off-text: #94a3b8}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--off-bg: #334155;--off-text: #94a3b8}}.segments label:not(.selected){background:var(--off-bg);border-color:var(--off-bg);color:var(--off-text)}.segments label:not(.selected) .dot{opacity:.45}.credits{margin:4px 0 0;font-size:.7rem;color:var(--off-text)}@keyframes sheet-in{0%{opacity:0;transform:translateY(24px)}}@keyframes sheet-out{to{opacity:0;transform:translateY(24px)}}.map-sheet{animation:sheet-in .22s ease-out}.map-sheet.leaving{animation:sheet-out .18s ease-in forwards}.fold{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .26s ease,opacity .2s ease}.fold>div{overflow:hidden}.fold.folded{grid-template-rows:0fr;opacity:0}.leaflet-fade-anim .leaflet-tile{transition:opacity .25s linear}@media(prefers-reduced-motion:reduce){.map-sheet,.map-sheet.leaving{animation:none}.fold{transition:none}}.welcome-backdrop{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:16px;background:#0f172a8c;animation:fade-in .2s ease-out}@keyframes fade-in{0%{opacity:0}}.welcome{position:relative;width:min(440px,100%);max-height:90dvh;overflow:auto;padding:24px 20px 16px;border-radius:18px;background:var(--surface);color:var(--text);text-align:center;box-shadow:0 16px 48px #00000059;animation:sheet-in .24s ease-out}.welcome-art{display:block;font-size:2.6rem;margin:8px 0}.welcome-art.dots{display:flex;justify-content:center;gap:8px}.dot.big{width:26px;height:26px}.welcome-dots{display:flex;justify-content:center;gap:6px;margin:14px 0 10px}.welcome-dots span{width:8px;height:8px;border-radius:50%;background:var(--off-bg)}.welcome-dots span.on{background:var(--accent)}.welcome-actions{display:flex;justify-content:space-between;gap:10px}.install-help{display:grid;gap:8px;margin:10px 0;text-align:left}.install-steps{margin:0;padding-left:1.4em;display:grid;gap:6px}.share-icon{display:inline-grid;place-items:center;width:26px;height:26px;border:1.5px solid var(--accent);border-radius:6px;color:var(--accent);font-weight:700}.install-card{position:relative}.example-button{width:100%;min-height:52px;margin-bottom:8px;border-color:var(--accent);color:var(--accent);font-weight:600}@media(prefers-reduced-motion:reduce){.welcome-backdrop,.welcome{animation:none}}.card.recommended.dimmed{opacity:.45;transition:opacity .2s ease}.me-marker{position:relative}.me-dot{position:absolute;inset:2px;border-radius:50%;background:#2563eb;border:3px solid #ffffff;box-shadow:0 0 0 1px #2563eb99,0 2px 6px #0006}.me-pulse{position:absolute;inset:-10px;border-radius:50%;background:#2563eb59;animation:me-pulse 1.8s ease-out infinite}@keyframes me-pulse{0%{transform:scale(.4);opacity:1}to{transform:scale(1.4);opacity:0}}@media(prefers-reduced-motion:reduce){.me-pulse{animation:none;opacity:.4}}.report-dialog{text-align:left}.report-dialog h2{padding-right:40px}.report-dialog .form{display:grid;gap:12px}.report-choices{display:grid;gap:8px;margin:12px 0}.report-choices button{justify-content:flex-start}textarea,input[type=email],input[type=password]{font:inherit;color:inherit;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}textarea{resize:vertical}.problems .segments{display:grid}.pin-picker{position:relative;height:220px;border-radius:12px;overflow:hidden;border:1px solid var(--border)}.pin-picker .pin{position:absolute;left:50%;top:50%;z-index:1000;transform:translate(-50%,-100%);font-size:2rem;line-height:1;pointer-events:none}.report-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}.report-message{white-space:pre-wrap}.badge.report-new{color:var(--accent);border-color:var(--accent)}.badge.report-dismissed{color:var(--muted)}.list-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.list-head .list-actions:has(.filters[open]){flex-basis:100%}.feedback-button{display:grid;justify-items:start;gap:6px;width:100%;margin-top:24px;padding:18px 20px;text-align:left;border:none;border-radius:16px;background:linear-gradient(135deg,#be123c,#c2410c);color:#fff;box-shadow:0 8px 24px #be123c59;transition:transform .15s ease,box-shadow .15s ease}.feedback-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px #be123c73}.feedback-button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.feedback-button .badge-new{padding:2px 10px;border-radius:999px;background:#fff;color:#be123c;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.feedback-button strong{font-size:1.15rem}.feedback-button .feedback-text{opacity:.92;font-size:.92rem}@media(prefers-reduced-motion:reduce){.feedback-button,.feedback-button:hover{transition:none;transform:none}}.alert-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:5px 6px 5px 14px;border:none;border-radius:999px;background:linear-gradient(135deg,#be123c,#c2410c);color:#fff;font-weight:600;font-size:.92rem;box-shadow:inset 0 1px #ffffff40,0 4px 12px #be123c4d;animation:alert-pulse 1.6s ease-out .8s 4;transition:transform .15s ease}.alert-button:hover{transform:translateY(-1px)}@keyframes alert-pulse{0%{box-shadow:inset 0 1px #ffffff40,0 0 #be123c99}70%{box-shadow:inset 0 1px #ffffff40,0 0 0 12px #be123c00}to{box-shadow:inset 0 1px #ffffff40,0 4px 12px #be123c4d}}.alert-icon{flex:none}.alert-cta{padding:4px 12px;border-radius:999px;background:#fff;color:#be123c;font-weight:700}@media(prefers-reduced-motion:reduce){.alert-button{animation:none;transition:none}}.install-done{margin:0;color:var(--ok);font-weight:700}.facts-line>span+span:before{content:" · "}.row-main{display:grid;gap:2px}.filters summary{min-height:44px;font-size:1rem}.filters summary.has-active{background:var(--accent);color:var(--accent-text)}.filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--accent-text);color:var(--accent);font-size:.8rem;font-weight:700}.active-filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:8px 0;padding:10px 12px;border:1.5px solid var(--warn);border-left-width:6px;border-radius:12px;background:color-mix(in srgb,var(--warn) 12%,var(--surface))}.active-filters p{margin:0;font-size:.92rem}.active-filters button{min-height:40px;border-color:var(--warn);color:var(--warn);font-weight:700}.why-best{margin:-4px 0 6px}
