: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}}

/* Vehicle Care v2 — launcher, service modules, responsive fields */
:root{--blue:#1764a5;--blue-soft:#eaf4ff;--amber:#c78025;--red:#c33e37}
.topbar{background:#fff}.brand-logo{background:linear-gradient(140deg,#08745d,#146f85)}
.module-back{border:0;background:transparent;color:#147966;font-size:12px;font-weight:750;padding:4px 0 12px;display:block}
.hub-title h2{font-size:25px}.launcher-grid{display:grid;gap:12px;margin-bottom:24px}
.launcher-card{border:1px solid #d7eae6;text-align:left;display:flex;align-items:center;gap:13px;min-height:108px;width:100%;padding:17px 15px;border-radius:20px;color:var(--text);box-shadow:var(--shadow)}
.fuel-launcher{background:linear-gradient(115deg,#ecf9f2,#fff)}.care-launcher{background:linear-gradient(115deg,#ebf5ff,#fff);border-color:#dbe8f6}
.launcher-symbol{background:#d7f2e5;border-radius:15px;width:60px;min-width:60px;height:60px;display:grid;place-items:center;font-size:30px}
.care-launcher .launcher-symbol{background:#dbeeff}.launcher-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.launcher-copy strong{font-size:19px;font-weight:850;letter-spacing:-.5px}.launcher-copy small{font-size:11px;color:#6a7f8a;line-height:1.5}
.launcher-arrow{font-size:28px;color:#6b9e95}.hub-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 22px}.hub-stat{display:flex;flex-direction:column;gap:2px;background:#fff;border:1px solid var(--stroke);padding:13px 14px;border-radius:15px}.hub-stat>span{color:var(--muted);font-size:11px}.hub-stat strong{font-size:20px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.hub-stat small{color:var(--muted);font-size:10px}
.due-list{display:grid;gap:9px;margin-bottom:14px}.due-item{background:#fff;border-radius:14px;border:1px solid var(--stroke);padding:13px 14px}.due-top{display:flex;justify-content:space-between;align-items:flex-start;gap:9px}.due-title{font-size:13px;font-weight:800;line-height:1.5;min-width:0;overflow-wrap:anywhere}.due-meta{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.65}.status-pill{font-weight:800;font-size:10px;padding:5px 8px;white-space:nowrap;border-radius:99px;background:#eaf5ec;color:#187956}.status-pill.due{background:#fff0e9;color:#ba4a3f}.status-pill.soon{background:#fff6e2;color:#a9701c}.status-pill.none{background:#edf2f5;color:#667580}
.disclaimer-small{font-size:10px;color:var(--muted);line-height:1.7;margin:6px 0 18px}.care-overview{background:linear-gradient(140deg,#0f6d86,#147d72);color:white;border-radius:18px;padding:19px;display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-bottom:12px}.care-overview>div{display:flex;flex-direction:column;gap:6px}.care-overview small{opacity:.85;font-size:10px}.care-overview strong{font-size:27px;font-weight:850}.care-overview em{font-style:normal;font-size:12px;opacity:.85}
.quick-action-row{display:flex;gap:9px;margin-bottom:24px}.quick-action-row>.primary-button{flex:1;min-width:0;font-size:12px;padding:12px 7px}.quick-action-row>.outline-button{width:90px;font-size:12px;margin-bottom:0;padding:8px 6px}
.care-recent-list,.care-history-list{display:grid;gap:10px}.care-entry{background:#fff;border:1px solid var(--stroke);border-radius:15px;padding:13px 15px}.care-entry-head{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.care-entry-head strong{font-size:14px}.care-entry-head small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.care-entry-cost{font-weight:850;font-size:16px;white-space:nowrap}.care-entry-description{color:#556873;font-size:12px;margin:9px 0 3px;overflow-wrap:anywhere}.care-entry-bottom{font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}.care-entry-actions{display:flex;gap:15px;justify-content:flex-end;border-top:1px solid var(--stroke);padding-top:8px;margin-top:10px}.care-entry-actions button{background:none;border:0;color:var(--green-dark);font-size:12px;font-weight:750}.care-entry-actions .danger{color:#b44343}
.due-form-block{background:#f2f8fb;border-radius:14px;padding:14px;margin:13px 0 16px;border:1px solid #e0eaf0}.due-form-block strong{font-size:14px}.due-form-block p{font-size:11px;color:var(--muted);margin:4px 0 13px;line-height:1.7}.due-form-block .field{margin-bottom:0}
.field select,.field textarea{display:block;width:100%;border:1px solid #dbe4e8;border-radius:13px;background:#fff;color:var(--text);padding:12px 14px;font-size:15px;min-height:52px}.field textarea{resize:vertical;min-height:78px}.field select:focus,.field textarea:focus{border-color:var(--green)}
@media(max-width:360px){.launcher-copy strong{font-size:17px}.launcher-symbol{width:52px;min-width:52px;height:52px}.field-row{gap:8px}.field-row .field input{padding-left:10px;font-size:14px}.due-form-block{padding:10px}.care-overview strong{font-size:23px}}
