/* Mountain sky belongs to the navigation surfaces, not the entire page. */
#dashboard:not(.hidden) .approved-hero,body:has(#app-panels) .workspace-head,body[data-page="trading"] .trade-head,body:has(.scheduler-shell) .scheduler-topbar{position:relative;isolation:isolate;background:linear-gradient(180deg,rgba(0,7,26,.10),rgba(0,9,30,.38) 64%,#031027 100%),url('/login-mountains.svg?v=1') center 38%/cover no-repeat!important;border:0!important;box-shadow:none!important;overflow:hidden}
#dashboard:not(.hidden) .approved-hero{padding-top:14px!important;padding-bottom:16px!important;border-radius:0 0 16px 16px}
body:has(#app-panels) .workspace-head,body[data-page="trading"] .trade-head,body:has(.scheduler-shell) .scheduler-topbar{min-height:100px!important;border-radius:0 0 16px 16px;padding:12px!important;box-sizing:border-box}
#dashboard:not(.hidden) .approved-hero::before,body:has(#app-panels) .workspace-head::before,body[data-page="trading"] .trade-head::before,body:has(.scheduler-shell) .scheduler-topbar::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#020b22a6,transparent 85%)}
#dashboard:not(.hidden) .bottom-nav,body .reference-bottom,body .unified-bottom{background:linear-gradient(0deg,#02091cf7 0%,#031329e8 55%,#092550cf 100%),url('/login-mountains.svg?v=1') center 80%/100% auto no-repeat!important;border-color:#245b98!important;box-shadow:0 -8px 22px #00152b9c,inset 0 1px 0 #5a9ddd35!important}
#dashboard:not(.hidden) .bottom-nav>* ,body .reference-bottom a,body .unified-bottom a{position:relative;z-index:1}
/* v2: make the mountain horizon actually visible inside each navigation region. */
#dashboard:not(.hidden) .approved-hero{background-image:linear-gradient(180deg,rgba(0,6,26,.15) 0%,rgba(0,9,28,.12) 50%,rgba(0,9,28,.20) 100%),url('/login-mountains.svg?v=1')!important;background-size:100% 100%,100% 100%!important;background-position:center,center!important;background-repeat:no-repeat!important}
#dashboard:not(.hidden) .approved-hero::before{background:linear-gradient(90deg,rgba(0,5,25,.55),rgba(0,5,25,.1))!important}
#dashboard:not(.hidden) .bottom-nav{background-image:linear-gradient(0deg,rgba(1,8,27,.80),rgba(2,12,36,.30)),url('/login-mountains.svg?v=1')!important;background-size:100% 100%,100% 340%!important;background-position:center,bottom center!important;background-repeat:no-repeat!important}
/* v3: use the actual approved photographic mountain landscape, never the placeholder SVG. */
#dashboard:not(.hidden) .approved-hero{background-image:linear-gradient(90deg,rgba(0,7,26,.73),rgba(0,9,30,.25)),url('/login-approved.png?v=4')!important;background-size:100% 100%,100% 650%!important;background-position:center,center 68%!important;background-repeat:no-repeat!important}
#dashboard:not(.hidden) .approved-hero::before{background:linear-gradient(180deg,rgba(0,5,22,.24),rgba(0,5,22,.10) 70%,rgba(0,5,22,.50))!important}
#dashboard:not(.hidden) .bottom-nav{background-image:linear-gradient(0deg,rgba(0,7,23,.90),rgba(0,9,28,.55)),url('/login-approved.png?v=4')!important;background-size:100% 100%,100% 1200%!important;background-position:center,center 70%!important;background-repeat:no-repeat!important}
/* v4: consistent approved landscape and surfaces on all feature screens. */
body:has(.workspace-head) .workspace-head,body:has(.trade-head) .trade-head,body:has(.scheduler-topbar) .scheduler-topbar{background-image:linear-gradient(90deg,rgba(0,7,26,.73),rgba(0,9,30,.25)),url('/login-approved.png?v=4')!important;background-size:100% 100%,100% 650%!important;background-position:center,center 68%!important;background-repeat:no-repeat!important;min-height:140px!important;display:flex;align-items:center;border-radius:0 0 16px 16px!important;overflow:hidden}
body:has(.workspace-head) .workspace-head::before,body:has(.trade-head) .trade-head::before,body:has(.scheduler-topbar) .scheduler-topbar::before{background:linear-gradient(180deg,rgba(0,5,22,.24),rgba(0,5,22,.10) 70%,rgba(0,5,22,.50))!important}
body:has(.workspace-head) .workspace-hero,body:has(.trade-head) .trade-card,body:has(.scheduler-topbar) .scheduler-head{background:linear-gradient(145deg,#071c38f2,#061029f2)!important;border:1px solid #23558c!important;border-radius:18px!important;color:#f4f8ff!important;box-shadow:0 6px 22px #00091d66!important}
body:has(.workspace-head) .workspace,body:has(.trade-head) .trade-shell,body:has(.scheduler-topbar) .scheduler-shell{background:linear-gradient(180deg,#020b21,#030a1c)!important;color:#f4f8ff!important}
body:has(.workspace-head) .reference-bottom,body:has(.trade-head) .reference-bottom,body:has(.scheduler-topbar) .reference-bottom,body:has(.workspace-head) .bottom-nav,body:has(.trade-head) .bottom-nav,body:has(.scheduler-topbar) .bottom-nav{background-image:linear-gradient(0deg,rgba(0,7,23,.90),rgba(0,9,28,.55)),url('/login-approved.png?v=4')!important;background-size:100% 100%,100% 1200%!important;background-position:center,center 70%!important;background-repeat:no-repeat!important;border:1px solid #245b98!important;border-radius:22px!important}
/* Shared dimensions for every tab, matching the approved home screen. */
@media(max-width:800px){
body:has(.trade-head) .trade-shell,body:has(.workspace-head) .workspace,body:has(.scheduler-topbar) .scheduler-shell{width:100%!important;max-width:100%!important;margin:0!important;padding:0 16px 112px!important;box-sizing:border-box!important}
body:has(.trade-head) .trade-head,body:has(.workspace-head) .workspace-head,body:has(.scheduler-topbar) .scheduler-topbar{width:100%!important;min-height:0!important;height:194px!important;margin:0 0 16px!important;padding:16px!important;box-sizing:border-box!important;border-radius:0!important;background-size:100% 100%,cover!important;background-position:center,center 48%!important}
body:has(.trade-head) .trade-head .brand img,body:has(.workspace-head) .workspace-head .brand img{width:62px!important;height:62px!important;object-fit:contain!important;border-radius:50%!important}
body:has(.trade-head) .trade-head .brand strong,body:has(.workspace-head) .workspace-head .brand strong{font-size:1.25rem!important;line-height:1.1!important}
body:has(.trade-head) .reference-bottom,body:has(.workspace-head) .reference-bottom,body:has(.scheduler-topbar) .reference-bottom,body:has(.trade-head) .unified-bottom,body:has(.workspace-head) .unified-bottom{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;min-height:76px!important;box-sizing:border-box!important;margin:0!important}
}
/* v6 corrective patch: prevent the giant login poster appearing in app headers. */
@media(max-width:800px){
body:has(.trade-head) .trade-head,body:has(.workspace-head) .workspace-head,body:has(.scheduler-topbar) .scheduler-topbar{height:154px!important;min-height:154px!important;max-height:154px!important;background-image:linear-gradient(90deg,rgba(0,7,26,.55),rgba(0,9,30,.24)),url('/login-mountains.svg?v=1')!important;background-size:100% 100%,cover!important;background-position:center,center 42%!important;background-repeat:no-repeat!important}
body:has(.trade-head) .trade-head .brand,body:has(.workspace-head) .workspace-head .brand{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
body:has(.trade-head) .trade-head .brand img,body:has(.workspace-head) .workspace-head .brand img{flex:0 0 56px!important;width:56px!important;height:56px!important;object-fit:contain!important}
body:has(.trade-head) .trade-head .brand strong,body:has(.workspace-head) .workspace-head .brand strong{font-size:1.16rem!important;max-width:190px!important;overflow-wrap:break-word!important}
}
/* v7: one navigation geometry, identical to approved dashboard across routes */
@media(max-width:800px){
body .bottom-nav,body .reference-bottom,body .unified-bottom{position:fixed!important;left:0!important;right:0!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:100%!important;max-width:none!important;height:72px!important;min-height:72px!important;padding:5px 7px!important;margin:0!important;transform:none!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;border-radius:22px!important;z-index:999!important}
body .bottom-nav button,body .bottom-nav a,body .reference-bottom a,body .unified-bottom a{min-width:0!important;min-height:60px!important;height:60px!important;padding:3px 1px!important;box-sizing:border-box!important;border-radius:17px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:11px!important;line-height:1.15!important}
body .bottom-nav button span,body .bottom-nav a span,body .reference-nav-icon,body .unified-nav-icon{font-size:23px!important;line-height:1!important}
body .bottom-nav button small{font-size:11px!important;line-height:1.15!important}
}
/* v8: restore compact original dashboard proportions everywhere */
@media(max-width:800px){
body .bottom-nav,body .reference-bottom,body .unified-bottom{height:64px!important;min-height:64px!important;max-height:64px!important;left:4px!important;right:4px!important;width:calc(100% - 8px)!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;padding:4px!important;gap:2px!important;border-radius:20px!important;background-image:linear-gradient(180deg,rgba(2,12,34,.36),rgba(2,9,29,.68)),url('/login-mountains.svg?v=1')!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
body .bottom-nav button,body .bottom-nav a,body .reference-bottom a,body .unified-bottom a{height:54px!important;min-height:54px!important;max-height:54px!important;padding:2px 1px!important;gap:1px!important;border-radius:15px!important;font-size:10px!important}
body .bottom-nav button span,body .bottom-nav a span,body .reference-nav-icon,body .unified-nav-icon{font-size:21px!important}
body .bottom-nav button small{font-size:10px!important}
body:has(.workspace-head) .workspace-head,body:has(.trade-head) .trade-head,body:has(.scheduler-topbar) .scheduler-topbar{background-image:linear-gradient(90deg,rgba(0,7,26,.34),rgba(0,9,30,.18)),url('/login-mountains.svg?v=1')!important;background-size:100% 100%,cover!important;background-position:center!important;background-repeat:no-repeat!important}
}
/* v9: align secondary-route icon/label group with approved dashboard; leave home untouched. */
@media(max-width:800px){
body .reference-bottom a,body .unified-bottom a{justify-content:flex-end!important;padding-top:3px!important;padding-bottom:4px!important;gap:3px!important}
body .reference-bottom a .reference-nav-icon,body .unified-bottom a .unified-nav-icon{display:flex!important;align-items:center!important;justify-content:center!important;height:26px!important;min-height:26px!important;line-height:1!important;margin:0!important}
body .reference-bottom a>span:last-child,body .unified-bottom a>span:last-child{display:block!important;line-height:14px!important;margin:0 0 2px!important}
}
