:root{color-scheme:dark;--bg:#101716;--card:#1a2921;--text:#edf1e7;--muted:#aab9ad;--accent:#b5f1d7;--card-border:#35483b;--line:#2e4034}*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:4px}button,select{font:inherit}a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}img{max-width:100%}.skip-link{position:absolute;top:-80px;left:20px;background:var(--accent);color:#102419;padding:15px;z-index:10}.skip-link:focus{top:10px}.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);padding:32px 24px;display:flex;flex-direction:column;background:#121e18}.brand img{display:block}.sidebar-caption{font-size:8px;letter-spacing:1.7px;color:#a2b4a5;margin:20px 0 44px}.app-navigation{display:flex;flex-direction:column;gap:8px}.app-navigation a{display:flex;gap:13px;align-items:center;text-decoration:none;padding:13px 14px;border-radius:7px;color:#becbbf;min-height:46px}.app-navigation a[aria-current]{background:#284333;color:#d8f8e8}.app-navigation a:hover{background:#203628}.app-navigation a span{width:19px;color:var(--accent);font-size:19px}.future-account{margin-top:24px;padding:18px 14px;border-top:1px solid var(--line);color:#a4b4a7;font-size:12px}.future-account small{display:block;margin-top:8px;font-size:9px;color:#92a494}.sidebar-foot{margin-top:auto;font-size:10px;color:#bbd1bd;padding-top:30px}.sidebar-foot p{font-size:10px;color:#95ab98}.status-dot{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:8px}.app-workspace{width:100%;max-width:1440px;margin:auto;min-width:0;padding:38px 48px 0}.app-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:32px;border-bottom:1px solid var(--line);margin-bottom:34px}h1{font-size:29px;font-weight:500;letter-spacing:-1px;margin:0}h2{font-weight:500}.section-kicker{font-size:9px;letter-spacing:1.8px;color:var(--accent);margin:0 0 12px}.header-actions{display:flex;gap:18px;align-items:center}.session-mode{color:var(--muted);font-size:10px}.logout-button{min-height:44px;padding:10px 17px;color:#d8e4d4;background:transparent;border:1px solid #50634e;border-radius:7px;font-size:12px}.logout-button:hover{background:#23382a}.dashboard{min-width:0}.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 24px}.dashboard-heading{flex-wrap: wrap;}.dashboard-heading>div{min-width:0;flex:1}.vehicle-title-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.dashboard h2{font-size:clamp(30px,4vw,48px);line-height:1.13;letter-spacing:-1.8px;margin:0}.muted{color:var(--muted)}.vehicle-vin{font-size:10px;letter-spacing:1.4px;margin:12px 0}.dashboard-heading p:not(.section-kicker){line-height:1.7;margin-block:6px;font-size:12px}#vehicle-description,#vehicle-appearance,#vehicle-vin{max-width:100%;white-space: normal;overflow-wrap: anywhere;}.demo-badge{background:#293c2d;border:1px solid #455d40;color:#c6d4b9;border-radius:20px;padding:7px 12px;font-size:9px}.vehicle-selector select{background:#1a2c21;color:var(--text);border:1px solid #4c614a;border-radius:7px;padding:11px;min-height:44px;max-width:220px}.identity-actions{display:flex;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:20px 0 8px}.dashboard button,.connect-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:13px 20px;border:1px solid #4d634b;border-radius:7px;background:transparent;color:#dbe8d5;font-size:12px;transition:background .15s,transform .15s;text-decoration:none}.dashboard button:hover:enabled{background:#2b4532;transform:translateY(-1px)}#refresh-live,.connect-button,#sync-initial-identity{background:var(--accent);border-color:var(--accent);color:#142a1e;font-weight:600}#refresh-live:hover:enabled{background:#d2fbe5}.cache-note{font-size:10px;line-height:1.7}#garage-message{margin:12px 0 23px;color:#bfcebb;min-height:17px}.vehicle-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr);gap:22px}.vehicle-overview{background:radial-gradient(ellipse at 50% 35%,#304734,#203225 60%);border:1px solid #445a3d;border-radius:16px;padding:25px 30px;min-width:0;box-shadow:0 15px 35px #0002}.vehicle-state{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#d1e1c6}.vehicle-state span{padding:7px 12px;border-radius:20px;background:#14261b55;border:1px solid #4d6345}.vehicle-image{display:block;object-fit:contain;width:100%;height:clamp(190px,22vw,300px);margin:15px auto;filter:drop-shadow(0 20px 12px #0003)}.energy{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:8px 0 24px}.energy>div{display:flex;flex-direction:column;gap:9px}.energy .muted{font-size:10px;letter-spacing:1px;text-transform:uppercase}.metric{font-size:clamp(28px,3.1vw,46px);letter-spacing:-1.5px;line-height:1.1;font-weight:400}progress{width:100%;height:4px;border:0;appearance:none;border-radius:3px;background:#526249}progress::-webkit-progress-bar{background:#526249;border-radius:3px}progress::-webkit-progress-value{background:var(--accent);border-radius:3px}progress::-moz-progress-bar{background:var(--accent)}#vehicle-updated{margin-top:19px}.vehicle-overview>.cache-note:last-child{padding-top:15px;border-top:1px solid #43593e;color:#bacbb0}.vehicle-controls{display:flex;flex-direction:column;gap:15px}.detail-card{display:flex;gap:16px;padding:23px;border:1px solid var(--line);border-radius:12px;background:#19271f;flex:1;min-width:0}.detail-card>div{min-width:0}.detail-card .icon{width:21px;height:21px;opacity:.85;flex-shrink:0}.detail-card h3{margin:0 0 15px;font-weight:400;color:#bdd0bd;font-size:11px;text-transform:uppercase;letter-spacing:1.4px}.detail-card p{font-size:14px;line-height:1.65;overflow-wrap:anywhere;margin:6px 0}.location-card{background:#dfe8d5;color:#162b1c;border-color:#dfe8d5;flex:1.2}.location-card h3,.location-card .muted{color:#466045}.location-card .icon{filter:brightness(.3)}#vehicle-location{font-size:21px;line-height:1.3;letter-spacing:-.5px}#vehicle-location-detail{font-size:12px}.detail-card .geocoding-credit{font-size:8px;margin-top:18px}.garage-state{padding:60px 24px;text-align:center;border:1px solid #3f5742;border-radius:18px;background:radial-gradient(ellipse at top,#2a4130,#16251c 70%);min-height:310px}.garage-state>p{line-height:1.8}.connect-content{max-width:650px;margin-inline:auto}.connect-content>.section-kicker{margin-bottom:20px}.connect-content>p.muted{font-size:15px;margin:23px 0 28px;line-height:1.7}.connection-trust{max-width:600px;margin:28px auto 0;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.connection-trust strong{color:#e5efe0}.garage-state .connect-button{margin-top:10px}.garage-state#garage-loading{min-height:220px;display:flex;align-items:center;justify-content:center;gap:15px;color:#c9dbc5}.garage-state#garage-loading:before{content:'';width:15px;height:15px;border:2px solid #5a7456;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.connection-explainer{margin-top:30px;padding:20px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.connection-explainer summary{cursor:pointer;padding:5px 0;min-height:32px;color:#c8d9c2}.connection-explainer p{line-height:1.8;max-width:650px}.site-footer{padding:30px 0 25px;font-size:9px;color:#9cae99;line-height:1.7}.site-footer nav{display:flex;gap:20px;font-size:11px;margin-bottom:17px}.site-footer p{max-width:800px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.page{max-width:1120px;width:calc(100% - 48px);margin:auto}.page>header{display:flex;justify-content:space-between;padding:25px 0}.brand-mark{display:inline-block;padding:8px;color:var(--accent)}.legal-page{max-width:760px;margin:40px auto;line-height:1.8}.legal-page h2{margin-top:30px}.legal-page p,.legal-page li{color:var(--muted)}

@media(max-width:1150px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:18px}.app-workspace{padding:30px 28px 0}.vehicle-layout{grid-template-columns:1fr}.vehicle-controls{display:grid;grid-template-columns:1fr 1fr}.location-card{grid-column:1/-1}.vehicle-image{height:260px}.vehicle-overview{padding:25px}.session-mode{display:none}}

