/* AETHRION Workspace v5 */
:root{--aews-bg:#f3f6fb;--aews-ink:#172b43;--aews-muted:#62758b;--aews-line:#dce5ef}
body.ae-shell-on{background:var(--aews-bg)!important;color:var(--aews-ink)!important}
body.ae-shell-on #aethrionFeaturesTrigger,body.ae-shell-on #aethrionExperienceDrawer,body.ae-shell-on #aethrionExperienceBackdrop{display:none!important}
#aeWorkspaceSidebar{position:fixed;z-index:10040;inset:0 auto 0 0;width:264px;padding:20px 14px 16px;background:#fff;border-right:1px solid var(--aews-line);display:flex;flex-direction:column;gap:16px;box-shadow:8px 0 28px #172b4309;font-family:"DM Sans","Segoe UI",sans-serif;color:var(--aews-ink)}
.aews-brand{display:flex;align-items:center;gap:11px;padding:5px 9px 17px;border-bottom:1px solid var(--aews-line)}.aews-logo{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#193b64,#2d6ca7);color:#fff;font:800 19px Manrope,sans-serif}.aews-brand strong{display:block;font:800 14px Manrope,sans-serif;letter-spacing:.12em}.aews-brand small{display:block;margin-top:4px;color:#73859a;font-size:9px;letter-spacing:.1em}
.aews-search{height:40px;border:1px solid var(--aews-line);border-radius:10px;background:#f7f9fc;padding:0 11px;display:flex;align-items:center;gap:8px}.aews-search span{color:#8392a5}.aews-search input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:var(--aews-ink)!important;font-size:12px!important;box-shadow:none!important}
.aews-nav{overflow:auto;min-height:0;flex:1;padding-right:2px;scrollbar-width:thin}.aews-section{padding:12px 9px 6px;color:#91a0b1;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.aews-link{width:100%;min-height:40px;display:flex;align-items:center;gap:10px;padding:9px 10px;margin:2px 0;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#4c6077!important;text-align:left;font-size:12px!important;font-weight:650!important;box-shadow:none!important;cursor:pointer}.aews-link:hover{background:#f3f7fc!important;color:#204f83!important}.aews-link.is-active{background:#eaf2fb!important;border-color:#d9e6f5!important;color:#1e4d82!important}.aews-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#edf2f8;color:#365c86;font-size:13px;flex:0 0 25px}
.aews-footer{border-top:1px solid var(--aews-line);padding:12px 8px 0;display:flex;align-items:center;gap:9px;color:#64788f;font-size:11px}.aews-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#e7eef7;color:#234f84;font-weight:800}.aews-user{min-width:0;flex:1}.aews-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#263d56;font-size:11px}.aews-user small{display:block;margin-top:3px;color:#8493a4;font-size:10px}
#aewsMobileToggle{display:none;position:fixed;z-index:10060;top:12px;left:12px;width:42px;height:42px;border:1px solid #dce5ef;border-radius:12px;background:#fff;color:#244c7d;box-shadow:0 6px 20px #152c4718;font-size:19px}#aewsMobileShade{display:none;position:fixed;inset:0;background:#0a182966;z-index:10030;backdrop-filter:blur(3px)}body.aews-nav-open #aewsMobileShade{display:block}
body.ae-shell-on #dashboardArea{min-height:100vh!important;background:var(--aews-bg)!important}body.ae-shell-on #dashboardArea .dashboard-content-wrapper{box-sizing:border-box!important;width:auto!important;max-width:none!important;margin:0 0 0 264px!important;padding:40px clamp(20px,4vw,64px)!important;min-height:100vh!important}
body.ae-shell-on #aethrionExperienceWelcome{box-sizing:border-box!important;max-width:1080px!important;min-height:calc(100vh - 80px)!important;margin:0 auto!important;padding:clamp(26px,5vw,64px)!important;border:1px solid #e0e8f1!important;border-radius:24px!important;background:linear-gradient(145deg,#fff,#fbfdff 70%,#f1f6fc)!important;box-shadow:0 22px 70px #1d375610!important;color:var(--aews-ink)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;position:relative!important;overflow:hidden!important}
body.ae-shell-on #aethrionExperienceWelcome:after{content:"";position:absolute;right:-100px;top:-110px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,#4a87c226,transparent 68%);pointer-events:none}
body.ae-shell-on .aew-eyebrow{display:flex!important;align-items:center!important;gap:9px!important;color:#59728e!important;font-size:10px!important;font-weight:800!important;letter-spacing:.14em!important}body.ae-shell-on .aew-dot{width:7px!important;height:7px!important;background:#2c9a77!important;border-radius:50%!important}
body.ae-shell-on .aew-greeting{margin:32px 0 10px!important;color:#687d93!important;font-size:14px!important}body.ae-shell-on .aew-name{margin:0!important;color:#142c47!important;font:800 clamp(36px,5.4vw,68px)/1.06 Manrope,"Segoe UI",sans-serif!important;letter-spacing:-.055em!important}body.ae-shell-on .aew-name em{font-style:normal!important;color:#2d639a!important;overflow-wrap:anywhere}body.ae-shell-on .aew-role{display:inline-flex!important;align-self:flex-start!important;margin-top:20px!important;padding:8px 12px!important;border:1px solid #dce7f2!important;border-radius:999px!important;background:#f4f8fc!important;color:#496480!important;font-size:11px!important;font-weight:700!important}
body.ae-shell-on .aew-copy{max-width:600px!important;margin:25px 0 0!important;color:#61758b!important;font-size:15px!important;line-height:1.9!important}body.ae-shell-on .aew-grid,body.ae-shell-on .aew-actions{display:none!important}body.ae-shell-on .aews-home-cta{display:inline-flex;align-items:center;gap:9px;margin-top:34px;padding:13px 17px;border:1px solid #d6e3f1;border-radius:12px;background:#edf4fb;color:#214f83;font-size:12px;font-weight:750}
body.ae-shell-on #dashboardArea .dashboard-header{display:none!important}body.ae-shell-on.aews-home-view #dashboardArea .dashboard-content-wrapper>*:not(#aethrionExperienceWelcome){display:none!important}body.ae-shell-on #dashboardArea .dashboard-content-wrapper>#aethrionExperienceWelcome{display:flex!important}
#splashScreen{background:radial-gradient(ellipse at 50% 34%,#17375a 0%,#0b1728 42%,#07101c 100%)!important}.splash-logo{width:clamp(138px,22vw,184px)!important;height:clamp(138px,22vw,184px)!important;margin-bottom:18px!important;filter:drop-shadow(0 14px 32px #2d7dc240)!important}.splash-logo img{width:100%!important;height:100%!important;object-fit:contain!important;transform:scale(1.12)!important;filter:drop-shadow(0 0 12px #d3e7ff4d)!important}.splash-title{font-size:clamp(27px,5vw,42px)!important;letter-spacing:.2em!important;font-weight:850!important;color:#f5f8fd!important}.splash-sub{color:#b4c6da!important;font-size:12px!important;letter-spacing:.06em!important}.splash-status,.splash-progress-head,.splash-progress-info{color:#a9bdd3!important}.splash-progress-wrap{width:min(340px,calc(100vw - 52px))!important}.splash-progress{height:4px!important;background:#ffffff20!important}.splash-progress-bar{background:linear-gradient(90deg,#6bb4ee,#d9e8f8)!important;box-shadow:0 0 14px #6bb4ee70!important}
@media(max-width:900px){#aewsMobileToggle{display:block}#aeWorkspaceSidebar{transform:translateX(-105%);transition:transform .24s ease;z-index:10050;width:min(290px,84vw);padding-top:68px}body.aews-nav-open #aeWorkspaceSidebar{transform:translateX(0)}body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:0!important;padding:72px 14px 22px!important}body.ae-shell-on #aethrionExperienceWelcome{min-height:calc(100vh - 98px)!important;padding:28px 22px!important;border-radius:18px!important}body.ae-shell-on .aew-name{font-size:clamp(34px,10vw,50px)!important}.splash-logo{width:146px!important;height:146px!important}}@media(max-width:420px){body.ae-shell-on #aethrionExperienceWelcome{padding:24px 18px!important}.aews-brand{padding-bottom:14px}}@media(prefers-reduced-motion:reduce){#aeWorkspaceSidebar{transition:none!important}}
/* Public pages never show the authenticated navigation shell. */
#aeWorkspaceSidebar,#aewsMobileToggle,#aewsMobileShade{display:none!important}
body.ae-shell-on #aeWorkspaceSidebar{display:flex!important}
body.ae-shell-on #aewsMobileShade{display:none!important}
@media(max-width:900px){body.ae-shell-on #aewsMobileToggle{display:block!important}body.ae-shell-on.aews-nav-open #aewsMobileShade{display:block!important}}

/* AETHRION Workspace v5.1 — readability and responsive polish */
body.ae-shell-on #aeWorkspaceSidebar{width:272px;padding:18px 13px 14px;gap:14px}
body.ae-shell-on .aews-brand{padding:5px 8px 16px}
body.ae-shell-on .aews-brand strong{font-size:15px}
body.ae-shell-on .aews-brand small{font-size:9px;line-height:1.5;letter-spacing:.08em}
body.ae-shell-on .aews-search{min-height:42px}
body.ae-shell-on .aews-search input{font-size:13px!important}
body.ae-shell-on .aews-section{font-size:10px;padding:13px 9px 7px;color:#687d94}
body.ae-shell-on .aews-link{min-height:43px;font-size:13px!important;line-height:1.35;padding:9px 10px}
body.ae-shell-on .aews-icon{width:28px;height:28px;flex-basis:28px;font-size:14px}
body.ae-shell-on .aews-footer{font-size:12px;padding-top:13px}
body.ae-shell-on .aews-user strong{font-size:12px}
body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:272px!important;padding:clamp(24px,4vw,56px)!important}
body.ae-shell-on #aethrionExperienceWelcome{max-width:1120px!important;min-height:calc(100dvh - 64px)!important;padding:clamp(26px,5vw,68px)!important;border-radius:22px!important}
body.ae-shell-on .aew-eyebrow{font-size:11px!important;line-height:1.6!important;letter-spacing:.12em!important}
body.ae-shell-on .aew-greeting{font-size:15px!important;line-height:1.7!important}
body.ae-shell-on .aew-name{font-size:clamp(36px,4.7vw,66px)!important;line-height:1.08!important}
body.ae-shell-on .aew-role{font-size:12px!important;line-height:1.5!important}
body.ae-shell-on .aew-copy{font-size:clamp(14px,1.15vw,17px)!important;line-height:1.8!important;max-width:660px!important}
body.ae-shell-on .aews-home-cta{font-size:13px!important;line-height:1.6!important}
body.ae-shell-on #aewsMobileToggle{border-radius:12px!important}
@media(max-width:900px){
 body.ae-shell-on #aeWorkspaceSidebar{width:min(310px,86vw);padding:66px 13px 14px!important}
 body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:0!important;padding:70px 14px 20px!important}
 body.ae-shell-on #aethrionExperienceWelcome{min-height:calc(100dvh - 92px)!important;padding:clamp(22px,5vw,34px)!important;border-radius:18px!important}
 body.ae-shell-on .aew-name{font-size:clamp(32px,8.8vw,48px)!important;line-height:1.1!important}
 body.ae-shell-on .aew-greeting{font-size:14px!important;margin-top:25px!important}
 body.ae-shell-on .aew-copy{font-size:14px!important;line-height:1.8!important;margin-top:20px!important}
 body.ae-shell-on .aew-role{font-size:11px!important;white-space:normal!important}
 body.ae-shell-on .aews-link{min-height:46px;font-size:13px!important}
}
@media(max-width:420px){
 body.ae-shell-on #aethrionExperienceWelcome{padding:22px 17px!important}
 body.ae-shell-on .aew-name{font-size:clamp(30px,8.4vw,38px)!important}
 body.ae-shell-on .aew-eyebrow{font-size:9px!important;letter-spacing:.08em!important}
 body.ae-shell-on .aew-copy{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){
 body.ae-shell-on *,body.ae-shell-on *:before,body.ae-shell-on *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
/* AETHRION Workspace v6 — predictable feature navigation, clean home, responsive controls */
body.ae-shell-on.aews-home-view #dashboardArea .dashboard-content-wrapper>#aethrionExperienceWelcome{display:flex!important}
body.ae-shell-on.aews-feature-view #aethrionExperienceWelcome{display:none!important}
body.ae-shell-on.aews-feature-view #dashboardArea .dashboard-header{display:none!important}
body.ae-shell-on #aeWorkspaceSidebar{width:276px!important;max-width:86vw;gap:12px!important}
body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:276px!important;padding:clamp(22px,3vw,48px)!important}
body.ae-shell-on .aews-nav{padding:0 3px 8px 0;overscroll-behavior:contain}
body.ae-shell-on .aews-link{min-height:44px!important;font-size:13px!important;line-height:1.35!important;white-space:normal!important}
body.ae-shell-on .aews-link span:last-child{min-width:0;overflow-wrap:anywhere}
body.ae-shell-on .aews-close{display:none;width:36px;height:36px;flex:0 0 36px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#344d68;font-size:22px}
body.ae-shell-on .aews-brand{min-width:0}
body.ae-shell-on #aewsMobileToggle{min-width:44px;min-height:44px;touch-action:manipulation}
body.ae-shell-on #aewsMobileShade{touch-action:manipulation}
body.ae-shell-on :is(button,a,[role="button"],input,select,textarea){touch-action:manipulation}
body.ae-shell-on .aews-link:focus-visible,body.ae-shell-on #aewsMobileToggle:focus-visible,body.ae-shell-on .aews-close:focus-visible{outline:3px solid #75a8dc!important;outline-offset:2px!important}
@media(max-width:900px){
 body.ae-shell-on #aeWorkspaceSidebar{width:min(320px,88vw)!important;padding:64px 12px 14px!important}
 body.ae-shell-on #aeWorkspaceSidebar .aews-close{display:block}
 body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:0!important;padding:70px 14px 20px!important}
 body.ae-shell-on #aethrionExperienceWelcome{min-height:calc(100dvh - 92px)!important}
}
@media(max-width:480px){
 body.ae-shell-on #aeWorkspaceSidebar{width:min(300px,88vw)!important}
 body.ae-shell-on .aews-link{min-height:46px!important;font-size:14px!important}
 body.ae-shell-on .aews-section{font-size:10px!important}
 body.ae-shell-on #aethrionExperienceWelcome{padding:22px 16px!important}
 body.ae-shell-on .aew-name{font-size:clamp(30px,8.5vw,40px)!important;line-height:1.12!important;overflow-wrap:anywhere}
 body.ae-shell-on .aew-copy{font-size:14px!important;line-height:1.75!important}
}
/* Workspace v6 final cascade: prevent the legacy shell from competing with the active shell. */
body.ae-shell-on #aeWorkspaceSidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:10050!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#fff!important;border-right:1px solid #dce5ef!important;color:#172b43!important;box-shadow:8px 0 28px rgba(23,43,67,.06)!important}
body.ae-shell-on #aeWorkspaceSidebar .aews-brand{display:flex!important;align-items:center!important;gap:11px!important}
body.ae-shell-on #aeWorkspaceSidebar .aews-nav{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
body.ae-shell-on #aeWorkspaceSidebar .aews-link{display:flex!important;align-items:center!important;width:100%!important;box-sizing:border-box!important}
body.ae-shell-on.aews-home-view #dashboardArea .dashboard-content-wrapper>*:not(#aethrionExperienceWelcome){display:none!important}
body.ae-shell-on.aews-home-view #dashboardArea .dashboard-content-wrapper>#aethrionExperienceWelcome{display:flex!important}
body.ae-shell-on.aews-feature-view #aethrionExperienceWelcome{display:none!important}
body.ae-shell-on.aews-feature-view #dashboardArea .dashboard-content-wrapper>*:not(#aethrionExperienceWelcome){display:none!important}
body.ae-shell-on.aews-feature-view #dashboardArea .dashboard-content-wrapper>.aews-active-feature{display:block!important}
body.ae-shell-on #aewsMobileToggle{z-index:10060!important;display:none;align-items:center;justify-content:center}
body.ae-shell-on #aewsMobileShade{z-index:10030!important}
@media(max-width:900px){
 body.ae-shell-on #aeWorkspaceSidebar{transform:translateX(-105%)!important;transition:transform .22s ease!important;width:min(320px,88vw)!important}
 body.ae-shell-on.aews-nav-open #aeWorkspaceSidebar{transform:translateX(0)!important}
 body.ae-shell-on #aewsMobileToggle{display:flex!important}
 body.ae-shell-on #aewsMobileShade{display:none!important}
 body.ae-shell-on.aews-nav-open #aewsMobileShade{display:block!important}
 body.ae-shell-on #dashboardArea .dashboard-content-wrapper{margin-left:0!important;padding:70px 14px 20px!important}
}
@media(prefers-reduced-motion:reduce){body.ae-shell-on #aeWorkspaceSidebar{transition:none!important}}
