/* Compact mobile chart navigation and balanced toolbar geometry. */
@media(max-width:767px), (max-width:1024px) and (max-height:500px) and (pointer:coarse){
 .chart-navigation{gap:0;padding:2px;max-width:calc(100% - 12px);border-radius:7px;background:transparent;border:0;box-shadow:none;scrollbar-width:none}
 .chart-navigation button,.chart-navigation button[data-chart-nav=reset],.chart-navigation button[data-chart-nav=latest]{width:26px;min-width:26px;height:28px;min-height:28px;margin:0;padding:0;border:0;border-radius:5px;flex:0 0 26px;color:var(--t3)}
 .chart-navigation button svg{width:14px;height:14px;stroke-width:1.7}
 .chart-navigation button:active{background:var(--fill-2);color:var(--t1)}
 body:not(.embed),body:not(.embed)[data-desk-density]{--mobile-controls-h:48px}
 body.mobile-toolbar-mounted:not(.embed) .top{height:48px;padding:2px 6px}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow{height:44px;gap:2px;align-items:center}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#symBtn{height:40px;max-width:calc(100% - 166px);padding-inline:3px}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#tfBtn{flex:0 0 50px;width:50px;min-width:50px;max-width:50px;height:36px;min-height:36px;margin:0 0 0 auto;padding:0 3px;gap:3px;border-radius:7px;font-size:11px;align-items:center}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#typeBtn,body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#indBtn,body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#quickBtn{flex:0 0 36px;width:36px;min-width:36px;max-width:36px;height:40px;min-height:40px;margin:0;padding:0;gap:3px;border-radius:7px;align-items:center;justify-content:center}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#typeBtn svg:first-child,body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#indBtn svg,body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#quickBtn svg{width:18px;height:18px;flex:none}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#typeBtn svg:last-child{width:10px;height:12px;flex:none}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#tfBtn svg{width:10px;height:12px;flex:none}
 body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>#quickBtn{height:36px;min-height:36px;border:1px solid var(--hair);background:var(--fill)}
 body:not(.embed) .stage:not(.is-focused):not(.lay-1){gap:2px!important;padding:2px!important;background:var(--bg)}
 body:not(.embed) .stage:not(.is-focused):not(.lay-1)>.card,body:not(.embed) .stage:not(.is-focused):not(.lay-1)>.card.panel-active{border:1px solid var(--hair);border-radius:4px;box-shadow:none;outline:0;overflow:hidden}
 body:not(.embed) .stage:not(.is-focused):not(.lay-1)>.card.panel-active{border-color:rgba(255,5,5,.24)}
 body:not(.embed) .stage:not(.is-focused):not(.lay-1)>.slot-card>iframe{border-radius:3px}
 body.embed .card{border-radius:3px}
 body:not(.embed) .stage.lay-4 .panel-actions{top:2px;right:2px;border:0;background:var(--card);border-radius:4px}
 body:not(.embed) .stage.lay-4 .panel-actions .tb{width:22px;height:24px}.stage.lay-4 .panel-actions svg{width:13px;height:13px}
 body.mobile-keyboard:not(.embed),body.mobile-keyboard:not(.embed)[data-desk-density]{--mobile-controls-h:0px}
}
