:root{font-family:"Segoe UI",system-ui,sans-serif;color:#243d36;background:#f6f7f3;font-synthesis:none;--green:#183f35;--muted:#6b7971;--line:#e0e5dd}*{box-sizing:border-box}body{margin:0}.shell{max-width:1120px;margin:auto;padding:0 36px}header{height:110px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:var(--green);display:flex;gap:13px;align-items:center;font-size:23px;font-weight:700;letter-spacing:-.7px}.brand small{display:block;font-size:9px;letter-spacing:2.1px;margin-top:5px;font-weight:600}.logo{display:grid;place-items:center;background:var(--green);color:#d9efaa;width:43px;height:48px;border-radius:13px;font-size:39px}.local{font-size:12px;color:#648070}nav{border-bottom:1px solid var(--line);display:flex;gap:30px;margin-bottom:40px}.tab{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:13px 0;color:var(--muted);font-size:14px}.tab.active{border-color:var(--green);color:var(--green);font-weight:600}button,input,select{font:inherit}button{cursor:pointer;border-radius:8px;font-weight:600;transition:background .15s}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a3bc77;outline-offset:4px}.primary{border:1px solid var(--green);background:var(--green);color:#fff;padding:13px 20px;white-space:nowrap}.primary:hover{background:#2c5849}.secondary{border:1px solid #d4ddd2;background:transparent;color:var(--green);padding:11px 17px}.secondary:hover{background:#e9eee4}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin:33px 0 30px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;margin:0 0 14px}.intro h1,h1{font-size:40px;line-height:1.15;letter-spacing:-1.4px;font-weight:550;margin:12px 0 16px}.muted{color:var(--muted);font-size:14px;line-height:1.6;margin:0}.intro .secondary{margin-bottom:6px}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.price-card,.car-card{border-radius:17px;padding:28px 30px 0;min-height:246px}.price-card{background:var(--green);color:#f3f6ef}.price-card .eyebrow{color:#b7cdbb;display:flex;justify-content:space-between}.price-card .eyebrow span{font-weight:400;letter-spacing:1px}.big-price{display:flex;align-items:center;gap:14px;margin:19px 0 10px}.big-price>span:first-child{font-size:64px;font-weight:500;letter-spacing:-3px;line-height:1}.big-price>span:last-child{font-size:22px;font-weight:350}.big-price small{display:block;font-size:11px;color:#bccbbb;margin-top:4px}.price-card>p:not(.eyebrow){font-size:12px;color:#becfbd;min-height:18px}.price-bottom{border-top:1px solid #3b5b50;display:flex;justify-content:space-between;font-size:11px;color:#cedbc9;margin-top:21px;padding:17px 0;gap:10px}.car-card{background:#e9eddf;border:1px solid #e3e8d8}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.card-heading .eyebrow{margin:0}.badge{font-size:11px;background:#dce5cf;border-radius:20px;padding:5px 10px}.battery-line{display:flex;align-items:center;justify-content:space-between;margin:22px 0 5px}.battery-line strong{font-size:64px;line-height:1;font-weight:500;letter-spacing:-3px}.battery-line small{font-size:28px;margin-left:4px;font-weight:350}.battery-icon{width:86px;height:42px;border:2px solid #79956b;border-radius:8px;padding:4px;position:relative;margin-right:6px}.battery-icon:after{content:"";position:absolute;right:-7px;top:10px;width:5px;height:18px;border-radius:0 3px 3px 0;background:#79956b}.battery-icon div{background:#7e9b62;height:100%;border-radius:3px;max-width:100%}.car-card>p{font-size:12px;color:#6d7c63}.car-bottom{display:flex;justify-content:space-between;font-size:11px;border-top:1px solid #d3dcc9;margin-top:21px;padding:17px 0}.car-bottom b{margin-left:8px;font-weight:600}.plan-card{border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;align-items:center;gap:20px;padding:23px 25px;margin:22px 0 30px}.plan-symbol{background:#edf2e4;border-radius:50%;height:46px;width:46px;flex-shrink:0;display:grid;place-items:center;font-size:31px;color:#6f8e4c}.plan-copy{flex:1}.plan-copy .eyebrow{font-size:9px;margin:0 0 6px;color:#7a8968}h2{font-size:18px;letter-spacing:-.3px;font-weight:600;margin:0 0 6px}.plan-copy .muted{font-size:12px}.chart-card{background:white;border:1px solid var(--line);border-radius:14px;padding:27px 28px}.chart-card .muted{font-size:12px}.legend{font-size:10px;color:#728166;display:flex;align-items:center;gap:7px}.legend>span{width:9px;height:9px;background:#789a56;border-radius:2px}.chart{height:200px;display:flex;gap:3px;align-items:stretch;margin-top:28px;padding:0 0 28px;border-bottom:1px solid var(--line);overflow-x:auto}.bar-wrap{flex:1;min-width:5px;display:flex;flex-direction:column;justify-content:flex-end;position:relative}.bar{background:#dce5cf;border-radius:3px 3px 0 0;min-height:3px;flex-shrink:0}.bar.selected{background:#789a56}.bar.negative{background:#87b7ad}.bar-wrap time{position:absolute;bottom:-21px;font-size:9px;color:#88917f;white-space:nowrap}.chart-note{margin-top:12px!important}details{font-size:12px;color:var(--muted);margin-top:20px}summary{cursor:pointer;line-height:1.5;padding:8px 0}.table-scroll{max-height:300px;overflow:auto}table{width:100%;border-collapse:collapse;margin:10px 0;font-size:12px;text-align:left}th,td{padding:9px;border-bottom:1px solid var(--line)}th{background:#f4f6ef;position:sticky;top:0}.events{margin:12px 0 35px}.events li{padding:6px 0;line-height:1.5}.settings-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:30px;margin:27px 0}.settings-card h2{margin:28px 0 18px}.settings-card h2:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:flex;flex-direction:column;font-size:12px;color:#4b6358;gap:8px}input,select{width:100%;border:1px solid #d9e0d4;border-radius:7px;background:#fcfdf9;color:#243d36;padding:12px;min-height:43px}input:focus,select:focus{outline:2px solid #9ab37d;outline-offset:1px}.help{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0 22px}.check{flex-direction:row;align-items:center;gap:10px;line-height:1.6}.check input{width:17px;min-height:17px;height:17px;accent-color:var(--green);flex-shrink:0}.confirm{margin:24px 0}.align-end{display:flex;align-items:flex-end}fieldset{border:1px solid var(--line);border-radius:8px;padding:14px}legend{font-size:12px;color:#4b6358;padding:0 6px}#tariffs{max-height:230px;overflow:auto}#tariffs label{margin:7px 0}#notice{border:1px solid #e1dfbd;background:#f4f2df;padding:11px 15px;border-radius:8px;font-size:12px;line-height:1.6;color:#726c3c}#error{border:1px solid #e5c2b9;background:#fff0eb;color:#963e2d;padding:13px 15px;border-radius:8px;font-size:13px;line-height:1.6;margin-top:12px}footer{border-top:1px solid var(--line);padding:25px 0 32px;display:flex;justify-content:space-between;gap:18px;font-size:10px;color:#8a9385;margin-top:35px}footer a{color:inherit}footer>span:first-child{font-weight:600;color:#5c705e}[hidden]{display:none!important}@media(max-width:720px){.shell{padding:0 20px}header{height:85px}nav{gap:22px;margin-bottom:25px}.tab{font-size:12px}.intro{gap:10px}.intro h1,h1{font-size:32px}.intro .muted{font-size:12px;max-width:230px}.intro .secondary{font-size:11px;padding:9px}.status-grid{gap:12px}.price-card,.car-card{padding:20px 18px 0;min-height:230px}.big-price>span:first-child,.battery-line strong{font-size:48px}.big-price{gap:9px}.big-price>span:last-child{font-size:17px}.big-price small{font-size:9px}.eyebrow{font-size:9px;letter-spacing:1px}.price-bottom{flex-direction:column;gap:4px;margin-top:22px}.battery-icon{display:none}.car-bottom{flex-direction:column;gap:4px;margin-top:22px}.badge{font-size:9px;padding:4px 7px}.plan-card{flex-wrap:wrap;padding:20px;gap:13px}.plan-copy{flex-basis:calc(100% - 60px)}.plan-card>.primary{width:100%}.chart-card{padding:20px 16px}.chart-card h2{font-size:16px}.legend{font-size:9px;max-width:95px}.chart{gap:2px}.settings-card{padding:22px 18px}.form-grid{grid-template-columns:1fr}.check{min-height:30px}footer{flex-direction:column;gap:8px}.settings-card>.primary{width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.source-status{list-style:none;padding:12px 16px;margin:10px 0 0;background:#edf0e7;border-radius:8px;font-size:12px;line-height:1.7;color:#53674e}.source-status li+li{margin-top:5px}.setup-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.setup-steps{padding-left:20px;font-size:13px;line-height:1.8}.setup-steps li{margin:12px 0}.setup-steps code{overflow-wrap:anywhere}.settings-card a{color:#315d45}.settings-card form{margin-top:22px}.settings-card form>button{margin-top:12px}

.nav-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.icon-button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--green);font-size:25px;line-height:1}.icon-button:hover{background:#e9eee4}.system-details{border-top:1px solid var(--line);padding-top:12px;margin-top:24px}.system-details #notice{background:none;border:0;border-radius:0;padding:0;margin:12px 0;color:var(--muted);font-size:12px;line-height:1.7}.system-details .source-status{background:none;padding:0;margin:12px 0}

.car-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.home-indicator{display:inline-flex;align-items:center;color:var(--green);flex-shrink:0}
.chart{height:auto;min-height:232px;display:flex;gap:0;align-items:flex-start;margin-top:20px;padding:0;border:0;overflow:visible}
.price-axis{flex:0 0 66px;background:white}
.price-chart-scroll{flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.chart svg{display:block;font-family:inherit;font-size:12px;fill:#435c50}
.price-grid{stroke:#d2dbd0;stroke-width:1}
.price-zero{stroke:#7c8d80;stroke-width:1.5}
.price-bar{fill:#6b8a64}.price-bar.negative{fill:#087f8c}.price-bar.selected{fill:#183f35}.price-bar.selected.negative{fill:#07515a}.price-bar:hover{fill:#183f35}
.legend>span{background:#183f35}
.plan-copy>.secondary{margin-top:12px}
dialog{max-width:560px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:14px;padding:26px;color:var(--green);background:#fff;box-shadow:0 20px 70px #183f3533}
dialog::backdrop{background:#102a2380}dialog p,dialog li{font-size:14px;line-height:1.6}dialog li+li{margin-top:8px}dialog .setup-actions{margin-bottom:0}dialog .setup-actions button{white-space:normal}#schedule-review-error{color:#963e2d}

/* Contextual help and FAQ */
.help-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:23px;height:23px;border:1px solid #bac9b6;border-radius:50%;color:#547047!important;background:transparent;text-decoration:none;font-size:13px;font-weight:600;line-height:1;letter-spacing:0;vertical-align:middle}
.help-link:hover{background:#edf2e4;border-color:#789a56;color:#183f35!important}
.help-heading,.field-label,.settings-heading,.save-actions,.plan-heading{display:flex;align-items:center;gap:9px}
.settings-heading{margin-bottom:12px}.settings-card .settings-heading h2{margin:0}.save-actions{margin-top:24px}.plan-heading{margin-bottom:6px}.plan-heading .eyebrow{margin:0}.plan-heading .help-link{width:18px;height:18px;font-size:11px}
.help-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.help-page-header .eyebrow{margin-bottom:8px}.help-page-header h1{margin-top:0}
.faq-card{max-width:850px}.faq-card h2{margin-top:30px}.faq-card h2:first-child{margin-top:0}.faq-item{border-top:1px solid var(--line);padding:4px 0;margin:0;scroll-margin-top:24px;color:var(--green)}.faq-item summary{font-size:14px;font-weight:600;padding:14px 2px}.faq-item[open]{padding-bottom:12px}.faq-item p,.faq-item li{font-size:13px;line-height:1.8;color:#53675d}.faq-item p{margin:10px 0 14px}.faq-item a{overflow-wrap:anywhere}.faq-item code{font-size:12px;overflow-wrap:anywhere}.faq-item .setup-steps{margin:0}
@media(max-width:720px){nav{gap:16px;overflow-x:auto}.tab{flex-shrink:0;white-space:nowrap}.nav-actions{position:sticky;right:0;background:#f6f7f3;padding-left:8px}.save-actions .primary{flex:1}.help-page-header .secondary{font-size:12px}.help-link{width:25px;height:25px}.faq-item summary{font-size:13px}}

.help:empty{display:none}.help-page-header{position:sticky;top:0;z-index:3;background:#f6f7f3;padding:12px 0;max-width:850px}.faq-item{scroll-margin-top:145px}

/* Summary cards contain only their heading/status and primary value. */
.price-card,.car-card{padding:18px 20px;min-height:0}
.price-card .eyebrow{margin-bottom:0}
.price-card{display:flex;flex-direction:column}
.big-price{margin:auto 0;gap:6px;align-items:baseline;justify-content:center;white-space:nowrap}
.big-price>span:first-child,.battery-line strong{font-size:48px;letter-spacing:-1.5px}
.big-price>span:first-child{font-size:60px}
.big-price>span:last-child{font-size:18px;font-weight:400}
.battery-line{margin:12px 0;justify-content:center}
.car-card{display:flex;flex-direction:column}
.car-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding:0;border-top:0;text-align:center}
.car-bottom>span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 4px;border-radius:8px;background:#dce5cf}
.car-bottom .threshold-title{font-size:12px;letter-spacing:.6px;line-height:1.2}
.car-bottom b{font-size:20px;line-height:1.2;margin-left:0}

/* Keep the same phone layout, with readable text and less space between sections. */
@media(max-width:720px){
  .shell{padding:0 14px}
  header{height:72px}
  .brand{gap:8px;font-size:20px}
  .brand small{font-size:10px;letter-spacing:1px;margin-top:3px}
  .logo{width:34px;height:38px;border-radius:10px;font-size:30px}
  nav{gap:14px;margin-bottom:14px}
  .tab{font-size:14px;padding:10px 0}
  .icon-button{width:40px;height:40px}
  .status-grid{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .price-card,.car-card{padding:14px 12px;min-height:0;border-radius:13px;overflow-wrap:anywhere}
  .eyebrow{font-size:12px;letter-spacing:.6px;margin-bottom:8px}
  .price-card .eyebrow{flex-wrap:wrap;gap:4px}
  .price-card .eyebrow span{letter-spacing:.3px}
  .car-card .card-heading{flex-wrap:wrap;gap:6px}
  .big-price{margin:auto 0;gap:4px;flex-wrap:nowrap}
  .big-price>span:first-child{font-size:clamp(24px,7.3vw,36px);letter-spacing:-.7px}
  .battery-line strong{font-size:clamp(28px,8vw,38px);letter-spacing:-1px}
  .big-price>span:last-child{font-size:13px}
  .big-price small{font-size:12px;line-height:1.3}
  .battery-line{margin:12px 0}
  .battery-line small{font-size:22px}
  .price-card>p:not(.eyebrow),.car-card>p{font-size:13px;line-height:1.35;margin:6px 0}
  .badge{font-size:12px;padding:4px 7px}
  .price-bottom,.car-bottom{font-size:13px;line-height:1.3;margin-top:10px;padding:9px 0;gap:3px}
  .car-bottom{margin-top:auto;padding:0;gap:8px}
  .car-bottom b{margin-left:0;font-size:18px}
  .plan-card{margin:12px 0 16px;padding:14px;gap:10px}
  .plan-symbol{width:36px;height:36px;font-size:26px}
  .plan-copy{flex-basis:calc(100% - 46px);min-width:0}
  .plan-copy .eyebrow{font-size:12px}
  .plan-copy .muted{font-size:14px;line-height:1.4}
  .primary,.secondary{min-height:42px;padding:9px 12px}
  .chart-card{padding:14px 12px}
  .chart-card .card-heading{gap:8px;align-items:flex-start}
  .chart-card .card-heading>div:first-child{min-width:0;flex:1}
  .chart-card .muted{font-size:13px;line-height:1.4}
  .legend{font-size:12px;max-width:82px;color:#435c50;flex-shrink:0}
  .legend>span{flex-shrink:0}
  .chart{min-height:180px;margin-top:12px;gap:0}
  .chart svg{font-size:13px}
  .chart-note{margin-top:8px!important}
  details{font-size:14px;margin-top:12px}
  table{font-size:14px}
  .system-details{margin-top:12px;padding-top:4px}
  .source-status,.system-details #notice,#notice{font-size:14px;line-height:1.5}
  .settings-card{margin:16px 0;padding:16px}
  .settings-card h2{margin:20px 0 14px}
  .form-grid{gap:14px}
  label,legend{font-size:14px}
  input,select{font-size:16px;padding:10px}
  .help{font-size:14px;line-height:1.5;margin:12px 0 16px}
  .intro{margin:18px 0}
  .intro h1,h1{font-size:28px}
  .intro .muted{font-size:14px}
  .intro .secondary,.help-page-header .secondary{font-size:14px}
  .faq-item summary{font-size:15px;padding:12px 2px}
  .faq-item p,.faq-item li{font-size:14px;line-height:1.6}
  .help-page-header{padding:8px 0}
  footer{font-size:13px;margin-top:18px;padding:16px 0;line-height:1.4}
}
