:root{color-scheme:light;--bg:#f6f8fa;--surface:#fff;--text:#122331;--muted:#72808b;--stroke:#e8edf0;--green:#0e8c70;--green-dark:#08745d;--soft-green:#e9f7f2;--shadow:0 12px 36px rgba(27,57,60,.045)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans Thai",Tahoma,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;background:#e6ebed;color:var(--text);font-size:15px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82cbb5;outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}svg{display:block}.app-shell{background:var(--bg);max-width:470px;min-height:100dvh;margin:0 auto;position:relative;box-shadow:0 0 40px rgba(0,0,0,.07)}.topbar{padding:calc(18px + env(safe-area-inset-top)) 22px 14px;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--stroke)}.brand{display:flex;gap:12px;align-items:center}.brand-logo{background:var(--green);color:white;width:42px;height:42px;border-radius:13px;padding:10px}.brand-logo svg{width:100%;height:100%}.brand h1{margin:0;font-size:19px;font-weight:800;letter-spacing:-.6px;line-height:1.15}.brand span{color:var(--muted);font-size:11px}.icon-btn{border:1px solid var(--stroke);background:white;border-radius:12px;width:39px;height:39px;display:grid;place-items:center}.icon-btn svg{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}main{padding:18px 20px calc(106px + env(safe-area-inset-bottom));min-height:calc(100dvh - 75px)}.vehicle-row{display:flex;align-items:center;gap:10px;margin-bottom:25px}.vehicle-symbol{background:#eaf0f3;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;font-size:20px}.vehicle-info{min-width:0;flex:1;display:flex;flex-direction:column}.vehicle-info>span{font-size:11px;color:var(--muted)}.vehicle-info select{width:100%;font-size:14px;font-weight:700;border:0;background:transparent;color:var(--text);appearance:auto;max-width:210px;padding:0;min-height:25px}.local-pill{font-size:10px;color:var(--green);background:var(--soft-green);border-radius:100px;padding:6px 8px;white-space:nowrap;font-weight:700}.view[hidden]{display:none!important}.section-heading{margin-bottom:18px}.section-heading h2{font-size:23px;letter-spacing:-.8px;line-height:1.35;margin:3px 0;font-weight:800}.eyebrow{color:var(--green);letter-spacing:1.5px;font-weight:800;font-size:10px;margin:0}.subline{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.hero{border-radius:22px;background:linear-gradient(135deg,#0e9073,#096951);color:#fff;padding:21px 23px;box-shadow:0 12px 27px rgba(15,131,104,.19)}.hero-top,.hero-bottom{display:flex;justify-content:space-between;align-items:center}.hero-top{font-size:13px;color:#d4f4e9}.hero-icon{font-size:20px}.hero-number{display:flex;align-items:baseline;gap:9px;margin-top:11px}.hero-number strong{font-size:51px;font-weight:850;letter-spacing:-2px;line-height:1.1;font-variant-numeric:tabular-nums}.hero-number span{color:#d4f4e9;font-weight:500}.hero p{font-size:11px;color:#d4f4e9;min-height:18px;margin:9px 0 14px}.hero-divider{border-top:1px solid #ffffff45;margin-bottom:15px}.hero-bottom{font-size:12px;color:#dcf5eb}.hero-bottom strong{color:#fff;font-size:15px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 26px}.small-metric{min-width:0;border:1px solid var(--stroke);background:#fff;border-radius:17px;padding:15px 15px 14px;box-shadow:var(--shadow)}.small-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:4px}.small-top span:last-child{font-weight:800;color:var(--green);font-size:14px}.small-metric strong{display:block;font-size:22px;letter-spacing:-.7px;font-weight:800;margin-top:12px;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}.small-metric strong em{font-size:12px;font-style:normal;font-weight:500;color:var(--muted)}.small-metric small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.heading-row{display:flex;align-items:center;justify-content:space-between;margin:21px 0 11px;gap:10px}.heading-row h3{font-size:14px;font-weight:800;margin:0}.muted{color:var(--muted);font-size:11px}.text-btn{background:none;border:0;color:var(--green);font-size:12px;font-weight:700;padding:2px}.chart-card,.latest-card{border:1px solid var(--stroke);background:var(--surface);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.chart-inner{display:flex;align-items:flex-end;justify-content:space-around;gap:8px;height:135px;border-bottom:1px solid #e9eeef;padding:0 0 4px}.bar-group{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;position:relative}.bar{width:min(25px,75%);border-radius:7px 7px 3px 3px;background:#c2e8dc;min-height:3px}.bar-group.current .bar{background:var(--green)}.bar-value{font-size:9px;font-weight:700;color:var(--muted);white-space:nowrap}.bar-month{font-size:10px;color:var(--muted);margin-top:9px;text-align:center}.chart-labels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.empty-chart{height:120px;display:grid;place-items:center;color:var(--muted);font-size:12px;text-align:center}.latest-card{padding:15px 17px;margin-bottom:17px}.latest-card .latest-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.latest-card .latest-head strong{font-size:14px}.latest-card .latest-head span{font-size:11px;color:var(--muted)}.latest-item{display:flex;justify-content:space-between;margin:7px 0;font-size:13px}.latest-item span{color:var(--muted)}.latest-item strong{font-weight:750}.latest-empty{font-size:13px;color:var(--muted);text-align:center;padding:14px 5px}.primary-button,.outline-button,.quiet-button{border-radius:14px;min-height:50px;padding:11px 16px;font-weight:800;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary-button{background:var(--green);color:#fff;box-shadow:0 6px 12px rgba(14,140,112,.11)}.primary-button:active{background:var(--green-dark)}.full{width:100%}.plus-sign{font-size:22px;font-weight:400;line-height:1}.bottom-nav{position:fixed;z-index:10;bottom:0;width:100%;max-width:470px;background:rgba(255,255,255,.97);border-top:1px solid var(--stroke);padding:9px 12px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);backdrop-filter:blur(10px)}.nav-btn{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:#8c979f;padding:5px 0;font-size:10px;min-height:48px}.nav-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-btn.active{color:var(--green);font-weight:800}.field{margin:0 0 17px}.field label,.settings-card label:not(.file-label){display:block;font-size:13px;font-weight:750;margin-bottom:7px}.required{color:var(--green)}.field input,.settings-card input:not([type=file]){display:block;width:100%;border:1px solid #dbe4e8;border-radius:13px;background:white;color:var(--text);height:54px;padding:0 14px;font-size:16px;outline:0}.field input:focus,.settings-card input:focus{border-color:var(--green)}.field small{display:block;font-size:11px;color:var(--muted);margin:6px 0}.input-suffix{position:relative}.input-suffix input{padding-right:50px}.input-suffix>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:13px;font-weight:600}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.autocalc{background:var(--soft-green);color:var(--green-dark);padding:12px 13px;font-size:12px;font-weight:600;border-radius:12px;margin:0 0 19px}.toggle-row{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--stroke);padding:15px 16px;border-radius:13px;margin-top:6px;gap:12px}.toggle-row strong{font-size:14px}.toggle-row p{margin:3px 0 0;color:var(--muted);font-size:11px}.switch{position:relative;display:inline-block;width:50px;height:29px;flex-shrink:0}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.slider-switch{position:absolute;cursor:pointer;inset:0;background:#cbd5db;border-radius:100px;transition:.2s}.slider-switch:before{content:"";position:absolute;left:3px;bottom:3px;background:#fff;height:23px;width:23px;border-radius:50%;box-shadow:0 1px 3px #0002;transition:.2s}.switch input:checked+.slider-switch{background:var(--green)}.switch input:checked+.slider-switch:before{transform:translateX(21px)}.switch input:focus-visible+.slider-switch{outline:3px solid #83d4c1}.explain{font-size:11px;color:var(--muted);line-height:1.65;margin:12px 0 18px}.submit-button{font-size:15px}.quiet-button{background:transparent;color:var(--muted);margin-top:8px}.form-alert{background:#fff1f1;border:1px solid #ffd3d3;color:#a82525;border-radius:12px;font-size:12px;padding:12px;margin-bottom:12px}.history-list{display:grid;gap:12px}.history-entry{padding:15px 17px;border:1px solid var(--stroke);background:#fff;border-radius:16px;box-shadow:var(--shadow)}.history-top,.history-meta,.history-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.history-date{font-weight:800;font-size:14px}.history-meta{font-size:12px;color:var(--muted);margin:10px 0}.history-amount{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.chip{border-radius:100px;background:#edf6f3;color:var(--green);padding:4px 8px;font-size:10px;font-weight:800}.chip.partial{background:#f2f3f5;color:#6a7681}.cycle-indicator{margin-top:11px;background:#f1f9f5;border-radius:9px;padding:8px 10px;color:#0c745d;font-weight:650;font-size:11px}.cycle-indicator.pending{background:#f6f7f8;color:#7a868e}.history-action{justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid var(--stroke)}.history-action button{font-size:12px;color:var(--green);padding:4px 5px;background:none;border:0;font-weight:700}.history-action button.danger{color:#be4242}.empty-state{padding:30px 18px;border:1px dashed #d9e2e5;border-radius:15px;text-align:center;color:var(--muted);font-size:13px}.empty-state strong{display:block;font-size:17px;color:var(--text);margin-bottom:6px}.empty-state button{margin-top:13px}.settings-card{background:white;border:1px solid var(--stroke);border-radius:16px;padding:17px 16px;margin-bottom:14px}.settings-card h3{margin:0 0 12px;font-size:15px;font-weight:800}.settings-card .subline{margin:0 0 12px}.settings-inline{display:flex;gap:8px}.settings-inline input{min-width:0;flex:1}.settings-inline .outline-button{min-height:48px}.outline-button{background:white;border:1px solid #d9e4e5;color:var(--green-dark);font-size:12px;margin-bottom:9px;min-height:45px;box-shadow:none}.settings-card>.outline-button:last-child{margin-bottom:0}.vehicle-list{display:grid;gap:7px;margin:14px 0}.vehicle-item{display:flex;align-items:center;justify-content:space-between;background:#f8fafb;padding:10px 11px;border-radius:11px;font-size:12px;gap:10px}.vehicle-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-item button{border:0;background:none;color:#c24545;font-size:11px;font-weight:750}.vehicle-item .selected-label{color:var(--green);font-size:10px;font-weight:750;white-space:nowrap}.warning-note{display:block;color:#aa6c26;font-size:11px;line-height:1.5;margin-top:4px}.file-label{cursor:pointer;display:flex!important;margin-bottom:7px!important}.toast{position:fixed;left:50%;transform:translate(-50%,12px);bottom:calc(80px + env(safe-area-inset-bottom));z-index:90;background:#152f30;color:white;border-radius:12px;padding:12px 16px;font-size:12px;font-weight:700;max-width:min(90vw,420px);width:max-content;box-shadow:0 9px 23px #0003;opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}@media(min-width:600px){body{padding:28px 0}.app-shell{border-radius:26px;min-height:830px;overflow:clip}.topbar{padding-top:20px}.bottom-nav{border-radius:0 0 26px 26px;left:50%;transform:translateX(-50%);width:470px}.toast{bottom:88px}}@media(max-width:345px){main{padding-left:14px;padding-right:14px}.metric-grid{gap:8px}.small-metric{padding:12px}.small-metric strong{font-size:19px}.hero-number strong{font-size:45px}.local-pill{display:none}}

/* v1.1 - visible two-vehicle selector and individual vehicle settings */
.vehicle-panel{margin-bottom:24px}.vehicle-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.vehicle-panel-head h2{font-size:16px;letter-spacing:-.3px;line-height:1.3;margin:3px 0 0}.vehicle-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.car-tile{min-width:0;text-align:left;border:1.5px solid #e0e8e8;border-radius:16px;background:#fff;padding:13px 12px;box-shadow:var(--shadow);color:var(--text);display:flex;flex-direction:column;gap:6px;min-height:113px}.car-tile.active{border-color:var(--green);background:#f0faf6;box-shadow:0 0 0 1px var(--green)}.car-tile-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.car-tile-status{font-size:9px;font-weight:800;color:#78908a;white-space:nowrap}.car-tile.active .car-tile-status{color:var(--green-dark)}.car-tile strong{font-size:14px;font-weight:800;overflow-wrap:anywhere;line-height:1.4}.car-tile small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.vehicle-caption{margin:9px 0 0;color:var(--green-dark);font-size:11px;font-weight:700}.vehicle-settings-item{background:#f8fafb;border-radius:13px;padding:12px 11px;border:1px solid var(--stroke)}.vehicle-settings-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}.vehicle-settings-head strong{font-size:13px}.vehicle-settings-head span{font-size:10px;color:var(--muted)}.vehicle-settings-item label{font-size:11px!important;color:var(--muted);margin-bottom:4px!important}.vehicle-settings-item .outline-button{white-space:nowrap;padding:9px 10px}.vehicle-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}.vehicle-settings-actions button{background:none;border:none;color:var(--green-dark);font-weight:800;font-size:11px;padding:7px 0}.vehicle-settings-actions .danger-action{color:#c34545}.vehicle-settings-actions .selected-label{color:var(--green-dark);font-size:11px;font-weight:750}.vehicle-list{gap:10px}
@media(max-width:360px){.car-tile{padding:11px 9px;min-height:112px}.car-tile strong{font-size:12px}.car-tile-status{font-size:8px}}

[hidden]{display:none!important}

/* v1.2 — Online official oil price widgets */
.price-teaser{width:100%;border:1px solid #d8ebe6;background:#f5fbf8;border-radius:16px;display:flex;align-items:center;text-align:left;gap:12px;padding:15px 13px;margin-bottom:17px;color:var(--text)}
.price-teaser-icon{height:42px;min-width:42px;background:#dff4eb;border-radius:13px;display:grid;place-items:center;font-size:22px}
.price-teaser-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}
.price-teaser-copy strong{font-weight:800;font-size:13px}.price-teaser-copy small{font-size:10px;color:var(--muted);line-height:1.5}.price-teaser-arrow{color:var(--green);font-size:26px}
.prices-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:12px}
.prices-head div{display:flex;flex-direction:column}.prices-head strong{font-size:13px}.prices-head small{font-size:11px;color:var(--muted)}
.price-net-badge{font-size:10px;font-weight:800;background:#e1f6ea;color:#0a7a4d;padding:5px 8px;border-radius:100px;white-space:nowrap}.price-net-badge.offline{background:#fff0e4;color:#ad6c25}
.price-provider-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:13px}
.provider-button{min-height:44px;background:white;border:1.5px solid var(--stroke);border-radius:12px;font-weight:800;font-size:13px;color:var(--muted)}.provider-button.active{background:var(--soft-green);border-color:var(--green);color:var(--green-dark)}
.price-content{border:1px solid var(--stroke);background:white;border-radius:17px;padding:13px;box-shadow:var(--shadow)}
.price-note{color:var(--muted);font-size:11px;line-height:1.65;margin:0 0 12px}
.price-frame{display:block;border:0;width:100%;background:white;border-radius:9px;overflow:hidden}
.price-actions{display:flex;gap:9px;margin-top:12px}.price-actions>*{flex:1;min-width:0}.price-actions .outline-button{font-size:11px;padding:8px 5px;min-height:43px;margin:0;text-align:center;text-decoration:none;white-space:nowrap}
.price-offline{border:1px dashed #d8e5e5;padding:34px 10px;text-align:center;color:var(--muted);font-size:12px;border-radius:11px;line-height:1.9}
.price-disclaimer{font-size:11px;color:var(--muted);line-height:1.8;margin:13px 0}
@media(max-width:360px){.bottom-nav{padding-left:7px;padding-right:7px}.nav-btn{font-size:9px}.price-content{padding:9px}}
