:root{font-family:var(--font-ui);color:var(--ink);background:var(--bg);font-size:14px}
.mfa-qr{display:block;width:220px;max-width:100%;height:auto;margin:12px auto}.auth-form:has(.mfa-recovery-codes){max-width:540px}.mfa-recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.mfa-recovery-codes code{padding:9px;background:var(--bg);border:1px solid var(--line);border-radius:6px;font-size:12px;overflow-wrap:anywhere}.mfa-ack{display:flex;align-items:center;gap:10px;font-size:12px;margin:18px 0}.mfa-ack input{width:auto!important}.auth-form>button.secondary{margin-top:10px}.auth-form details{font-size:12px;margin-bottom:16px}.auth-form details label{display:block;margin-top:10px}.auth-form #mfa-secret{font-family:monospace;font-size:13px}.auth-form #mfa-enrolment{margin:12px 0}@media(max-width:420px){.mfa-recovery-codes{grid-template-columns:1fr}.mfa-recovery-codes code{font-size:12px}}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}a{color:var(--blue);text-decoration:none}button:disabled{opacity:.55;cursor:wait}button svg,a svg{flex-shrink:0}svg.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-1px;line-height:1.25}h2{font-size:18px;letter-spacing:-.4px}h3{font-size:15px}p{line-height:1.65}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.7px;font-weight:700}.loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:var(--blue);border:1px solid var(--blue);border-radius:9px;padding:10px 15px;font-weight:600;color:white;white-space:nowrap;min-height:39px}.btn:hover{background:#1265b7}.btn.secondary{background:white;border-color:var(--line);color:var(--ink)}.btn.secondary:hover{background:#eef4fb}.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn.danger{background:#fff0f1;color:var(--red);border-color:#f1d1d6}.btn.small{padding:6px 10px;min-height:32px;font-size:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:white;padding:8px;border-radius:8px;color:var(--muted);cursor:pointer}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:18px}.spacer{flex:1}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;background:#e9f2fe;color:#206bb6;font-size:11px;font-weight:650;padding:5px 8px;white-space:nowrap}.badge.green{background:#e9f6ef;color:#17714c}.badge.amber{background:#fff4dc;color:#976211}.badge.red{background:#fcecef;color:var(--red)}.badge.gray{background:#eef1f5;color:#66758a}.dot{width:6px;height:6px;background:currentColor;border-radius:50%}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.card-heading p{font-size:12px;color:var(--muted);margin-top:4px}.grid-2{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.grid-even{grid-template-columns:1fr 1fr}.empty{text-align:center;padding:38px 22px;color:var(--muted)}.empty .empty-icon{display:inline-flex;background:#edf4fd;color:var(--blue);padding:13px;border-radius:15px;margin-bottom:14px}.empty .icon{width:25px;height:25px}.empty h3{color:var(--ink);margin-bottom:7px}.empty p{max-width:390px;margin:0 auto 17px;font-size:13px}.notice{padding:13px 16px;background:#edf5ff;border:1px solid #d5e6ff;border-radius:10px;font-size:12px;line-height:1.6;color:#365c89}.notice.amber{background:#fff9ed;border-color:#f2e3bf;color:#8b6529}.error{color:var(--red);font-size:13px;line-height:1.5}.hidden{display:none!important}
.sidebar{width:239px;position:fixed;left:0;top:0;bottom:0;background:var(--nav);color:#c0cbd8;display:flex;flex-direction:column;padding:28px 17px 18px;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px}.brand img{width:39px;height:39px}.brand strong{color:#fff;font-size:16px;letter-spacing:-.4px}.brand small{display:block;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#8296af;margin-top:5px}.nav-label{font-size:10px;letter-spacing:1.4px;font-weight:600;padding:0 14px;margin:10px 0 12px;color:#697b91}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left;color:#a4b3c4;padding:12px 14px;border-radius:9px;margin-bottom:4px;font-size:12px;font-weight:500}.nav-item:hover{background:#1c2b3a;color:white}.nav-item.active{color:white;background:#1976d2;box-shadow:0 5px 20px #00152b33}.nav-item .icon{width:18px;height:18px}.sidebar-bottom{margin-top:auto}.sidebar-note{background:#192838;padding:16px;border:1px solid #24384b;border-radius:11px;font-size:11px;line-height:1.7;margin:15px 5px}.sidebar-note strong{color:#e9f3ff;display:block;margin-bottom:4px}.sidebar-note .dot{display:inline-block;background:#49c994;margin-right:4px}.user-tile{padding:12px 8px 0;border-top:1px solid #273543;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:10px;background:#e9f2ff;color:#1976d2;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}.user-tile strong{display:block;font-size:12px;color:#e4ebf4}.user-tile small{font-size:10px;color:#91a2b6}.user-tile button{color:#8da1b8;background:transparent;border:0;margin-left:auto;padding:5px}.main{margin-left:239px;min-height:100vh}.topbar{height:73px;padding:0 34px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.breadcrumb b{font-weight:600;color:var(--ink)}.topbar .date{font-size:12px;color:var(--muted)}.mobile-menu{display:none}.filters{padding:18px 34px;background:#fff;display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;border-bottom:1px solid var(--line)}.filter-group{display:flex;flex-direction:column;gap:6px}.filter-group label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:650;color:var(--muted)}.filter-group select{height:35px;min-width:90px;background:#f8fafc;border:1px solid var(--line);border-radius:7px;color:#304257;padding:0 29px 0 10px;font-size:12px}.filter-group.subject select{min-width:260px}.filter-status{margin-left:auto;padding-bottom:8px;font-size:11px;display:flex;align-items:center;gap:7px;color:#4c8266}.page{max-width:1500px;margin:0 auto;padding:30px 34px 45px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.page-heading p{color:var(--muted);font-size:13px;margin-top:7px}.page-footer{text-align:center;font-size:10px;letter-spacing:.3px;color:#8b97a8;padding-top:30px}.hero{background:linear-gradient(110deg,#14263d 5%,#153e70 100%);border-radius:var(--radius);padding:29px 32px;color:white;position:relative;overflow:hidden;min-height:208px;display:flex;align-items:center;margin-bottom:22px}.hero-copy{position:relative;z-index:2;max-width:70%}.hero .eyebrow{color:#8ec8ff;font-size:10px;margin-bottom:12px}.hero h2{font-size:27px;letter-spacing:-.8px;line-height:1.3}.hero p{font-size:12px;color:#b4c9e2;margin:11px 0 20px;max-width:490px}.hero .btn{background:white;color:#15497d;border-color:white;font-size:12px}.hero .btn.secondary{background:#ffffff10;color:#e1edff;border-color:#ffffff22}.hero img{position:absolute;height:235px;right:12px;bottom:-12px;opacity:.98}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px}.stat .row{justify-content:space-between;font-size:11px;color:var(--muted)}.stat .stat-icon{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#edf4fd;color:#1976d2}.stat:nth-child(2) .stat-icon{color:#178064;background:#ecf8f2}.stat:nth-child(3) .stat-icon{color:#a56d12;background:#fff7e7}.stat:nth-child(4) .stat-icon{color:#8060bc;background:#f4effd}.stat-value{font-size:31px;letter-spacing:-1.1px;font-weight:700;margin:9px 0 6px}.stat small{font-size:10px}.item-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:13px 0}.item-row:last-child{border:0}.item-row h3{font-size:12px;margin-bottom:4px}.item-row p{font-size:11px;color:var(--muted)}.date-tile{background:#edf4fd;border-radius:9px;min-width:43px;padding:7px;text-align:center;color:#3770a8;font-size:9px;text-transform:uppercase}.date-tile strong{display:block;font-size:19px;color:#244b75}.motivation{background:#eef5fe;border-color:#dfeafb;position:relative}.motivation p{font-size:17px;font-weight:500;line-height:1.6;margin:12px 0}.motivation .eyebrow{color:#4678ad;font-size:9px}.progress-track{background:#edf1f6;height:6px;border-radius:5px;overflow:hidden}.progress-fill{height:100%;background:var(--blue);border-radius:5px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-action{padding:18px 10px;background:#f8fafd;border:1px solid var(--line);border-radius:10px;text-align:center;color:#466181;font-size:11px;cursor:pointer}.quick-action .icon{display:block;margin:0 auto 9px;color:var(--blue);height:22px;width:22px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:0 12px;max-width:320px;flex:1;color:#93a1b2}.search input{border:0;background:none;min-width:100px;width:100%;padding:10px 0;color:var(--ink);outline:none;font-size:12px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{background:#f7f9fc;color:#68778b;font-weight:600;font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:14px 18px;border-bottom:1px solid var(--line)}td{padding:13px 18px;border-bottom:1px solid #edf1f6}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.name-cell{display:flex;gap:11px;align-items:center}.name-cell .avatar{width:30px;height:30px;font-size:10px;background:#eff4fa;border-radius:9px}.name-cell strong{font-size:12px;font-weight:600}.name-cell small{display:block;font-size:10px;margin-top:3px}.mark-input{width:65px;border:1px solid #e2e8f0;background:#fafcff;text-align:center;border-radius:6px;padding:8px;font-size:12px}.mark-input:focus{border-color:var(--blue);background:white}.mark-input.invalid{border-color:var(--red);background:#fff3f5}.marks th{white-space:normal;min-width:125px;max-width:170px}.marks th small{display:block;text-transform:none;font-weight:400;letter-spacing:0;margin-top:5px}.marks th:first-child{min-width:210px;position:sticky;left:0;z-index:2}.marks td:first-child{position:sticky;left:0;background:white;z-index:1}.result{font-weight:650;font-size:13px}.result.good{color:var(--green)}.result.low{color:var(--red)}.term-note{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;font-size:11px;color:var(--muted)}.tab-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:white}.tab-switch button{border:0;background:transparent;border-radius:6px;color:var(--muted);padding:8px 13px;font-size:11px}.tab-switch button.active{background:#eaf3ff;color:#1976d2;font-weight:600}.calendar{border:1px solid var(--line);background:white;border-radius:13px;overflow:hidden}.calendar-top{padding:19px 22px;border-bottom:1px solid var(--line)}.weekdays{display:grid;grid-template-columns:repeat(7,1fr);background:#f8fafc}.weekdays span{padding:12px 10px;text-align:center;font-size:10px;color:#8a98a9;font-weight:600}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day{border-top:1px solid var(--line);border-right:1px solid var(--line);min-height:108px;padding:8px;display:flex;flex-direction:column;gap:5px}.day:nth-child(7n){border-right:0}.day.outside{background:#fafbfd;color:#bec7d3}.day.weekend{background:#fafbfd}.day-number{border:0;background:none;align-self:flex-end;color:inherit;width:23px;height:23px;border-radius:6px;font-size:11px}.day-number:hover{background:#e2efff;color:var(--blue)}.day.today .day-number{background:var(--blue);color:white}.lesson-chip{background:#eaf3ff;border:0;border-left:2px solid #4f9bed;text-align:left;font-size:10px;line-height:1.4;padding:6px;border-radius:4px;color:#2d6197;overflow:hidden;overflow-wrap:anywhere}.lesson-chip.completed{background:#edf8f2;border-color:#4aaf82;color:#25815b}.event-chip{background:#fff5e2;border-color:#eab356;color:#956817}.backlog{margin-top:20px}.backlog-items{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.backlog-items button{font-size:11px;background:#f5f8fc;border:1px solid var(--line);padding:9px 12px;border-radius:8px;color:#51677e;text-align:left}.list-topic{white-space:normal;min-width:250px;max-width:450px}.list-topic small{display:block;margin-top:6px;line-height:1.5}.file-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.file-card{display:flex;flex-direction:column;gap:15px}.file-icon{width:44px;height:48px;display:flex;align-items:center;justify-content:center;background:#eaf3ff;border-radius:9px;color:#397dbf}.file-icon .icon{width:25px;height:25px}.file-card h3{font-size:13px;overflow-wrap:anywhere;line-height:1.5}.file-card .btn{margin-top:auto}.drop-zone{border:1.5px dashed #bdd4ee;border-radius:12px;background:#f8fbff;padding:30px;text-align:center;color:#587896;line-height:1.7}.drop-zone .icon{display:block;margin:0 auto 12px;width:30px;height:30px}.insight-card{border-left:3px solid var(--blue)}.award{display:flex;align-items:center;gap:15px}.award-icon{font-size:24px;background:#fff6df;border-radius:12px;padding:13px}.insight-bar{display:flex;gap:10px;align-items:center;margin-top:18px;font-size:12px}.insight-bar .progress-track{flex:1}.trend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.trend-box{background:#f7f9fc;border-radius:8px;padding:12px;text-align:center;font-size:10px;color:var(--muted)}.trend-box b{display:block;font-size:17px;color:var(--ink);margin-top:8px}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:linear-gradient(145deg,#101820,#173c67);color:white;padding:50px 65px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-story .brand{padding:0;position:absolute;top:40px;left:55px}.auth-story .eyebrow{color:#89c2fb;margin-bottom:18px}.auth-story h1{font-size:47px;line-height:1.15;max-width:450px;letter-spacing:-1.8px}.auth-story p{color:#a9c1df;max-width:390px;font-size:14px;margin-top:23px}.auth-story img.teacher{width:230px;align-self:flex-end;margin-top:20px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:370px}.auth-form h2{font-size:28px;letter-spacing:-.9px;margin:15px 0 8px}.auth-form>p{font-size:13px;color:var(--muted);margin-bottom:29px}.auth-form .btn{width:100%;margin-top:9px}.auth-note{text-align:center;font-size:10px;color:#98a4b4;margin-top:24px;line-height:1.7}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:12px;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #dce3ec;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);min-height:41px;font-size:13px}.field textarea{resize:vertical;min-height:95px;line-height:1.6}.field small{font-size:10px;line-height:1.6}.field input:focus,.field select:focus,.field textarea:focus{border-color:#1976d2}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-grid .full{grid-column:1/-1}dialog{border:1px solid var(--line);border-radius:17px;box-shadow:0 24px 100px #0f274436;padding:0;max-width:620px;width:calc(100% - 30px);max-height:90dvh;color:var(--ink)}dialog.wide{max-width:860px}dialog::backdrop{background:#101e3377;backdrop-filter:blur(3px)}.modal-heading{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-heading h2{font-size:19px}.modal-body{padding:24px 26px;overflow:auto}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#fbfcfe}.modal-footer .error{flex:1;margin-right:auto;font-size:11px}.modal-body .notice{margin-bottom:19px}.source-text{font:11px/1.7 ui-monospace,monospace;white-space:pre-wrap;background:#f6f8fb;padding:15px;border-radius:8px;max-height:220px;overflow:auto;border:1px solid var(--line);margin:16px 0}.preview-table{max-height:270px;overflow:auto}.preview-table th{position:sticky;top:0}.check-row{display:flex;gap:10px;align-items:center;font-size:12px;margin-bottom:14px}.check-row input{accent-color:var(--blue)}#toast{position:fixed;right:26px;bottom:25px;z-index:100;background:#14263d;color:white;font-size:12px;padding:14px 21px;border-radius:10px;box-shadow:0 8px 30px #10182022;max-width:450px;opacity:0;transform:translateY(15px);transition:.2s;pointer-events:none}#toast.visible{opacity:1;transform:none}#toast.failure{background:#a4374b}.certificate{border:8px double #1976d2;padding:50px;text-align:center;background:#fff}.certificate h1{font-size:36px;margin:30px 0 15px}.certificate h2{font-size:25px;margin:25px 0}.certificate .eyebrow{color:#1976d2}.certificate p{margin:12px 0}
@media(min-width:1500px){.page{padding-top:36px}.hero{min-height:230px}.hero img{height:260px;right:35px}.day{min-height:125px}}
@media(max-width:1150px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.main{margin-left:210px}.page{padding:25px 22px}.filters,.topbar{padding-left:22px;padding-right:22px}.filter-group.subject select{min-width:210px}.hero{padding:25px}.hero h2{font-size:23px}.hero img{height:205px;right:-20px}.hero-copy{max-width:72%}.stats{gap:10px}.stat{padding:15px}.stat .row{font-size:10px}.file-grid{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr 1fr}.auth-story{padding:45px}.auth-story h1{font-size:40px}}
@media(max-width:900px){.sidebar{width:190px}.main{margin-left:190px}.nav-item{font-size:11px;padding:11px}.brand{gap:9px;padding-left:5px}.brand strong{font-size:14px}.brand img{width:32px;height:32px}.brand small{font-size:8px}.filters{gap:10px}.filter-group.subject select{min-width:175px}.filter-status{display:none}.grid-2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.day{padding:5px;min-height:95px}.lesson-chip{font-size:9px;padding:4px}.hero img{height:190px;right:-35px}.hero-copy{max-width:80%}.hero p{max-width:80%}.topbar .date{display:none}}
@media(max-width:650px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:239px;box-shadow:10px 0 35px #10182033}.sidebar.open{transform:none}.main{margin-left:0}.mobile-menu{display:inline-flex}.topbar{height:60px;padding:0 16px}.filters{padding:13px 16px;display:grid;grid-template-columns:1fr 1fr;gap:11px}.filter-group select,.filter-group.subject select{width:100%;min-width:0}.filter-group.subject{grid-column:2;grid-row:1}.filter-group label{font-size:9px}.page{padding:23px 16px}.page-heading{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px;line-height:1.6}.page-heading>.row{flex-wrap:wrap}.hero{padding:24px 21px;min-height:230px}.hero h2{font-size:23px;max-width:260px}.hero-copy{max-width:100%}.hero p{max-width:70%;font-size:11px}.hero img{height:160px;right:-25px;bottom:-5px;opacity:.85}.hero .row{gap:7px;flex-wrap:wrap;max-width:70%}.hero .btn{font-size:10px;padding:8px 10px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:27px}.stat .row{font-size:10px}.stat-icon{width:28px!important;height:28px!important}.card{padding:19px}.card-heading h2{font-size:16px}.toolbar{gap:7px}.toolbar .search{max-width:none;min-width:160px}.toolbar .spacer{display:none}.btn{font-size:12px;padding:9px 12px}.calendar-top{padding:14px}.calendar-top h2{font-size:15px}.day{min-height:83px;padding:3px;gap:3px}.day-number{font-size:10px;width:21px;height:21px}.lesson-chip{font-size:8px;padding:3px;border-left-width:1px}.weekdays span{font-size:8px;padding:10px 3px}.file-grid{grid-template-columns:1fr}.term-note{align-items:flex-start;flex-direction:column}.auth-page{display:block}.auth-story{display:none}.auth-panel{min-height:100vh;padding:30px 22px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.modal-body{padding:20px}.modal-heading{padding:19px 20px}.modal-footer{padding:16px 20px}.quick-actions{gap:7px}.quick-action{font-size:10px;padding:14px 6px}.breadcrumb{font-size:11px}.topbar .badge{font-size:9px}.card-heading{margin-bottom:16px}.certificate{padding:24px}.certificate h1{font-size:25px}}
@media(max-width:650px){.topbar>.row>.badge{display:none}.item-row:has(.trend-grid){flex-wrap:wrap}.item-row:has(.trend-grid)>.spacer{flex-basis:100%;min-width:0}.trend-box{min-width:0}}
@media print{body{background:white}.sidebar,.topbar,.filters,.page,.modal-heading,.modal-footer,#toast{display:none!important}dialog[open]{position:static;border:0;box-shadow:none;max-width:none;width:100%;max-height:none;margin:0}dialog::backdrop{background:none}.modal-body{padding:0}.certificate{padding:45px}.certificate h1{font-size:36px}}
/* CAT belongs to the hub's routing and navigation; viewer CSS stays in its component. */
.cat-learner-history{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}.cat-learner-history>p{font-size:12px;margin:8px 0 14px}.cat-history-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:12px;overflow-wrap:anywhere}.cat-history-card>.row{gap:10px}.cat-history-card .spacer{min-width:0}.cat-history-card p{font-size:12px;line-height:1.6}.cat-history-score{margin-top:12px}.cat-history-score b{font-size:20px;color:var(--ink)}.cat-history-card details{margin:12px 0;font-size:12px}.cat-history-card>.row:last-child{margin-top:12px}.cat-question-results{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.cat-question-results>span{background:var(--bg);border-radius:5px;padding:7px 9px}
.page.cat-module-page{max-width:2200px;padding:28px 22px 40px;min-width:0}.cat-module-active .main{min-width:0}body.av-no-scroll,body.cat-focus-open{overflow:hidden}@media(max-width:650px){.page.cat-module-page{padding:23px 16px}}

.nav-item .grader-beta{margin-left:auto;flex-shrink:0;border:1px solid #d7a65866;background:#d7a65822;color:#f0cb85;border-radius:5px;padding:2px 5px;font-size:9px;font-weight:700;line-height:1.2;letter-spacing:.2px}

/* Shared workspace header: account and Settings stay reachable at every size. */
.sidebar>nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.sidebar>.brand,.sidebar-bottom{flex-shrink:0}
.nav-close,.nav-backdrop{display:none}
.topbar-location{min-width:0;flex:1}
.topbar .breadcrumb{min-width:0}
.breadcrumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumb-root,.breadcrumb-divider{flex-shrink:0}
.topbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.topbar-actions .icon-button,.header-settings,.account-menu>summary{min-width:44px;min-height:44px}
.header-settings{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-size:12px;font-weight:600}
.header-settings:hover,.header-settings.active{background:#edf5fe;border-color:#a5c7ed;color:#165faa}
.reminders-button{position:relative}
.reminder-count{position:absolute;top:-4px;right:-5px;min-width:18px;padding:2px 4px;border-radius:20px;background:#f4d494;color:#714c12;font-size:10px;line-height:14px}
.account-menu{position:relative}
.account-menu>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid var(--line);border-radius:9px;cursor:pointer;background:white;font-size:12px;font-weight:600}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary>.icon{width:14px;height:14px;transform:rotate(90deg)}
.account-menu[open]>summary{border-color:#a5c7ed;background:#edf5fe}
.account-menu[open]>summary>.icon{transform:rotate(-90deg)}
.account-menu .avatar{width:30px;height:30px;flex-shrink:0;background:#e8f1fc;color:#2467a8}
.account-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-panel{position:absolute;right:0;top:calc(100% + 10px);width:280px;max-width:calc(100vw - 24px);padding:8px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 12px 36px #182c4b26;z-index:40;max-height:calc(100dvh - 82px);overflow-y:auto}
.account-identity{padding:10px 10px 14px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.account-identity>strong,.account-identity>span:not(.badge){display:block;overflow-wrap:anywhere}
.account-identity>strong{font-size:14px;color:var(--ink)}
.account-identity>span:not(.badge){font-size:12px;color:var(--muted);margin:5px 0 10px}
.account-action{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:white;color:var(--ink);text-align:left;font-size:13px}
.account-action:hover{background:#eff5fc}
.account-action.sign-out{border-top:1px solid var(--line);border-radius:0 0 7px 7px;margin-top:6px;color:#b14141}
.curriculum-documents{margin-top:26px;min-width:0}
.curriculum-documents>.card-heading{gap:12px;flex-wrap:wrap}
.curriculum-documents .document-help{font-size:12px;line-height:1.7;margin:-6px 0 20px;max-width:850px}
.curriculum-documents .file-card{min-width:0}
.curriculum-documents .file-card .icon-button{min-width:44px;min-height:44px}
@media(max-width:1200px){.topbar .date{display:none}}
@media(max-width:1050px){.account-name{display:none}.breadcrumb-root,.breadcrumb-divider{display:none}}
@media(max-width:650px){
  body.navigation-open{overflow:hidden}
  .topbar{gap:8px;padding:0 12px}
  .topbar-location{gap:8px}
  .topbar-actions{gap:6px}
  .topbar .breadcrumb{font-size:12px}
  .header-settings{padding:8px}
  .header-settings>span,.account-menu>summary>.icon{display:none}
  .account-menu>summary{padding:4px 6px}
  .topbar .mobile-menu{min-width:44px;min-height:44px}
  .nav-close{display:inline-flex;position:absolute;right:8px;top:16px;min-width:44px;min-height:44px;color:#c0cbd8;background:transparent;border:0}
  .sidebar>.brand{padding-right:36px;min-height:40px}
  .sidebar>.brand strong{font-size:13px}
  .sidebar>.brand img{width:28px;height:28px}
  .sidebar.open+.nav-backdrop{display:block;position:fixed;inset:0;border:0;background:#10182080;z-index:29;cursor:pointer}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
