.studio-mode-switch{display:flex;align-items:center;gap:3px;margin-left:18px;padding:4px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:#100d19;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.studio-mode-switch button{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border-radius:9px;background:transparent;color:#8f899b;font-size:11px;font-weight:800;white-space:nowrap;transition:.2s}
.studio-mode-switch button:hover{color:#fff;background:rgba(255,255,255,.05)}
.studio-mode-switch button.active{background:#29233a;color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.25)}
.studio-mode-switch button i{padding:3px 5px;border-radius:5px;background:linear-gradient(135deg,#8a68ff,#ff5daf);color:#fff;font-size:8px;font-style:normal;letter-spacing:.07em}
body.studio-authenticated .topbar{gap:10px;padding-inline:max(16px,calc((100vw - 1360px)/2))}
body.studio-authenticated .brand,body.studio-authenticated .desktop-nav,body.studio-authenticated .account-actions{flex:0 0 auto;min-width:0}
body.studio-authenticated .desktop-nav .nav-link{flex:0 0 auto;padding-inline:16px;white-space:nowrap}
body.studio-authenticated .brand-mascot-shell{flex:0 0 40px}
.pro-nav{display:flex;flex:0 0 auto;width:max-content;max-width:100%;justify-content:center;gap:4px;min-width:0;padding:5px;border-radius:14px;background:rgba(255,255,255,.035);overflow:visible}
.pro-mobile-nav{display:none!important}
.pro-nav::-webkit-scrollbar{display:none}
.pro-nav>button{flex:0 0 auto;min-height:40px;padding:9px 18px;border-radius:10px;background:transparent;color:var(--muted);font-size:16px;font-weight:600;line-height:22px;white-space:nowrap}
.pro-nav>button:hover{background:rgba(255,255,255,.08);color:#fff}
.pro-nav>button.active{background:rgba(255,255,255,.08);color:#fff}
body.studio-pro-mode .topbar{gap:12px;padding-inline:max(16px,calc((100vw - 1360px)/2));border-bottom-color:rgba(152,112,255,.22);background:rgba(12,9,21,.9)}
body.studio-pro-mode #studioProductLabel{color:#dbb0ff}
body.studio-pro-mode .brand,body.studio-pro-mode .studio-mode-switch,body.studio-pro-mode .account-actions{flex:0 0 auto;min-width:0}
body.studio-pro-mode .brand-mascot-shell{flex:0 0 40px}
body.studio-pro-mode .account-actions>*{flex-shrink:0}
.pro-more{position:relative;flex:0 0 auto;color:var(--muted)}
.pro-more summary{display:flex;align-items:center;min-height:40px;padding:9px 18px;border-radius:10px;cursor:pointer;font-size:16px;font-weight:600;line-height:22px;list-style:none;white-space:nowrap}
.pro-more summary::-webkit-details-marker{display:none}
.pro-more summary:after{content:"⌄";margin-left:6px;color:#7f778e;font-size:10px}
.pro-more summary:hover,.pro-more[open] summary,.pro-more.active summary{background:#2a243b;color:#fff}
.pro-more>div{position:absolute;z-index:40;top:calc(100% + 9px);right:0;display:grid;min-width:190px;padding:7px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(18,14,29,.98);box-shadow:0 22px 60px rgba(0,0,0,.45);backdrop-filter:blur(18px)}
.pro-more>div button{width:100%;padding:11px 12px;text-align:left;font-size:14px}
@media(max-width:1280px){.studio-mode-switch{margin-left:4px}.studio-mode-switch button{padding-inline:8px}body.studio-pro-mode .balance-pill #creditUnit{display:none}}
@media(max-width:1280px){body.studio-authenticated:not(.studio-pro-mode) .studio-mode-switch{margin-left:2px}body.studio-authenticated:not(.studio-pro-mode) .studio-mode-switch button{padding-inline:9px}body.studio-authenticated:not(.studio-pro-mode) .desktop-nav .nav-link{padding-inline:13px}}
@media(max-width:1140px){body.studio-authenticated:not(.studio-pro-mode) .brand em{display:none}body.studio-authenticated:not(.studio-pro-mode) .balance-pill #creditUnit{display:none}}
@media(min-width:901px) and (max-width:1060px){body.studio-authenticated:not(.studio-pro-mode) .desktop-nav{position:absolute;top:78px;left:0;width:100%;justify-content:center;border-radius:0;border-bottom:1px solid var(--line);background:#100d19;padding:7px 14px}body.studio-authenticated:not(.studio-pro-mode) main{padding-top:48px}}
@media(max-width:1120px){body.studio-pro-mode .topbar{flex-wrap:nowrap}.studio-mode-switch{margin-left:auto}.studio-mode-switch button{min-height:32px;padding-inline:10px}.pro-nav{position:absolute;top:78px;left:0;width:100%;max-width:none;justify-content:flex-start;border-radius:0;border-bottom:1px solid var(--line);background:#100d19;padding:7px max(14px,calc((100vw - 920px)/2));overflow-x:auto}.pro-nav>button{flex:0 0 auto}.pro-more>div{position:fixed;top:132px;right:18px}.studio-pro-mode main{padding-top:54px}.studio-pro-mode .mobile-nav{display:none!important}}
@media(max-width:700px){body.studio-pro-mode .brand>span:nth-child(2){display:inline}body.studio-pro-mode .brand-mascot-shell{flex-basis:36px;margin-right:7px}body.studio-pro-mode .topbar{gap:6px 10px}.studio-pro-mode .studio-mode-switch{margin-left:0}.studio-pro-mode .account-actions{margin-left:0}.studio-pro-mode main{padding-top:0}.studio-pro-mode .pro-nav{position:fixed;z-index:35;top:auto;right:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:50%;width:min(420px,calc(100% - 20px));height:70px;max-width:none;justify-content:space-around;gap:4px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(20,16,31,.96);box-shadow:0 18px 52px rgba(0,0,0,.5);backdrop-filter:blur(20px);overflow:visible;transform:translateX(-50%)}.studio-pro-mode .pro-nav>button,.studio-pro-mode .pro-more summary{display:grid;min-width:0;min-height:56px;flex:1;place-items:center;align-content:center;gap:3px;padding:6px 8px;border-radius:15px;font-size:10px;line-height:1.15;text-align:center}.studio-pro-mode .pro-nav>button:before,.studio-pro-mode .pro-more summary:before{color:#9f92c2;font-size:18px;line-height:18px}.studio-pro-mode .pro-nav>button[data-pro-page="overview"]:before{content:"⌂"}.studio-pro-mode .pro-nav>button[data-pro-page="projects"]:before{content:"▣"}.studio-pro-mode .pro-nav>button[data-pro-page="production"]:before{content:"✦"}.studio-pro-mode .pro-more{display:flex;min-width:0;flex:1}.studio-pro-mode .pro-more summary{width:100%}.studio-pro-mode .pro-more summary:before{content:"•••";letter-spacing:2px}.studio-pro-mode .pro-more summary:after{display:none}.studio-pro-mode .pro-nav>button.active:before,.studio-pro-mode .pro-more.active summary:before,.studio-pro-mode .pro-more[open] summary:before{color:#fff}.studio-pro-mode .pro-more>div{position:absolute;top:auto;right:0;bottom:calc(100% + 10px);left:auto;width:min(260px,calc(100vw - 28px));min-width:0;padding:8px;border-radius:16px}.studio-pro-mode .pro-more>div button{min-height:44px}.studio-pro-mode .mobile-nav{display:none!important}}
@media(max-width:560px){.studio-mode-switch{gap:2px}.studio-mode-switch button{font-size:10px;padding-inline:8px}.studio-mode-switch button:first-child span{max-width:none;overflow:visible}.studio-pro-mode main{padding-top:0}.studio-pro-mode .pro-nav{top:auto}}
@media(max-width:700px){body.studio-pro-mode #proNav{display:none!important}body.studio-pro-mode .pro-mobile-nav{display:flex!important}body.studio-pro-mode .pro-mobile-nav .pro-more>div{position:absolute;top:auto;right:0;bottom:calc(100% + 10px);left:auto}}

/* Keep the Pro overflow menu inside the same dark product surface. */
body.studio-pro-mode #proMore>div{background:#151120!important;color:#f7f5ff!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 22px 60px rgba(0,0,0,.55)!important;color-scheme:dark}
body.studio-pro-mode #proMore>div button{display:block!important;background:transparent!important;color:#bdb6ca!important;border-radius:10px!important}
body.studio-pro-mode #proMore>div button:hover,body.studio-pro-mode #proMore>div button.active{background:#2a243b!important;color:#fff!important}

/* The mobile Pro dock lives outside the blurred header, so it must be pinned to the visual viewport explicitly. */
@media(max-width:700px){
  body.studio-pro-mode #proMobileNav{position:fixed!important;z-index:100!important;inset:auto auto max(8px,env(safe-area-inset-bottom,0px)) 50%!important;display:flex!important;width:calc(100% - 20px)!important;height:auto!important;max-width:430px!important;margin:0!important;padding:6px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;background:rgba(19,15,30,.94)!important;box-shadow:0 18px 55px rgba(0,0,0,.5)!important;backdrop-filter:blur(20px)!important;overflow:visible!important;transform:translateX(-50%)!important}
  body.studio-pro-mode #proMobileNav>button,body.studio-pro-mode #proMobileNav>.pro-more>summary{display:grid!important;min-width:0!important;min-height:48px!important;flex:1!important;place-items:center!important;align-content:center!important;gap:2px!important;padding:7px 3px!important;border-radius:12px!important;background:transparent!important;color:#777080!important;font-size:9px!important;font-weight:600!important;line-height:1.1!important;box-shadow:none!important}
  body.studio-pro-mode #proMobileNav>button:before,body.studio-pro-mode #proMobileNav>.pro-more>summary:before{color:currentColor!important;font-size:14px!important;line-height:15px!important}
  body.studio-pro-mode #proMobileNav>button[data-view="tools"]:before{content:"◐"!important}
  body.studio-pro-mode #proMobileNav>.pro-more>summary:before{content:"•••"!important;letter-spacing:2px!important}
  body.studio-pro-mode #proMobileNav>button.active,body.studio-pro-mode #proMobileNav>.pro-more.active>summary,body.studio-pro-mode #proMobileNav>.pro-more[open]>summary{background:#2a2340!important;color:#fff!important}
  body.studio-pro-mode #proMobileNav .pro-more>div{position:fixed!important;z-index:110!important;inset:auto 14px calc(82px + env(safe-area-inset-bottom,0px)) 14px!important;width:auto!important;min-width:0!important;padding:7px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:rgba(24,20,35,.97)!important;color:#f7f5ff!important;box-shadow:0 22px 60px rgba(0,0,0,.46)!important;backdrop-filter:blur(18px)!important;color-scheme:dark!important}
  body.studio-pro-mode #proMobileNav .pro-more>div button{display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;min-height:0!important;padding:12px!important;border-radius:12px!important;background:transparent!important;color:#fff!important;text-align:left!important}
  body.studio-pro-mode #proMobileNav .pro-more>div button>span{display:grid!important;width:30px!important;height:30px!important;flex:0 0 30px!important;place-items:center!important;border-radius:10px!important;background:#302744!important;color:#c3b3ff!important}
  body.studio-pro-mode #proMobileNav .pro-more>div button>b{font-size:12px!important}
  body.studio-pro-mode #proMobileNav .pro-more>div button:hover,body.studio-pro-mode #proMobileNav .pro-more>div button.active{background:#2a2340!important;color:#fff!important}
}
