/* Driving UI lives in one low dock. Welcome/menu typography remains independent. */
body.playing header{display:none}
body.playing .actions{position:fixed;left:50%;right:auto;bottom:calc(23px + var(--safe));transform:translateX(-50%);width:min(1160px,calc(100% - 40px));display:grid;grid-template-columns:minmax(190px,1fr) minmax(350px,1.5fr) minmax(220px,1fr);gap:12px;align-items:stretch}
.radio-panel,.drive-card,.extras{background:#17333de8;border:1px solid #c3d5df35;border-radius:10px;padding:10px 12px;min-width:0;backdrop-filter:blur(5px)}
body.playing .radio-panel{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0}
body.playing .place{display:block;position:static;opacity:1;text-shadow:none;pointer-events:none}
.place small{font-size:7px;letter-spacing:1.15px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.7}
.place h2{font:18px/1.15 Georgia;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.place p{display:none}
.radio-controls{display:flex;align-items:center;gap:8px;min-width:0}
.radio-controls>div{flex:1;min-width:0;max-width:200px}
.radio-controls small{display:none}
.radio-controls span{font:13px Georgia;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.radio-controls button{flex-shrink:0}
.radio-panel>div{min-width:0;max-width:none}
body.playing .drive-info,body.touch.playing .drive-info{position:static;transform:none;display:flex;justify-content:center;align-items:center;padding:0 2px 7px;gap:8px;background:none;border:0;border-radius:0;backdrop-filter:none}
.drive-info b{font-size:27px}.drive-info strong{font-size:18px}.drive-info small{font-size:8px}.drive-info .divider{height:25px;margin:0 4px}
#bladeState{font-size:10px;margin-left:auto;max-width:122px;white-space:normal;line-height:1.35}
.blade-actions{padding:0;border:0;border-radius:0;background:none;gap:5px;justify-content:center}
body.playing .actions button{min-height:44px;padding:8px 10px;font-size:12px}
.actions kbd{font-size:9px;margin-left:5px}
.extras{display:flex;flex-direction:column;justify-content:space-between;gap:8px;align-items:stretch}
.comfort-actions{display:flex;gap:4px;justify-content:space-between}
.comfort-actions button{flex:1}
.comfort-actions kbd{display:none}
.extras nav{display:flex;gap:6px;justify-content:stretch}
.extras nav button{flex:1;min-width:44px}
body.playing nav span{display:inline;margin-left:3px}
body.playing .hint{display:none}
body.playing .read{top:auto;bottom:calc(157px + var(--safe));left:50%;max-width:min(420px,90vw);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#toast{top:auto;bottom:calc(160px + var(--safe));font-size:12px;max-width:min(500px,85vw);pointer-events:none}
footer{bottom:3px;font-size:8px}footer button{font-size:8px}
@media(max-width:1100px){
 body.playing .actions{width:calc(100% - 24px);gap:8px;grid-template-columns:minmax(150px,1fr) minmax(330px,1.65fr) 156px}
 .comfort-actions{display:none}.extras{justify-content:center;padding:8px}.extras nav{flex-direction:row}.extras nav span{display:none!important}
 .radio-panel,.drive-card{padding:8px}.place h2{font-size:16px}.radio-controls>div{max-width:120px}
 .actions kbd{display:none}
}
@media(max-width:700px){
 body.playing .actions{grid-template-columns:1fr;max-width:350px}
 body.playing .radio-panel{display:none}
 body.playing .extras{display:flex;order:-1;padding:0;background:none;border:0;backdrop-filter:none;align-items:center}
 .extras nav{width:168px}.extras nav button{background:#193640e8}
 body.playing .read{bottom:calc(204px + var(--safe))}
 #toast{bottom:calc(204px + var(--safe))}
}
/* Touch: pedals beside the low dock; in narrow portrait the dock sits above them. */
body.touch.playing .actions{display:flex;flex-direction:column;left:50%;right:auto;bottom:calc(21px + var(--safe));width:330px;gap:7px}
body.touch.playing .radio-panel{display:none}
body.touch.playing .extras{display:flex;order:-1;align-items:center;background:none;border:0;padding:0;backdrop-filter:none}
body.touch.playing .extras nav{width:165px}
body.touch.playing .extras nav button{background:#193640e8}
body.touch.playing .extras nav span{display:none}
body.touch.playing .drive-card{padding:8px;backdrop-filter:none}
body.touch.playing .drive-info{padding:0 0 5px}
body.touch.playing .drive-info b{font-size:24px}
body.touch.playing #cruise{display:none}
body.touch.playing .blade-actions button{min-width:52px;min-height:44px}
body.touch.playing .touch-controls{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(21px + var(--safe))}
body.touch.playing .touch-controls button{width:57px;height:66px;min-height:66px;font-size:25px}
body.touch.playing .steer-pad,body.touch.playing .pedals{gap:7px}
body.touch.playing .read{bottom:calc(185px + var(--safe));min-height:44px}
body.touch.playing #toast{bottom:calc(190px + var(--safe))}
@media(max-width:650px){
 body.touch.playing .actions{bottom:calc(103px + var(--safe));width:min(330px,calc(100% - 28px))}
 body.touch.playing .read{bottom:calc(266px + var(--safe))}
 body.touch.playing #toast{bottom:calc(270px + var(--safe))}
}
@media(min-width:1000px) and (min-height:650px){
 body.touch.playing .touch-controls button{width:70px;height:76px}
 body.touch.playing .actions{width:360px}
}
@media(max-height:450px) and (min-width:651px){
 body.playing .actions{bottom:calc(16px + var(--safe))}
 body.playing .read{bottom:calc(148px + var(--safe))}
 body.touch.playing .actions{bottom:calc(14px + var(--safe));gap:4px}
 body.touch.playing .read{bottom:calc(166px + var(--safe))}
 body.touch.playing #toast{bottom:calc(168px + var(--safe))}
}

/* Keep contextual reading in the desktop dock; touch uses a nearby action chip. */
body.playing .radio-panel>.radio-controls{display:flex}
body.playing .radio-panel #read{position:static;transform:none;max-width:100%;width:100%;margin:0;min-height:38px;padding:6px 10px;text-align:left;font-size:12px}
body.playing .radio-panel.has-readable .place{display:none}
body.playing .radio-panel .radio-controls #next{display:block}
body.playing .radio-panel .radio-controls>div{display:block}
