/* Mobile chart space, direct quote alignment and circular glass selection. */
@media(max-width:767px), (max-width:1024px) and (max-height:500px) and (pointer:coarse){
 body:not(.embed),body:not(.embed)[data-desk-density]{--bot-h:0px;--nav-h:82px;--mobile-controls-h:100px}
 body:not(.embed) .bottom{display:none!important}
 body:not(.embed) .app{grid-template-rows:minmax(0,1fr) var(--mobile-controls-h);grid-template-areas:"stage" "top"}
 body:not(.embed) .top{grid-template-rows:50px 46px;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 10px 4px}
 body:not(.embed) .marketbar{grid-row:1;grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;width:100%;height:50px;padding:0;overflow:hidden}
 body:not(.embed) .marketbar>.grow,body:not(.embed) .marketbar .capture-actions,body:not(.embed) .marketbar .workspace-actions{display:none}
 body:not(.embed) .top .sym-btn{flex:0 1 auto;width:auto;max-width:48%;height:44px;padding:0;gap:6px;font-size:13px}
 body:not(.embed) .top .sym-btn b{flex:0 1 auto;font-size:13px}
 body:not(.embed) .top .sym-btn>svg{width:12px;flex:none}
 body:not(.embed) .top .q-strip{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:auto;max-width:none;margin:0;padding:0 12px 0 10px;border:0;border-left:1px solid var(--hair);text-align:left;overflow:hidden}
 body:not(.embed) .top .q-p{font-size:14px;font-weight:600;letter-spacing:-.02em;line-height:1.2}
 body:not(.embed) .top .q-c{font-size:10px;line-height:1.2}
 body:not(.embed) .top .q-st{right:2px;top:5px}
 body:not(.embed) .top #tfBtn{margin:0 4px 0 0;width:calc(100% - 4px);height:42px;min-height:42px}
 body:not(.embed) .top #typeBtn,body:not(.embed) .top #indBtn,body:not(.embed) .top #quickBtn,body:not(.embed) .top #setBtn{width:100%;height:44px;min-height:44px;justify-content:center;border:1px solid transparent}
 body:not(.embed) .top #typeBtn:active,body:not(.embed) .top #indBtn:active,body:not(.embed) .top #quickBtn:active,body:not(.embed) .top #setBtn:active{background:var(--fill-2);border-color:var(--hair)}
 body:not(.embed) .mnav{height:68px;padding:4px 5px;bottom:calc(env(safe-area-inset-bottom) + 7px);border-radius:22px;background:var(--card)}
 .mnav .mn{min-height:58px;border-radius:16px;gap:5px;background:transparent!important;box-shadow:none!important;isolation:isolate}
 .mnav .mn svg{width:20px;height:20px;position:relative;z-index:1}
 .mnav .mn span{position:relative;z-index:1;font-size:9px}
 .mnav .mn.on::after{display:none}
 .mnav .mn::before{content:"";display:block;position:absolute;z-index:0;top:1px;left:50%;width:36px;height:36px;transform:translateX(-50%);border-radius:50%;opacity:0;background:transparent;transition:opacity .18s}
 .mnav .mn.on::before,.mnav .mn[aria-current=page]::before{opacity:1;background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(255,58,58,.12) 62%,rgba(255,5,5,.20));border:1px solid rgba(255,85,85,.18);box-shadow:inset 0 1px 2px rgba(255,255,255,.9),0 2px 8px rgba(220,20,30,.10);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 .mnav .mn.on,.mnav .mn[aria-current=page]{color:var(--t1)}
 .mnav .mn.on svg{color:#d91925}
 html[data-theme=dark] .mnav .mn.on::before{background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,58,58,.12) 62%,rgba(255,5,5,.23));border-color:rgba(255,120,120,.22);box-shadow:inset 0 1px 1px rgba(255,255,255,.25),0 2px 10px rgba(255,5,5,.10)}
 html[data-theme=dark] .mnav .mn.on svg{color:#ff666c}
 .mobile-view-actions{border-top:1px solid var(--hair);margin-top:10px}
 .mobile-view-actions .mm[aria-pressed=true]{background:var(--accent-soft);border-color:rgba(255,5,5,.25)}
 body.mobile-keyboard:not(.embed),body.mobile-keyboard:not(.embed)[data-desk-density]{--nav-h:0px;--mobile-controls-h:0px}
 body.mobile-keyboard:not(.embed) .app{grid-template-rows:minmax(0,1fr);grid-template-areas:"stage"}
}
@media(max-width:767px) and (max-height:600px), (max-width:1024px) and (max-height:500px) and (pointer:coarse){
 body:not(.embed),body:not(.embed)[data-desk-density]{--nav-h:66px;--mobile-controls-h:84px;--bot-h:0px}
 body:not(.embed) .top{grid-template-rows:40px 40px}
 body:not(.embed) .marketbar{height:40px}body:not(.embed) .top .sym-btn{height:38px}
 body:not(.embed) .top #tfBtn{height:38px;min-height:38px}
 body:not(.embed) .top #typeBtn,body:not(.embed) .top #indBtn,body:not(.embed) .top #quickBtn,body:not(.embed) .top #setBtn{height:40px;min-height:40px}
 body:not(.embed) .mnav{height:54px;padding:3px 5px;bottom:calc(env(safe-area-inset-bottom) + 6px)}
 .mnav .mn{min-height:46px;flex-direction:column;gap:2px}.mnav .mn::before{width:30px;height:30px;top:0}.mnav .mn svg{width:17px;height:17px}.mnav .mn span{font-size:8px}
 body.mobile-keyboard:not(.embed),body.mobile-keyboard:not(.embed)[data-desk-density]{--nav-h:0px;--mobile-controls-h:0px}
}
@media(prefers-reduced-motion:reduce){.mnav .mn::before{transition:none}}
