/* One control row above the dashboard; fullscreen remains an optional browser action. */
#drive-center{display:none}
.drive-mode .shell{grid-template-rows:66px minmax(0,1fr)!important;grid-template-areas:'head' 'dashboard'!important;gap:7px;padding:0 12px 7px;max-width:none}
.drive-mode header{display:flex;align-items:center;gap:20px;min-width:0;padding:2px 0;margin:0;height:66px;overflow:visible}
.drive-mode .brand{flex:0 0 auto;gap:9px;white-space:nowrap}
.drive-mode #drive-center{display:flex;align-items:center;gap:20px;flex:1;min-width:0;height:100%}
.drive-mode #drive-center #start{display:block!important;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;max-width:58px!important;padding:11px 8px 7px!important;font-size:7px!important;letter-spacing:.5px;line-height:1.35;pointer-events:auto}
.drive-mode #drive-center #start:before{font-size:13px;margin:0 0 2px!important}
.drive-mode #drive-center #start:after{inset:4px!important}
.drive-mode #drive-source-controls{display:flex;align-items:center;flex-direction:row;flex:1;gap:12px;min-width:0;border:1px solid #88652e;background:#211b1080;border-radius:9px;padding:3px 8px;height:48px;justify-content:flex-start}
.drive-mode #drive-source-controls button{min-height:40px;padding:7px 13px;font-size:12px;white-space:nowrap}
.drive-mode #drive-source-state{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:10px}
.drive-mode .header-right{display:flex;gap:8px;flex:0 0 auto;margin:0}
.drive-mode #drive-view,.drive-mode #fullscreen-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:92px;padding:7px 12px;font-size:11px;white-space:nowrap}
.drive-mode .transport,.drive-mode #behavior-status{display:none!important}
.drive-mode #live-dashboard{height:100%;min-height:0;margin:0}
@media(max-width:1050px){.drive-mode header,.drive-mode #drive-center{gap:10px}.drive-mode .brand small{display:none}.drive-mode .brand{font-size:9px}.drive-mode #drive-source-controls{gap:8px}.drive-mode #drive-source-state{font-size:9px}.drive-mode #drive-view,.drive-mode #fullscreen-toggle{min-width:80px;padding:6px 9px}}
@media(max-width:760px){.drive-mode .shell{padding:0 6px 5px;gap:5px;grid-template-rows:60px minmax(0,1fr)!important}.drive-mode header{height:60px;gap:6px}.drive-mode .brand>span:last-child{display:none}.drive-mode .logo{font-size:26px}.drive-mode #drive-center{gap:6px}.drive-mode #drive-source-controls{padding:3px 5px;gap:6px}.drive-mode #drive-source-controls button{font-size:10px;padding:6px 9px}.drive-mode #drive-source-state{max-width:105px}.drive-mode #drive-view,.drive-mode #fullscreen-toggle{min-width:66px;padding:5px 7px;font-size:10px}.drive-mode .header-right{gap:5px}}
@media(max-width:480px){.drive-mode .shell{grid-template-rows:56px minmax(0,1fr)!important}.drive-mode header{height:56px;gap:4px}.drive-mode .brand{gap:0}.drive-mode .logo{font-size:23px}.drive-mode #drive-center{gap:4px}.drive-mode #drive-center #start{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;padding:9px 6px 6px!important;font-size:6px!important;letter-spacing:.2px}.drive-mode #drive-center #start:before{font-size:11px}.drive-mode #drive-source-controls{border:0;background:none!important;padding:0;height:auto}.drive-mode .drive-source-buttons{gap:3px}.drive-mode #drive-source-controls button{padding:5px 6px;min-height:40px;font-size:9px}.drive-mode #drive-source-state{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.drive-mode #drive-view,.drive-mode #fullscreen-toggle{min-width:58px;font-size:9px;padding:5px}.drive-mode .header-right{gap:3px}}

/* 0.6.4: engine command replaces the load dial beside the spectrum. */
.drive-mode .shell{grid-template-rows:56px minmax(0,1fr)!important}
.drive-mode header{height:56px}
#drive-engine-panel{display:flex;align-items:center;justify-content:center;border:1px solid var(--dash-border);border-radius:14px;background:var(--dash-card);min-height:0;overflow:hidden}
.drive-mode #drive-engine-panel #start{display:block!important;width:clamp(48px,9vh,100px)!important;height:clamp(48px,9vh,100px)!important;min-width:clamp(48px,9vh,100px)!important;min-height:clamp(48px,9vh,100px)!important;max-width:100px!important;padding:13px 9px 9px!important;font-size:clamp(7px,1vh,11px)!important;line-height:1.4;letter-spacing:.5px;pointer-events:auto}
.drive-mode #drive-engine-panel #start:before{font-size:clamp(13px,1.8vh,19px);margin:0 0 3px!important}
.drive-mode #drive-engine-panel #start:after{inset:5px!important}
.drive-mode .dash-signature>.dash-intensity{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 3px;gap:5px 8px;max-width:235px;padding:0 0 2px;margin:8px 0 12px;border:0;background:none;overflow:visible;border-radius:0;align-items:center;justify-content:stretch}
.drive-mode .dash-signature>.dash-intensity>.dash-label{grid-column:1;grid-row:1;display:block;font-size:8px;letter-spacing:.7px}
.drive-mode .dash-signature>.dash-intensity>.dash-load-ring{grid-column:2;grid-row:1;position:static;display:block;flex:none;width:auto;height:auto;max-height:none;aspect-ratio:auto}
.drive-mode .dash-signature>.dash-intensity .dash-load-ring svg,.drive-mode .dash-signature>.dash-intensity>small{display:none}
.drive-mode .dash-signature>.dash-intensity .dash-load-ring strong{position:static;display:flex;justify-content:flex-end;font-size:18px;line-height:1;font-weight:500;color:var(--dash-primary)}
.drive-mode .dash-signature>.dash-intensity .dash-load-ring strong small{font-size:10px}
.drive-mode .dash-signature>.dash-intensity:before,.drive-mode .dash-signature>.dash-intensity:after{content:'';grid-column:1/-1;grid-row:2;height:3px;border-radius:2px;background:var(--dash-primary)}
.drive-mode .dash-signature>.dash-intensity:before{width:100%;opacity:.18}
.drive-mode .dash-signature>.dash-intensity:after{width:calc(var(--dash-energy,0)*100%);box-shadow:0 0 7px var(--dash-primary)}
@media(max-width:760px){.drive-mode .shell{grid-template-rows:52px minmax(0,1fr)!important}.drive-mode header{height:52px}.drive-mode .dash-signature>.dash-intensity{margin:7px 0 9px;gap:4px}.drive-mode .dash-signature>.dash-intensity>.dash-label{font-size:7px;letter-spacing:.3px}.drive-mode .dash-signature>.dash-intensity .dash-load-ring strong{font-size:15px}}
@media(max-width:480px){.drive-mode #drive-engine-panel #start{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;font-size:8px!important;padding:13px 9px 10px!important}}
@media(max-height:460px) and (min-width:601px){.drive-mode #live-dashboard{grid-template-rows:36px minmax(75px,1fr) 64px 50px 14px;gap:4px}.drive-mode #drive-engine-panel #start{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;padding:9px 7px 7px!important;font-size:7px!important}.drive-mode .dash-signature>.dash-intensity{margin:4px 0 6px;gap:3px}.drive-mode .dash-signature>.dash-intensity .dash-load-ring strong{font-size:13px}.drive-mode .dash-sound-label>span{font-size:6px}.drive-mode .drive-choice{min-height:30px;padding:5px 8px}}
