/* Graphite workspace palette: shared by student and teacher cabinets. */

body{background:radial-gradient(ellipse at 8% 0,rgba(112,88,160,.10),transparent 48%),var(--canvas)}
.workspace-stars{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.app-shell{display:block;min-height:100vh;position:relative;z-index:1}
/* Long-form lessons stay on an opaque surface for comfortable reading. */
.lesson-layout{background:var(--canvas);border-radius:16px}
.workspace-header{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:32px;height:72px;padding:0 32px;background:rgba(12,12,15,.95);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}
.card{
 background:linear-gradient(180deg,#101013,#0c0c0f 110px);
 border-color:rgba(255,255,255,.09);
 border-radius:20px;
 box-shadow:var(--shadow);
}
.course-card,.home-next,.cta-card{
 background:linear-gradient(180deg,#101013,#0c0c0f 110px);
 border:1px solid rgba(255,255,255,.09);
}
.course-menu-card:hover{background:#121216;border-color:rgba(162,148,255,.32)}
.workspace-header .notifications-panel,.profile-menu{background:linear-gradient(160deg,var(--surface-raised),#111114);box-shadow:inset 0 1px 0 #ffffff0d,0 20px 50px #0009}
.workspace-header .notifications-panel header{background:#19191e}
.notification-item:hover,.profile-menu .sidebar-foot:hover{background:#232329}
.workspace-header .notification-toggle:hover,.workspace-header .notification-toggle[aria-expanded=true]{background:#232329}
.workspace-header .nav-item:hover{background:#ffffff05}
.progress-line{background:#29292f}
.course-search input{box-shadow:inset 0 1px 3px #0004}
.lock-explain{background:#ffffff04;color:var(--muted)}
.workspace-header .brand{margin:0;order:0}
.workspace-header #nav{display:flex;gap:24px;align-self:stretch;order:1}
.workspace-header .nav-item{border-radius:0;padding:0 2px;border-bottom:2px solid transparent;white-space:nowrap}
.workspace-header .nav-item.active{background:transparent;border-color:var(--violet);color:#c8c1ff}
.workspace-header .nav-icon,.workspace-header [data-page="profile"]{display:none}
.workspace-header .notification-center{order:2;margin:0 0 0 auto}
.workspace-header .notification-toggle{width:42px;height:42px;justify-content:center;position:relative}
.workspace-header .notification-toggle>span:nth-child(2){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.workspace-header .notification-toggle b{position:absolute;right:0;top:0}
.workspace-header .notifications-panel{left:auto;right:0;top:52px;width:min(360px,calc(100vw - 32px))}
.profile-dropdown{order:3;position:relative;margin-left:-16px}
#profile-toggle{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--muted);cursor:pointer;padding:4px}
#profile-toggle .avatar{width:36px;height:36px;font-size:12px}
.profile-menu{position:absolute;right:0;top:52px;width:max-content;min-width:200px;max-width:min(280px,calc(100vw - 32px));padding:6px;box-shadow:var(--shadow)}
.profile-menu .sidebar-foot{display:flex;margin:0;border:0;border-bottom:1px solid var(--line);padding:10px 8px;margin-bottom:4px;cursor:default}
.profile-menu .sidebar-foot b{font-size:13px}
.profile-menu button{display:block;width:100%;border:0;background:none;color:var(--ink);font:inherit;text-align:left;padding:10px 12px;border-radius:6px;cursor:pointer;margin:0}
.profile-menu button:hover{background:var(--surface-raised)}
.profile-menu #workspace-logout{color:#ffa99e}
.app-shell>main{max-width:none;min-width:0;padding:36px 32px 80px}
.app-shell .course-list,.app-shell .assignments-page,.app-shell .review-layout{max-width:none}
.app-shell .course-card>div,.app-shell .home-next>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){
 .app-shell .course-info{flex-wrap:wrap}
 .app-shell .home-next{flex-wrap:wrap}
}
.curriculum{max-width:none}
.module{padding:0 24px;box-shadow:var(--shadow);border-radius:20px;margin-bottom:14px;background:linear-gradient(180deg,#101013,#0c0c0f 110px)}
.module.locked-module{background:#0b0b0e}
.module[open]{border-color:rgba(255,255,255,.13)}
summary.module-head{cursor:pointer;list-style:none;min-height:76px;gap:14px;margin:0}
summary.module-head::-webkit-details-marker{display:none}
.module-head h3{flex:1;font-size:15px}
.module-count{color:var(--muted);font-size:12px;white-space:nowrap}
.module-chevron{color:var(--muted);transition:transform .15s}
details[open] .module-chevron{transform:rotate(180deg)}
.module .lesson-row{min-height:66px;font-size:14px;gap:14px}
.module .lesson-row:last-child{margin-bottom:16px}
.module [hidden]{display:none!important}
.btn.course-link{background:none;color:var(--muted);box-shadow:none}
.course-progress{margin:-8px 0 30px}
.course-progress>div{display:flex;justify-content:space-between;color:var(--muted);margin-bottom:10px;font-size:13px}
.course-progress strong{color:#b9b0ff}
.course-progress progress{display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;background:#29292f;accent-color:var(--violet)}
.course-progress progress::-webkit-progress-bar{background:#29292f}
.course-progress progress::-webkit-progress-value{background:var(--violet)}
.course-search{margin-bottom:24px}
.course-search label{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.course-search input{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:0 16px;color:var(--ink);font:inherit}
.course-search input:focus{outline:2px solid var(--violet);outline-offset:2px}
.course-search p:empty{display:none}
[data-course-section]{scroll-margin-top:140px}
.workspace-header button:focus-visible,summary:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
@media(max-width:640px){
 .workspace-header{height:auto;min-height:68px;padding:12px 20px 0;gap:16px;flex-wrap:wrap}
 .workspace-header #nav{order:4;width:100%;height:44px;gap:24px;overflow-x:auto}
 .workspace-header .notifications-panel{position:fixed;top:66px;right:16px;left:auto}
 .profile-dropdown{margin-left:0}
 .app-shell>main{padding:28px 20px 60px}
 .topbar h1{font-size:26px}
 .module{padding:0 16px}
 .module-head .status{display:none}
 .module .lesson-row{font-size:12px}
 .module .row-action{flex-shrink:0;padding:9px}
}

.profile-menu .sidebar-foot > div:last-child{min-width:0;overflow-wrap:anywhere}
.profile-menu .avatar{flex-shrink:0}
