/* Single-row mobile controls; explicitly reserve chart-panel tabs. */
@media(max-width:767px), (max-width:1024px) and (max-height:500px) and (pointer:coarse){
 body:not(.embed),body:not(.embed)[data-desk-density]{--mobile-controls-h:50px}
 body:not(.embed) .app{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--mobile-controls-h);grid-template-areas:"stage" "top";min-width:0;min-height:0;overflow:hidden}
 body:not(.embed) .top{grid-template-columns:minmax(0,1fr) 54px 38px 38px 40px;grid-template-rows:46px;align-items:center;gap:0;padding:2px 6px;min-width:0;overflow:hidden}
 body:not(.embed) .top #qStrip{display:none!important}
 body:not(.embed) .top #symBtn{grid-area:1/1/2/2;display:flex;justify-content:flex-start;align-items:center;justify-self:stretch;align-self:center;width:100%;max-width:none;min-width:0;height:44px;margin:0;padding:0 4px 0 2px;gap:5px;text-align:left;transform:none}
 body:not(.embed) .top #symName{flex:0 1 auto;min-width:0;max-width:100%;margin:0;text-align:left;line-height:1.2;font:600 12px/1.2 Inter,system-ui,sans-serif;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body:not(.embed) .top #symLogo{width:20px;height:20px;flex:0 0 20px;margin:0}
 body:not(.embed) .top #symBtn>svg{width:11px;height:11px;flex:none;margin:0}
 body:not(.embed) .top #tfBtn{grid-area:1/2/2/3;width:50px;min-width:0;max-width:50px;height:38px;min-height:38px;margin:0 2px;padding:0 3px;justify-content:center;align-self:center}
 body:not(.embed) .top #typeBtn{grid-area:1/3/2/4}
 body:not(.embed) .top #indBtn{grid-area:1/4/2/5}
 body:not(.embed) .top #quickBtn{grid-area:1/5/2/6}
 body:not(.embed) .top #typeBtn,body:not(.embed) .top #indBtn{width:38px;height:44px;min-height:44px;margin:0;padding:0;justify-content:center;align-self:center}
 body:not(.embed) .top #quickBtn{display:flex!important;width:38px;height:40px;min-height:40px;margin:0 1px;padding:0;justify-content:center;align-self:center}
 body:not(.embed) .top .desk-exit-focus{display:none!important}
 body:not(.embed) .stage{position:relative;padding:0!important;min-height:0;min-width:0;gap:0!important;overflow:hidden;grid-template:minmax(0,1fr)/minmax(0,1fr)!important}
 body:not(.embed) .stage:not(.lay-1){padding-top:36px!important}
 body:not(.embed) .stage.lay-1{padding-top:0!important}
 body:not(.embed) .stage>.card.panel-active{grid-row:1!important;grid-column:1!important;width:100%;height:100%;min-height:0;min-width:0;margin:0;border-radius:0}
 body:not(.embed) .stage>.card:not(.panel-active){display:none!important}
 body:not(.embed) .panel-tabs{top:0;left:0;right:0;height:36px;margin:0;padding:0 6px;gap:4px;border-bottom:1px solid var(--hair);background:var(--card)}
 body:not(.embed) .panel-tabs .bb{min-height:32px;padding-inline:10px;font-size:10px;border-radius:6px}
 body:not(.embed) .stage>.slot-card.panel-active>iframe{display:block;width:100%;height:100%;max-width:100%;border:0}
 body.mobile-keyboard:not(.embed),body.mobile-keyboard:not(.embed)[data-desk-density]{--mobile-controls-h:0px}
 body.mobile-keyboard:not(.embed) .app{grid-template-rows:minmax(0,1fr);grid-template-areas:"stage"}
}