@media(max-width:700px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:15px 24px;border-right:0;border-bottom:1px solid var(--line);display:block}.sidebar .brand img{width:145px;height:auto}.sidebar-caption,.sidebar-foot{display:none}.app-navigation{margin-top:18px;display:flex;flex-direction:row;gap:7px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.app-navigation a{flex:0 0 auto;padding:10px 12px;font-size:11px;min-height:44px}.app-navigation a span{font-size:16px;width:auto}.future-account{display:none}.app-workspace{padding:25px 24px 0}.app-topbar{padding-bottom:23px;margin-bottom:25px;gap:12px}h1{font-size:23px}.app-topbar .section-kicker{font-size:8px;letter-spacing:1px}.logout-button{font-size:11px;padding:10px 13px}.dashboard h2{font-size:35px}.demo-badge{font-size:8px}.identity-actions{justify-content:stretch}.identity-actions button{flex:1;padding-inline:12px;font-size:11px}.vehicle-layout{gap:16px}.vehicle-controls{grid-template-columns:1fr;gap:12px}.location-card{grid-column:auto}.vehicle-overview{padding:20px}.vehicle-image{height:190px}.metric{font-size:31px}.detail-card{padding:22px}.garage-state{padding:38px 22px}.garage-state h2{font-size:32px}.connect-content>p.muted{font-size:13px}.connection-trust{font-size:11px}.site-footer{padding-bottom:30px}#vehicle-vin{letter-spacing:.5px}.vehicle-selector select{max-width:100%}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

.detail-card:not(.location-card) .icon{filter:invert(88%) sepia(15%) saturate(360%) hue-rotate(85deg)}

/* Keep the desktop composition contained on wide monitors. */

.app-workspace{max-width:1280px;margin:0 auto}

.vehicle-image[data-presentation="cherry"]{object-fit:contain;filter:none;mask-image:radial-gradient(ellipse 65% 66% at 50% 50%,#000 52%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 65% 66% at 50% 50%,#000 52%,transparent 100%)}

.account-settings{margin-top:44px;padding-top:32px;border-top:1px solid var(--line)}.account-heading h2{font-size:28px;margin:0 0 12px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.account-surface{background:var(--card);border:1px solid var(--card-border);border-radius:14px;padding:26px}.account-surface h3{font-size:17px;font-weight:500;margin:0 0 15px}.account-surface p{line-height:1.8}.account-surface button{margin-top:15px}dialog{max-width:480px;width:calc(100% - 48px);background:#1a2921;color:var(--text);border:1px solid #56705b;border-radius:18px;padding:30px;box-shadow:0 24px 100px #0008}dialog::backdrop{background:#07100cc9;backdrop-filter:blur(5px)}dialog h2{margin:0 0 20px}dialog p{line-height:1.7;font-size:14px}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.dialog-actions button{flex:1;min-height:46px;background:transparent;color:var(--text);border:1px solid #56705b;border-radius:7px;padding:12px;cursor:pointer}#confirm-disconnect{background:#b5f1d7;color:#142a1e;border-color:#b5f1d7}@media(max-width:700px){.account-grid{grid-template-columns:1fr}.account-surface{padding:22px}.logout-button{max-width:120px}.account-heading h2{font-size:25px}}

.auth-panel{max-width:620px;margin:44px auto 60px;padding:38px;background:#1a2921;border:1px solid #3a5541;border-radius:18px}.auth-panel h2{font-size:36px;line-height:1.16;letter-spacing:-1px;margin:0 0 20px}.auth-intro{color:var(--muted);line-height:1.8;margin-bottom:28px}.auth-form{display:grid;gap:18px}.auth-form label{display:grid;gap:9px;font-size:13px}.auth-form input:not([type=checkbox]){width:100%;min-height:48px;background:#101e16;border:1px solid #637962;color:#edf1e7;border-radius:7px;font:16px Arial;padding:12px}.auth-form .auth-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.auth-check input{width:18px;height:18px;flex-shrink:0}.auth-panel button{min-height:44px;border-radius:7px;padding:12px 18px;font:inherit;cursor:pointer}.auth-primary{background:#b5f1d7;color:#142a1e;border:1px solid #b5f1d7;font-weight:bold!important}.auth-secondary,.auth-google{background:transparent;border:1px solid #526c53;color:#d4e2ce}.auth-links,.auth-session-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.auth-hint,.auth-legal,.auth-divider{font-size:12px;color:#b1bfac;line-height:1.7;margin:0}.auth-divider{text-align:center}.auth-legal{margin-top:28px}.auth-feedback{line-height:1.7;color:#b5f1d7}.auth-account-summary{border-block:1px solid #3c533f;padding:12px 0;overflow-wrap:anywhere}.auth-account-summary p:first-child{font-size:20px}.auth-boundary{margin-top:30px;border-top:1px solid #3c533f;padding-top:20px;color:#b1bfac;line-height:1.8}.auth-danger{border-color:#b88576;color:#f0c4b6}.auth-panel input:focus-visible{outline:2px solid #b5f1d7;outline-offset:3px}@media(max-width:700px){.auth-panel{padding:25px 20px;margin:12px 0 35px}.auth-panel h2{font-size:30px}.auth-links{flex-direction:column}.auth-panel button{width:100%}}



/* Wake presentation uses only existing request stages. */

.wake-dialog{box-sizing:border-box;width:min(480px,calc(100% - 40px));max-height:calc(100dvh - 40px);overflow:auto;padding:36px 28px 24px;text-align:center;border:1px solid #64796980;border-radius:28px;background:radial-gradient(ellipse at 50% 18%,#2c4938 0,transparent 65%),#17271e;box-shadow:0 40px 140px #0009;color:#edf1e7}

.wake-dialog::backdrop{background:#060e0bbd;backdrop-filter:blur(10px)}

.wake-eyebrow{font-size:10px;letter-spacing:.2em;color:#b6caba}

.wake-energy{width:210px;height:210px;position:relative;display:grid;place-items:center;margin:18px auto 8px}

.wake-ring{position:absolute;inset:24px;border:1px solid #b5f1d75c;border-radius:50%;animation:wake-breathe 3s ease-out infinite}

.wake-ring:nth-child(2){animation-delay:-1s}.wake-ring:nth-child(3){animation-delay:-2s}

.wake-energy svg{position:relative;width:130px;stroke:#c7f8df;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 15px #b5f1d744)}

.wake-check{display:none}.wake-copy h2{font-size:clamp(26px,5vw,34px);font-weight:500;letter-spacing:-.04em;margin:0 0 14px;overflow-wrap:anywhere;outline:none}

.wake-copy p{font-size:14px;line-height:1.7;color:#b6caba;margin:0 auto;max-width:340px}

.wake-motion{width:100px;height:2px;background:#abcab32b;margin:26px auto;overflow:hidden;border-radius:2px}.wake-motion span{display:block;height:100%;width:45%;background:#b5f1d7;animation:wake-travel 2s ease-in-out infinite}

.wake-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.wake-actions button,.wake-actions a{font:inherit;font-size:13px;border:1px solid #61776980;border-radius:12px;padding:12px 18px;min-height:44px;cursor:pointer;color:#edf1e7;background:#ffffff06;text-decoration:none}.wake-actions #wake-retry,.wake-actions #wake-reconnect{background:#b5f1d7;color:#14261b;border-color:#b5f1d7}.wake-actions :focus-visible{outline:2px solid #b5f1d7;outline-offset:4px}

.wake-dialog[data-phase=error] .wake-ring{animation:none;border-color:#dac8a850;transform:scale(1.05)}.wake-dialog[data-phase=error] .wake-energy svg{stroke:#dac8a8}.wake-dialog[data-phase=error] .wake-motion{visibility:hidden}

.wake-dialog[data-phase=success] .wake-motion span{animation:none;width:100%}.wake-dialog[data-phase=success] .wake-ring{animation:none}.wake-dialog[data-phase=success] .wake-energy svg>path:not(.wake-check){opacity:.15}.wake-dialog[data-phase=success] .wake-check{display:block;stroke-width:4}

@keyframes wake-breathe{0%{transform:scale(.7);opacity:0}25%{opacity:.7}100%{transform:scale(1.25);opacity:0}}

@keyframes wake-travel{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}

@media(prefers-reduced-motion:reduce){.wake-ring{animation:none;opacity:.4}.wake-ring:nth-child(2){transform:scale(1.15)}.wake-ring:nth-child(3){transform:scale(.85)}.wake-motion span{animation:none;width:100%;opacity:.6}}

@media(max-width:480px){.wake-dialog{padding:28px 20px 20px}.wake-energy{width:180px;height:180px}}



.auth-password-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}.auth-panel .auth-password-toggle{width:auto;min-width:58px;padding:10px 8px;background:transparent;border:1px solid #526c53;color:#d4e2ce;font-size:12px}.auth-password-toggle:focus-visible{outline:2px solid #b5f1d7;outline-offset:3px}.auth-password-error{color:#f0c4b6;font-size:13px;line-height:1.5}.auth-password-error:empty{display:none}.auth-form input[aria-invalid=true]{border-color:#f0c4b6}



.auth-email-address{overflow-wrap:anywhere;font-weight:600}.auth-form input[readonly]{color:#b1bfac}.auth-form #account-current-email{background:transparent;border-color:#3a5541}



.delete-account-dialog{box-sizing:border-box;width:min(520px,calc(100% - 40px));max-width:520px;max-height:calc(100dvh - 40px);overflow:auto;padding:28px;line-height:1.65}.delete-account-dialog h2{font-size:26px;line-height:1.2;margin:0 0 20px}.delete-account-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.delete-account-dialog button{min-height:44px;padding:12px 16px;border-radius:8px;cursor:pointer}.delete-account-dialog .delete-final{background:#e6ae9e;border:1px solid #e6ae9e;color:#341d17}.delete-account-dialog button:focus-visible{outline:2px solid #b5f1d7;outline-offset:4px}.delete-account-dialog button:disabled{opacity:.6;cursor:wait}.delete-feedback{color:#f0c4b6}.delete-feedback:empty{display:none}.auth-links>a.auth-secondary{padding:12px 18px;border-radius:7px;text-decoration:none}@media(max-width:480px){.delete-account-dialog{padding:24px 20px}.delete-account-dialog .dialog-actions button{width:100%}}



/* Tesla connection actions share spacing and touch targets on every viewport. */

#auth-tesla-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-block:20px}

#auth-tesla-actions:empty{display:none}

#auth-tesla-actions>a,#auth-tesla-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;line-height:1.4;font:inherit;text-decoration:none;border-radius:7px}

#auth-tesla-actions>:focus-visible{outline:2px solid #b5f1d7;outline-offset:4px}

@media(max-width:700px){#auth-tesla-actions>a,#auth-tesla-actions>button{width:100%}}



/* Keep the signed-in HeyDrive identity visible without exposing Tesla identity. */

.app-topbar>div{min-width:0}

.header-actions{min-width:0;max-width:100%}

.header-account{display:grid;gap:5px;min-width:0;max-width:260px;text-align:right}

.header-account-label{font-size:10px;color:var(--muted)}

#header-account-email{font-size:12px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}

.header-actions>.logout-button{flex-shrink:0}

@media(max-width:700px){.app-topbar{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.header-account{text-align:left;max-width:none;flex:1}}



.login-feedback{margin:0;padding:12px 14px;border:1px solid #aa7565;border-radius:8px;background:#40291f;color:#f4d0c2;font-size:14px;line-height:1.6}.login-feedback:empty{display:none}



.admin-panel{padding-block:8px 40px;min-width:0}.admin-panel>h2{font-size:32px;margin:0 0 16px}.admin-badge{display:inline-block;font-size:11px;line-height:1.6;border:1px solid #4d6351;border-radius:20px;padding:4px 10px;color:#cbdccf}.admin-panel button{min-height:44px;border-radius:8px;padding:11px 18px;font:inherit}.admin-panel .auth-form{max-width:440px;margin-bottom:20px}.admin-panel input{width:100%;min-width:0;min-height:48px;background:#101e16;border:1px solid #637962;border-radius:7px;color:var(--text);padding:12px;font:inherit}.admin-panel .auth-password-toggle{width:auto;background:transparent;color:var(--text);border:1px solid #526c53}.admin-target-email{overflow-wrap:anywhere;font-weight:600}.admin-panel input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.admin-nav-icon{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.admin-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--card-border);border-radius:12px;background:var(--card);scrollbar-color:#526c53 #18261e}.admin-table-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.admin-user-table{width:100%;min-width:800px;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.6}.admin-user-table thead{background:#203128}.admin-user-table th,.admin-user-table td{padding:16px;vertical-align:middle}.admin-user-table thead th{font-size:10px;font-weight:500;letter-spacing:.07em;color:#bbccbf;white-space:nowrap}.admin-user-table tbody tr+tr{border-top:1px solid var(--line)}.admin-user-table tbody tr:hover{background:#203329}.admin-user-identity{width:28%;min-width:200px;max-width:280px;font-weight:500}.admin-user-email{display:block;overflow-wrap:anywhere}.admin-user-role{display:block;color:var(--muted);font-size:10px;margin-top:3px}.admin-date{white-space:nowrap}.admin-date span,.admin-date small{display:block}.admin-date small{color:var(--muted);font-size:10px}.admin-connection{color:var(--accent)}.admin-row-actions{white-space:nowrap}.admin-panel .admin-row-actions button{font-size:12px;padding:8px 14px}.admin-table-hint{color:var(--muted);font-size:11px;line-height:1.6;display:none}@media(max-width:1100px){.admin-table-hint{display:block}.admin-user-table th,.admin-user-table td{padding:12px}}



/* The desktop sidebar also serves short landscape viewports. */

@media(min-width:701px){.sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#526c53 #121e18;align-self:start}.sidebar>*{flex-shrink:0}}



/* Account identity stays at the top right; sign-out belongs to Account settings. */

.header-actions:has(#header-account[hidden]){display:none}

#header-account-email{text-decoration:none;text-underline-offset:4px}#header-account-email:hover{text-decoration:underline;color:var(--accent)}

@media(max-width:700px){.app-topbar:has(#header-account:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.app-topbar .header-actions{width:auto;justify-content:flex-end}.app-topbar .header-account{text-align:right;max-width:100%;flex:initial}.app-topbar:has(#header-account:not([hidden])) h1{font-size:22px;line-height:1.25}.auth-session-actions #account-logout{max-width:none}}



/* Standalone account and vehicle views share the same top alignment. */

.auth-panel.account-page{margin:8px 0 40px;max-width:850px;width:100%}

.vehicle-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:24px}

.command-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px 8px;min-width:0;border:1px solid #425348;border-radius:16px;background:#213329;color:#e3eadf;font:inherit;text-align:center}

.command-shortcut:disabled{opacity:1;cursor:default}

.command-shortcut svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

.command-shortcut span{font-size:12px;line-height:1.4}

.command-shortcut small{font-size:9px;letter-spacing:.035em;color:#c2cdbc;background:#314336;border-radius:12px;padding:4px 7px}

.vehicle-detail-link{display:block;font-size:12px;margin-top:16px;color:#b7dfc8;text-underline-offset:4px;white-space:nowrap}

.detail-card{flex-wrap:wrap}.detail-card .vehicle-detail-link{margin-left:auto}

.vehicle-detail-page{display:block;max-width:850px}

.vehicle-page-intro{padding:8px 0 20px}.vehicle-page-intro h3{font-size:28px;margin:0 0 10px}

.vehicle-page-intro p{line-height:1.7;margin:0}

.vehicle-detail-page .vehicle-controls{display:block}

.vehicle-detail-page .detail-card{padding:30px;min-height:150px}

.vehicle-detail-page .detail-card p{line-height:1.8}

.commands-page .vehicle-shortcuts{margin-top:0}

.future-controls{margin-top:20px;max-width:260px}

@media(max-width:700px){

 .auth-panel.account-page{margin-top:8px}

 .vehicle-shortcuts{gap:7px}.command-shortcut{padding:16px 5px;border-radius:12px}

 .command-shortcut span{font-size:11px}.command-shortcut small{font-size:8px;padding:4px 5px}

 .vehicle-detail-page .detail-card{padding:22px}

}

@media(max-width:360px){.vehicle-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}



.app-workspace{margin:0 auto}

.location-card .vehicle-detail-link{color:#244b35}

.command-shortcut small{white-space:nowrap}

@media(max-width:700px){.command-shortcut small{padding-inline:3px;font-size:7px}}



.vehicle-controls{align-content:start}

.vehicle-controls .detail-card{flex:0 0 auto}



.mfa-qr{display:block;width:260px;max-width:100%;height:auto;shape-rendering:crispEdges;margin:20px auto}

#mfa-secret{display:block;overflow-wrap:anywhere;user-select:all;line-height:1.8;letter-spacing:2px}

#mfa-recovery{font-size:12px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all;padding:16px;background:#101e17;border-radius:10px}

.mfa-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:20px}

.mfa-dialog{max-width:480px;width:calc(100% - 40px);color:var(--text);background:var(--card);border:1px solid var(--card-border);border-radius:18px;padding:26px}

.mfa-dialog::backdrop{background:#07120cbb}

.mfa-dialog p{line-height:1.7}.mfa-dialog [role=status]{color:#ffc5b7}

@media(max-width:390px){#mfa-recovery{font-size:10px;padding:10px}.mfa-actions button{width:100%}}



.admin-row-actions button+button{margin-left:8px}

@media(max-width:700px){.admin-row-actions button{display:block}.admin-row-actions button+button{margin:8px 0 0}}



/* Authenticator entry: six responsive cells, no motion or inline styles. */

.otp-entry{display:grid;gap:10px;min-width:0}.otp-digits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:360px}.auth-form .otp-digits input{width:100%;min-width:0;padding:0;aspect-ratio:1;border-radius:10px;text-align:center;font-size:clamp(20px,5vw,28px);font-variant-numeric:tabular-nums;caret-color:var(--accent,#a9ecd4)}.auth-form .otp-digits input:focus-visible{outline:2px solid #a9ecd4;outline-offset:2px}.auth-form .otp-digits input[aria-invalid=true]{border-color:#f09c99}.otp-digits[hidden],.auth-form [hidden]{display:none!important}.otp-progress:empty{display:none}.otp-toggle{justify-self:start}.otp-entry .auth-hint{margin:0}@media(max-width:360px){.otp-digits{gap:5px}}



.vehicle-refresh{margin-left:auto;text-align:right;max-width:290px;flex:0 1 290px}.vehicle-refresh .cache-note{font-size:12px;line-height:1.5;margin-top:10px}.command-bar{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;justify-content:center}.command-bar .command-shortcut{flex:0 1 96px;min-width:68px;min-height:78px;padding:10px 8px;border-radius:14px;gap:3px;font-size:12px;opacity:1}.command-bar .command-shortcut svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}.command-bar .command-shortcut small{font-size:10px}.command-bar .command-shortcut:disabled{opacity:.5}.command-bar .is-active{color:#b2f2d9;background:#25453a;border-color:#6fb39a}.command-bar [data-command=lock].is-active{color:#ffd0a7;border-color:#ac815e;background:#3a3328}.command-bar [data-command=climate].is-active svg{animation:hvac-spin 4s linear infinite}.command-bar .is-pending{cursor:wait}.energy.compact-energy{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 0}.compact-energy .battery-summary{display:flex;align-items:center;gap:10px;font-size:18px}.compact-energy .battery-summary svg{width:45px;height:24px;color:#b2f2d9}.compact-energy .range-summary{text-align:right;display:grid;gap:3px;font-size:18px}.compact-energy small{font-size:10px;text-transform:uppercase;letter-spacing:.08em}@keyframes hvac-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.command-bar [data-command=climate].is-active svg{animation:none}}@media(max-width:640px){.vehicle-refresh{flex:1 1 130px;max-width:175px}.vehicle-refresh button{font-size:12px;padding:10px}.command-bar{gap:6px}.command-bar .command-shortcut{flex:1 1 60px;min-width:56px;font-size:11px}.vehicle-identity{flex-wrap:wrap}}


.dashboard-heading>.vehicle-refresh{padding-top:27px}.compact-energy .battery-summary{flex-direction:row}

/* One steady, keyboard-operable energy indicator opposite the current status. */
.vehicle-visual-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;min-width:0}
.dashboard .vehicle-energy-toggle{border:0;padding:4px 0;min-height:44px;gap:9px;color:var(--text);background:transparent;flex-shrink:0}
.dashboard .vehicle-energy-toggle:hover:enabled{background:transparent;transform:none;color:var(--accent)}
.vehicle-energy-toggle svg{width:39px;height:23px;color:var(--accent)}
.energy-value{display:inline-grid;width:9ch;min-width:9ch;white-space:nowrap;text-align:left;font-size:16px;font-variant-numeric:tabular-nums}
.vehicle-status{font-size:12px;color:var(--text);text-align:right;line-height:1.4}
.command-bar .is-active,.command-bar [data-command=lock].is-active{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card));border-color:var(--accent)}
.command-bar .is-active .command-fill{fill:currentColor;fill-opacity:.65}
.command-bar .is-active:hover:enabled{background:color-mix(in srgb,var(--accent) 20%,var(--card));color:var(--accent)}
.command-bar .command-shortcut:disabled{opacity:.75}
.command-bar .is-pending{border-style:dashed;cursor:wait}
.command-bar .is-pending small{color:var(--text)}
@media(max-width:420px){.vehicle-visual-meta{gap:6px}.vehicle-status{font-size:11px}.energy-value{font-size:14px}.vehicle-energy-toggle svg{width:33px}.command-bar .command-shortcut{padding-inline:3px}.command-bar .command-shortcut span{font-size:10px}}

.vehicle-visual-meta{margin-top:0}

/* Quiet, legible status; only design tokens, no attention-grabbing accent. */
.vehicle-status{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;border:1px solid var(--card-border);background:color-mix(in srgb,var(--text) 7%,var(--card));color:var(--text);font-weight:600;font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;text-align:center;min-width:0}
.vehicle-status:empty{display:none}

/* Compact icon-only vehicle quick actions. The button remains a 52–56px touch target. */
.command-bar{flex-wrap:nowrap;align-items:center;gap:16px;margin-top:12px;padding-block:4px}
.command-bar .command-shortcut{position:relative;flex:0 0 60px;width:60px;min-width:60px;height:60px;min-height:60px;padding:0;border-radius:16px;gap:0;overflow:visible;isolation:isolate;box-shadow:inset 0 1px 0 #ffffff0a;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s,opacity .15s}
.command-bar .command-shortcut>span,.command-bar .command-shortcut>small{display:none!important}
.command-bar .command-shortcut svg{width:28px;height:28px;flex:none;overflow:visible;transform-origin:center}
.command-bar [data-command=trunk] svg{width:30px;height:30px}
.command-bar .command-shortcut.is-unknown:not(:disabled){opacity:.78}
.command-bar .command-shortcut.is-active{box-shadow:inset 0 1px 0 #ffffff12,0 0 15px color-mix(in srgb,var(--accent) 16%,transparent)}
.command-bar .command-shortcut::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 9px);z-index:8;translate:-50% 3px;width:max-content;max-width:150px;padding:6px 8px;border:1px solid var(--card-border);border-radius:7px;background:#101a15f2;color:var(--text);box-shadow:0 7px 22px #0007;font-size:10px;font-weight:500;line-height:1.2;letter-spacing:.01em;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s,translate .12s,visibility 0s linear .12s}
.command-bar .command-shortcut:focus-visible::after{translate:-50% 0;opacity:1;visibility:visible;transition-delay:.08s}
@media(hover:hover) and (pointer:fine){.command-bar .command-shortcut:hover::after{translate:-50% 0;opacity:1;visibility:visible;transition-delay:.12s}}
.command-bar .command-shortcut.is-pending svg{opacity:0}
.command-bar .command-shortcut.is-pending::before{content:'';position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-10px;border:2px solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;border-radius:50%;animation:spin .75s linear infinite}
.command-bar .command-shortcut.is-pending{border-style:solid}
.command-bar .fan-blades{fill:none}
.command-bar .is-active .fan-blades{fill:currentColor;fill-opacity:.5}
@media(max-width:640px){.command-bar{gap:8px}.command-bar .command-shortcut{flex:0 0 52px;width:52px;min-width:52px;height:52px;min-height:52px;padding:0}.command-bar .command-shortcut svg{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.command-bar .command-shortcut,.command-bar .command-shortcut::after{transition:none}.command-bar .command-shortcut.is-pending::before{animation-duration:1.2s}}
@media(max-width:420px){.vehicle-status{padding:6px 8px;font-size:11px;max-width:55%}}
