/* Driver app adapted from the supplied PAiEV charging interface. */
.driver-body{background:var(--accent-soft);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif}
.driver-app{max-width:560px;padding:18px 18px 110px;min-height:100vh}
.driver-app svg,.driver-body dialog svg{width:22px;height:22px;flex-shrink:0}
.driver-app .portal-header{margin-bottom:14px;gap:12px;flex-wrap:nowrap;min-height:48px}
.driver-app .portal-brand{display:flex;align-items:center;gap:8px;max-width:65%;font-size:calc(18px * var(--text-scale,1));line-height:1.4}
.driver-brand-icon{display:grid;place-items:center;color:white;background:var(--blue);border-radius:12px;width:38px;height:38px;flex-shrink:0}
.driver-app .brand-logo{margin:0;max-width:160px;max-height:46px;object-fit:contain}
.driver-user{display:flex;align-items:center;gap:7px;background:transparent;color:var(--ink);padding:0;font-size:calc(11px * var(--text-scale,1));max-width:38%}
.driver-user>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--blue);background:var(--accent-soft);flex-shrink:0;font-weight:700}
.driver-trial{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--accent-soft);border:1px solid var(--line);border-radius:12px;color:#42628b;font-size:calc(10px * var(--text-scale,1));font-weight:600;margin-bottom:18px}
.driver-trial button{padding:0;display:flex}.driver-trial svg{width:17px;height:17px}
.driver-app #portal-content{margin-top:0}
.driver-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px}
.driver-heading h1{font-size:calc(23px * var(--text-scale,1));line-height:1.4;margin:6px 0 0;letter-spacing:-.5px}
.driver-heading .eyebrow{font-size:calc(9px * var(--text-scale,1))}.driver-heading button{display:flex;align-items:center;gap:3px;flex-shrink:0;font-size:calc(11px * var(--text-scale,1))}
.driver-heading button svg{width:15px;height:15px}
.driver-hero{border-radius:22px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 28px #233c6410;margin-bottom:14px}
.driver-illustration{height:210px;background:var(--accent-soft);position:relative;overflow:hidden}
.driver-illustration>img{width:100%;height:100%;object-fit:cover;display:block}
.driver-scan{position:absolute;top:16px;left:16px;display:flex;align-items:center;gap:8px;color:white;padding:10px 12px;background:var(--blue);box-shadow:0 6px 20px #10275028;border:1px solid #ffffff66;border-radius:14px;text-align:left}
.driver-scan svg{width:28px;height:28px}.driver-scan span{font-size:calc(12px * var(--text-scale,1))}.driver-scan small{display:block;font-size:calc(8px * var(--text-scale,1));font-weight:400;margin-top:3px}
.driver-soc{position:absolute;right:16px;bottom:16px;width:126px;height:126px;border-radius:50%;background:#ffffffed;box-shadow:0 6px 22px #18416924;display:grid;place-items:center}
.driver-soc>svg{position:absolute;inset:6px;width:114px;height:114px;transform:rotate(-90deg)}
.driver-soc circle{fill:none;stroke-width:7}.soc-track{stroke:#e2ebf5}.soc-fill{stroke:var(--blue);stroke-linecap:round;transition:stroke-dashoffset .6s}
.driver-soc>div{display:flex;flex-direction:column;align-items:center;gap:3px}.driver-soc strong{font-size:calc(26px * var(--text-scale,1));line-height:1.2}.driver-soc small{font-size:calc(9px * var(--text-scale,1));color:#72849d}
.driver-hero-meta{padding:15px 16px;display:flex;flex-direction:column;gap:7px;position:relative}.driver-hero-meta>strong{font-size:calc(16px * var(--text-scale,1));padding-right:6px}.driver-hero-meta>small{font-size:calc(10px * var(--text-scale,1));color:#718096;overflow-wrap:anywhere}
.driver-status{font-size:calc(10px * var(--text-scale,1));color:#8e6683;background:var(--accent-soft);border-radius:20px;padding:5px 9px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-weight:600}
.driver-status:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%;flex-shrink:0}.driver-status.online{background:var(--success-soft);color:#0a8a65}
.is-charging .driver-status:before{animation:driver-pulse 2s ease-in-out infinite}
.driver-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.driver-metric{border-radius:15px;background:var(--surface);border:1px solid var(--line);padding:13px;display:flex;align-items:center;gap:11px;min-width:0}
.driver-metric>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--blue);flex-shrink:0}.driver-metric>div{min-width:0}
.driver-metric strong{display:block;font-size:calc(20px * var(--text-scale,1));letter-spacing:-.3px;overflow-wrap:anywhere}.driver-metric b{font-size:calc(10px * var(--text-scale,1));font-weight:500}.driver-metric small{display:block;font-size:calc(10px * var(--text-scale,1));color:#6f819b;margin-top:4px}.driver-metric em{display:block;font-size:calc(8px * var(--text-scale,1));font-style:normal;color:#92a0b4;margin-top:3px}
.driver-card{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:18px;margin-bottom:14px;box-shadow:0 3px 12px #233c6404}
.driver-card h2,.driver-promotions h2{font-size:calc(15px * var(--text-scale,1));margin:0 0 12px}.driver-card p{color:#718096;font-size:calc(11px * var(--text-scale,1));line-height:1.8;margin:8px 0 14px;overflow-wrap:anywhere}
.driver-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.driver-section-head h2{margin:0}.driver-section-head>div{min-width:0}
.driver-pill{display:inline-block;font-size:calc(9px * var(--text-scale,1));background:var(--accent-soft);color:#6b809e;border-radius:20px;padding:5px 9px;flex-shrink:0}
.driver-control-buttons{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin:14px 0 4px}.driver-control-buttons button{padding:15px 10px;font-size:calc(13px * var(--text-scale,1));border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px}
.driver-stop{color:#bd5264}.driver-controls>.textbutton{display:block;margin:12px auto 0;font-size:calc(11px * var(--text-scale,1))}.driver-start:disabled{background:#8aa3c7;color:white;opacity:.55}
.driver-price{display:block;font-size:calc(29px * var(--text-scale,1));font-weight:800;letter-spacing:-.6px}.driver-price small{font-size:calc(11px * var(--text-scale,1));font-weight:500;letter-spacing:0}
.driver-tariff{border-left:4px solid var(--blue)}.driver-tariff details{border-top:1px solid var(--line);padding-top:12px}.driver-tariff summary{cursor:pointer;font-size:calc(11px * var(--text-scale,1));font-weight:600;color:var(--blue)}.driver-tariff details>small{font-size:calc(9px * var(--text-scale,1));color:#718096;display:block;line-height:1.7}
.driver-rate-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.driver-rate-grid>div{padding:12px;background:var(--accent-soft);border-radius:12px}.driver-rate-grid small{display:block;font-size:calc(9px * var(--text-scale,1));color:#718096;margin-bottom:6px}.driver-rate-grid strong{font-size:calc(11px * var(--text-scale,1))}
.driver-promo{background:linear-gradient(110deg,var(--accent-soft),var(--accent-soft));border:1px solid var(--line);padding:17px;border-radius:17px;display:flex;align-items:center;gap:12px;margin-bottom:10px}.driver-promo>div{flex:1}.driver-promo h3{font-size:calc(14px * var(--text-scale,1));margin:9px 0}.driver-promo p{font-size:calc(10px * var(--text-scale,1));color:#718096;line-height:1.7;margin:0}.driver-promo span{background:var(--blue);color:white;border-radius:20px;padding:4px 8px;font-size:calc(9px * var(--text-scale,1))}.driver-promo>svg{width:34px;height:34px;color:var(--blue)}
.driver-update{font-size:calc(9px * var(--text-scale,1));line-height:1.7;color:#8a9cb2;text-align:center}.driver-empty{text-align:center;padding:27px 16px;background:var(--surface);border:1px dashed var(--line);border-radius:17px;margin-bottom:15px}.driver-empty>svg{width:36px;height:36px;color:#9bb8dc;margin-bottom:10px}.driver-empty h3{font-size:calc(14px * var(--text-scale,1));margin-bottom:8px}.driver-empty p{font-size:calc(11px * var(--text-scale,1));color:#718096;line-height:1.8}.driver-empty button{font-size:calc(12px * var(--text-scale,1))}
.driver-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px 12px;margin-bottom:12px;color:#829bbd}.driver-search input{border:0;background:transparent;width:100%;min-width:0;padding:4px;color:var(--ink);font-size:calc(12px * var(--text-scale,1))}.driver-search input:focus{outline:0}.driver-search:focus-within{outline:2px solid #bfd4ff;outline-offset:2px}
.driver-filters{display:flex;gap:7px;margin-bottom:16px}.driver-filters button{border:1px solid var(--line);background:var(--surface);color:#7c90ab;font-size:calc(10px * var(--text-scale,1));padding:8px 13px;display:flex;align-items:center;gap:5px}.driver-filters button.active{background:var(--blue);color:white;border-color:var(--blue)}.driver-filters button:last-child{margin-left:auto}.driver-filters svg{width:15px;height:15px}
.driver-power-filter{display:grid;gap:1px;text-align:left;line-height:1.2}.driver-power-filter small{font-size:calc(9px * var(--text-scale,1));font-weight:600;opacity:.9}.driver-filters button{white-space:nowrap}
.view-stations .driver-filters button{flex-shrink:0}.view-stations .driver-filter-scan{width:34px;justify-content:center}.vacancy-dot{width:6px;height:6px;border-radius:50%;background:#14a978;box-shadow:0 0 0 3px #14a97812}.driver-filters .driver-vacancy-filter{color:#087956;border-color:#cbe8dc;background:var(--success-soft)}.driver-filters .driver-vacancy-filter.active{color:white;background:#087956;border-color:#087956}.driver-vacancy-filter.active .vacancy-dot{background:#8ff0c6;box-shadow:0 0 0 3px #ffffff18}.driver-station-summary.has-vacancy{background:var(--success-soft)}.driver-station-summary.has-vacancy span{color:#087956}
.driver-station .driver-section-head{align-items:flex-start}.driver-station .driver-section-head p{font-size:calc(10px * var(--text-scale,1));margin-bottom:0}.driver-directions{display:inline-flex;align-items:center;gap:3px;background:var(--accent-soft);padding:7px 10px;border-radius:10px;font-size:calc(10px * var(--text-scale,1));white-space:nowrap}.driver-directions svg{width:15px;height:15px}
.driver-station-summary{display:flex;align-items:center;justify-content:space-between;background:var(--accent-soft);border-radius:10px;padding:9px 11px;margin:14px 0}.driver-station-summary span{display:flex;gap:5px;align-items:center;color:var(--blue);font-size:calc(11px * var(--text-scale,1))}.driver-station-summary svg{width:16px;height:16px}.driver-station-summary small{font-size:calc(9px * var(--text-scale,1));color:#7890ac}
.driver-charger{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.driver-charger strong{font-size:calc(12px * var(--text-scale,1))}.driver-charger .driver-section-head small{display:block;color:#8292a8;font-size:calc(9px * var(--text-scale,1));line-height:1.7;margin-top:5px;overflow-wrap:anywhere}.driver-charger>p{font-size:calc(10px * var(--text-scale,1))}.driver-connectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.driver-connectors button{display:grid;grid-template-columns:1fr 15px;gap:5px;background:var(--accent-soft);border:1px solid var(--line);color:#718096;padding:10px;text-align:left;font-size:calc(10px * var(--text-scale,1))}.driver-connectors button small{font-size:calc(9px * var(--text-scale,1));grid-column:1}.driver-connectors button svg{width:13px;height:13px;grid-column:2;grid-row:1/3}.driver-connectors button.ready{color:#0a8a65;background:var(--success-soft);border-color:var(--line)}
.driver-wallet{background:linear-gradient(120deg,#182a46,#284775);color:white;border-radius:21px;padding:22px;margin-bottom:16px;box-shadow:0 12px 22px #15243b15}.driver-wallet>span{font-size:calc(9px * var(--text-scale,1));letter-spacing:1.5px;color:#a8c4eb}.driver-wallet h2{font-size:calc(18px * var(--text-scale,1));margin:12px 0 8px;line-height:1.5}.driver-wallet p{font-size:calc(10px * var(--text-scale,1));color:#b7c9e3;line-height:1.8}.driver-wallet-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #ffffff26;padding:18px 0}.driver-wallet-summary small{font-size:calc(9px * var(--text-scale,1));display:block;color:#adc6e6;line-height:1.6}.driver-wallet-summary strong{font-size:calc(21px * var(--text-scale,1));margin-top:8px;display:block}.driver-wallet-summary b{font-size:calc(11px * var(--text-scale,1))}.driver-wallet>button{padding:9px 14px;font-size:calc(10px * var(--text-scale,1));background:#ffffff1f;color:white}
.driver-chart{display:flex;align-items:flex-end;justify-content:space-between;gap:5px;height:140px;padding-top:10px}.driver-chart>div{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;min-width:0}.driver-chart i{display:block;width:18px;border-radius:6px 6px 0 0;background:var(--blue);opacity:.8}.driver-chart span,.driver-chart small{font-size:calc(8px * var(--text-scale,1));color:#8293aa;text-align:center;white-space:nowrap}
.driver-history-filter{font-size:calc(9px * var(--text-scale,1));color:#8a9ab0;display:flex;gap:7px;align-items:center}.driver-history-filter select{border:1px solid var(--line);padding:6px;border-radius:8px;color:#5b759b;background:var(--surface);font-size:calc(10px * var(--text-scale,1))}
.driver-history{width:100%;display:flex;align-items:center;gap:10px;padding:14px 0;border-radius:0;border-bottom:1px solid var(--line);background:var(--surface);color:var(--ink);text-align:left}.driver-history>span:nth-child(2){flex:1;min-width:0}.driver-history strong{font-size:calc(11px * var(--text-scale,1));display:block;line-height:1.6;overflow-wrap:anywhere}.driver-history small{display:block;font-size:calc(9px * var(--text-scale,1));color:#8a9ab0;margin:5px 0}.driver-history>span>span{font-size:calc(9px * var(--text-scale,1));color:#5c7395;display:block;line-height:1.7}.driver-history b{font-size:calc(11px * var(--text-scale,1));display:flex;align-items:center;gap:4px;color:var(--blue)}.driver-history b svg{width:12px;height:12px}.driver-history-icon{display:grid;place-items:center;width:32px;height:32px;color:var(--blue);background:var(--accent-soft);border-radius:10px}.driver-history-icon svg{width:18px;height:18px}
.driver-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.driver-pagination small{font-size:calc(9px * var(--text-scale,1));color:#8a9ab0}.driver-pagination button{font-size:calc(9px * var(--text-scale,1))}
.driver-profile{text-align:center;padding:26px}.driver-profile-avatar{display:grid;place-items:center;margin:0 auto 15px;width:62px;height:62px;font-size:calc(27px * var(--text-scale,1));background:var(--accent-soft);color:var(--blue);border-radius:50%;font-weight:700}.driver-profile h1{font-size:calc(23px * var(--text-scale,1));margin-bottom:8px;overflow-wrap:anywhere}.driver-profile button{display:block;width:100%;margin-top:15px;font-size:calc(12px * var(--text-scale,1))}.driver-profile p{overflow-wrap:anywhere}.driver-logout{width:100%;color:#bd5264;font-size:calc(12px * var(--text-scale,1))}
.driver-link-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border-bottom:1px solid var(--line);background:var(--surface);color:var(--blue);padding:12px 0;border-radius:0;text-align:left;font-size:calc(11px * var(--text-scale,1))}
.driver-app .portalnav{max-width:560px;margin:auto;padding:9px 14px calc(9px + env(safe-area-inset-bottom));gap:5px;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 22px #17263e08;z-index:30}.driver-app .portalnav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:25%;padding:7px 3px;border-radius:12px;font-size:calc(9px * var(--text-scale,1));color:#8a9cb2}.driver-app .portalnav button.active{color:var(--blue);background:var(--accent-soft)}.driver-app .portalnav svg{width:21px;height:21px}
.driver-body #toast{bottom:90px;max-width:calc(100% - 30px);font-size:calc(12px * var(--text-scale,1));line-height:1.6}
.driver-body dialog{max-width:480px;padding:22px}.driver-body dialog .actions{flex-wrap:wrap}.driver-body dialog .panelhead{align-items:center;flex-wrap:nowrap}.driver-body dialog .panelhead h2{margin:0;font-size:calc(18px * var(--text-scale,1))}.driver-body dialog .panelhead button{display:flex;padding:7px}.driver-body dialog .panelhead svg{width:17px;height:17px}.driver-body dialog>div>p{line-height:1.8;font-size:calc(12px * var(--text-scale,1))}.driver-body dialog .notice{font-size:calc(12px * var(--text-scale,1));line-height:1.8}.driver-body dialog .actions button{font-size:calc(12px * var(--text-scale,1))}
.driver-camera{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.driver-camera video{display:none;width:100%;max-height:240px;border-radius:12px;margin-bottom:12px;background:#182a46}.driver-camera p{font-size:calc(11px * var(--text-scale,1));line-height:1.7}.driver-receipt{text-align:center;padding:20px;background:var(--accent-soft);border-radius:14px}.driver-receipt strong{display:block;font-size:calc(32px * var(--text-scale,1));margin-top:10px}.driver-receipt small{color:#8292aa}
.driver-welcome{position:relative;border-radius:22px;background:var(--accent-soft);padding:22px;overflow:hidden;margin-bottom:14px}.driver-welcome h1{font-size:calc(26px * var(--text-scale,1));line-height:1.4;position:relative;z-index:1;margin-top:8px}.driver-welcome p{font-size:calc(12px * var(--text-scale,1));line-height:1.8;color:#5d7eab;max-width:300px;position:relative;z-index:1}.driver-welcome>img{display:block;width:100%;height:155px;object-fit:cover;mix-blend-mode:multiply;border-radius:15px}.charging-directory .directory-grid{grid-template-columns:1fr}.charging-directory .directory-card>svg{color:var(--blue);width:24px;height:24px}
.template-hotel .driver-hero,.template-hotel .driver-card{border-radius:9px}.template-fleet .driver-wallet{background:linear-gradient(120deg,#193143,#286373)}.template-workplace .driver-wallet{background:linear-gradient(120deg,#12584e,#259889)}.template-membership .driver-wallet{background:linear-gradient(120deg,var(--blue),#643dc7)}.template-minimal .driver-hero,.template-minimal .driver-card{box-shadow:none;border-radius:12px}
@keyframes driver-pulse{50%{opacity:.3}}
@media(max-width:420px){.driver-app{padding:14px 14px 100px}.driver-illustration{height:184px}.driver-soc{width:108px;height:108px;right:12px;bottom:12px}.driver-soc>svg{width:96px;height:96px}.driver-soc strong{font-size:calc(23px * var(--text-scale,1))}.driver-scan{top:12px;left:12px;padding:9px}.driver-metric{padding:12px 10px;gap:7px}.driver-metric>span{width:29px;height:29px}.driver-metric>span svg{width:18px;height:18px}.driver-metric strong{font-size:calc(17px * var(--text-scale,1))}.driver-card{padding:16px}.driver-app .portal-brand{font-size:calc(15px * var(--text-scale,1))}.driver-heading h1{font-size:calc(21px * var(--text-scale,1))}.driver-rate-grid strong{font-size:calc(10px * var(--text-scale,1))}.driver-chart small{font-size:calc(7px * var(--text-scale,1))}}
@media(prefers-reduced-motion:reduce){.is-charging .driver-status:before{animation:none}.soc-fill{transition:none}}

.driver-app .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* A viewport-sized app shell: only secondary tabs and sheets scroll. */
.driver-body{--driver-safe-bottom:env(safe-area-inset-bottom,0px);height:100vh;height:100dvh;overflow:hidden;background:radial-gradient(ellipse at top,var(--accent-soft),var(--accent-soft) 65%)}
.driver-body .driver-app{width:100%;max-width:480px;height:100vh;height:100dvh;min-height:0;margin:auto;padding:calc(10px + env(safe-area-inset-top)) 12px 0;display:flex;flex-direction:column;gap:6px;background:var(--accent-soft);box-shadow:0 0 80px #21395912}
.driver-app .portal-header{min-height:36px;height:36px;margin:0;flex-shrink:0}.driver-app .brand-logo{max-width:120px;max-height:34px}.driver-app .portal-brand{font-size:calc(14px * var(--text-scale,1))}.driver-user{min-height:36px}.driver-app .driver-trial{height:24px;min-height:24px;padding:2px 9px;margin:0;border-radius:8px;font-size:calc(9px * var(--text-scale,1))}.driver-trial button{min-width:28px;min-height:22px;align-items:center;justify-content:center}
#app-warnings:empty{display:none}#app-warnings{flex-shrink:0}.driver-warning{font-size:calc(10px * var(--text-scale,1));line-height:1.5;background:var(--warning-soft);color:#8a5815;border:1px solid #ffdea3;border-radius:8px;padding:4px 8px;overflow-wrap:anywhere}.driver-warning+.driver-warning{margin-top:3px}
.driver-app #portal-content{flex:1;min-height:0;margin:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.driver-app #portal-content.view-charge{overflow:visible}
.charge-screen{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0}.charge-screen .driver-heading{margin:0;min-height:40px;flex-shrink:0}.charge-screen .driver-heading h1{font-size:calc(20px * var(--text-scale,1));margin:0}.charge-screen .driver-heading .eyebrow{font-size:calc(8px * var(--text-scale,1));letter-spacing:1.6px}.charge-screen .driver-heading button{min-height:38px}
.charge-screen .driver-hero{margin:0;flex:1;min-height:136px;display:flex;flex-direction:column;border-radius:18px;border-color:#172c42;box-shadow:0 8px 22px #13294513}.charge-screen .driver-illustration{flex:1;height:auto;min-height:70px;background:#07162a}.charge-screen .driver-illustration>img{object-fit:cover;object-position:50% 58%}.charge-screen .driver-scan{top:10px;left:10px;padding:8px 10px;min-height:38px;gap:6px;border-radius:11px;background:#16374dd9;backdrop-filter:blur(10px)}.charge-screen .driver-scan svg{width:21px;height:21px}.charge-screen .driver-scan span{font-size:calc(10px * var(--text-scale,1))}
.charge-screen .driver-soc{width:88px;height:88px;right:10px;bottom:10px;background:#071e35d9;color:white;backdrop-filter:blur(10px);box-shadow:0 0 24px #2acccd20}.charge-screen .driver-soc>svg{width:78px;height:78px;inset:5px}.charge-screen .driver-soc strong{font-size:calc(22px * var(--text-scale,1))}.charge-screen .driver-soc small{font-size:calc(8px * var(--text-scale,1));color:#c1d9ea}.charge-screen .soc-track{stroke:#335066}.charge-screen .soc-fill{stroke:#4ae7c0}.charge-screen .driver-hero-meta{padding:9px 10px;min-height:54px;flex-shrink:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:7px;background:var(--surface)}.charge-screen .driver-hero-meta>div{min-width:0}.charge-screen .driver-hero-meta strong{display:block;font-size:calc(12px * var(--text-scale,1));line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.charge-screen .driver-hero-meta small{display:block;font-size:calc(9px * var(--text-scale,1));color:#70859d;margin-top:2px;overflow-wrap:anywhere}.charge-screen .driver-status{font-size:calc(8px * var(--text-scale,1));padding:5px 7px;align-self:center;flex-shrink:0}
.charge-screen .driver-metrics{margin:0;gap:6px;flex-shrink:0}.charge-screen .driver-metric{height:60px;padding:9px 10px;gap:8px;border-radius:12px}.charge-screen .driver-metric strong{font-size:calc(20px * var(--text-scale,1));line-height:1.2;white-space:nowrap}.charge-screen .driver-metric small{font-size:calc(10px * var(--text-scale,1));margin-top:4px}.charge-screen .driver-metric>span{width:30px;height:30px}.charge-screen .driver-metric>span svg{width:18px;height:18px}.charge-screen .driver-metric b{font-size:calc(10px * var(--text-scale,1))}
.charge-screen .driver-controls{flex-shrink:0;margin:0;padding:0 1px}.driver-rate-strip{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:28px;font-size:calc(11px * var(--text-scale,1));font-weight:700}.driver-rate-strip button{font-size:calc(10px * var(--text-scale,1));min-height:28px}.charge-screen .driver-control-buttons{margin:4px 0 0;gap:8px}.charge-screen .driver-control-buttons button{height:46px;padding:8px;font-size:calc(13px * var(--text-scale,1));border-radius:12px}.charge-screen .driver-controls>.driver-auth-link{margin:2px auto 0;min-height:25px;font-size:calc(11px * var(--text-scale,1))}.driver-control-note{font-size:calc(9px * var(--text-scale,1));line-height:1.5;text-align:center;color:#71859d;margin:5px 0 0}.driver-charge-foot{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:5px;min-height:22px}.driver-charge-foot .driver-update{font-size:calc(8px * var(--text-scale,1));margin:0;line-height:1.4;text-align:left}.driver-charge-foot button{font-size:calc(9px * var(--text-scale,1));display:flex;align-items:center;gap:2px;padding:2px}.driver-charge-foot svg{width:12px;height:12px}.driver-pending{font-size:calc(10px * var(--text-scale,1));color:#3c618e;padding:4px 8px;background:var(--accent-soft);border-radius:8px;flex-shrink:0}
/* Keep the footer at the shell edge; the home-indicator inset is included once. */
.driver-body .driver-app .portalnav{position:static;flex:0 0 auto;width:calc(100% + 24px);max-width:none;margin:0 -12px;height:calc(51px + max(5px,var(--driver-safe-bottom)));min-height:0;padding:4px 9px max(5px,var(--driver-safe-bottom));align-items:center;gap:4px;border-radius:16px 16px 0 0}.driver-app .portalnav button{height:46px;padding:4px;gap:3px;font-size:calc(9px * var(--text-scale,1))}.driver-app .portalnav svg{width:20px;height:20px}
.driver-app #portal-content.view-stations{display:flex;flex-direction:column;gap:6px;overflow:hidden}.view-stations .driver-heading{margin:0;min-height:32px;flex-shrink:0}.view-stations .driver-heading h1{font-size:calc(18px * var(--text-scale,1));margin:0}.view-stations .driver-heading .eyebrow{display:none}.view-stations .driver-search{padding:4px 10px;min-height:38px;margin:0;flex-shrink:0}.view-stations .driver-filters{margin:0;flex-shrink:0;gap:5px}.view-stations .driver-filters button{min-height:34px;padding:6px 8px}
.driver-map-shell{position:relative;min-height:150px;flex:1;border-radius:15px;overflow:hidden;background:var(--accent-soft);border:1px solid var(--line)}#station-map,.google-map-canvas{width:100%;height:100%}.google-map-canvas{min-height:150px}.map-loading{height:100%;display:grid;place-content:center;gap:10px;padding:18px;text-align:center;color:#58728f;font-size:calc(12px * var(--text-scale,1))}.map-loading button{font-size:calc(11px * var(--text-scale,1))}.map-locate{position:absolute;right:10px;top:10px;z-index:1;width:40px;height:40px;padding:9px;background:var(--surface);box-shadow:0 3px 12px #12324a24}.map-caption{display:flex;justify-content:space-between;gap:8px;font-size:calc(8px * var(--text-scale,1));line-height:1.6;color:#7990a8;flex-shrink:0}.map-caption a{white-space:nowrap}.view-stations #station-list{flex:0 1 35%;min-height:100px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.view-stations .driver-card{padding:12px;margin-bottom:8px}.view-stations .driver-station-summary{margin:8px 0;padding:7px}.view-stations .driver-charger{padding-top:9px;margin-top:9px}.view-stations .driver-station h2{font-size:calc(12px * var(--text-scale,1))}.view-stations .driver-connectors button{min-height:44px}.map-station-pin{border:2px solid white;border-radius:20px;background:#24456b;color:white;padding:6px 10px;box-shadow:0 3px 10px #12253a33;min-height:32px;font-size:calc(12px * var(--text-scale,1));font-weight:700}.map-station-pin.ready{background:#087b5c}
.driver-body dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}.driver-body dialog .driver-promotions h2{font-size:calc(13px * var(--text-scale,1))}.driver-body dialog .driver-promo>svg{width:26px;height:26px}.driver-body #toast{left:50%;right:auto;transform:translateX(-50%);bottom:calc(70px + env(safe-area-inset-bottom));width:max-content;max-width:min(450px,calc(100% - 24px))}
.driver-body .charging-directory{overflow-y:auto;display:block;padding-bottom:30px}.charging-directory .driver-welcome>img{mix-blend-mode:normal}.view-wallet>.driver-heading,.view-profile>.driver-card:first-child{margin-top:4px}
@media(max-height:700px){.driver-body .driver-app{padding-top:calc(6px + env(safe-area-inset-top));gap:4px}.charge-screen{gap:5px}.charge-screen .driver-heading{min-height:30px}.charge-screen .driver-heading h1{font-size:calc(18px * var(--text-scale,1))}.charge-screen .driver-heading .eyebrow{display:none}.charge-screen .driver-heading button{min-height:30px;padding:5px 8px}.charge-screen .driver-hero{min-height:112px}.charge-screen .driver-hero-meta{min-height:44px;padding:6px 9px}.charge-screen .driver-metric{height:52px;padding:7px 9px}.charge-screen .driver-metric strong{font-size:calc(18px * var(--text-scale,1))}.charge-screen .driver-soc{width:70px;height:70px;right:8px;bottom:7px}.charge-screen .driver-soc>svg{width:60px;height:60px}.charge-screen .driver-soc strong{font-size:calc(18px * var(--text-scale,1))}.charge-screen .driver-soc small{font-size:calc(7px * var(--text-scale,1))}.charge-screen .driver-soc>div{gap:1px}.charge-screen .driver-control-buttons button{height:44px}.driver-charge-foot{min-height:18px}.driver-rate-strip{min-height:24px}.driver-rate-strip button{min-height:24px}.driver-control-note{margin-top:3px}.view-stations #station-list{flex-basis:30%;min-height:80px}.driver-map-shell,.google-map-canvas{min-height:120px}}
@media(max-width:350px){.driver-body .driver-app{padding-left:9px;padding-right:9px}.driver-body .driver-app .portalnav{width:calc(100% + 18px);margin-left:-9px;margin-right:-9px}.driver-user>span:last-child{display:none}.charge-screen .driver-metric{gap:5px;padding:7px}.charge-screen .driver-metric>span{width:23px;height:27px}.charge-screen .driver-metric strong{font-size:calc(17px * var(--text-scale,1))}.charge-screen .driver-hero-meta strong{font-size:calc(11px * var(--text-scale,1))}.charge-screen .driver-status{font-size:calc(7px * var(--text-scale,1))}.driver-charge-foot .driver-update{font-size:calc(7px * var(--text-scale,1))}}
@media(max-height:500px){.driver-app #portal-content.view-charge{overflow-y:auto}.charge-screen{height:auto;min-height:380px}.charge-screen .driver-hero{min-height:130px}.driver-map-shell,.google-map-canvas{min-height:100px}}

#portal-content>[data-driver-panel]{height:100%;min-height:0}#portal-content>[data-driver-panel][hidden]{display:none!important}.view-stations>[data-driver-panel="stations"]{display:flex;flex-direction:column;gap:6px;overflow:hidden}

/* Commercial charging console: compact digital instruments and tactile controls. */
.charge-screen .charging-console{flex:1;min-height:250px;display:flex;flex-direction:column;position:relative;border:1px solid #304b62;border-radius:21px;overflow:hidden;background:linear-gradient(135deg,#19354b,#071827 72%);box-shadow:0 10px 24px #152e4824,inset 0 1px 0 #b4e9ff24}
.charge-screen .charging-console .driver-hero{flex:1;min-height:110px;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
.charging-console .driver-illustration{isolation:isolate}
.charging-console .driver-illustration::after{content:"";position:absolute;inset:auto 0 0;height:32px;background:linear-gradient(transparent,#0b2335);pointer-events:none;z-index:1}
.charge-screen .charging-console .driver-hero-meta{position:relative;min-height:49px;padding:8px 12px 10px;background:linear-gradient(110deg,#16384b,#0c2334 55%,#102c40);color:#e3f2fc;border-top:1px solid #70c5db25;box-shadow:inset 0 1px 0 #ffffff04}
.charging-console .driver-hero-meta::after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:1px;background:linear-gradient(90deg,#67e6d980,#8cc9f438 40%,#6e9bbb14 75%,#6e9bbb00)}
.charging-console .driver-hero-meta::before{content:"";width:3px;height:22px;flex-shrink:0;border-radius:2px;background:#57dfcc;box-shadow:0 0 9px #52dfcc45}
.charge-screen .charging-console .driver-hero-meta>div{flex:1}
.charge-screen .charging-console .driver-hero-meta strong{font-weight:700;color:#eaf7ff}
.charge-screen .charging-console .driver-hero-meta small{color:#95b3c6}
.charge-screen .charging-console .driver-status{color:#c3d7e8;background:#253d51;border:1px solid #81afcd26}
.charge-screen .charging-console .driver-status.online{color:#80ebd1;background:#123e3d;border-color:#53d9b63b;box-shadow:inset 0 1px 0 #adffe610}
.charging-console .driver-instruments{margin:0;padding:6px 7px 7px;border:0;border-radius:0;background:linear-gradient(125deg,#163148,#0b2032 60%,#091a2b);box-shadow:inset 0 -1px 0 #91c1de15}
.charging-console .driver-instrument{border-radius:9px;background:linear-gradient(125deg,#9cbad407,transparent)}
.charging-console .driver-instrument:nth-child(2n){border-left:1px solid #789eb617}
.charging-console .driver-instrument:nth-child(n+3){border-top:1px solid #789eb617}
.charging-console .driver-pending{margin:0;border-radius:0;background:#21364a;color:#d5e5f4;text-align:center;border-top:1px solid #5a87a12a}
.hero-media{position:absolute;inset:0;z-index:0;overflow:hidden;background:#071827}
.hero-media-asset{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.hero-media video{object-position:center}
.hero-media-pages{position:absolute;left:10px;bottom:8px;display:flex;gap:1px;border-radius:12px;background:#081e35b3;backdrop-filter:blur(8px);z-index:2;padding:0 3px}
.hero-media-pages button{display:grid;place-items:center;width:25px;height:25px;min-height:25px;padding:0;background:transparent;border:0;box-shadow:none;border-radius:8px}
.hero-media-pages button::before{content:"";width:5px;height:5px;border-radius:5px;background:#ffffff60;transition:width .15s}
.hero-media-pages button.active::before{width:14px;background:#6de7d3}
.hero-media:has(video) .hero-media-pages{left:auto;right:10px;bottom:9px}
.hero-video-controls{position:absolute;left:10px;bottom:8px;display:flex;gap:4px;z-index:2}
.hero-video-controls button{min-height:28px;height:28px;padding:4px 8px;font-size:calc(9px * var(--text-scale,1));line-height:1.3;border:1px solid #c3e5ff38;border-radius:9px;color:#e9f7ff;background:#092337c7;backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 #ffffff10}
.hero-video-controls .hero-video-sound{font-size:calc(8px * var(--text-scale,1));color:#a7bece;padding:4px 6px}
.hero-video-controls .hero-video-sound[aria-pressed=true]{color:#65e8cd;border-color:#65e8cd80}
.driver-illustration:has(video) .driver-soc{bottom:42px;width:70px;height:70px}
.driver-illustration:has(video) .driver-soc>svg{width:60px;height:60px}
.driver-illustration:has(video) .driver-soc strong{font-size:calc(18px * var(--text-scale,1))}
.charge-screen .driver-illustration:has(video){min-height:112px}
.driver-illustration:has(video)::after{display:none}
@media(max-height:700px){.charge-screen .charging-console{min-height:222px;border-radius:18px}.charge-screen .charging-console .driver-hero{min-height:97px}.charge-screen .charging-console .driver-hero-meta{min-height:42px;padding:6px 9px 8px}}
@media(max-height:500px){.charge-screen .charging-console{flex:none;min-height:240px}.charge-screen .charging-console .driver-illustration{min-height:80px}}
.driver-app .portal-header{height:57px;min-height:57px;gap:10px}
.driver-app .portal-brand{max-width:70%;display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.driver-app .portal-brand .brand-mark,.charging-directory .portal-header>.brand-mark{width:174px;height:49px;max-width:100%}
.driver-app .portal-brand .tenant-mark{width:180px;height:50px}
.driver-brand-title{font-size:calc(8px * var(--text-scale,1));line-height:1.3;letter-spacing:.2px;color:#60738b;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-app .portal-header>.secondary{white-space:nowrap;flex-shrink:0;font-size:calc(10px * var(--text-scale,1));padding:8px 10px}
.driver-user{max-width:31%}
.driver-instruments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;flex-shrink:0;border:1px solid #2b4058;border-radius:17px;padding:5px;overflow:hidden;background:linear-gradient(130deg,#172d42,#081728 70%);box-shadow:0 8px 20px #132b491b,inset 0 1px 0 #ffffff15}
.driver-instrument{--readout:#56ead2;min-width:0;height:65px;position:relative;padding:7px 10px 8px;border-radius:11px;background:linear-gradient(135deg,#ffffff06,#ffffff00);overflow:hidden}
.instrument-power{--readout:#7fc6ff}.instrument-cost{--readout:#ffd58a}.instrument-time{--readout:#d3e7fa}
.instrument-label{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#9cafc4;margin-bottom:5px}
.instrument-label small{font-size:calc(9px * var(--text-scale,1));line-height:1.3;font-weight:500}.driver-instrument .instrument-label svg{width:13px;height:13px;color:var(--readout);opacity:.8}
.driver-instrument .digital-readout{display:flex;align-items:flex-end;gap:5px;height:27px;margin:0;min-width:0;color:var(--readout);font-weight:500}
.driver-app .digital-number{display:block;width:auto;height:27px;max-width:calc(100% - 28px);overflow:visible;flex-shrink:1;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--readout) 25%,transparent))}
.digital-lit{fill:currentColor}.digital-unlit{fill:currentColor;opacity:.045}
.digital-readout b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:calc(9px * var(--text-scale,1));font-weight:500;color:#9baec3;padding-bottom:2px;flex-shrink:0}
.instrument-time .digital-number{max-width:100%;height:25px}.instrument-trace{position:absolute;left:10px;right:10px;bottom:3px;height:1px;background:linear-gradient(90deg,var(--readout),transparent);opacity:.22}
.instruments-live .instrument-trace{opacity:.6}
.charge-screen .driver-control-buttons{grid-template-columns:1.16fr 1fr;gap:8px;margin-top:5px}
.charge-screen .driver-control-buttons button{position:relative;isolation:isolate;overflow:hidden;height:57px;padding:6px 11px;border-radius:15px;gap:9px;justify-content:flex-start;text-align:left;transition:transform .16s,box-shadow .16s,filter .16s;opacity:1}
.charge-screen .driver-start{color:#eafff8;background:linear-gradient(135deg,#10816f,#075b53);border:1px solid #24bc9b;box-shadow:inset 0 1px 0 #8fffe344,0 5px 12px #0b7c5b27}
.charge-screen .driver-stop{color:#ffebef;background:linear-gradient(135deg,#973d51,#6b2338);border:1px solid #c6667b;box-shadow:inset 0 1px 0 #ffc8d62e,0 5px 12px #69233817}
.driver-button-glyph{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;flex-shrink:0;border:1px solid #ffffff40;background:#ffffff12;box-shadow:inset 0 0 10px #ffffff08}
.driver-button-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.driver-button-copy small{font-size:calc(8px * var(--text-scale,1));letter-spacing:1.8px;font-weight:600;line-height:1}.driver-button-copy strong{font-size:calc(13px * var(--text-scale,1));line-height:1.4;white-space:nowrap}
.driver-button-light{position:absolute;width:5px;height:5px;border-radius:50%;right:11px;top:11px;background:#8affce;box-shadow:0 0 7px #8affce99}.driver-stop .driver-button-light{background:var(--accent-soft);box-shadow:0 0 7px #ffb9c799}
.charge-screen .driver-control-buttons button:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 30%,#ffffff18 50%,transparent 70%);transform:translateX(-120%);transition:transform .65s}
.charge-screen .driver-control-buttons button:not(:disabled):hover:before{transform:translateX(120%)}
.charge-screen .driver-control-buttons button:not(:disabled):hover{filter:brightness(1.09);box-shadow:inset 0 1px 0 #ffffff40,0 7px 16px #113b4a33}
.charge-screen .driver-control-buttons button:not(:disabled):active{transform:translateY(2px) scale(.985)}
.charge-screen .driver-control-buttons button:focus-visible{outline:3px solid #5ebce3;outline-offset:3px}
.charge-screen .driver-control-buttons button:disabled{opacity:1;color:#a6b9cc;border-color:#42576b;background:linear-gradient(135deg,#354b60,#253a4e);box-shadow:inset 0 1px 0 #ffffff14;cursor:not-allowed}
.driver-control-buttons button:disabled .driver-button-glyph{border-color:#70879d;background:#ffffff05;box-shadow:none}.driver-control-buttons button:disabled .driver-button-light{background:#71879b;box-shadow:none}
.charge-screen .driver-soc strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-1px;color:#68f4d5;text-shadow:0 0 12px #4ae7c042}
.map-station-pin{padding:0;border:0;background:none!important;box-shadow:none;position:relative;width:48px;height:58px;min-height:58px;display:grid;place-items:start center;filter:drop-shadow(0 4px 5px #10274144)}
.map-pin-face{position:relative;display:grid;place-items:center;width:44px;height:44px;border:2px solid white;border-radius:15px;background:linear-gradient(145deg,#304964,#172f4a);color:#d9ecff}
.map-pin-face:after{content:'';position:absolute;bottom:-8px;left:14px;width:12px;height:12px;background:#172f4a;transform:rotate(45deg);border-right:2px solid white;border-bottom:2px solid white;border-radius:0 0 3px 0}
.driver-app .map-pin-face svg{width:25px;height:25px;position:relative;z-index:1}.map-pin-count{position:absolute;top:-5px;right:-6px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 3px;border:2px solid white;border-radius:10px;background:#536880;color:white;font-size:calc(9px * var(--text-scale,1));font-weight:800;z-index:2}
.map-station-pin.ready .map-pin-face{background:linear-gradient(145deg,#13a181,#076757);color:white}.map-station-pin.ready .map-pin-face:after{background:#076757}.map-station-pin.ready .map-pin-count{background:#0a946e}
.map-station-pin.selected .map-pin-face{outline:3px solid #59c6ef;outline-offset:2px}
.driver-station.is-map-selected{border-color:#4bafe3;box-shadow:0 0 0 2px #c8eaff}
.map-user-pin{display:grid;place-items:center;width:36px;height:36px;border:3px solid white;border-radius:50%;background:#2b6fef;color:white;box-shadow:0 3px 12px #173b6a44;font-size:calc(10px * var(--text-scale,1));font-weight:700}
@media(max-height:700px){.driver-app .portal-header{height:52px;min-height:52px}.driver-app .portal-brand .brand-mark,.charging-directory .portal-header>.brand-mark{width:163px;height:44px}.driver-app .portal-brand .tenant-mark{height:43px}.driver-instrument{height:58px;padding:6px 8px}.driver-instrument .digital-readout{height:25px}.driver-app .digital-number{height:25px}.instrument-time .digital-number{height:23px}.charge-screen .driver-control-buttons button{height:52px}.driver-button-glyph{width:30px;height:30px}.driver-button-copy strong{font-size:calc(12px * var(--text-scale,1))}}
@media(max-width:350px){.driver-app .portal-brand .brand-mark{width:153px}.driver-instrument{padding-left:7px;padding-right:7px}.driver-instrument .digital-readout{gap:3px}.driver-app .digital-number{height:23px;max-width:calc(100% - 26px)}.instrument-time .digital-number{height:21px;max-width:100%}.charge-screen .driver-control-buttons button{gap:6px;padding-left:8px;padding-right:8px}.driver-button-copy strong{font-size:calc(11px * var(--text-scale,1))}.driver-button-light{right:8px;top:8px}}
@media(prefers-reduced-motion:reduce){.charge-screen .driver-control-buttons button,.charge-screen .driver-control-buttons button:before{transition:none}.charge-screen .driver-control-buttons button:before{display:none}}
@media(max-height:620px){.charge-screen .driver-hero{min-height:94px}.charge-screen .driver-illustration{min-height:48px}}
@media(max-height:620px){.charge-screen .charging-console .driver-instrument{height:50px;padding:5px 8px}.charging-console .instrument-label{margin-bottom:3px}.charge-screen .charging-console .driver-hero-meta{min-height:38px}.charge-screen .driver-control-buttons button{height:46px}.charging-console .hero-media-asset{object-position:50% 62%}.charge-screen .driver-illustration:has(video){min-height:88px}.driver-illustration:has(video) .driver-soc{top:6px;bottom:auto;right:7px;width:54px;height:54px}.driver-illustration:has(video) .driver-soc>svg{width:44px;height:44px}.driver-illustration:has(video) .driver-soc strong{font-size:calc(14px * var(--text-scale,1))}.driver-illustration:has(video) .driver-soc small{font-size:calc(6px * var(--text-scale,1))}.driver-app #portal-content.view-charge{overflow-y:auto}}

/* Keep the wordmark clear of its caption; nearby distances stay in memory. */
.driver-app .portal-header{height:64px;min-height:64px}.driver-app .portal-brand{gap:3px}.driver-app .portal-brand>.brand-mark{transform:translateX(-3px)}
.map-locate{width:44px;height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px}.map-locate small{font-size:calc(8px * var(--text-scale,1));line-height:1.2}.driver-app .map-locate svg{width:18px;height:18px}.station-distance{display:flex;align-items:center;gap:4px;color:#367490;font-size:calc(9px * var(--text-scale,1));margin-top:5px}.driver-app .station-distance svg{width:12px;height:12px}.route-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--accent-soft);border:1px solid var(--line);border-radius:14px;padding:16px}.route-summary>strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:calc(25px * var(--text-scale,1));color:var(--ink);text-align:right}.route-summary>strong small{display:block;font:10px Inter,-apple-system,sans-serif;color:#70869c;margin-top:6px}.route-summary button{display:flex;align-items:center;gap:5px}.driver-body dialog .route-note{font-size:calc(11px * var(--text-scale,1));color:#7990a5;margin:12px 0 16px}.route-actions{display:grid;gap:9px}.route-actions>a,.route-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;padding:13px;border-radius:12px;font-size:calc(12px * var(--text-scale,1));font-weight:700}.route-actions .route-navigate{background:#147460;color:white;border:1px solid #22967d;box-shadow:0 4px 12px #0c785822}.route-actions svg{width:18px;height:18px}
@media(max-height:700px){.driver-app .portal-header{height:58px;min-height:58px}}
/* Demo occupies the existing status strip, never an extra row. */
.driver-bar-actions{display:flex;align-items:center;gap:10px}.driver-trial .demo-toggle{font-size:calc(9px * var(--text-scale,1));line-height:1;padding:5px 8px;border-radius:6px;background:var(--surface);color:#53728f;border:1px solid var(--line);min-height:24px}.driver-trial.demo-active{background:var(--warning-soft);border-color:#edd4a1;color:#8b6018}.driver-trial .demo-toggle.active{background:#9c6b17;color:white;border-color:#9c6b17}.driver-trial.demo-active .textbutton{color:#8b6018}.mock-wallet .wallet-balance-label{display:block;font-size:calc(11px * var(--text-scale,1));color:#c4deef;margin-top:14px}.mock-wallet .wallet-balance{font:700 38px/1.3 ui-monospace,monospace;letter-spacing:-1px;color:#70f2d6;margin:4px 0 14px}.wallet-actions{display:flex;align-items:center;gap:12px}.wallet-actions>button{display:flex;align-items:center;gap:7px;background:#55e0c3;color:#09283d;font-size:calc(12px * var(--text-scale,1));padding:11px 12px}.wallet-actions>small{font-size:calc(9px * var(--text-scale,1));line-height:1.6;color:#a9c2d7}.mock-wallet .driver-section-head>small{font-size:calc(9px * var(--text-scale,1));color:#b7cddd}.wallet-ledger-row{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);font-size:calc(11px * var(--text-scale,1))}.wallet-ledger-row strong,.wallet-ledger-row small{display:block}.wallet-ledger-row small{font-size:calc(9px * var(--text-scale,1));color:#7c8ca1;margin-top:3px}.wallet-ledger-row b{color:#167965;white-space:nowrap}.wallet-ledger p{font-size:calc(10px * var(--text-scale,1))}.demo-topup-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.demo-topup-options button{padding:12px 6px;font-size:calc(13px * var(--text-scale,1))}
.charging-statement{font-variant-numeric:tabular-nums;color:var(--ink)}.statement-heading{text-align:center;padding:18px 0 14px;border-bottom:1px dashed var(--line)}.statement-heading>span{display:inline-block;font-size:calc(10px * var(--text-scale,1));letter-spacing:.06em;color:#54708b;background:var(--accent-soft);padding:5px 10px;border-radius:20px}.statement-heading h3{font-size:calc(17px * var(--text-scale,1));margin:10px 0 4px}.statement-heading>small{font:11px ui-monospace,SFMono-Regular,monospace;color:#62768c;overflow-wrap:anywhere}.statement-energy{text-align:center;padding:18px 0 12px}.statement-energy>small{font-size:calc(11px * var(--text-scale,1));color:#628293}.statement-energy>strong{display:block;font-size:calc(34px * var(--text-scale,1));color:#137569;margin:5px 0}.statement-energy>strong span{font-size:calc(14px * var(--text-scale,1))}.statement-energy p{margin:0;font-size:calc(12px * var(--text-scale,1))}.statement-facts{margin:12px 0;font-size:calc(11px * var(--text-scale,1))}.statement-facts>div{display:flex;gap:12px;justify-content:space-between;padding:6px 0}.statement-facts dt{color:#71839a;flex-shrink:0}.statement-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}.statement-items{background:var(--accent-soft);border:1px solid var(--line);border-radius:14px;padding:12px 15px;margin-top:12px}.statement-line{display:flex;justify-content:space-between;gap:12px;font-size:calc(12px * var(--text-scale,1));padding:6px 0}.statement-line strong{white-space:nowrap;font-weight:650}.statement-line small{font-size:calc(10px * var(--text-scale,1));font-weight:400}.statement-tax{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.statement-total{border-top:1px solid var(--line);margin-top:8px;padding-top:14px;font-size:calc(17px * var(--text-scale,1));color:#11685c}.statement-meter{font-size:calc(11px * var(--text-scale,1));margin-top:15px}.statement-meter summary{cursor:pointer;color:#376388;padding:7px 0}.statement-meter p{font-size:calc(10px * var(--text-scale,1));color:#71839a;line-height:1.6}.statement-note{text-align:center;font-size:calc(10px * var(--text-scale,1));color:#7c8a9a;line-height:1.8;margin-top:15px}.statement-pending{background:var(--accent-soft);border:1px solid var(--line);padding:18px;border-radius:14px;line-height:1.7;font-size:calc(13px * var(--text-scale,1))}.statement-pending p{font-size:calc(12px * var(--text-scale,1));margin-bottom:0}.statement-pending.review{background:var(--warning-soft);border-color:#f2dcac}.driver-pending small{font-size:calc(10px * var(--text-scale,1))}

/* Gold guides the available action; only Start breathes gently when ready. */
.charge-screen .driver-control-buttons button:not(:disabled){color:#3d2a06;background:linear-gradient(135deg,#fff3ad,#fbd367 55%,#eeb63d);border-color:#ffdc6c;box-shadow:inset 0 1px 0 #fffce8,0 0 14px #fbc94a55}
.charge-screen .driver-start:not(:disabled){animation:charge-ready-glow 2.6s ease-in-out infinite}
.charge-screen .driver-start:not(:disabled):before{animation:charge-ready-sheen 3.4s ease-in-out infinite;background:linear-gradient(110deg,transparent 30%,#fffbe780 50%,transparent 70%)}
.charge-screen .driver-stop:not(:disabled){animation:none}
.driver-control-buttons button:not(:disabled) .driver-button-light{background:var(--warning-soft);box-shadow:0 0 8px #ffc933}
.driver-control-buttons button:not(:disabled) .driver-button-glyph{border-color:#72541c44;background:#fffbe54d}
.charge-screen .driver-control-buttons button:disabled{opacity:.38;filter:saturate(.35);box-shadow:none;animation:none}
@keyframes charge-ready-glow{0%,100%{box-shadow:inset 0 1px 0 #fffce8,0 0 10px #fbc94a44}50%{box-shadow:inset 0 1px 0 #fffce8,0 0 22px #fbc94a99}}
@keyframes charge-ready-sheen{0%,45%{transform:translateX(-120%)}80%,100%{transform:translateX(120%)}}
@media(prefers-reduced-motion:reduce){.charge-screen .driver-start:not(:disabled),.charge-screen .driver-start:not(:disabled):before{animation:none}}
.driver-app-update button{width:100%;font-size:calc(12px * var(--text-scale,1));min-height:44px}
.app-update-download{display:block;background:var(--blue);color:white;text-align:center;font-size:calc(12px * var(--text-scale,1));font-weight:700;padding:13px;border-radius:12px;margin:10px 0}

/* Readability preferences preserve the original 100% layout. */
.driver-body[data-text-font="thai"]{font-family:Tahoma,"Noto Sans Thai",sans-serif}
.driver-body[data-text-size="large"] #portal-content.view-charge,.driver-body[data-text-size="extra"] #portal-content.view-charge{overflow-y:auto}
.driver-body[data-text-size="large"] .charge-screen{height:auto;min-height:710px}
.driver-body[data-text-size="extra"] .charge-screen{height:auto;min-height:780px}
.driver-body[data-text-size="large"] .driver-instrument,.driver-body[data-text-size="extra"] .driver-instrument{height:78px}
.driver-body input,.driver-body select{font-family:inherit}
.display-preferences label{display:grid;gap:8px;margin:12px 0;font-size:calc(12px * var(--text-scale,1))}
.display-preferences select{width:100%;min-height:44px;font-size:calc(13px * var(--text-scale,1))}
.display-preferences>small{font-size:calc(10px * var(--text-scale,1));line-height:1.7;color:#657a90}
.station-sheet-handle{flex-shrink:0;display:flex;align-items:center;gap:9px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:13px 13px 6px 6px;min-height:38px;padding:8px 11px;font-size:calc(10px * var(--text-scale,1));touch-action:none;user-select:none}
.station-sheet-handle i{width:27px;height:4px;background:#b1c3d3;border-radius:5px;flex-shrink:0}.station-sheet-handle span{flex:1;text-align:left}.station-sheet-handle b{font-size:18px}
.view-stations [data-driver-panel="stations"] .driver-map-shell{flex:1 1 50%;min-height:100px;transition:flex-basis .25s ease,min-height .25s ease}
.view-stations .google-map-canvas{min-height:0}
.view-stations [data-driver-panel="stations"] #station-list{flex:0 1 34%;min-height:90px;position:relative}
.view-stations [data-driver-panel="stations"].details-expanded .driver-map-shell{flex:0 0 80px;min-height:80px}
.view-stations [data-driver-panel="stations"].details-expanded #station-list{flex:1 1 65%;min-height:100px}
.details-expanded .station-sheet-handle b{transform:rotate(180deg)}
.view-stations .station-title-button{background:transparent;color:var(--ink);padding:0;text-align:left;font-size:inherit;font-weight:700;white-space:normal;min-height:30px}
.instrument-time.has-overstay{padding-top:5px}.instrument-time.has-overstay .instrument-label{margin-bottom:2px}
.driver-app .instrument-time.has-overstay>.digital-readout,.driver-app .instrument-time.has-overstay>.digital-readout .digital-number{height:17px}
.overstay-timer-row{display:flex;align-items:center;gap:8px;border-top:1px solid #718aa54d;padding-top:3px;margin-top:3px;color:#ffd58a}
.overstay-timer-row small{font-size:calc(8px * var(--text-scale,1));flex-shrink:0}.overstay-timer-row strong{min-width:0;display:flex;flex:1}
.driver-app .overstay-timer-row .digital-number{height:16px;max-width:100%}
.overstay-notice{background:var(--warning-soft);border:1px solid #e7ce8e;color:#76520d;border-radius:11px;padding:7px 10px;font-size:calc(10px * var(--text-scale,1));line-height:1.6;flex-shrink:0}
.overstay-notice strong,.overstay-notice span{display:block}
.overstay-policy{background:var(--warning-soft);border:1px solid #e9d7a6;border-radius:12px;padding:12px;margin:12px 0;font-size:calc(12px * var(--text-scale,1));line-height:1.7}
.overstay-consent{display:flex;align-items:flex-start;gap:9px}.overstay-consent input{width:20px;height:20px;margin:3px 0;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.view-stations .driver-map-shell{transition:none}}

.display-preferences select{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft);color:var(--ink);line-height:1.5}

.enrollment-consent details,.driver-card details{margin:10px 0;padding:8px 0;border-bottom:1px solid var(--line)}.enrollment-consent summary,.driver-card summary{cursor:pointer;font-weight:600}.overstay-consent{display:flex;gap:10px;align-items:flex-start;margin:14px 0}.overstay-consent input{width:20px;height:20px;flex:0 0 20px}.driver-card small{display:block;margin-top:10px;color:#60718b}
/* Station browsing uses stronger contrast than secondary account metadata. */
.driver-station .driver-section-head p,.driver-station .driver-section-head small,.driver-charger>p{color:var(--ink);opacity:1;line-height:1.7;font-size:13px}
.driver-station .station-title-button{color:var(--ink);font-size:20px;font-weight:800}
.driver-charger .driver-section-head strong{color:var(--ink);font-size:17px;font-weight:800}
.driver-connectors button{border:2px solid currentColor;line-height:1.7;min-height:78px;padding:12px;color:var(--ink)}
.driver-connectors button span{font-size:15px;font-weight:800}
.driver-connectors button small{color:inherit;font-size:12px;font-weight:600;opacity:1}
.driver-connectors .connector-available{color:#086943;background:#dbf8e8}
.driver-connectors .connector-plugged{color:#815200;background:#fff0c4}
.driver-connectors .connector-charging{color:#164faf;background:#deebff}
.driver-connectors .connector-occupied,.driver-connectors .connector-reserved{color:#6a398f;background:#f0e3ff}
.driver-connectors .connector-fault{color:#a12131;background:#ffe4e7}
.driver-connectors .connector-offline,.driver-connectors .connector-unknown{color:#45566b;background:#e8edf4}
.driver-status-filter{display:flex;align-items:center;gap:10px;margin:10px 0;color:var(--ink);font-weight:700;line-height:1.7}
.driver-status-filter select{min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--surface)}
.connector-detail{margin-top:14px;padding:16px;border:2px solid var(--blue);border-radius:13px;background:var(--surface);color:var(--ink)}
.connector-detail h3{font-size:17px;line-height:1.7;margin:0 0 12px}.connector-detail dl{margin:0}.connector-detail dl>div{padding:8px 0;border-bottom:1px solid var(--line)}.connector-detail dt{font-weight:700;font-size:12px;line-height:1.7}.connector-detail dd{margin:4px 0 0;line-height:1.7;font-size:14px}.connector-detail p,.driver-eta{font-size:12px;line-height:1.8;color:var(--ink)}

.driver-directions{color:var(--accent);font-weight:750;border:1px solid var(--accent)}

/* Mobile controls belong in the profile menu, leaving the charging screen unobstructed. */
.driver-profile-menu{position:relative;min-width:0}.driver-profile-dropdown{position:absolute;right:0;top:100%;z-index:20;min-width:180px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 8px 30px #0003}.driver-profile-dropdown[hidden]{display:none}.driver-profile-dropdown button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:12px}.driver-profile-menu .driver-user{max-width:180px}.driver-profile-menu .driver-user>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.driver-settings-dialog #settings-appearance .nova-appearance{display:flex;flex-wrap:wrap;justify-content:flex-start;margin:12px 0}.driver-settings-dialog .driver-card{margin:12px 0;padding:14px}.driver-body dialog.credit-alert{position:fixed;inset:30% auto auto 50%;transform:translateX(-50%);margin:0;width:min(360px,calc(100vw - 32px));max-height:60dvh}.driver-settings-dialog input[type=checkbox]{width:auto}
@media(max-width:768px),(pointer:coarse){.driver-body .nova-appearance-portal{display:none}.driver-app .portal-header{height:50px;min-height:50px}.driver-app .portal-brand .brand-mark{max-width:150px}.driver-app .portal-brand .brand-logo{max-width:150px;max-height:40px}.driver-brand-title{font-size:9px}.driver-app #portal-content.view-charge{overflow-y:auto}.charge-screen{min-height:520px}.charge-screen .driver-illustration{min-height:150px}.charging-console .hero-media-asset,.charge-screen .hero-media-asset{object-fit:cover;object-position:center}.driver-app .driver-trial{height:24px;min-height:24px}}


/* Wallet presentation adapted from the supplied chargeapp HTML. */
    .legacy-wallet .wallet-shell {
      display: grid;
      gap: 14px;
    }

    .legacy-wallet .wallet-balance-card {
      position: relative;
      overflow: hidden;
      border-radius: 24px;
      padding: 18px 18px 16px;
      background:
        radial-gradient(circle at top right, rgba(255,255,255,0.32), transparent 26%),
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 30%, #0ea5e9 100%);
      color: #fff;
      box-shadow: 0 14px 32px rgba(37,99,235,0.22);
    }

    .legacy-wallet .wallet-balance-card::before,
    .legacy-wallet .wallet-balance-card::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(255,255,255,0.10);
      pointer-events: none;
    }

    .legacy-wallet .wallet-balance-card::before {
      width: 180px;
      height: 180px;
      right: -60px;
      top: -76px;
    }

    .legacy-wallet .wallet-balance-card::after {
      width: 120px;
      height: 120px;
      left: -30px;
      bottom: -52px;
    }

    .legacy-wallet .wallet-headline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
      position: relative;
      z-index: 1;
    }

    .legacy-wallet .wallet-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(255,255,255,0.18);
      backdrop-filter: blur(6px);
    }

    .legacy-wallet .wallet-chip svg {
      width: 14px;
      height: 14px;
      opacity: .95;
    }

    .legacy-wallet .wallet-live-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 7px 11px;
      font-size: 11px;
      font-weight: 800;
      background: rgba(255,255,255,0.14);
    }

    .legacy-wallet .wallet-balance-row {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
      position: relative;
      z-index: 1;
    }

    .legacy-wallet .wallet-balance-value {
      font-size: 2.3rem;
      line-height: 1;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .legacy-wallet .wallet-balance-caption {
      font-size: 12px;
      opacity: .92;
      margin-top: 8px;
      max-width: 220px;
      line-height: 1.5;
    }

    .legacy-wallet .wallet-mini-icon {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      background: rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(8px);
      flex-shrink: 0;
    }

    .legacy-wallet .wallet-mini-icon svg {
      width: 28px;
      height: 28px;
    }

    .legacy-wallet .wallet-hint-strip {
      position: relative;
      z-index: 1;
      border-radius: 16px;
      background: rgba(255,255,255,0.12);
      padding: 10px 12px;
      font-size: 11px;
      line-height: 1.5;
    }

    .legacy-wallet .wallet-topup-card {
      border-radius: 24px;
      background: #ffffff;
      border: 1px solid rgba(148,163,184,0.14);
      box-shadow: 0 10px 24px rgba(15,23,42,0.06);
      padding: 16px;
    }

    .legacy-wallet .wallet-topup-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .legacy-wallet .wallet-topup-title-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .legacy-wallet .wallet-topup-icon {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #2563eb;
      flex-shrink: 0;
    }

    .legacy-wallet .wallet-topup-icon svg {
      width: 24px;
      height: 24px;
    }

    .legacy-wallet .wallet-topup-title {
      font-size: 1.02rem;
      line-height: 1.2;
      font-weight: 900;
      color: #0f172a;
      margin: 0;
    }

    .legacy-wallet .wallet-topup-subtitle {
      margin-top: 4px;
      font-size: 12px;
      color: #64748b;
      line-height: 1.45;
    }

    .legacy-wallet .wallet-topup-badge {
      border-radius: 999px;
      padding: 7px 12px;
      background: #eff6ff;
      color: #2563eb;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }

    .legacy-wallet .wallet-quick-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .legacy-wallet .wallet-quick-btn {
      min-height: 54px;
      border-radius: 16px;
      border: 1px solid #dbeafe;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      color: #0f172a;
      font-weight: 900;
      box-shadow: 0 4px 10px rgba(37,99,235,0.05);
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

    .legacy-wallet .wallet-quick-btn:hover {
      transform: translateY(-1px);
      border-color: #93c5fd;
      box-shadow: 0 8px 16px rgba(37,99,235,0.10);
    }

    .legacy-wallet .wallet-quick-btn svg {
      width: 15px;
      height: 15px;
      color: #2563eb;
      opacity: .9;
    }

    .legacy-wallet .wallet-input-card {
      border-radius: 20px;
      background: linear-gradient(180deg, #fafcff 0%, #f8fafc 100%);
      border: 1px solid #e2e8f0;
      padding: 14px;
      margin-bottom: 14px;
    }

    .legacy-wallet .wallet-input-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
      color: #475569;
      margin-bottom: 8px;
    }

    .legacy-wallet .wallet-input-label svg {
      width: 16px;
      height: 16px;
      color: #2563eb;
    }

    .legacy-wallet .wallet-input-wrap {
      position: relative;
    }

    .legacy-wallet .wallet-input-wrap::before {
      content: "฿";
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      font-weight: 900;
      color: #2563eb;
    }

    .legacy-wallet .wallet-amount-field {
      width: 100%;
      box-sizing: border-box;
      min-height: 54px;
      border: 1px solid #dbeafe;
      border-radius: 18px;
      background: #ffffff;
      padding: 0 14px 0 38px;
      font-size: 1.05rem;
      font-weight: 800;
      color: #0f172a;
      outline: none;
      box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
    }

    .legacy-wallet .wallet-amount-field:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
    }

    .legacy-wallet .wallet-amount-help {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 8px;
      font-size: 11px;
      color: #64748b;
    }

    .legacy-wallet .wallet-primary-action {
      width: 100%;
      min-height: 56px;
      border: 0;
      border-radius: 20px;
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #fff;
      font-size: 1rem;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 14px 24px rgba(37,99,235,0.24);
      transition: transform .15s ease, box-shadow .15s ease;
    }

    .legacy-wallet .wallet-primary-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 28px rgba(37,99,235,0.28);
    }

    .legacy-wallet .wallet-primary-action svg {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
    }

    .legacy-wallet .wallet-note-box {
      margin-top: 12px;
      border-radius: 16px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 12px 14px;
      font-size: 11px;
      line-height: 1.65;
      color: #64748b;
    }

    @media (max-width: 420px) {
      .legacy-wallet .wallet-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .legacy-wallet .wallet-topup-header {
        align-items: flex-start;
        flex-direction: column;
      }
      .legacy-wallet .wallet-balance-row {
        align-items: flex-start;
        flex-direction: column;
      }
    }


.legacy-wallet{margin-bottom:14px}.legacy-wallet .wallet-topup-card,.legacy-wallet .wallet-history-card,.legacy-wallet .wallet-credit-terms-card{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:16px}.legacy-wallet .wallet-credit-terms-card p{font-size:12px;line-height:1.7}.legacy-wallet .wallet-credit-terms-card summary{cursor:pointer;font-size:12px;font-weight:700}.legacy-wallet .wallet-topup-title,.legacy-wallet .wallet-input-label{color:var(--ink)}.legacy-wallet .wallet-input-card{background:var(--surface-soft);border-color:var(--line)}.legacy-wallet .wallet-quick-btn{color:var(--ink);background:var(--accent-soft);border-color:var(--line);padding:12px 3px}.legacy-wallet .wallet-quick-btn.selected{border-color:var(--blue);background:var(--blue);color:white}.legacy-wallet .wallet-amount-field{width:100%;box-sizing:border-box;color:var(--ink);background:var(--surface);border-color:var(--line)}.legacy-wallet .wallet-topup-subtitle,.legacy-wallet .wallet-amount-help{color:var(--muted)}.legacy-wallet .wallet-note-box{background:var(--accent-soft);color:var(--ink)}.legacy-wallet .wallet-balance-value{font-size:calc(34px * var(--text-scale,1));line-height:1.3}.legacy-wallet .wallet-refresh-btn{padding:6px;background:#ffffff26;color:white;border:0}.legacy-wallet .wallet-history-card h2{font-size:16px}.legacy-wallet .wallet-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.trial-label{display:flex;align-items:center;gap:6px;min-width:0}.driver-trial .driver-bar-actions{gap:5px}.trial-balance{font-weight:800;color:var(--ink);white-space:nowrap;font-size:calc(10px * var(--text-scale,1))}.driver-trial .demo-toggle{padding:3px 5px;font-size:8px}.driver-body .driver-app .portalnav{height:calc(62px + max(5px,var(--driver-safe-bottom)));display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr 1fr;gap:3px;overflow:visible}.driver-app .portalnav button{width:100%;height:48px}.driver-app .portalnav button.nav-scan{width:58px;height:58px;justify-self:center;transform:translateY(-8px);border-radius:19px;background:var(--blue);color:white;border:3px solid var(--surface);box-shadow:0 4px 14px #1468df45;font-size:9px;gap:4px}.driver-app .portalnav .nav-scan svg{width:28px;height:28px}
@media(max-width:768px),(pointer:coarse){
.view-stations [data-driver-panel="stations"].details-expanded>:is(.driver-heading,.driver-search,.driver-filters,.driver-status-filter,.map-caption){display:none}
.view-stations [data-driver-panel="stations"].details-expanded .driver-map-shell{display:block;flex:0 0 var(--focused-map-height,100px);min-height:60px}
.view-stations [data-driver-panel="stations"].details-expanded #station-list{flex:1;min-height:0}
.view-stations .details-expanded .station-sheet-handle{min-height:34px;border-radius:9px;padding:5px 10px}
}

/* Keep stopped-session labels clear; notifications occupy a dismissible dialog only. */
.charging-console:has(.has-overstay) .driver-hero{min-height:145px}
.charge-screen .charging-console:has(.has-overstay) .driver-hero-meta{min-height:65px;flex-shrink:0}
.driver-body dialog.overstay-alert{position:fixed;inset:25% auto auto 50%;transform:translateX(-50%);margin:0;width:min(380px,calc(100vw - 32px));max-height:65dvh;color:var(--ink);background:var(--surface);border:2px solid #e7b85f}
.driver-body dialog.overstay-alert p{font-size:16px;line-height:1.65;color:var(--ink)}
.overstay-alert-location{font-weight:700}.overstay-alert-message strong{color:var(--ink);font-size:20px}.driver-body dialog.overstay-alert .actions button{min-height:44px;width:100%;font-size:16px}

.unplug-symbol{display:flex;align-items:center;gap:14px;margin:18px 0;color:var(--ink)}.driver-body dialog .unplug-symbol svg{width:64px;height:64px;flex:none}.unplug-symbol strong{font-size:20px}

.charge-screen .driver-heading>div:first-child{min-width:0;flex:1}.driver-unplug{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;width:82px;color:#e9b644;text-align:center}.driver-unplug .unplug-beacon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#e9b64418;border:1px solid #e9b64445;color:#d69921;animation:nova-unplug-blink 1.8s ease-in-out infinite}.driver-unplug svg{display:block;width:42px;height:42px}.driver-unplug strong{color:var(--ink);margin-top:7px}.driver-unplug strong{font-size:11px;line-height:1.4}.driver-unplug-explanation{font-size:11px;line-height:1.5;margin:5px 0 0;color:var(--ink)}.statement-wallet .wallet-negative strong{color:var(--red)}.statement-wallet p{font-size:11px;line-height:1.6;margin:10px 0 0}
@keyframes nova-unplug-blink{0%,30%,100%{opacity:1}55%,75%{opacity:.28}}@media(prefers-reduced-motion:reduce){.driver-unplug .unplug-beacon{animation:none}}

.charge-screen .driver-hero-meta .driver-unplug{flex-direction:row;justify-content:flex-start;gap:7px;width:auto;flex:none;padding:5px 8px;border:1px solid #d6992155;border-radius:12px;background:#d6992114}.charge-screen .driver-hero-meta .driver-unplug .unplug-beacon{width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:#f2be57}.charge-screen .driver-hero-meta .driver-unplug svg{width:28px;height:28px}.charge-screen .driver-hero-meta .driver-unplug strong{font-size:11px;margin:0;white-space:nowrap;color:#ffe0a0}
.company-welcome{width:100%;max-width:440px;margin:20px auto;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-sizing:border-box}
.company-welcome h1{font-size:24px;margin:0 0 4px}
.company-welcome h2{font-size:24px;margin:0 0 18px;overflow-wrap:anywhere}
.company-welcome-image{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px}
.company-welcome p{margin:18px 0;color:var(--muted)}
.company-welcome-actions{display:grid;gap:10px}
.company-welcome-actions button{width:100%;min-height:44px;white-space:normal}
.welcome-image-settings .company-welcome-image{max-width:360px;margin:16px 0}
@media(max-width:480px){.company-welcome{padding:20px;margin:12px auto}}
