@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url("fonts/Inter-Regular.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url("fonts/Inter-SemiBold.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url("fonts/Inter-SemiBold.woff2") format("woff2")}
:root{--bg:#f4f7f6;--card:#fff;--ink:#10201d;--muted:#6b7c78;--line:#dce7e4;--primary:#0f766e;--primary2:#14b8a6;--accent:#f59e0b;--go:#16a34a;--danger:#b91c1c;--shadow:0 12px 30px rgba(15,118,110,.08);--topbar-h:68px;--bottom-nav-h:54px;--card-pad:calc(20px / 3);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#eaf7f3 0,var(--bg) 260px);color:var(--ink);min-height:100vh}.app-shell{max-width:1100px;margin:0 auto;min-height:100vh}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:8px 18px;position:sticky;top:0;z-index:10;background:rgba(244,247,246,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,231,228,.75)}.brand{border:0;background:none;display:flex;gap:10px;align-items:center;font-weight:800;font-size:21px;color:var(--ink);cursor:pointer;flex-shrink:0}.brand img{width:42px;height:42px}.top-actions{display:flex;gap:8px;align-items:center}.status-pill{font-size:12px;padding:7px 10px;border-radius:6px;background:#dcfce7;color:#166534}.content{padding:22px 18px 96px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1100px);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line);padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.nav-item{border:0;background:none;padding:7px 4px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:2px;font-size:20px;cursor:pointer}.nav-item small{font-size:11px}.nav-item.active{color:var(--primary);font-weight:700}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:1px;align-items:stretch;margin-bottom:1px}.hero-card{background:linear-gradient(135deg,#0f766e,#115e59);color:white;border-radius:6px;padding:26px;min-height:210px;position:relative;overflow:hidden;box-shadow:0 18px 50px rgba(15,118,110,.22)}.hero-card:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08);right:-70px;top:-60px}.hero-card h1{font-size:32px;margin:0 0 8px;line-height:1.08}.hero-card p{opacity:.82;margin:0}.hero-metric{margin-top:30px;font-size:42px;font-weight:850;letter-spacing:-1.5px}.hero-metric small{font-size:14px;font-weight:600;opacity:.8}
.hero-card .hero-odometer{margin:10px 0 0;font-size:22px;font-weight:800;color:#fff;opacity:.95}
.hero-card .hero-recent-cost{margin:10px 0 0;font-size:15px;opacity:.85;color:#fff}.side-card,.card{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:20px;box-shadow:var(--shadow)}.side-card{display:flex;flex-direction:column;justify-content:space-between}.side-card .big{font-size:28px;font-weight:800}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px}.stat{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:16px}.stat .label{font-size:12px;color:var(--muted);margin-bottom:8px}.stat .value{font-size:22px;font-weight:800}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.section-head h2{font-size:19px;margin:0}.btn{border:0;border-radius:4px;padding:11px 14px;font-weight:700;cursor:pointer;background:var(--primary);color:#fff}.btn.secondary{background:#e5f5f2;color:var(--primary)}.btn.ghost{background:#fff;color:var(--primary);border:1px solid var(--line)}.btn.danger{background:#fee2e2;color:var(--danger)}.btn:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none!important}.empty{padding:34px;text-align:center;color:var(--muted);border:1px dashed #bdd1cc;border-radius:6px}.list{display:flex;flex-direction:column;gap:1px}.row{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr auto;gap:12px;align-items:center;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:4px}.row .muted,.muted{color:var(--muted);font-size:12px}.form-card{max-width:760px;margin:0 auto}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:700;color:#304642}.field input,.field select,.field textarea{font:inherit;font-size:16px;border:1px solid var(--line);border-radius:4px;padding:12px 13px;background:#fff;color:var(--ink);width:100%;max-width:100%;min-width:0}
.field input[type=date]{-webkit-appearance:none;appearance:none}
.field-inline{display:flex;align-items:stretch;gap:8px;min-width:0;width:100%}
.field-inline input{flex:1 1 auto;min-width:0}
.field-inline .btn{flex:0 0 auto;align-self:stretch;padding:10px 12px;white-space:nowrap}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(20,184,166,.2);border-color:var(--primary2)}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.switchline{display:flex;align-items:center;gap:9px;padding-top:23px}.switchline input{width:18px;height:18px}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:4px;padding:10px 12px;background:white}.price-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;width:100%}.station{display:grid;grid-template-columns:1fr auto;gap:10px;padding:15px;border:1px solid var(--line);border-radius:4px;background:#fff}.station h3{font-size:15px;margin:0 0 4px}
.station-title{margin:0 0 4px}
.station-name-link{display:block;width:100%;margin:0;padding:0;border:0;background:none;font:inherit;font-size:15px;font-weight:700;color:var(--primary);text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(15,118,110,.35)}
.station-name-link:hover{text-decoration-color:var(--primary)}
.station.price-tier-best{background:#dcfce7;border-color:#bbf7d0}
.station.price-tier-mid{background:#fef9c3;border-color:#fde68a}
.station.price-tier-high{background:#fee2e2;border-color:#fecaca}
.station .meta{font-size:12px;color:var(--muted);line-height:1.5}.station .station-price{font-size:20px;font-weight:850;color:var(--primary);text-align:right}.station .distance{font-size:12px;color:var(--muted);text-align:right}.station-main .station-distance{text-align:left;margin:0 0 4px;line-height:1.35}.station-side .station-fill-cost{text-align:right;margin-top:2px;line-height:1.35}.notice{border-radius:4px;padding:12px 14px;font-size:13px;background:#fffbeb;border:1px solid #fde68a;color:#854d0e}.chart{width:100%;height:190px;display:block}.chart text{font-size:11px;fill:var(--muted)}.chart .line{fill:none;stroke:var(--primary);stroke-width:3}.chart .area{fill:rgba(20,184,166,.09)}.chart .gridline{stroke:#e7efed;stroke-width:1}.app-version-card{margin-bottom:1px}
.app-version-card #appUpdateBtn{margin-top:10px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px}.vehicle-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border:1px solid var(--line);border-radius:4px;margin-top:1px}.toast{position:fixed;z-index:100;left:50%;bottom:90px;transform:translate(-50%,20px);background:#10201d;color:#fff;padding:11px 15px;border-radius:4px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 10px 30px rgba(0,0,0,.2)}.toast.show{opacity:1;transform:translate(-50%,0)}.kicker{text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:var(--primary);font-size:11px}.actions-inline{display:flex;gap:7px}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:4px;padding:8px;cursor:pointer}.danger-link{color:var(--danger)}.tabs{display:flex;gap:6px;background:#e5f5f2;border-radius:6px;padding:4px;margin-bottom:12px;width:fit-content}.tab{border:0;background:none;padding:8px 16px;border-radius:4px;font-weight:700;color:var(--primary);cursor:pointer}.tab.active{background:#fff;box-shadow:0 2px 8px rgba(15,118,110,.12)}.map-wrap{position:relative;z-index:0}#stationMap{height:460px;border-radius:6px;border:1px solid var(--line);overflow:hidden;background:#e7efed}.map-btn{position:absolute;right:12px;bottom:30px;z-index:800;width:42px;height:42px;padding:0;font-size:22px;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.18)}.leaflet-popup-content{font:inherit;font-size:13px;line-height:1.45}.leaflet-popup-content strong{display:block;font-size:14px;margin-bottom:4px}.leaflet-popup-content .station-popup-price-row{text-align:right;line-height:1.35;margin-bottom:4px}.leaflet-popup-content .station-popup-price-row .station-price{font-size:16px;font-weight:850;color:var(--primary);display:inline;text-align:right}.leaflet-popup-content .station-popup-price-row .station-fill-cost{display:inline}.leaflet-popup-content>.station-price{font-size:16px;text-align:right}
@media(max-width:800px){:root{--bottom-nav-h:calc(46px + env(safe-area-inset-bottom,0px))}.hero{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}.price-layout,.settings-grid{grid-template-columns:1fr}.row{grid-template-columns:1fr 1fr}.row>:last-child{grid-column:1/-1}.hero-card{min-height:190px}.hero-card h1{font-size:28px}.content{padding:16px 13px calc(var(--bottom-nav-h) + 10px)}.topbar{padding:8px 12px}.status-pill{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.switchline{padding-top:0}.bottom-nav{padding:3px max(4px,env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))}.nav-item{padding:2px 2px;font-size:16px;gap:0}.nav-item small{font-size:9px;line-height:1}#stationMap{height:60vh}}
@media(max-width:420px){.grid{grid-template-columns:1fr 1fr}.stat .value{font-size:18px}.hero-metric{font-size:36px}.bottom-nav{padding-left:3px;padding-right:3px}.nav-item small{font-size:10px}}

/* iOS 12 fallbacks: Safari on iPhone 6 has no flex-gap support and limited backdrop-filter support. */
@supports not (gap: 1px) {
  .brand>*+*,.top-left>*+*,.top-actions>*+*,.section-head>*+*,.form-actions>*+*,.toolbar>*+*,.actions-inline>*+*,.switchline>*+*,.station-actions>*+*{margin-left:10px}
  .price-filters>*+*{margin-left:1px}
  .tabs>*+*{margin-left:6px}
  .list>*+*{margin-top:1px}
}
.topbar,.bottom-nav{-webkit-backdrop-filter:blur(18px)}
@supports not (width: min(100%, 1100px)){.bottom-nav{width:100%;max-width:1100px}}

.station-actions{display:flex;gap:8px;margin-top:8px;justify-content:flex-end;flex-wrap:wrap}
a.btn{text-decoration:none;display:inline-block}
.btn.go{background:var(--go);color:#fff}
.promo{color:#92400e;background:#fef3c7;border-radius:3px;padding:1px 6px;display:inline-block;margin-top:3px}
.promo-was{text-decoration:line-through}
.fab{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;text-decoration:none}
.fab:hover{background:#115e59}
.top-left{display:flex;align-items:center;gap:12px;min-width:0}
#pageKicker{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:1px solid var(--line);padding-left:12px}
#pageKicker:empty{display:none}
.card,.side-card{position:relative}
.card-collapse{position:absolute;top:8px;right:8px;z-index:2;width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.hero-card .card-collapse{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4);color:#fff}
.collapsed{min-height:44px}
.collapsed>*:not(.card-collapse):not(.card-keep){display:none}
.modal-root{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:18px}
.modal-root.hidden{display:none!important}
.modal-backdrop{position:absolute;inset:0;background:rgba(16,32,29,.45)}
.modal-card{position:relative;z-index:1;width:min(100%,420px);background:var(--card);border:1px solid var(--line);border-radius:6px;padding:20px;box-shadow:var(--shadow)}
.modal-title{margin:0 0 10px;font-size:19px}
.modal-body{font-size:14px;color:var(--ink);line-height:1.45;white-space:pre-wrap}
.modal-actions{margin-top:18px}
.field-stack>.field+.field{margin-top:12px}
.actions-stack{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.actions-stack .btn,.actions-stack label.btn{width:100%;text-align:center}
.btn.block{width:100%;margin-top:16px;display:block;text-align:center}
.switchline.tight{padding-top:0}
.chart-accent .line{stroke:var(--accent)}
.chart-accent .area{fill:rgba(245,158,11,.12)}
.chart-block{margin-top:14px}
.chart-block h3{margin:0 0 8px;font-size:14px}
.price-filters{display:flex;flex-wrap:nowrap;gap:4px;align-items:stretch;width:100%;min-width:0;font-size:13px;line-height:1.25}
.price-filters select,.price-filters .filter-field{flex:1 1 0%;min-width:0;font:inherit;border:1px solid var(--line);border-radius:4px;padding:6px 8px;background:#fff;color:var(--ink)}
.price-filters .price-filter-control{box-sizing:border-box;min-height:2.35em}
.price-filters .price-country-select{flex:0 0 auto;width:auto;min-width:2.75em;max-width:3.25em;padding:5px 4px;text-align:center;text-align-last:center;font-size:1.15rem;line-height:1.2}
.price-filters .price-radius-select{flex:0 1 auto;max-width:4.25em;min-width:3.1em;padding-left:4px;padding-right:4px;font-size:12px}
.price-filters .price-find-btn{flex:0 0 auto;padding:5px 8px;font-size:12px;line-height:1.2;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.price-filters .price-find-here-btn{padding-left:7px;padding-right:7px}
.price-filters .map-locate-symbol{font-weight:700;color:inherit;font-size:1.08em;line-height:1}
.price-filters .filter-field{display:flex;padding:0;border:0;background:none}
.price-filters .filter-field select{width:100%;padding:6px 8px}
.price-summary{margin:0 0 10px;font-size:13px;line-height:1.45}
.price-map-layout{position:relative;width:100%;min-height:0}
.map-wrap{display:flex;flex-direction:column;min-height:0}
html.prices-map-route,body.prices-map-route{overflow:hidden;height:100%;touch-action:manipulation;-webkit-overflow-scrolling:auto}
.content.prices-route{padding:0;margin:0;max-width:none;overflow:hidden;height:calc(100vh - var(--topbar-h) - var(--bottom-nav-h));height:calc(100dvh - var(--topbar-h) - var(--bottom-nav-h));min-height:0;touch-action:manipulation}
.content.prices-route .price-map-layout{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.content.prices-route .price-map-stage{position:relative;-webkit-box-flex:1;-webkit-flex:1 1 0%;flex:1 1 0%;width:100%;min-height:140px;z-index:0;overflow:hidden}
.content.prices-route #stationMap{position:absolute!important;top:0;left:0;right:0;bottom:0;width:100%;height:100%!important;min-height:140px;border:0;border-radius:0;background:#e7efed}
html.legacy-ios .content.prices-route .price-map-stage{min-height:180px;-webkit-flex:1 1 auto;flex:1 1 auto}
html.legacy-ios .content.prices-route #stationMap{min-height:180px}
.price-map-tools{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.content.prices-route .leaflet-top.leaflet-left .map-provider-control{margin-bottom:0}
.map-provider-control .map-provider-select{display:block;width:100%;min-width:34px;max-width:min(56vw,220px);font:inherit;font-size:12px;padding:6px 8px;border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.96);color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.map-provider-select:disabled{opacity:.65;cursor:not-allowed}
.leaflet-bar a.map-locate-btn{font-size:17px;font-weight:700;color:var(--primary);cursor:pointer}
.price-offline-banner{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:450;background:rgba(16,32,29,.82);color:#fff;font-size:12px;padding:6px 12px;border-radius:4px;max-width:90%;text-align:center}
.content.prices-route .price-sheet{position:relative;left:auto;right:auto;bottom:auto;flex:0 0 auto;z-index:500;width:100%;max-width:min(100%,1100px);margin:0 auto;background:rgba(255,255,255,.97);border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 -8px 32px rgba(15,118,110,.15);display:flex;flex-direction:column;min-height:0;transition:height .22s ease;pointer-events:auto}
.price-sheet{position:absolute;left:0;right:0;bottom:0;z-index:500;max-width:min(100%,1100px);margin:0 auto;background:rgba(255,255,255,.97);border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 -8px 32px rgba(15,118,110,.15);display:flex;flex-direction:column;min-height:0;transition:height .22s ease;pointer-events:auto}
.price-sheet[data-snap=peek]{height:var(--price-sheet-peek,124px)}
.price-sheet[data-snap=half]{height:min(65.52vh,562px)}
.price-sheet-handle{width:100%;border:0;background:none;padding:10px 0 4px;cursor:grab;flex-shrink:0}
.price-sheet-grab{display:block;width:40px;height:4px;margin:0 auto;background:#bdd1cc;border-radius:99px}
.price-sheet-peek{padding:0 10px 8px;flex-shrink:0}
.price-filters-peek{align-items:stretch;margin-bottom:6px}
.price-sheet-scroll{flex:1;min-height:0;overflow:auto;padding:0 12px 12px;-webkit-overflow-scrolling:touch}
.price-sheet[data-snap=peek] .price-sheet-scroll{display:none}
.price-filters-full{margin-bottom:8px}
.price-station-list .station{margin-bottom:4px;padding:11px 12px;gap:8px}
.price-station-list .station h3{font-size:11px;margin:0 0 3px}
.price-station-list .station-title{margin:0 0 3px}
.price-station-list .station-name-link{font-size:11px}
.price-station-list .station .meta{font-size:9px;line-height:1.4}
.price-station-list .station-prov{margin-top:2px;line-height:1.35}
.price-station-list .station-side .meta.promo,.price-station-list .station-side .meta.promo-was{text-align:right}
.price-station-list .station .station-price{font-size:15px}
.price-station-list .station .distance{font-size:9px}
.price-station-list .station-main .station-distance{font-size:9px;margin-bottom:2px}
.price-station-list .station-side .station-fill-cost{font-size:9px}
.price-station-list .station-actions{margin-top:5px;gap:6px}
.price-station-list .station-actions .btn{padding:7px 10px;font-size:12px;line-height:1.2}
.price-station-list .empty{padding:20px;font-size:12px}
.price-sheet-scroll .price-summary{font-size:10px;margin-bottom:8px}
.price-source-details{margin-top:14px;font-size:13px}
.price-source-details summary{cursor:pointer;font-weight:700;color:var(--primary);margin-bottom:8px}
.price-source-details p{margin:0 0 8px}
@media(max-width:800px){.content.prices-route~.bottom-nav{z-index:600}.content.prices-route .price-sheet{position:fixed;left:0;right:0;bottom:var(--bottom-nav-h);z-index:650;width:100%;max-width:100%;margin:0;max-height:min(65.52vh,562px);max-height:min(65.52dvh,562px)}.content.prices-route .price-sheet[data-snap=peek]{height:var(--price-sheet-peek,124px)}.content.prices-route .price-sheet[data-snap=half]{height:min(59.28vh,530px);height:min(59.28dvh,530px)}}
@media(min-width:801px){.content.prices-route .price-sheet{margin-left:auto;margin-right:auto}}

/* Scrollable import previews on Safari 12 and narrow phones. */
.modal-root{top:0;right:0;bottom:0;left:0}
.modal-card{width:100%;max-width:520px;max-height:85vh;display:flex;flex-direction:column}
.modal-body{overflow:auto;-webkit-overflow-scrolling:touch;min-height:0;overflow-wrap:break-word}
.modal-body form{white-space:normal}.modal-body .field{margin-bottom:12px}
.modal-actions{flex-shrink:0}.imported-details p{overflow-wrap:break-word;font-size:13px}

.fill-form-compact{font-size:80%}
.fill-form-compact .field label{font-size:10.4px}
.fill-form-compact .field input,.fill-form-compact .field select,.fill-form-compact .field textarea,.fill-form-compact .fill-form-fuel-row input{font-size:16px;padding:7px 10px}
.fill-form-compact input[inputmode=decimal],.fill-form-compact .fill-total-readonly{text-align:center}
.fill-form-compact input[type=text]:not(.fill-total-readonly):not([inputmode=decimal]),.fill-form-compact select,.fill-form-compact textarea{text-align:left}
.fill-form-compact .field textarea{min-height:52px}
.fill-form-compact .form-grid,.fill-form-compact.fill-form-grid{gap:9px}
.fill-form-compact .form-actions,.fill-form-compact .fill-form-actions{margin-top:10px}
.fill-form-compact .switchline,.fill-form-compact .fill-form-switch{padding-top:0}
.fill-form-top{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1.2fr;gap:9px;align-items:stretch}
.fill-form-fuel-row{grid-template-columns:minmax(0,0.5fr) minmax(0,0.92fr) auto;align-items:center;gap:7px}
.fill-litres-affix,.fill-odo-affix{min-width:0}
.fill-litres-affix .affix{padding:0 6px;font-size:0.82em}
.fill-odo-affix .affix{padding:0 7px}
.fill-date-input{white-space:nowrap;min-width:0;font-variant-numeric:tabular-nums}
.fill-inline-check label{font-size:0.95em}
.fill-form-fuel-row .input-affix input{min-height:38px}
.field-nolabel{gap:0}
.fill-form-compact .field-nolabel input,.fill-form-compact .field-nolabel select{min-height:38px}
.fill-form-compact input[type=datetime-local]{min-height:38px;line-height:1.25;-webkit-appearance:none;appearance:none}
.fill-form-row{grid-column:1/-1;display:grid;gap:9px;align-items:end}
.fill-form-price-row{grid-template-columns:1fr 1fr}
.fill-field-grow{min-width:0}
.fill-inline-check{display:flex;align-items:center;gap:6px;white-space:nowrap}
.fill-form-fuel-row .fill-inline-check{align-self:center;min-height:38px;padding-bottom:0}
.fill-inline-check input{width:16px;height:16px;margin:0}
.fill-inline-check label{font-size:10.4px;font-weight:700;color:#304642;margin:0}
.fill-form-compact .field-inline .btn{padding:9px 11px;font-size:inherit}
.fill-form-compact .fill-station-row{flex-direction:row;align-items:center;gap:8px}
.fill-form-compact .fill-station-row>label{flex:0 0 auto;margin:0;white-space:nowrap}
.fill-form-compact .fill-station-row .field-inline{flex:1 1 auto;min-width:0}
.input-affix{display:flex;align-items:stretch;width:100%}
.input-affix input{flex:1 1 auto;min-width:0;border-radius:4px 0 0 4px}
.input-affix .affix{display:flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-left:0;border-radius:0 4px 4px 0;background:#f3f8f6;color:#3d524c;font-weight:700;font-size:0.92em;white-space:nowrap}
.fill-form-compact .input-affix input{padding-right:8px}
.fill-total-readonly{background:#f3f8f6;cursor:default}
@media(max-width:800px){.fill-form-top{grid-template-columns:1fr 1fr}.fill-form-fuel-row{grid-template-columns:minmax(0,0.46fr) minmax(0,0.84fr) auto;gap:5px}.fill-form-fuel-row .fill-inline-check{padding-bottom:0}}

.card,.side-card{padding:var(--card-pad)}
.hero-card{padding:calc(26px / 3)}
.stat{padding:calc(16px / 3)}
.vehicle-card{padding:calc(14px / 3)}
.station{padding:calc(15px / 3)}
.row{padding:calc(14px / 3) calc(16px / 3)}
.empty{padding:calc(34px / 3)}
.modal-card{padding:var(--card-pad)}
.price-station-list .empty{padding:var(--card-pad)}
.card-collapse{top:calc(8px / 3);right:calc(8px / 3)}

/* Native range and explicit checkbox remain usable in Safari 12, including offline. */
.urban-profile-heading{display:flex;align-items:center;justify-content:space-between}
.fill-form-compact .urban-profile-missing{display:flex;align-items:center;min-height:44px;margin:0;font-weight:400}
.fill-form-compact .urban-profile-missing input{width:18px;height:18px;margin:0 7px 0 0;padding:0}
.fill-form-compact .urban-profile input[type=range]{padding:0;min-height:44px;background:transparent;border:0;cursor:pointer}
.urban-profile input[type=range]:disabled{opacity:0.45}
.urban-profile-value{font-weight:700;color:var(--primary);font-size:12px}
.urban-profile small{color:var(--muted);font-size:11px;line-height:1.4}

/* History explorer: one visual canvas, bounded SVG, native sliders and old-Safari spacing. */
.analysis-explorer{min-width:0;padding:18px}
.analysis-explorer h2{margin-bottom:18px}
.analysis-period{padding:14px;background:#f3f8f6;border-radius:6px}
.analysis-date-row{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:baseline;font-size:13px;line-height:1.6}
.analysis-date-row span{color:var(--muted);font-size:12px;margin-left:8px}
.analysis-overview{margin:10px 0 5px}
.analysis-overview svg{display:block;width:100%;height:36px}
.analysis-sliders{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
.analysis-sliders label{font-size:12px;color:#304642;font-weight:600;min-width:0}
.analysis-sliders input{display:block;width:100%;margin:0;min-height:44px;padding:0;cursor:pointer}
.analysis-sliders input:disabled{opacity:.4}
.analysis-shortcuts{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin:8px 0 0}
.analysis-shortcuts-label{font-size:12px;font-weight:700;color:#304642;flex:0 0 auto;margin-right:2px}
.analysis-shortcuts button{font:inherit;font-size:11px;min-height:32px;border:1px solid var(--line);border-radius:4px;background:white;padding:4px 8px;cursor:pointer;margin:0;color:var(--primary);flex:0 0 auto;min-width:32px}
.analysis-shortcuts button:hover{background:#e2f2ec}
.analysis-tabs button,.analysis-zoom button{font:inherit;font-size:12px;min-height:44px;border:1px solid var(--line);border-radius:4px;background:white;padding:7px 11px;cursor:pointer;margin:3px;color:var(--primary)}
.analysis-zoom button:hover{background:#e2f2ec}
.analysis-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px;border-bottom:1px solid var(--line)}
.analysis-summary>div{padding:10px 6px 14px;min-width:0}
.analysis-summary span{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-bottom:5px}
.analysis-summary strong{display:block;font-size:20px;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:break-word}
.analysis-summary small{font-size:10px;font-weight:400;color:var(--muted)}
.analysis-comparison{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 6px 16px}
.analysis-comparison strong{font-weight:500;color:#304642}
.analysis-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;gap:3px;margin:0 0 10px;min-width:0}
.analysis-tabs button{border-color:transparent;background:transparent;font-weight:600;flex:1 1 0;min-width:0;margin:0;padding:6px 4px;font-size:11px;line-height:1.2;min-height:36px;white-space:nowrap}
.analysis-tabs button[aria-pressed=true]{background:#dff2eb;color:#075d53;border-color:#acd6c9}
.analysis-chart-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 -3px 8px}
.analysis-chart-toolbar>label,.analysis-chart-toolbar>button{margin:3px;min-height:44px;font-size:12px}
.analysis-chart-toolbar label{display:flex;align-items:center}
.analysis-chart-toolbar select{font:inherit;margin-left:7px;border:1px solid var(--line);border-radius:4px;background:white;min-height:38px;padding:5px}
.analysis-chart-toolbar input{width:18px;height:18px;margin:0 7px 0 0}
.analysis-chart-toolbar .btn{padding:8px 10px}
.analysis-chart-target{min-width:0}
.analysis-svg{display:block;width:100%;max-width:850px;height:auto;margin:0 auto;overflow:hidden;cursor:crosshair}
.analysis-svg text{font-family:inherit;font-size:18px;fill:#597169;font-variant-numeric:tabular-nums}
.analysis-svg .analysis-unit{font-size:18px;font-weight:600;fill:#304642}
.analysis-svg:focus{outline:2px solid #8cc7b8;border-radius:4px}
.analysis-gridline{stroke:#e0eae5;stroke-width:1}
.analysis-area{fill:#0f8c81;fill-opacity:.07}
.analysis-line{fill:none;stroke:#0f8c81;stroke-width:2.5;stroke-linejoin:round}
.analysis-price-line{stroke:#ce851d}
.analysis-trend{fill:none;stroke:#526e65;stroke-width:2;stroke-dasharray:7 5}
.analysis-crosshair{stroke:#526e65;stroke-width:1;stroke-dasharray:3 4}
.analysis-selected{stroke:#102f27;stroke-width:3}
.analysis-chart-caption,.analysis-notes{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}
.analysis-inspection{padding:12px 14px;min-height:55px;background:#f3f8f6;border-left:3px solid #0f8c81;border-radius:0 4px 4px 0;font-size:13px;line-height:1.5;color:#304642}
.analysis-empty{min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;color:var(--muted);padding:16px;background:#f8fbf9;border-radius:4px}
.analysis-chart-target h3{font-size:13px;font-weight:600;margin:12px 0 0}
.analysis-reveal{animation:analysis-appear .2s ease-out}
@keyframes analysis-appear{from{opacity:.5}to{opacity:1}}
.analysis-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;background:rgba(16,32,29,.5);display:flex;align-items:center;justify-content:center;padding:12px}
.analysis-dialog{background:white;width:100%;max-width:1050px;max-height:calc(100% - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch;border-radius:8px;padding:20px;box-shadow:0 16px 60px rgba(16,32,29,.25)}
.analysis-expanded-header{display:flex;align-items:center;justify-content:space-between}
.analysis-expanded-header h2{font-size:20px;margin:0}
.analysis-expanded-dates{font-size:13px;color:var(--muted);margin:10px 0}
.analysis-zoom{display:flex;align-items:center;flex-wrap:wrap;margin:0 -3px 8px}
.analysis-zoom button{font-size:16px;min-width:44px}
.analysis-zoom span{font-size:12px;color:var(--muted);margin:6px}
@media(max-width:600px){.analysis-explorer{padding:12px}.analysis-period{padding:10px}.analysis-sliders{column-gap:12px}.analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-summary strong{font-size:18px}.analysis-dialog{padding:12px}.analysis-overlay{padding:8px}.analysis-tabs{gap:2px}.analysis-tabs button{padding:5px 2px;font-size:10px;min-height:34px}.analysis-shortcuts{gap:3px}.analysis-shortcuts button{padding:3px 6px;font-size:10px;min-height:30px;min-width:28px}.analysis-shortcuts-label{font-size:11px}.analysis-svg text{font-size:20px}.analysis-chart-caption,.analysis-notes{font-size:11px}.analysis-explorer h2{font-size:18px}.analysis-date-row{font-size:12px}.analysis-date-row span{margin-left:0;margin-right:5px}}
@media(prefers-reduced-motion:reduce){.analysis-reveal{animation:none}}
.analysis-warnings{font-size:12px;color:#795629;line-height:1.5;margin-top:12px}
.analysis-warnings summary{cursor:pointer;min-height:32px}
.analysis-warnings p{margin:6px 0}

.dashboard-fill-actions{flex-wrap:wrap;justify-content:flex-start}.receipt-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.receipt-warning{padding:10px 12px;border-left:3px solid #d97706;background:#fffbeb;color:#78350f;font-size:13px}@media(max-width:420px){.receipt-review-grid{grid-template-columns:1fr}}

.fill-notes-heading{display:flex;align-items:center;justify-content:space-between}.fill-clear-notes{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer}.fill-clear-notes span{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font-size:20px;line-height:1}.fill-clear-notes:focus{outline:2px solid var(--primary);outline-offset:1px}

.startup-loading .startup-bar{display:block;border-radius:4px;background:rgba(255,255,255,.22)}.startup-loading .hero-card .startup-bar{background:rgba(255,255,255,.28)}.startup-loading .startup-bar-title{width:58%;max-width:200px;height:28px;margin-bottom:8px}.startup-loading .startup-bar-big{width:45%;max-width:140px;height:32px;margin-bottom:6px}.startup-loading .startup-line{height:14px;margin:0 0 8px;opacity:.5}.startup-loading .side-card .btn:disabled{opacity:.55;cursor:default}

/* Language and symbol controls: native buttons, no flex-gap dependency. */
.language-picker{position:relative;flex-shrink:0}
.header-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:24px;cursor:pointer}
.header-icon:focus,.language-choices button:focus{outline:2px solid var(--primary);outline-offset:2px}
.language-choices{position:absolute;right:0;top:50px;min-width:180px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);z-index:40}
.language-choices button{display:block;width:100%;min-height:44px;text-align:left;padding:8px 12px;border:0;background:#fff;border-radius:4px;font:inherit;cursor:pointer}
.language-choices button[aria-pressed="true"]{background:#e5f5f2;color:var(--primary);font-weight:600}
.top-actions .fab{width:44px;height:44px}
.ui-icon{display:block;flex-shrink:0}
.symbol-button,.icon-btn,#fillFindStation,.price-filters .price-find-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.analysis-zoom button{min-width:44px;min-height:44px}
.top-left{flex:1 1 auto}.top-actions{flex:0 0 auto}.brand{min-width:0}
@media(max-width:600px){.topbar{padding-left:10px;padding-right:10px}.brand{padding:0;font-size:18px}.brand img{width:32px;height:32px}.top-actions{gap:0}.top-actions>*+*{margin-left:4px}.status-pill{max-width:76px;white-space:normal;text-align:center;padding:4px 6px;font-size:10px}#pageKicker{display:none}.bottom-nav .nav-item small{font-size:10px}.language-choices{min-width:175px}}
@media(max-width:360px){.brand span{font-size:16px}.brand img{width:28px;height:28px}.status-pill{max-width:64px}#installBtn{font-size:11px;padding:5px}}
