/* Shared signed-in DAXON layout. All workspaces use the same header, rail and canvas. */
.academy-header-search-wrap:empty{display:none}
body.app-theme{background:linear-gradient(135deg,#e7d5fb,#dfdaf4);--academy-purple:#3e225b;--academy-soft:#f5f4f7}
.app-theme .app-layout{--rail:80px;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);grid-template-rows:110px minmax(0,1fr);gap:0;margin:20px;padding:0;min-height:calc(100dvh - 40px);border:0;border-radius:22px;background:#3e225b;box-shadow:0 12px 40px #32174716;isolation:isolate}
.app-theme .app-layout.nav-expanded{--rail:225px}
.app-theme .academy-topbar{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:40;height:110px;display:flex;align-items:center;gap:24px;padding:0 20px;background:#3e225b;border:0;border-radius:22px 22px 0 0;overflow:visible}
.app-theme .academy-brand-area{display:flex;align-items:center;gap:18px;flex:0 0 230px;min-width:0}
.app-theme .academy-topbar .menu-trigger{position:static;inset:auto;display:inline-flex;flex:0 0 40px;width:40px;height:40px;padding:9px;margin:0;border:0;border-radius:12px;color:white;background:#ffffff12}
.app-theme .academy-topbar .workspace-brand{position:static;inset:auto;display:inline-flex;flex:none;padding:0;margin:0;background:none}
.app-theme .academy-topbar .workspace-brand .brand{width:145px;height:auto;max-width:none;filter:brightness(0) invert(1)}
.app-theme .academy-topbar .breadcrumb{display:none}
.app-theme .academy-header-search-wrap{flex:1;min-width:0;max-width:620px;margin:auto}
.app-theme .academy-header-search{display:flex;align-items:center;gap:12px;border-radius:30px;background:#faf9fc;color:#a39aa9;padding:6px 10px 6px 20px;min-width:0;margin:0}
.app-theme .academy-header-search input{min-width:0;width:100%;border:0;background:transparent;box-shadow:none;padding:8px 0;color:#352742;font-size:13px;margin:0}
.app-theme .academy-header-search button{background:transparent;color:#71498b;border:0;padding:7px;border-radius:50%;flex:none}
.app-theme .academy-header-search>.icon{width:18px;height:18px}
.app-theme .topbar-actions{margin-left:auto;flex:none}
.app-theme .topbar-actions .icon-button{background:#ffffff12;color:white;border-color:#ffffff28;border-radius:50%}
.app-theme .avatar{background:#795198;border-color:#e6c9f1}
.app-theme .sidebar{grid-column:1;grid-row:2;position:sticky;inset:auto;top:110px;align-self:start;width:var(--rail);height:calc(100dvh - 150px);min-height:400px;padding:24px 0 18px 12px;transform:none;visibility:visible;pointer-events:auto;background:linear-gradient(#3e225b 65%,#542257);border:0;border-radius:0 0 32px 22px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;z-index:20}
.app-theme .sidebar::-webkit-scrollbar{display:none}
.app-theme .sidebar>.logo-link,.app-theme .sidebar>.eyebrow,.app-theme .sidebar>.nav-label{display:none}
.app-theme .sidebar nav{display:grid;gap:8px;padding:0;margin:0;overflow:visible}
.app-theme .sidebar nav a{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:0;min-height:44px;padding:11px 12px;margin:0;font-size:0;line-height:0;border-radius:24px 0 0 24px;color:#f8f3fb;overflow:visible}
.app-theme .sidebar nav a>.icon{width:21px;height:21px;flex:none}
.app-theme .sidebar nav a span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app-theme .sidebar nav a.active,.app-theme .sidebar nav a.active:hover{background:#f5f4f7;color:#4c245f;border-radius:24px 0 0 24px;padding-right:12px;box-shadow:none;z-index:2}
.app-theme .sidebar nav a.active:before,.app-theme .sidebar nav a.active:after{content:"";display:block;position:absolute;right:0;width:16px;height:16px;pointer-events:none;border:0;border-radius:0;box-shadow:none}
.app-theme .sidebar nav a.active:before{top:-16px;background:radial-gradient(circle at 0 0,transparent 16px,#f5f4f7 16.3px)}
.app-theme .sidebar nav a.active:after{bottom:-16px;background:radial-gradient(circle at 0 100%,transparent 16px,#f5f4f7 16.3px)}
.app-theme .sidebar{display:flex;flex-direction:column;overflow:hidden}
.app-theme .sidebar>nav{flex:1;min-height:0;align-content:start;overflow-y:auto;overflow-x:hidden;padding-top:16px;margin-top:-16px;scrollbar-width:none}
.app-theme .nav-expanded .sidebar>.eyebrow,.app-theme .nav-expanded .sidebar>.nav-label{display:none}
.app-theme .sidebar-bottom{margin-top:auto;padding:16px 12px 0 0;flex:none}
.app-theme .sidebar-bottom .member{justify-content:center;padding:14px 0;border:0}
.app-theme .sidebar-bottom .member>div{display:none}
.app-theme .sidebar-bottom>a{font-size:0;line-height:0;gap:0;flex-direction:row;justify-content:center;padding:12px;min-height:44px;border:0;background:none;box-shadow:none}
.app-theme .sidebar .admin-nav-group{padding-top:12px;margin-top:12px}
.app-theme .sidebar .admin-nav-group h2{font-size:0;line-height:0;margin:0}
.app-theme .nav-expanded .sidebar{padding-right:0}
.app-theme .nav-expanded .sidebar nav a{justify-content:flex-start;gap:12px;font-size:12px;line-height:1.3;padding:12px}
.app-theme .nav-expanded .sidebar nav a span{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
.app-theme .nav-expanded .sidebar-bottom>a{font-size:12px;line-height:1.3;justify-content:flex-start;gap:10px}
.app-theme .nav-expanded .sidebar .admin-nav-group h2{font-size:10px;line-height:1.4;margin:0 0 8px}
.app-theme .app-main{grid-column:2;grid-row:2;min-width:0;width:auto;margin:0;min-height:calc(100dvh - 150px);background:#f5f4f7;border-radius:0 0 22px 0;overflow:clip}
.app-theme .workspace{padding:28px clamp(20px,2.6vw,40px) 40px;max-width:none;min-width:0}
.app-theme .heading h1{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.035em}
.app-theme .heading p{font-size:13px;color:#877e90}
.app-theme .panel{border:1px solid #dedbe3;background:#fff;border-radius:12px;box-shadow:0 2px 5px #23142f04}
.app-theme .panel-head{padding-bottom:14px;border-color:#eeeaf1;margin-bottom:16px}
.app-theme .panel-head h2{font-size:17px}
.app-theme .primary{background:#4b255f;border-color:#4b255f;box-shadow:none;border-radius:9px;color:white}
.app-theme .outline{background:white;border-color:#ddd3e5;color:#5c3274;border-radius:9px}
.app-theme .tabs{gap:6px;flex-wrap:wrap;background:transparent;padding:0;margin-bottom:22px}
.app-theme .tabs>button{border-radius:9px;border:1px solid #ded8e4;background:#fff;color:#75677f;font-size:12px;padding:10px 13px}
.app-theme .tabs>button.active{background:#4b255f;color:white;border-color:#4b255f}
.app-theme input,.app-theme select,.app-theme textarea{border-radius:9px;background:#fbfafc;border-color:#e2dce7}
.app-theme .student-shortcut{border-radius:12px;box-shadow:none;background:white;border-color:#e1dbe7}
.app-theme .student-course-hero{border-radius:14px;box-shadow:none}
.app-theme .student-coursework .panel,.app-theme .student-bento .panel{border-radius:12px}
.app-theme .department-tools,.app-theme .service-navigation a{border-radius:10px}
.app-theme .academy-community{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(320px,1.75fr) minmax(220px,.95fr);gap:16px;align-items:start;min-width:0}
.app-theme .academy-community>*,.app-theme .academy-community .panel{min-width:0}
.app-theme .academy-community .panel{padding:18px;margin-bottom:16px}
.app-theme .academy-room-list{display:grid;gap:6px;margin-top:16px}
.app-theme .academy-room-list button{border:0;background:transparent;color:#5c4d68;padding:13px 10px;justify-content:flex-start;text-align:left;gap:12px;font-size:13px;border-radius:9px;white-space:normal}
.app-theme .academy-room-list button.active{background:#f0e8f5;color:#4b255f}
.app-theme .academy-room-list small{display:block;font-weight:400;margin-top:4px;font-size:11px;color:#938599}
.app-theme .academy-room-list .icon{width:20px;height:20px}
.app-theme .academy-conversation{padding:0!important;overflow:hidden}
.app-theme .academy-conversation-head{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #e6e0eb}
.app-theme .academy-conversation-head h2{font-size:17px;margin:0 0 4px}
.app-theme .academy-conversation-head p{font-size:11px;color:#a097a8;margin:0}
.app-theme .academy-person-mark{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#e9dcef;color:#63377c;font-size:12px;font-weight:700}
.app-theme .academy-chat-privacy{padding:10px 20px;margin:0;font-size:10px;color:#a093aa;background:#fcfafc;border-bottom:1px solid #f1edf4}
.app-theme .academy-conversation .messages{display:flex;flex-direction:column;gap:18px;padding:24px 20px;max-height:520px;min-height:360px;overflow-y:auto;background:#fff;margin:0;border:0}
.app-theme .academy-conversation .message{max-width:88%;align-self:flex-start;background:#f8f6f9;color:#66586f;border:1px solid #e9e3ed;border-radius:0 15px 15px 15px;padding:13px 16px;margin:0;box-shadow:0 2px 3px #29163d06;overflow-wrap:anywhere}
.app-theme .academy-conversation .message-own{align-self:flex-end;background:#54275f;color:white;border:0;border-radius:15px 0 15px 15px}
.app-theme .academy-conversation .message p{font-size:13px;line-height:1.6;white-space:pre-wrap;margin:8px 0 0}
.app-theme .academy-message-meta{display:flex;gap:16px;align-items:center;justify-content:space-between}
.app-theme .academy-message-meta strong{font-size:11px}
.app-theme .academy-message-meta small{font-size:9px;color:inherit;opacity:.7}
.app-theme .academy-conversation #chat-form{display:flex;gap:10px;flex-wrap:wrap;padding:16px;border-top:1px solid #e7e1eb;background:#fcfbfd;align-items:center}
.app-theme #chat-form textarea{flex:1;min-width:0;resize:vertical;min-height:48px;margin:0;font-size:13px}
.app-theme #chat-form button{border-radius:50%;width:46px;height:46px;padding:10px;flex:none}
.app-theme #chat-form button span{display:none}
.app-theme #chat-form .form-error{flex-basis:100%}
.app-theme .academy-chat-empty{margin:auto;text-align:center;padding:24px;max-width:320px;color:#a18da9}
.app-theme .academy-chat-empty>.icon{width:38px;height:38px;margin-bottom:14px}
.app-theme .academy-chat-empty h3{font-size:17px;color:#5c406c}
.app-theme .academy-chat-empty p{font-size:13px}
.app-theme .academy-circle-mark{display:grid;place-items:center;margin:0 auto 18px;width:90px;height:90px;border-radius:50%;background:linear-gradient(145deg,#ede1f6,#d5bce8);color:#5a3472}
.app-theme .academy-circle-mark .icon{width:43px;height:43px}
.app-theme .academy-members-panel h3{text-align:center;font-size:16px}
.app-theme .academy-members-panel .muted{text-align:center;font-size:12px}
.app-theme .academy-member-list{margin-top:20px;border-top:1px solid #eee8f2}
.app-theme .community-person{display:flex;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid #f0ebf4}
.app-theme .community-person strong{display:block;font-size:12px;overflow-wrap:anywhere}
.app-theme .community-person small{display:block;margin-top:4px;font-size:11px;color:#9c8fa5}

@media(max-width:1150px){.app-theme .academy-community{grid-template-columns:minmax(190px,.8fr) minmax(280px,1.5fr)}.app-theme .academy-members-panel{grid-column:1/-1}.app-theme .academy-member-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}}
@media(max-width:900px){
 .app-theme .app-layout{--rail:64px;margin:8px;grid-template-rows:82px minmax(0,1fr);border-radius:18px;min-height:calc(100dvh - 16px)}
 .app-theme .app-layout.nav-expanded{--rail:64px}
 .app-theme .academy-topbar{height:82px;padding:0 12px;gap:16px;border-radius:18px 18px 0 0}
 .app-theme .academy-brand-area{flex-basis:200px;gap:12px}
 .app-theme .academy-topbar .workspace-brand .brand{width:130px}
 .app-theme .sidebar{width:64px;top:82px;height:calc(100dvh - 98px);min-height:300px;padding:24px 0 12px 6px;border-radius:0 0 25px 18px}
 .app-theme .sidebar nav a{justify-content:center;font-size:0;line-height:0;gap:0}
 .app-theme .sidebar nav a span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .app-theme .app-main{min-height:calc(100dvh - 98px);border-radius:0 0 18px 0}
 .app-theme .academy-community{grid-template-columns:1fr}
 .app-theme .academy-members-panel{grid-column:auto}
 .app-theme .academy-room-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px}
 .app-theme .academy-community .panel{margin-bottom:0}
 .app-theme .academy-conversation .messages{min-height:280px;max-height:55dvh}
 .app-theme.menu-open .sidebar{position:fixed;top:90px;left:8px;bottom:8px;width:245px;height:auto;z-index:60;box-shadow:12px 0 35px #1e0e3940}
 .app-theme.menu-open .sidebar nav a{font-size:12px;line-height:1.3;justify-content:flex-start;gap:12px}
 .app-theme.menu-open .sidebar nav a span{position:static;width:auto;height:auto;clip-path:none;overflow:visible;white-space:normal}
 .app-theme.menu-open .sidebar-bottom>a{font-size:12px;line-height:1.3;gap:10px;justify-content:flex-start}
 .app-theme .drawer-scrim{z-index:50}
 .app-theme .workspace{padding:24px 18px 32px}
}
@media(max-width:600px){
 .app-theme .academy-header-search-wrap{display:none}
 .app-theme .academy-brand-area{flex:1;gap:12px}
 .app-theme .academy-topbar .workspace-brand .brand{width:125px}
 .app-theme .topbar-actions>.icon-button{display:none}
 .app-theme .workspace{padding:22px 12px 30px}
 .app-theme .heading h1{font-size:25px}
 .app-theme .academy-room-panel{grid-template-columns:1fr}
 .app-theme .academy-member-list{grid-template-columns:1fr}
 .app-theme .academy-conversation .messages{padding:18px 12px}
 .app-theme .academy-message-meta{gap:8px;flex-wrap:wrap}
 .app-theme .academy-conversation .message{max-width:94%}
 .app-theme .academy-conversation #chat-form{padding:12px}
}

.app-theme .workspace-context{font-size:12px;color:#85738e;padding-bottom:16px;margin-bottom:22px;border-bottom:1px solid #e5ddec}.app-theme .workspace-context span{padding:0 8px;color:#a48db5}.app-theme .admin-location{display:none}.app-theme .workspace-search-results{display:grid;gap:8px}.app-theme .sidebar-bottom button[data-action="signout"]{font-size:12px;width:100%;min-height:44px;padding:10px;border:0;background:none;color:white}

.app-theme .sidebar-bottom button[data-action="signout"] span{display:none}.app-theme .nav-expanded .sidebar-bottom button[data-action="signout"] span,.app-theme.menu-open .sidebar-bottom button[data-action="signout"] span{display:inline}

@media(max-width:900px){.app-theme.menu-open .academy-topbar{z-index:70}}
@media(max-width:900px){
 .app-theme:not(.menu-open) .sidebar nav a{justify-content:center;font-size:0;line-height:0;gap:0}
 .app-theme:not(.menu-open) .sidebar nav a span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .app-theme:not(.menu-open) .sidebar-bottom>a{font-size:0;line-height:0;gap:0;justify-content:center}
 .app-theme:not(.menu-open) .sidebar .admin-nav-group h2{font-size:0;line-height:0;margin:0}
}
/* Course discovery and authoring share the app's existing canvas. */
.course-landing-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;margin-top:24px;align-items:start}
.course-landing-grid>*,.builder-lesson>*{min-width:0}
.course-intro{aspect-ratio:16/9;min-height:200px;background:#241136;border-radius:20px;overflow:hidden;margin-bottom:20px}
.course-intro video,.course-intro iframe{display:block;width:100%;height:100%;border:0;object-fit:contain}
.intro-placeholder{position:relative;width:100%;height:100%;min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;background:linear-gradient(135deg,#241136,#623783)}
.intro-placeholder>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.intro-play{position:relative;display:flex;gap:16px;align-items:center;background:#fff;color:#3e205b;padding:18px 24px;border:0;border-radius:50px;cursor:pointer;text-align:left;font-weight:700}
.intro-play .icon{width:32px;height:32px}.intro-play small,.builder-lesson small{display:block;margin-top:6px;font-weight:400}
.course-facts{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 24px}
.course-curriculum details{border:1px solid #e6daef;border-radius:14px;margin:12px 0;overflow:hidden}
.course-curriculum summary{cursor:pointer;padding:18px;background:#f8f4fc;font-weight:700}
.course-curriculum summary small{display:block;font-weight:400;margin-top:6px}
.curriculum-lesson{display:flex;align-items:start;gap:12px;padding:16px;border-top:1px solid #eee5f5}
.curriculum-lesson>div{flex:1;min-width:0}.curriculum-lesson>span{white-space:nowrap;font-size:13px}.curriculum-lesson p{font-size:13px;margin:6px 0 0}
.builder-module{border:1px solid #e5d8ef;border-radius:16px;margin:20px 0;padding:18px}.builder-module h4{margin:0}
.builder-lesson{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid #eee5f5;padding:16px 0}.builder-lesson .actions{flex-wrap:wrap}
.course-enrollment h2{font-size:32px}.course-landing-grid p{overflow-wrap:anywhere;line-height:1.7}
#modal:has(.course-landing-grid),#modal:has(#course-form){width:min(1100px,96vw);max-width:1100px}
@media(max-width:800px){.course-landing-grid{grid-template-columns:minmax(0,1fr)}.builder-lesson{align-items:start;flex-direction:column}.builder-module{padding:12px}.intro-play{padding:14px;max-width:95%}.course-curriculum summary{padding:14px}}
