@import url('./mobile-orb-motion.css');
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}html{scrollbar-gutter:stable}body{min-height:100vh}#dashboard{width:100%;max-width:100%;overflow:hidden;position:relative}.world{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:flat;transform-origin:top left}.scene,#energy,.orbit,.gold:after{backface-visibility:hidden;-webkit-backface-visibility:hidden}.scene{transform:translate3d(0,0,0)}#energy{transform:translate3d(0,0,0)}@media(min-width:801px){body{min-width:0}#dashboard{contain:layout paint;isolation:isolate}.world{will-change:transform}.scene,#energy{will-change:auto}}@media(max-width:800px){.scene{background-image:url('./assets/scene.svg')!important;background-position:center top!important;background-size:auto 760px!important}}@media(prefers-reduced-motion:reduce){.orbit,.gold:after{animation:none!important}}

/* One isolated mobile orb; the desktop wallpaper contains another baked-in orb. */
@media(max-width:800px){
 .scene{background-image:none!important;background:#030609!important}
 .world{background:radial-gradient(ellipse at 50% 340px,#122136 0,transparent 430px)}
 .world .hero:before{width:350px;height:280px;left:50%;top:116px;background-position:-382px -55px;mask-image:radial-gradient(ellipse,#000 38%,transparent 70%);-webkit-mask-image:radial-gradient(ellipse,#000 38%,transparent 70%)}
 .topbar{left:66px;right:14px;gap:8px}
 .topbar #search-form{width:auto;min-width:0;flex:1}
 .utilities{flex-shrink:0}
 .mobile-menu{top:17px;left:14px;height:36px;width:40px;padding:6px}
 .hero-copy{left:4px}
 .hero h1{font-size:28px}
 .assistant{position:relative}
}

@media(max-width:800px){
 .assistant{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;height:auto!important;margin:0!important;transform:none!important}
 .performance{position:relative;left:auto;top:auto;height:auto!important;min-height:230px;padding-bottom:18px;overflow:hidden}
 .performance .chart-empty.live{height:auto!important;min-height:170px}
 .performance .chart-empty:not(.live){height:58px}
 .lower-grid{margin:0!important}
}

/* Keep navigation in its own scroll region; footer cards must not cover actions. */
.sidebar{display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}
.sidebar>.brand{flex:0 0 auto}
.sidebar #main-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-width:thin;overscroll-behavior:contain;padding-bottom:8px}
.sidebar .sidebar-bottom{position:static;flex:0 0 auto;margin:16px 14px 24px 15px}

@media(max-width:800px){
 .studio .panel-title{flex-wrap:wrap;align-items:flex-start;gap:10px}
 .studio .panel-title>div{flex:1 1 calc(100% - 40px);min-width:0}
 .studio .panel-title>button{flex:0 0 auto;max-width:100%;white-space:normal}
}

/* Leave intrinsic space for both studio actions on narrow desktop cards too. */
.studio .panel-title{flex-wrap:wrap;align-items:center;gap:10px}
.studio .panel-title>div{flex:1 1 150px;min-width:0}
.studio .panel-title>button{flex:0 0 auto;max-width:100%}
@media(max-width:800px){.studio .panel-title>div{flex-basis:calc(100% - 40px)}}
