:root{--bg:#0c1211;--panel:#131c1a;--line:#293532;--muted:#8eaaa0;--text:#eef4ee;--mint:#bcf8b3;--amber:#f5c675;color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{border:1px solid var(--line);background:#1c2824;color:var(--text);border-radius:7px;padding:10px 15px;cursor:pointer}button:hover{border-color:var(--mint)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--mint);outline-offset:4px}a{color:var(--mint)}[hidden]{display:none!important}.topbar{height:90px;border-bottom:1px solid var(--line);padding:0 5%;display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;color:var(--text);display:flex;align-items:center;gap:18px;font-size:12px;font-weight:750;letter-spacing:2px}.brand small{display:block;font-size:8px;letter-spacing:2.2px;color:var(--muted);margin-top:5px}.brandmark{font-size:26px;font-style:italic;letter-spacing:-4px;border-right:1px solid var(--line);padding-right:24px}.brandmark span{color:var(--mint);font-style:normal;margin-left:8px;font-size:23px;letter-spacing:0}.top-actions{display:flex;align-items:center;gap:20px}.connection{font-size:11px;color:var(--muted)}.connection.offline{color:var(--amber)}.version{font-size:11px;border:1px solid var(--line);border-radius:5px;padding:4px 8px;color:var(--muted)}main{max-width:1400px;margin:auto;padding:0 5%}.intro{display:flex;justify-content:space-between;align-items:center;padding:46px 0 32px;gap:30px}.eyebrow{font-size:10px;letter-spacing:2.3px;color:var(--muted);font-weight:650}h1{font-size:46px;line-height:1.12;letter-spacing:-2px;font-weight:600;margin:12px 0 16px}h1 span{color:var(--mint)}.intro p{color:var(--muted);font-size:13px}.vehicle{display:flex;gap:22px;align-items:center;padding:25px 30px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(125deg,#1b2d24,#131c1a);min-width:345px}.vehicle-icon{font-size:44px;color:var(--mint);font-weight:200}.vehicle small{font-size:9px;color:var(--muted);letter-spacing:1.4px}.vehicle strong{display:block;font-size:21px;font-weight:600;margin:5px 0 0}.vehicle>div>span{color:var(--muted);font-size:11px}.vehicle-specs{display:flex;gap:22px;margin-top:18px}.vehicle-specs b{font-size:17px;font-weight:500}.vehicle-specs small{display:block;font-size:9px;letter-spacing:0}.notice{display:flex;gap:13px;align-items:center;background:#1c211a;border:1px solid #39402b;border-radius:8px;padding:15px 18px}.notice-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--amber)}.notice strong{display:block;color:#ead3a4;font-size:11px;font-weight:600}.notice span:not(.notice-dot){display:block;color:#b4b4a0;font-size:11px;margin-top:2px}.notice button{margin-left:auto;white-space:nowrap;background:transparent;border:0;color:#ddd1ae;font-size:11px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:26px 0}.tabs button{background:transparent;border:0;border-radius:0;padding:12px 0 17px;color:var(--muted);font-size:10px;border-bottom:2px solid transparent}.tabs button span{font-size:12px;margin-left:8px}.tabs button.active{color:var(--mint);border-bottom-color:var(--mint)}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:26px;align-items:start}.panel{border:1px solid var(--line);background:var(--panel);border-radius:10px}.setup{padding:22px}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:22px}h2{font-size:15px;font-weight:550;margin:0;letter-spacing:-.2px}.muted{font-size:9px;letter-spacing:1.2px;color:var(--muted)}label{font-size:11px;display:block;color:#d0ddd5;margin-bottom:13px}label>span{float:right;font-size:9px;color:var(--muted)}input:not([type=checkbox]):not([type=range]),select{width:100%;border:1px solid #34413a;background:#0e1613;padding:10px 11px;border-radius:6px;color:var(--text);outline:0;margin-top:7px;font-size:12px;min-height:39px}input:focus,select:focus{border-color:var(--mint)!important}input[type=range]{width:100%;accent-color:var(--mint);height:5px;margin:10px 0 0}input[type=checkbox]{accent-color:var(--mint);width:15px;height:15px;flex-shrink:0}.field-block{margin-bottom:18px}.field-block label{margin:0}.field-block select{margin-top:7px}.hint{font-size:10px;color:var(--muted);line-height:1.65;margin:7px 0 16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.range-label{margin-bottom:0}.range-label output{float:right;color:var(--mint);font-size:12px;font-weight:600}.range-ticks{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;margin:6px 0 16px}.check{display:flex;gap:8px;align-items:center;margin:14px 0 0;font-size:11px}.divider{height:1px;background:var(--line);margin:22px 0}details{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}summary{font-size:11px;cursor:pointer;list-style:none;margin-bottom:16px}summary span{float:right;color:var(--mint)}.primary{background:var(--mint);color:#172619;font-weight:650;border:0}.calculate{width:100%;text-align:left;margin-top:14px;padding:14px;font-size:12px}.calculate span{float:right}.text-button{border:0;background:none;padding:12px 0 0;color:var(--muted);width:100%;font-size:10px}.save-hint{text-align:center;margin-bottom:0;font-size:9px}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.result-heading h3{font-size:25px;margin-top:6px;letter-spacing:-.8px}.result-heading h3 span{color:var(--muted);padding:0 6px}.result-heading button{font-size:10px}.plan-summary>div[role=status]{color:var(--muted);font-size:11px;margin-bottom:15px}.plan-summary>div[role=status].error{color:var(--amber);padding:12px;border:1px solid #66502c;border-radius:6px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.metric{padding:17px 14px;border:1px solid var(--line);border-radius:8px;background:#111a16}.metric small{font-size:9px;color:var(--muted)}.metric strong{display:block;font-size:25px;font-weight:550;letter-spacing:-1px;margin-top:6px}.metric strong em{font-size:12px;font-style:normal;letter-spacing:0;color:var(--muted);margin-left:3px}.metric p{font-size:9px;color:var(--muted);margin:4px 0 0}.metric:first-child strong{color:var(--mint)}.strategy,.chart-panel,.itinerary,.energy-panel{padding:22px;margin-bottom:18px}.strategies{display:grid;grid-template-columns:1fr 1fr;gap:12px}.strategy-card{padding:17px;text-align:left;border:1px solid var(--line);background:#101815;border-radius:8px;position:relative;width:100%}.strategy-card.selected{border-color:var(--mint);background:#1d2a20}.strategy-card .badge{font-size:8px;color:var(--mint);border:1px solid #66815c;padding:3px 5px;border-radius:3px;float:right;letter-spacing:.4px}.strategy-card h3{font-size:12px;margin:0 0 10px}.strategy-card .duration{font-size:29px;letter-spacing:-1px;display:block}.strategy-card .subtitle{font-size:10px;color:var(--muted);display:block;margin:4px 0 15px}.time-breakdown{font-size:10px;display:grid;gap:6px;border-top:1px solid var(--line);padding-top:12px}.time-breakdown div{display:flex;justify-content:space-between;color:var(--muted)}.time-breakdown b{color:var(--text);font-weight:500}.strategy-card .unavailable{font-size:11px;color:var(--amber)}.strategy>.hint{margin-bottom:0;margin-top:15px}.chart-panel .panel-head{margin-bottom:5px}.panel-head .hint{margin-bottom:0}.chart-key{font-size:9px;color:var(--muted);white-space:nowrap}.chart-key i{display:inline-block;width:6px;height:6px;background:var(--mint);border-radius:50%;margin-right:5px}.chart{width:100%;min-height:185px}.chart svg{display:block;width:100%;height:auto}.chart text,.curve-chart text{font-family:inherit;font-size:10px;fill:var(--muted)}.chart-footer{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted);padding-top:10px}.timeline-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:13px;position:relative;padding:0 0 23px}.timeline-row:not(:last-child):before{content:'';position:absolute;background:var(--line);width:1px;left:17px;top:34px;bottom:0}.timeline-icon{width:35px;height:35px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;background:#0f1813;border-radius:50%;color:var(--mint);font-size:14px;z-index:1}.timeline-row h3{font-size:12px;font-weight:550;margin:0 0 4px}.timeline-row p{font-size:10px;color:var(--muted);margin:0}.timeline-time{font-size:12px;font-variant-numeric:tabular-nums}.timeline-time span{display:block;font-size:9px;color:var(--muted);text-align:right}.leg-line{font-size:10px;color:var(--muted);margin:0 0 17px 51px;display:flex;flex-wrap:wrap;gap:7px 15px}.stop-detail{margin-top:9px;display:flex;flex-wrap:wrap;gap:6px}.stop-detail span{background:#1e2b24;border:1px solid #304131;font-size:9px;padding:4px 6px;border-radius:4px;color:#c0d8bd}.timeline-row:last-child{padding-bottom:0}.energy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.energy-item small{color:var(--muted);font-size:10px}.energy-item b{display:block;font-weight:500;font-size:18px;margin-top:4px}.energy-item.positive b{color:var(--mint)}.energy-panel>.hint{margin:16px 0 0}.data-view{max-width:900px;margin:auto}.data-view>.panel{padding:35px}.data-view h2{font-size:28px;margin:12px 0 20px}.data-view h3{font-size:16px;margin-top:30px}.data-view p{color:#abc0b3;font-size:13px;line-height:1.9}.data-view code{background:#243128;border-radius:3px;padding:2px 5px}.source-row{border:1px solid var(--line);padding:15px 18px;display:flex;justify-content:space-between;gap:15px;margin-bottom:9px;border-radius:7px}.source-row strong{font-size:12px}.source-row span{font-size:11px;color:var(--muted)}.source-row small{display:block;font-size:10px;color:var(--amber);margin-top:3px}.curve-chart{max-width:650px}.curve-chart svg{width:100%;height:auto}.file-button{border:1px dashed #60846a;border-radius:5px;padding:10px;cursor:pointer;text-align:center;color:var(--mint)}input[type=file]{font-size:10px!important;border:0!important;padding:7px 0!important}footer{max-width:1400px;margin:45px auto 0;padding:23px 5%;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:1px;color:#738d7f}.stale{border-color:var(--amber)!important}.stale-note{color:var(--amber)}
@media(min-width:1450px){main,.topbar,footer{padding-left:70px;padding-right:70px}}@media(max-width:1000px){.workspace{grid-template-columns:260px minmax(0,1fr);gap:18px}.setup{padding:17px}.metrics{grid-template-columns:1fr 1fr}.vehicle{min-width:300px;padding:22px}.strategy,.chart-panel,.itinerary,.energy-panel{padding:17px}.strategy-card{padding:13px}.strategy-card .badge{float:none;display:table;margin:0 0 10px}.energy-grid{grid-template-columns:1fr 1fr}h1{font-size:40px}}@media(max-width:740px){.topbar{height:74px}.brand{gap:12px;font-size:10px;letter-spacing:1.3px}.brandmark{padding-right:15px;font-size:24px}.brand small{font-size:7px;letter-spacing:1.3px}.connection{font-size:0}.connection:first-letter{font-size:10px}.top-actions{gap:8px}.version{display:none}.intro{padding-top:30px;display:block}h1{font-size:39px}.vehicle{margin-top:24px;min-width:0;padding:18px 22px;justify-content:flex-start}.vehicle>div{flex:1}.vehicle-specs{margin-top:10px}.notice{align-items:flex-start;flex-wrap:wrap;padding:13px}.notice-dot{margin-top:5px}.notice>div{flex:1}.notice button{padding:0;margin:0 0 0 20px}.workspace{grid-template-columns:1fr}.setup{padding:20px}.setup .form-grid{gap:0 18px}.result-heading{margin-top:10px}.result-heading h3{font-size:24px}.metrics{gap:9px}.metric strong{font-size:26px}.strategies{gap:10px}.strategy-card .duration{font-size:25px}.chart-footer{font-size:8px}.data-view>.panel{padding:22px}.data-view h2{font-size:24px}.source-row{display:block}.source-row>span{display:block;margin-top:9px}footer{flex-wrap:wrap;font-size:8px;margin-top:25px}.timeline-row{gap:10px;grid-template-columns:35px minmax(0,1fr) auto}.timeline-row h3{font-size:11px}.timeline-time{font-size:11px}.top-actions button{font-size:10px;padding:7px}.energy-grid{gap:13px}.chart{min-height:130px}}
@media(prefers-reduced-motion:no-preference){button{transition:border-color .15s,background .15s}.primary:hover{background:#d3ffca}}
.search-row{display:flex;align-items:center;gap:6px;margin:4px 0 12px}.search-row input{min-width:0;margin:0!important}.search-row button{padding:10px;font-size:11px}.route-fetch{width:100%;margin-top:16px;color:var(--mint);border-color:#60846a;font-size:12px}#live-controls>label:not(.check){margin:14px 0 0}#live-controls>select{margin-bottom:10px;font-size:11px;white-space:normal}#route-progress{color:var(--mint);overflow-wrap:anywhere}.route-overview{padding:22px;margin-bottom:18px}.route-stats{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.route-stats b{display:block;font-size:19px;color:var(--text);font-weight:550}.route-overview svg{display:block;width:100%;height:auto}.route-overview svg text{font-size:10px;fill:var(--muted);font-family:inherit}.route-warning{color:var(--amber);font-size:11px;padding:10px 12px;border:1px solid #514a2e;border-radius:6px;background:#222518;line-height:1.7}.attribution{margin-bottom:0!important}.attribution a{color:var(--muted)}#height-chart{font-size:11px;color:var(--muted)}
@media(max-width:740px){input:not([type=checkbox]):not([type=range]),select{font-size:16px!important;min-height:44px}.search-row button{min-height:44px}.route-overview{padding:17px}.route-stats b{font-size:18px}.setup{scroll-margin-top:10px}.route-fetch{min-height:44px}body{padding-bottom:env(safe-area-inset-bottom)}}
.strategy-card.best-other{grid-column:1/-1}.maps-link{display:inline-block;font-size:10px;margin:7px 0 3px}.timeline-row>div{min-width:0}.timeline-row p,.timeline-row h3{overflow-wrap:anywhere}
#manual-weather{padding:0;margin:15px 0;border:0}#manual-weather legend{font-size:10px;color:var(--muted);padding:0;margin-bottom:10px}#refresh-weather{font-size:11px;width:100%;margin:0 0 8px;color:var(--mint)}.weather-panel{padding:22px;margin-bottom:18px;min-width:0}.weather-panel details{margin-top:0}.weather-panel details summary{font-size:11px}.weather-table-wrap{overflow-x:auto;max-width:100%}.weather-panel table{border-collapse:collapse;min-width:610px;width:100%;font-size:10px;text-align:left}.weather-panel th,.weather-panel td{padding:9px 8px;border-bottom:1px solid var(--line);white-space:nowrap}.weather-panel th{color:var(--muted);font-weight:500}.weather-panel caption{text-align:left;font-size:9px;color:var(--muted);padding-bottom:8px}.weather-panel>.hint{margin-bottom:0}.setup,.results{min-width:0}@media(max-width:740px){.weather-panel{padding:17px}}

.trip-panel{margin:20px 0;padding:24px}.trip-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.trip-controls label{display:grid;gap:8px;max-width:220px}.trip-controls input{width:100%;box-sizing:border-box}.trip-panel .route-warning{margin-top:12px}#trip-advice{overflow-wrap:anywhere}.trip-panel button:disabled{opacity:.45} @media(max-width:600px){.trip-controls>*{flex:1 1 100%;max-width:none!important}.trip-panel{padding:18px}}

.speed-panel{padding:24px;margin-bottom:20px}.speed-panel table{border-collapse:collapse;min-width:680px;width:100%;font-size:12px}.speed-panel td,.speed-panel th{text-align:left;padding:12px 9px;border-bottom:1px solid #304136;white-space:nowrap}.speed-panel caption{text-align:left;color:#a3b3a9;padding:12px 0;font-size:11px}.speed-panel th{color:#a3b3a9;font-weight:500}.speed-panel .weather-table-wrap{overflow-x:auto}.speed-panel #speed-comparison-status{font-size:12px;color:#a3b3a9;line-height:1.7}@media(max-width:600px){.speed-panel{padding:18px}}

/* Foreground driving workspace: readable targets, minimal chrome. */
body[data-workspace="trip"] .intro,body[data-workspace="trip"] .notice{display:none}
.tabs{position:sticky;top:0;z-index:5;background:var(--bg)}
.live-view{max-width:1100px;margin:0 auto}.live-view .trip-panel{margin:0;padding:26px}.live-view .panel-head{margin-bottom:12px}.live-view h2{font-size:24px;margin-top:4px}
#trip-status{font-size:12px;color:var(--muted);min-height:20px}#trip-status.error{color:var(--amber)}
.next-stop-heading{padding:12px 0 18px}.next-stop-heading small{font-size:10px;color:var(--mint);letter-spacing:1.5px}.next-stop-heading h3{font-size:21px;font-weight:550;margin:6px 0;overflow-wrap:anywhere}.next-stop-heading p{font-size:12px;color:var(--muted);margin:0}
.drive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.drive-card{padding:16px 20px;background:#101815;border:1px solid var(--line);border-radius:9px;min-width:0}.drive-card>span{font-size:12px;color:#b7cabe}.drive-card strong{display:block;font-size:38px;font-weight:550;line-height:1.25;font-variant-numeric:tabular-nums;margin:8px 0}.drive-card strong small{font-size:15px;color:var(--muted);font-weight:400;margin-left:7px}.drive-card p{font-size:10px;color:var(--muted);margin:0}.drive-primary{background:#1c2b21;border-color:#4d6c4b}.drive-primary strong{font-size:62px;color:var(--mint)}
.live-battery{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:15px 0;font-size:12px;color:var(--muted)}.live-battery strong{font-size:22px;font-weight:500;color:var(--text);margin-left:10px}.next-charge{font-size:13px;line-height:1.7}.next-charge a{display:inline-block}
.soc-entry{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid #40583e;background:#17251c;border-radius:8px;padding:18px;margin-top:18px}.soc-entry label{font-size:13px;margin:0}.soc-entry .hint{margin:5px 0 0}.soc-entry-action{display:flex;gap:9px;align-items:center}.soc-entry-action input{width:95px!important;font-size:21px!important;margin:0!important}.soc-entry-action button{white-space:nowrap}
@media(max-width:600px){.tabs{gap:0;justify-content:space-between;margin:16px 0}.tabs button{font-size:9px}.tabs button span{font-size:11px;margin-left:4px}.live-view .trip-panel{padding:16px}.live-view .panel-head{gap:8px}.live-view .muted{font-size:8px;letter-spacing:0;max-width:125px;text-align:right}.live-view h2{font-size:21px}.drive-grid{gap:8px}.drive-card{padding:12px}.drive-card>span{font-size:11px}.drive-card strong{font-size:29px;margin:6px 0}.drive-primary strong{font-size:44px}.drive-card strong small{font-size:11px;margin-left:4px}.drive-card p{font-size:9px}.live-battery{align-items:start}.live-battery>span:last-child{max-width:55%;font-size:10px}.soc-entry{display:block;padding:14px}.soc-entry-action{margin-top:14px}.soc-entry-action input{width:88px!important}.soc-entry-action button{flex:1;font-size:12px}.live-view .trip-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.live-view .trip-controls button{font-size:11px;padding:11px 8px}.next-stop-heading h3{font-size:18px}}

.vehicle-setup{margin-bottom:0}.setup-vehicle-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;color:var(--muted);font-size:10px}.setup-vehicle-specs b{color:var(--mint);font-size:18px;font-weight:550;display:block}.setup-vehicle-specs small{grid-column:1/-1;font-size:10px}.vehicle-profile-link{border:0;background:none;color:var(--mint);font-size:10px;padding:12px 0 0}.plan-summary>.notice{margin:0 0 18px;align-items:flex-start}.plan-summary>.notice>div{min-width:0}.plan-summary>.notice .notice-dot{margin-top:5px}.plan-summary>.notice button{white-space:normal;padding:0;flex-shrink:0;max-width:105px;text-align:right}.vehicle-profiles{scroll-margin-top:75px}.vehicle-profiles .source-row{flex-wrap:wrap}.intro{justify-content:flex-start}
@media(max-width:600px){.plan-summary>.notice button{font-size:10px;max-width:85px}.plan-summary>.notice{gap:9px;padding:13px}.intro{padding-bottom:14px}}

.plan-summary{padding:22px;margin-bottom:18px;min-width:0}.plan-summary .panel-head{margin-bottom:22px}.plan-summary .result-heading{margin-top:0;align-items:center}.plan-summary .result-heading h3{font-size:25px;font-weight:550;line-height:1.3;margin:0;letter-spacing:-.8px}.plan-summary>div[role=status]{margin-bottom:0;line-height:1.6}.plan-summary .notice{margin-bottom:14px}@media(max-width:1000px){.plan-summary{padding:17px}}@media(max-width:740px){.plan-summary{padding:20px}.plan-summary .result-heading{flex-wrap:wrap;gap:12px}.plan-summary .result-heading h3{font-size:23px}}

.charging-status{margin:12px 0;padding:12px;border:1px solid #445849;border-radius:10px;overflow-wrap:anywhere}.charging-status p{margin:0 0 6px}.charging-status small{display:block;color:#a9b6ac}.charging-status button{margin-top:10px;max-width:100%}
