/* Workspace design system. Authentication layout is deliberately unchanged. */
#workspace{--side:208px;--wd-radius:8px}
#workspace .sidebrand{padding:14px 11px;gap:8px;font-size:13px}
#workspace .sidebrand .mark{width:30px;height:30px}
#workspace .sidebrand .mark svg{width:21px;height:21px}
#workspace .sidebrand small{font-size:6.8px;letter-spacing:.8px}
#workspace .navscroll{padding:2px 9px 8px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
#workspace .navgroup{margin-bottom:4px}
#workspace .navgroup-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--muted);font-size:9px;font-weight:650;letter-spacing:.65px;text-transform:uppercase;padding:9px 7px 3px;text-align:left}
#workspace .navgroup-toggle svg{flex:none;transition:transform .15s}
#workspace .navgroup.closed .navgroup-toggle svg{transform:rotate(-90deg)}
#workspace .navgroup.closed .navgroup-body>.navitem:not(.active){display:none}
#workspace .navitem{height:30px;min-height:30px;padding:5px 7px;gap:7px;font-size:11px;line-height:1.2;margin:1px 0;border-radius:5px}
#workspace .navitem svg{width:15px;height:15px}
#workspace .navitem.active{box-shadow:inset 2px 0 var(--blue)}
#workspace .sidefoot{padding:9px 10px}
#workspace .topbar{height:44px;padding-inline:15px;gap:8px}
#workspace .topbar>.row{min-width:0;flex-wrap:nowrap}
#workspace .breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#workspace .topbar .iconbtn{width:29px;height:29px}
#workspace .workspace-search{border:1px solid var(--border);background:var(--bg);color:var(--muted);display:flex;align-items:center;gap:7px;border-radius:6px;padding:5px 8px;height:29px;min-width:0;font-size:11px}
#workspace .workspace-search kbd{border:1px solid var(--border);padding:0 3px;border-radius:3px;font:9px/1.5 inherit}
#workspace .workspace-profile{border:0;cursor:pointer}
#workspace .content{padding:14px 17px;max-width:1560px}
#workspace .pagehead{margin-bottom:11px;gap:10px}
#workspace .pagehead h1{font-size:19px;font-weight:620;overflow-wrap:anywhere}
#workspace .pagehead .tag{font-size:9px}
#workspace .workspace-date{font-size:11px;color:var(--muted);white-space:nowrap}
#workspace .card{padding:13px;border-radius:var(--wd-radius);margin-bottom:10px;box-shadow:none}
#workspace .hero{padding:15px;border-radius:var(--wd-radius);margin-bottom:10px}
#workspace .hero h2{font-size:17px;margin-bottom:7px}
#workspace .hero p{font-size:12px;margin-bottom:9px}
#workspace .grid{gap:8px}
#workspace .metric{font-size:23px}
#workspace .wd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#workspace .wd-kpi{min-height:91px;margin:0;padding:11px 12px}
.wd-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--muted);font-size:11px}
.wd-kpi-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:5px;color:var(--blue);background:var(--soft);flex:none}
.wd-value{font-size:22px;line-height:1.35;letter-spacing:-.5px;font-weight:650;margin-top:3px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wd-kpi .progressline{height:4px;margin:7px 0 0}
#workspace .wd-resume{margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-left:3px solid var(--blue)}
.wd-resume p,.wd-resume h2{margin:0 0 4px}
.wd-resume p:last-child{margin:0}
.wd-resume button{flex:none}
.wd-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
#workspace .wd-dashboard-grid>.card{margin:0;min-width:0}
.wd-section-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:8px}
.wd-section-head h2{margin:0;font-size:13px}
#workspace .wd-section-head button,#workspace .wd-path button{font-size:10px;min-height:25px;padding:4px 7px}
.wd-path{padding:6px 0 9px;border-bottom:1px solid var(--border)}
.wd-path:last-child{border-bottom:0;padding-bottom:0}
.wd-path-name{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.wd-path .progressline{height:4px;margin:5px 0}
.wd-feed{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--border);font-size:11px;min-width:0}
.wd-feed:last-child{border-bottom:0}
.wd-feed strong{font-weight:550;display:block;overflow-wrap:anywhere}
.wd-feed small{display:block;font-size:10px;color:var(--muted)}
.wd-feed>small,.wd-feed>span{flex:none;white-space:nowrap}
.wd-overdue{color:var(--error)}
.wd-empty{font-size:11px;color:var(--muted);margin:12px 0}
.wd-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#workspace .wd-shortcuts button,#workspace .wd-shortcuts a{font-size:11px;justify-content:flex-start;white-space:normal;min-height:30px;text-align:left}
#workspace .wd-retry{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:11px}
.wd-skeleton-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.wd-skeleton{height:91px;background:linear-gradient(105deg,var(--panel) 25%,var(--hover) 45%,var(--panel) 65%);background-size:200% 100%;animation:wd-shimmer 1.5s infinite}
.wd-skeleton-wide{height:130px}
@keyframes wd-shimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.wd-skeleton{animation:none}}
.wd-popover{position:absolute;top:calc(100% + 6px);right:12px;z-index:45;width:min(310px,calc(100vw - 24px));padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 26px #0d233322;max-height:65vh;overflow:auto}
.wd-popover h3{margin:0 0 5px}
.wd-popover button{border:0;background:var(--soft);color:var(--blue);font:600 11px/1.4 inherit;border-radius:5px;padding:7px 9px;width:100%;text-align:left;margin:4px 0}
.wd-popover .wd-feed{display:block}
.wd-popover .wd-feed small{margin-top:3px}
.wd-search-dialog{width:min(570px,94vw);padding:16px}
.wd-search-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.wd-search-head h2{margin:0}
.wd-search-results{margin-top:10px;max-height:52vh;overflow:auto}
.wd-search-results button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;background:var(--panel);color:var(--text);border:1px solid var(--border);margin-bottom:5px;text-align:left;white-space:normal}
.wd-search-results button small{color:var(--muted);font-size:10px}
@media(min-width:741px){.collapsed #workspace #sidebar{width:55px;flex-basis:55px}.collapsed #workspace .navgroup-toggle{display:none}.collapsed #workspace .navgroup.closed .navgroup-body>.navitem:not([hidden]){display:flex}.collapsed #workspace .navitem{justify-content:center}.collapsed #workspace .sidebrand{padding:14px 12px}.collapsed #workspace .sidefoot{padding:9px 4px}}
@media(max-width:940px){#workspace .workspace-search kbd{display:none}#workspace .wd-kpis,.wd-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){#workspace .topbar{height:48px;padding-inline:9px}#workspace .workspace-search{width:30px;height:30px;justify-content:center;padding:0}#workspace .workspace-search span{display:none}#workspace .content{padding:11px}#workspace .pagehead h1{font-size:18px}#workspace .workspace-date{display:none}#workspace .wd-dashboard-grid{grid-template-columns:1fr}#workspace .wd-kpi{min-height:83px;padding:9px}#workspace .wd-value{font-size:20px}#workspace .wd-resume{flex-wrap:wrap}#workspace .navitem{height:38px;min-height:38px;font-size:12px}#workspace .navgroup-toggle{padding-block:11px 4px}.wd-popover{right:8px}.wd-search-dialog input{font-size:16px}}
@media(display-mode:standalone){#workspace .topbar{padding-top:env(safe-area-inset-top);height:calc(44px + env(safe-area-inset-top))}}
@media(max-width:740px) and (display-mode:standalone){#workspace .topbar{height:calc(48px + env(safe-area-inset-top))}}

/* High-density overview, without scaling the whole app or shrinking lesson reading text. */
#workspace .navscroll{scrollbar-width:thin;scrollbar-color:var(--border) transparent}
#workspace .navscroll::-webkit-scrollbar{width:4px}
#workspace .navscroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:6px}
#workspace .navscroll::-webkit-scrollbar-track{background:transparent}
#workspace .wd-dashboard-grid{align-items:start}
#workspace .wd-dashboard-grid>.card:has(.wd-empty):not(:has(.wd-feed)){align-self:start}
#workspace .wd-empty{margin:8px 0 1px;line-height:1.45}
#workspace .wd-kpi-top{font-size:10.5px;line-height:1.35}
#workspace .wd-section-head{margin-bottom:6px}
#workspace .wd-section-head h2{font-size:12px;line-height:1.35}
#workspace .wd-path-name{font-size:11.5px}
#workspace .wd-path{padding:4px 0 6px}
#workspace .wd-path:last-child{padding-bottom:0}
#workspace .wd-feed{padding:6px 0;line-height:1.45}
#workspace .wd-shortcuts{gap:5px}
#workspace .wd-resume .tag{font-size:9px;letter-spacing:.7px}
#workspace .wd-resume h2{font-size:14px;line-height:1.35}
#workspace .wd-resume .muted{font-size:11.5px}
#workspace .wd-resume p,#workspace .wd-resume h2{margin-bottom:3px}
#workspace .wd-resume p:last-child{margin-bottom:0}
@media(min-width:741px){
 #workspace .sidebrand{padding:11px 10px;gap:7px}
 #workspace .sidebrand .mark{width:27px;height:27px}
 #workspace .navscroll{padding:0 8px 5px}
 #workspace .navgroup{margin-bottom:2px}
 #workspace .navgroup-toggle{font-size:8.5px;letter-spacing:.45px;line-height:1.25;padding:5px 6px 2px;min-height:20px}
 #workspace .navitem{height:26px;min-height:26px;padding:4px 6px;gap:6px;margin:0;font-size:10.5px;line-height:1.25}
 #workspace .navitem svg{width:14px;height:14px}
 #workspace .sidefoot{padding:7px 9px}
 #workspace .sidefoot .avatar{width:27px;height:27px}
 #workspace .content:has(.wd-dashboard){padding:10px 14px}
 #workspace .content:has(.wd-dashboard) .pagehead{margin-bottom:8px}
 #workspace .content:has(.wd-dashboard) .pagehead h1{font-size:17px}
 #workspace .content:has(.wd-dashboard) .pagehead .tag{font-size:8.5px;letter-spacing:.8px}
 #workspace .wd-kpis{gap:8px}
 #workspace .wd-kpi{min-height:69px;padding:8px 10px}
 #workspace .wd-kpi-icon{width:21px;height:21px}
 #workspace .wd-kpi-icon svg{width:13px;height:13px}
 #workspace .wd-value{font-size:20px;line-height:1.2;margin-top:2px}
 #workspace .wd-kpi .progressline{height:3px;margin:5px 0 0}
 #workspace .wd-resume{margin:8px 0;padding:9px 11px;gap:9px}
 #workspace .wd-resume button{min-height:28px;padding:5px 10px;font-size:11px}
 #workspace .wd-dashboard-grid{gap:8px}
 #workspace .wd-dashboard-grid>.card{padding:10px 11px}
 #workspace .wd-section-head button,#workspace .wd-path button{min-height:23px;padding:3px 6px}
 #workspace .wd-shortcuts button,#workspace .wd-shortcuts a{min-height:26px;font-size:10.5px;padding:4px 7px}
 #workspace .content:has(.wd-dashboard)>footer{margin:13px 0 8px}
 #workspace .wd-skeleton{height:69px}
 #workspace .wd-skeleton-wide{height:86px}
}
@media(min-width:741px) and (max-height:560px){
 #workspace .navgroup-toggle{min-height:17px;padding:3px 6px 1px}
 #workspace .navitem{min-height:24px;height:24px}
 #workspace .sidebrand{padding-block:9px}
 #workspace .navgroup{margin-bottom:1px}
}
@media(max-width:740px){
 #workspace .wd-kpi{min-height:76px}
 #workspace .wd-resume{padding:11px}
 #workspace .wd-dashboard-grid>.card{padding:11px}
 #workspace .wd-section-head h2{font-size:13px}
}
