/* Vexorium cosmic amethyst theme: decoration only, no layout or behavior changes. */
html{min-height:100%;background:#12051e}
body{min-height:100vh;color:#f5efff;background:#12051e no-repeat center / 100% 100%;
 background-image:radial-gradient(ellipse at 0% 55%,#7726a24f,transparent 64%),
 radial-gradient(ellipse at 100% 52%,#7726a25a,transparent 62%),url("/vexorium-cosmic-bg.svg");}
main>section{background:linear-gradient(145deg,rgba(27,13,42,.95),rgba(21,10,33,.94));border-color:#7b4199;box-shadow:0 0 0 1px #9e4fc01c,0 10px 30px #07020b80}
.project-dashboard{background:linear-gradient(145deg,rgba(29,11,44,.94),rgba(19,8,30,.96))!important;border:1px solid #b75fe0!important;box-shadow:0 0 24px #a838e03b,0 0 2px #dba0ff,0 15px 40px #050109aa!important}
.project-dashboard .dashboard-heading .dashboard-symbol{filter:drop-shadow(0 0 8px #ad52fa)}
.project-grid .project-card,.project-grid [class*="project-card"]{border-color:#9e53c6;box-shadow:0 0 12px #aa3dce24}
.project-grid .project-card.selected,.project-grid .project-card[aria-pressed="true"]{border-color:#d779ff;box-shadow:0 0 0 2px #a946e6,0 0 18px #bd46f980}
.project-dashboard button:not(.danger),.project-dashboard .file-btn{border-color:#a967dc}
.project-dashboard button.primary,.project-dashboard .file-btn{background:linear-gradient(125deg,#6f3eb3,#a442eb);color:#fff}
#studioNavToggle{background:linear-gradient(135deg,#3c2059,#261538);border-color:#c17aef;box-shadow:0 0 15px #b24de857,0 5px 18px #07020c}
#studioNavDrawer{background:linear-gradient(145deg,#261239,#160d26);border-right-color:#b667db}
#studioNavLinks button[aria-current="page"]{background:#603779;border-color:#d18af6;box-shadow:inset 0 0 10px #bc6be41c}


main>section{background:linear-gradient(145deg,rgba(26,8,42,.88),rgba(20,7,32,.9))!important}
.project-dashboard{background:linear-gradient(145deg,rgba(30,7,47,.87),rgba(18,5,29,.91))!important;border-color:#d16aff!important;box-shadow:0 0 4px #e78cff,0 0 23px #b12bff8c,0 0 65px #a822e533!important}
.project-grid .project-card.selected,.project-grid .project-card[aria-pressed="true"]{box-shadow:0 0 0 2px #d46aff,0 0 22px #c64effad!important}


/* One raster layer keeps the complete composition visible within the compact sticky bar. */
header{
 position:sticky;top:0;z-index:20;isolation:isolate;
 padding:12px 16px 12px 66px;min-height:0;height:auto;overflow:hidden;
 background:#180625 url("/vexorium-header.webp") center / 100% 100% no-repeat;
 border-bottom:1px solid #b64be0;box-shadow:0 4px 14px #5c208c80;
}
header h1,header .studio-nav{position:relative;text-shadow:0 2px 4px #0a0215,0 0 12px #10031c}
header h1{font-size:clamp(15px,4.25vw,20px)}
@media(min-width:650px){header{background-position:right center;background-size:cover}}

/* Selected project actions stay within reach while browsing the library. */
.project-dashboard.has-selected-project{padding-bottom:calc(128px + env(safe-area-inset-bottom))}
#projectManagement:not([hidden]){position:fixed;z-index:12;inset:auto 0 0;margin-inline:auto;width:min(100%,38rem);box-sizing:border-box;padding:9px 12px max(9px,env(safe-area-inset-bottom));border:1px solid #a962df;border-radius:16px 16px 0 0;background:#251138;box-shadow:0 -5px 28px #23062fbd}
#managedProjectName{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#projectManagement .project-actions{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:6px;margin:4px 0 0}
#projectManagement button,#projectManageSheet button{min-height:44px}
#projectManageSheet{position:fixed;inset:auto 0 0;margin:0 auto;box-sizing:border-box;width:min(100%,38rem);max-width:none;max-height:80dvh;overflow:auto;padding:14px 14px max(14px,env(safe-area-inset-bottom));color:#f9edff;background:#201031;border:1px solid #ab66de;border-radius:20px 20px 0 0}
#projectManageSheet::backdrop{background:#090511b8}
#projectManageSheet header{position:static;display:flex;align-items:center;justify-content:space-between;padding:0;background:none}
#productionAutopilot{scroll-margin-top:90px}
#productionAutopilotVideo:not([hidden]){display:block;width:min(100%,20rem);max-height:60dvh;margin:12px auto}
