/* Hosted menus use the workspace viewport while preserving the original iframe. */
html:is(.modal-hosted,.popover-hosted)[data-theme],html:is(.modal-hosted,.popover-hosted)[data-theme] body{background:transparent!important;background-image:none!important}
html.popover-hosted #app{visibility:hidden!important;pointer-events:none}
html.popover-hosted #toast{z-index:1100}
body.has-panel-modal #app,body.has-panel-modal .stage.portal-escape,body.has-panel-modal .slot-card.portal-escape{overflow:visible!important}
body.has-panel-modal .stage.portal-escape{z-index:10001}
/* Keep black chart surfaces, with a quiet separator between layout panels. */
html[data-theme=dark] body:not(.embed) .stage.expanded-layout:not(.is-focused):not(.lay-1){gap:5px!important;background-color:#080808!important}
html[data-theme=dark] body:not(.embed) .stage.expanded-layout:not(.is-focused):not(.lay-1)>.card{border:1px solid rgb(255 255 255 / .16)!important;outline:0!important;box-shadow:none!important}
html[data-theme=dark] body:not(.embed) .stage.expanded-layout:not(.is-focused):not(.lay-1)>.card.panel-active{border-color:rgb(255 255 255 / .38)!important}
@media(max-width:767px),(max-width:1024px) and (max-height:500px) and (pointer:coarse){html[data-theme=dark] body:not(.embed) .stage.expanded-layout:not(.is-focused):not(.lay-1){gap:3px!important}}
