/* Teacher workspace, based on the approved PolyPlan mockups.







   Student learning-room and quiz styling stays isolated in learner.css. */







.bulk-review-progress{position:sticky;top:0;z-index:2;display:grid;gap:8px;padding:12px 14px;margin:10px 0;border:1px solid #c9dfdf;border-radius:12px;background:#f3fbfa;box-shadow:0 4px 12px #152d3d12;color:#154e51}







.bulk-review-progress[hidden]{display:none}







.bulk-review-progress progress{display:block;width:100%;height:12px;appearance:none;border:0;border-radius:999px;overflow:hidden;background:#dce9e9}







.bulk-review-progress progress::-webkit-progress-bar{background:#dce9e9;border-radius:999px}







.bulk-review-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#168985,#126f72);border-radius:999px}







.bulk-review-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#168985,#126f72);border-radius:999px}







body.teacher-mode{







  --ink:#152d3d;--muted:#546978;--green:#126f72;--brand-dark:#0c5255;







  --pale:#e7f3f1;--card:#fff;--line:#dce5eb;--canvas:#f3f6f8;







  --warning:#855300;--warning-soft:#fff3dc;--error:#a53838;--error-soft:#fbecec;







  --blue:#295d92;--blue-soft:#ebf2fa;--private:#665383;--private-soft:#f0ecf6;







  background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif







}







.teacher-mode .shell{grid-template-columns:216px minmax(0,1fr);min-height:100dvh}







.teacher-mode .sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);padding:24px 16px 18px;box-shadow:none}







.teacher-mode .brand{font-size:22px;letter-spacing:-.4px;margin:0 6px 25px;color:var(--ink)}







.teacher-mode .brandmark{background:var(--green);color:#fff;border-radius:10px;width:38px;height:38px;font-size:20px;box-shadow:none}







.teacher-mode .sidebar>p{white-space:pre-line;margin:0 10px 20px;color:var(--muted)}







.teacher-mode .sidebar button{color:var(--muted);background:transparent;border:0;border-radius:12px;padding:11px 13px;margin:2px 0;text-align:left;font-weight:650;box-shadow:none}







.teacher-mode .sidebar button:hover{background:#f4f8f8;color:var(--ink)}







.teacher-mode .sidebar button.active{background:var(--pale);color:var(--brand-dark);box-shadow:inset 3px 0 var(--green)}







.teacher-mode .sidebar .bottom{border-top:1px solid var(--line);padding-top:13px}







.teacher-mode .sidebar select{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}







.teacher-mode .side-label23,.teacher-mode .side-sub-label23{font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:800;padding:0 12px;margin:2px 0 8px}







.teacher-mode .side-sub-label23{margin-top:14px;padding-top:11px;border-top:1px solid var(--line)}







.teacher-mode .sidebar>button,.teacher-mode .side-more23 button{display:flex;align-items:center;gap:11px;min-height:46px;width:100%}







.teacher-mode .nav-icon23{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;color:currentColor;font-size:16px;font-weight:800}







.teacher-mode .side-more23{margin:3px 0 10px}







.teacher-mode .side-more23>summary{list-style:none;display:flex;align-items:center;gap:11px;min-height:46px;border-radius:12px;padding:10px 13px;color:var(--muted);font-weight:700;cursor:pointer}







.teacher-mode .side-more23>summary::-webkit-details-marker{display:none}







.teacher-mode .side-more23>summary:hover{background:#f4f8f8;color:var(--ink)}







.teacher-mode .side-more23>summary.active{background:var(--pale);color:var(--brand-dark)}







.teacher-mode .side-more23[open]>summary{margin-bottom:5px}







.teacher-mode .side-more-items23{padding-left:9px;border-left:1px solid var(--line);margin-left:22px}







.teacher-mode .side-more-items23 button{font-size:12px;min-height:42px;padding:8px 10px}







.teacher-mode .main{padding:0 30px 54px;min-width:0}







.teacher-mode .topline{height:74px;margin:0 -30px 30px;padding:0 30px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center}







.teacher-mode .eyebrow{color:var(--green);font-size:12px;letter-spacing:.12em;font-weight:800}







.teacher-mode h1{font-size:clamp(30px,3vw,43px);line-height:1.12;letter-spacing:-1.2px;color:var(--ink)}







.teacher-mode h2{color:var(--ink);letter-spacing:-.35px}







.teacher-mode .hero{padding:4px 2px 12px;margin-bottom:24px;align-items:flex-start}







.teacher-mode .hero p{font-size:16px;line-height:1.6;color:var(--muted)}







.teacher-mode .hero-art{width:104px;height:82px;border-radius:24px;background:var(--pale);color:var(--green);font-size:40px;transform:none}







.teacher-mode .grid{gap:18px}







.teacher-mode .card,.teacher-mode .stat{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 1px 2px #152d3d0a;padding:22px}







.teacher-mode .card.accent{border-top:1px solid var(--line);box-shadow:inset 4px 0 var(--green)}







.teacher-mode .stat strong{color:var(--ink);font-size:34px}.teacher-mode .stat span{color:var(--muted)}







.teacher-mode .tag{border-radius:999px;padding:5px 10px;background:var(--pale);color:var(--brand-dark);font-weight:750}







.teacher-mode .tag.gold{background:var(--warning-soft);color:var(--warning)}







.teacher-mode button{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 15px;background:#fff;color:var(--ink);font-weight:700;box-shadow:none}







.teacher-mode button:hover{border-color:#9cb7bb;background:#f7fbfb}







.teacher-mode button.primary{border-color:var(--green);background:var(--green);color:#fff}







.teacher-mode button.primary:hover{background:var(--brand-dark)}







.teacher-mode input,.teacher-mode textarea,.teacher-mode select{border:1px solid #b9c9d2;border-radius:11px;background:#fff;color:var(--ink);min-height:44px;padding:10px 12px}







.teacher-mode :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #2475b3;outline-offset:3px}







.teacher-mode .notice{background:var(--warning-soft);color:var(--warning);border-radius:14px}







.teacher-mode .success{background:var(--pale);color:var(--brand-dark);border-radius:14px}







.teacher-mode .error{background:var(--error-soft);color:var(--error);border-radius:14px;border-left:4px solid var(--error)}







.teacher-mode .empty{background:#edf2f5;border:1px dashed #bdcbd3;border-radius:16px}







.teacher-mode .listrow{border-color:var(--line)}







.teacher-mode .modal{border-radius:24px;border:1px solid var(--line);box-shadow:0 24px 70px #152d3d33}







.teacher-mode .modal::backdrop{background:#152d3d80}







.teacher-mode #toast{background:var(--ink);border-radius:12px}















/* Unterrichtsbegleitung: neutral, ruhig and status-oriented like W01/W02. */







.teacher-mode .teaching-hero19{background:transparent!important;color:var(--ink)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:2px 0 18px!important}







.teacher-mode .teaching-hero19 :is(h1,h2,h3,p,span){color:inherit!important}







.teacher-mode .teaching-nav19{position:sticky;top:0;z-index:6;background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:5px!important;box-shadow:0 4px 16px #152d3d0d!important}







.teacher-mode .teaching-nav19 button{background:transparent!important;color:var(--muted)!important;border:0!important;border-radius:10px!important}







.teacher-mode .teaching-nav19 button.active,.teacher-mode .teaching-nav19 button[aria-current="page"]{background:var(--pale)!important;color:var(--brand-dark)!important;box-shadow:inset 0 -3px var(--green)!important}







.teacher-mode .companion-main21{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:none!important}







.teacher-mode .companion-main21 :is(h1,h2,h3,p,span){color:inherit}







.teacher-mode .companion-week21{background:var(--canvas)!important;border-radius:18px!important}







.teacher-mode .week-controls21{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 16px}







.teacher-mode .week-controls21>label{display:block;color:var(--muted);font-size:12px;font-weight:700}.teacher-mode .week-controls21>input{width:180px;margin:5px 0 0}







.teacher-mode .week-modes21{display:flex;gap:4px;padding:4px;background:#e5ecef;border-radius:13px}.teacher-mode .week-modes21 button{min-width:82px;border:0;background:transparent}.teacher-mode .week-modes21 button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #16304112}







.teacher-mode .week-move21{display:flex;gap:7px}.teacher-mode .week-move21 button{min-width:88px}







.teacher-mode .week-wrap21{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 1px 2px #152d3d0a}







.teacher-mode .week-timetable21{--week-days:5;display:grid;grid-template-columns:76px repeat(var(--week-days),minmax(156px,1fr));min-width:calc(76px + var(--week-days)*156px)}







.teacher-mode .week-corner21,.teacher-mode .week-dayhead21{position:sticky;top:0;z-index:3;background:#f7f9fa;border:0;border-bottom:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;margin:0;min-height:58px}







.teacher-mode .week-corner21{left:0;z-index:4;display:grid;place-items:center;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}







.teacher-mode .week-dayhead21{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:9px 13px;color:var(--ink)}.teacher-mode .week-dayhead21 strong{font-size:14px}.teacher-mode .week-dayhead21 span{font-size:11px;color:var(--muted)}.teacher-mode .week-dayhead21.today{box-shadow:inset 0 -3px var(--green);color:var(--green)}







.teacher-mode .week-time21{position:sticky;left:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;min-height:94px;padding:14px 6px;background:#f7f9fa;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.teacher-mode .week-time21 strong{font-size:13px}.teacher-mode .week-time21 span{font-size:10px;color:var(--muted)}







.teacher-mode .week-cell21{min-height:94px;padding:7px;background:#fff;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}







.teacher-mode .week-free21{display:grid;place-items:center;min-height:78px;border:1px dashed #ccd7dd;border-radius:11px;color:#8a9aa4;font-size:12px;background:#fafcfd}







.teacher-mode .week-lesson21{position:relative;display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:78px;margin:0;padding:9px 10px 9px 13px;border:1px solid color-mix(in srgb,var(--subject) 30%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--subject) 8%,#fff);color:var(--ink);text-align:left;overflow:hidden}.teacher-mode .week-lesson21:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:var(--subject)}.teacher-mode .week-lesson21 strong{font-size:13px;line-height:1.28}.teacher-mode .week-lesson21>span:last-child{margin-top:4px;font-size:11px;color:var(--muted);line-height:1.25}.teacher-mode .week-state21{font-size:10px;color:var(--subject);font-weight:800;margin-bottom:4px}







.teacher-mode .week-block21{margin-top:4px;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--subject) 13%,#fff);color:var(--subject);font-size:9px;font-weight:800;line-height:1.25}







.teacher-mode .week-break-time21,.teacher-mode .week-break21{min-height:25px;display:grid;place-items:center;background:#edf2f4;color:#72858f;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.teacher-mode .week-break-time21{position:sticky;left:0;z-index:2;font-variant-numeric:tabular-nums}







.teacher-mode .week-legend21{font-size:11px;color:var(--muted);margin:10px 2px 24px}







.teacher-mode .lesson-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}







.teacher-mode .lesson-metric{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}







.teacher-mode .lesson-metric strong{display:block;font-size:30px;color:var(--ink)}







.teacher-mode .lesson-metric span{font-size:13px;color:var(--muted)}















body.teacher-mode.dark{--ink:#edf5f5;--muted:#b6c8ce;--card:#1c3037;--line:#38505a;--pale:#204448;--green:#72cbc8;--brand-dark:#a5e2df;--canvas:#102128;background:var(--canvas);color:var(--ink)}







.teacher-mode.dark :is(.sidebar,.topline,.card,.stat,.modal,.teaching-nav19,.companion-main21,.lesson-metric){background:var(--card)!important;color:var(--ink)}







.teacher-mode.dark .sidebar button{color:var(--muted)}.teacher-mode.dark .sidebar button.active{color:#bce8e6;background:var(--pale)}







.teacher-mode.dark :is(.week-wrap21,.week-cell21){background:var(--card)}.teacher-mode.dark :is(.week-corner21,.week-dayhead21,.week-time21){background:#172a31}.teacher-mode.dark .week-free21{background:#14262d;border-color:#405660}.teacher-mode.dark .week-lesson21{background:color-mix(in srgb,var(--subject) 18%,#172a31);color:var(--ink)}.teacher-mode.dark .week-modes21{background:#20353d}.teacher-mode.dark .week-modes21 button.active{background:#315059;color:#bce8e6}















@media(max-width:1050px){.teacher-mode .shell{grid-template-columns:196px minmax(0,1fr)}.teacher-mode .main{padding-left:22px;padding-right:22px}.teacher-mode .topline{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px}}







@media(max-width:720px){







  .teacher-mode .shell{display:block}.teacher-mode .sidebar{position:static;height:auto;display:flex;gap:5px;overflow:auto;padding:10px 12px;align-items:center;flex-wrap:nowrap;border-right:0;border-bottom:1px solid var(--line)}







  .teacher-mode .sidebar .brand{min-width:max-content;margin:0 8px 0 0}.teacher-mode .sidebar>p,.teacher-mode .sidebar .bottom,.teacher-mode .side-label23{display:none}.teacher-mode .sidebar button{min-width:max-content;padding:9px 11px}.teacher-mode .side-more23{min-width:max-content;margin:0}.teacher-mode .side-more23>summary{min-height:44px;padding:9px 11px}.teacher-mode .side-more23[open]{position:relative}.teacher-mode .side-more-items23{position:absolute;right:0;top:48px;z-index:20;width:min(300px,88vw);max-height:70vh;overflow:auto;padding:12px;margin:0;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 16px 40px #152d3d26}.teacher-mode .side-more-items23 button{min-width:100%}







  .teacher-mode .main{padding:0 14px 36px}.teacher-mode .topline{height:62px;margin:0 -14px 22px;padding:0 14px}.teacher-mode .topline .small{display:block}







  .teacher-mode .grid,.teacher-mode .formgrid,.teacher-mode .lesson-metrics{grid-template-columns:1fr}.teacher-mode .card{padding:18px}.teacher-mode .hero-art{display:none}







  .teacher-mode .teaching-nav19{top:0;overflow:auto;flex-wrap:nowrap}.teacher-mode .teaching-nav19 button{min-width:max-content}







  .teacher-mode .week-controls21{display:grid;grid-template-columns:1fr}.teacher-mode .week-controls21>input{width:100%}.teacher-mode .week-modes21,.teacher-mode .week-move21{width:100%}.teacher-mode .week-modes21 button,.teacher-mode .week-move21 button{flex:1;min-width:0}.teacher-mode .week-timetable21{grid-template-columns:68px repeat(var(--week-days),minmax(148px,1fr));min-width:calc(68px + var(--week-days)*148px)}







}















/* Teacher-only visual system. Never target shared/student elements without this gate. */











body.teacher-mode{--ink:#142f40;--muted:#536c7b;--green:#007c79;--brand-dark:#005c62;--pale:#e3f3f1;--line:#dce6ed;--canvas:#f1f5f9;--teacher-gradient:linear-gradient(115deg,#052b49 0%,#006a80 65%,#008078 100%)}











body.teacher-mode .shell{grid-template-columns:238px minmax(0,1fr)}











body.teacher-mode .sidebar{background:linear-gradient(160deg,#082c43,#073c4c 70%,#064e55)!important;color:#fff;border:0;padding:28px 18px;box-shadow:6px 0 30px #092c4310}











body.teacher-mode .sidebar .brand{color:#fff;gap:12px;font-size:24px;letter-spacing:-.7px}











body.teacher-mode .brandmark{position:relative;overflow:hidden;background:linear-gradient(135deg,#125473,#009c95);border:1px solid #ffffff20;border-radius:14px;width:42px;height:42px;color:#fff;box-shadow:0 6px 18px #001a3440}











body.teacher-mode .brandmark:after{content:'';position:absolute;right:-8px;top:-12px;width:32px;height:48px;background:#ffffff22;transform:rotate(-35deg);border-radius:50%}











body.teacher-mode .sidebar>p,body.teacher-mode .sidebar :is(.side-label23,.side-sub-label23,.bottom p){color:#accbd4}











body.teacher-mode .sidebar :is(button,.side-more23>summary){color:#d3e5ea;border-radius:12px;font-weight:600}











body.teacher-mode .sidebar :is(button,.side-more23>summary):hover{background:#ffffff12;color:#fff}











body.teacher-mode .sidebar :is(button.active,.side-more23>summary.active){background:linear-gradient(100deg,#126179,#007f7c);color:#fff;box-shadow:inset 3px 0 #67e0ce,0 4px 12px #001b3220}











body.teacher-mode .sidebar :is(.bottom,.side-sub-label23,.side-more-items23){border-color:#ffffff20}











body.teacher-mode .main{padding-bottom:48px}











body.teacher-mode .topline{background:var(--card);height:68px;margin-bottom:24px}











body.teacher-mode h1{font-size:clamp(28px,2.5vw,38px);font-weight:750;letter-spacing:-1px}











body.teacher-mode h2{font-size:22px;line-height:1.3}











body.teacher-mode .hero{position:relative;isolation:isolate;overflow:hidden;padding:28px 30px;margin-bottom:24px;border-radius:22px;background:var(--teacher-gradient);color:#fff;box-shadow:0 12px 28px #063c5518;gap:20px}











body.teacher-mode .hero:after{content:'';position:absolute;z-index:-1;pointer-events:none;right:-80px;top:-175px;width:420px;height:330px;transform:rotate(25deg);border-radius:48%;background:linear-gradient(130deg,#b2fff02a,#ffffff02)}











body.teacher-mode .hero h1{color:#fff;margin:8px 0 10px}











body.teacher-mode .hero :is(p,.eyebrow){color:#d1ebee}











body.teacher-mode .hero p{font-size:15px;max-width:72ch;margin-bottom:0}











body.teacher-mode .hero-art{background:#ffffff13;color:#fff;border:1px solid #ffffff24;width:80px;height:80px;border-radius:22px;flex-shrink:0}











body.teacher-mode :is(.card,.stat,.lesson-metric){padding:20px;border-radius:17px;box-shadow:0 3px 12px #17394e06}











body.teacher-mode .card.accent{box-shadow:inset 4px 0 #008580,0 3px 12px #17394e08}











body.teacher-mode .stat strong{color:var(--brand-dark);font-size:30px;font-variant-numeric:tabular-nums}











body.teacher-mode button.primary{background:var(--teacher-gradient);color:#fff;border-color:transparent;box-shadow:0 4px 10px #00566a18}











body.teacher-mode button.primary:hover{background:linear-gradient(115deg,#031f37,#005869 65%,#006760);border-color:transparent}











body.teacher-mode button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}











body.teacher-mode :is(input,textarea,select){border-color:#c4d3de;background:var(--card)}











body.teacher-mode :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #1aa3af;outline-offset:3px}











body.teacher-mode .listrow{padding:12px 0;gap:12px}











body.teacher-mode table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}











body.teacher-mode th{background:var(--canvas);color:var(--muted);font-size:12px;letter-spacing:.025em}











body.teacher-mode :is(th,td){padding:12px 14px;border-bottom:1px solid var(--line)}











body.teacher-mode tbody tr:hover{background:var(--pale)}











body.teacher-mode .week-modes21 button.active{background:var(--teacher-gradient);color:#fff}











body.teacher-mode .week-lesson21{background:linear-gradient(125deg,color-mix(in srgb,var(--subject) 9%,var(--card)),color-mix(in srgb,var(--subject) 19%,var(--card)));border-color:color-mix(in srgb,var(--subject) 28%,var(--line));box-shadow:0 2px 5px #14354606}











body.teacher-mode .week-lesson21:hover{border-color:var(--subject);box-shadow:0 3px 10px #14354616}











body.teacher-mode .week-dayhead21.today{background:var(--pale)}











body.teacher-mode .modal{padding:26px;border-radius:20px;max-width:min(960px,94vw)}











body.teacher-mode .teaching-hero19{background:var(--teacher-gradient)!important;color:#fff!important;border-radius:20px!important;padding:24px!important}











body.teacher-mode .teaching-nav19 button.active,body.teacher-mode .teaching-nav19 button[aria-current="page"]{background:var(--teacher-gradient)!important;color:#fff!important;box-shadow:none!important}











body.teacher-mode.dark{--canvas:#0e202b;--card:#19313e;--ink:#e9f3f7;--muted:#b2c7d2;--line:#334e5d;--pale:#1b454b;--brand-dark:#8adcd4}











body.teacher-mode.dark .hero{background:var(--teacher-gradient)!important}











@media(max-width:1050px){body.teacher-mode .shell{grid-template-columns:210px minmax(0,1fr)}}











@media(max-width:720px){











 body.teacher-mode .shell{display:block}











 body.teacher-mode .sidebar{padding:10px 12px}











 body.teacher-mode .sidebar .brand{font-size:20px}











 body.teacher-mode .sidebar .side-more-items23{background:#083747}











 body.teacher-mode .hero{padding:22px 20px;border-radius:18px}











 body.teacher-mode :is(.card,.stat,.lesson-metric){padding:16px}











 body.teacher-mode .topline{height:auto;min-height:60px;gap:12px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}











 body.teacher-mode .modal{padding:18px}











}











@media print{











 body.teacher-mode .hero,body.teacher-mode .teaching-hero19{background:#fff!important;color:#142f40!important;box-shadow:none!important}











 body.teacher-mode .hero :is(h1,p,.eyebrow){color:#142f40!important}











 body.teacher-mode .hero:after{display:none}











}























body.teacher-mode.dark :is(.week-break-time21,.week-break21){background:#243e4b;color:#bbd0da;border-color:var(--line)}











body.teacher-mode.dark .week-state21{color:#addce7}











body.teacher-mode.dark .week-modes21 button.active{background:var(--teacher-gradient);color:#fff}











body.teacher-mode.dark input{color-scheme:dark}



















/* Subject-aware worksheet release wizard. */







.release-assistant49 .release-context49{padding:1rem 1.2rem;border-radius:16px;background:linear-gradient(110deg,#12344b,#087d7e);color:white;margin-bottom:1rem}







.release-assistant49 .release-context49 strong{font-size:1.25rem}







.release-assistant49 .release-context49 .muted{color:#def3f1;margin:.4rem 0 0}







.release-assistant49 .release-grid49{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}







.release-assistant49 .card{margin:0 0 1rem;padding:1.2rem}







.release-assistant49 .option{font-size:.95rem;align-items:center}







.release-assistant49 select{width:100%;min-width:0}







.release-assistant49 details>summary{cursor:pointer;font-weight:650;padding:.3rem 0}







@media(max-width:720px){.release-assistant49 .release-grid49{grid-template-columns:1fr;gap:0}}











/* Compact teacher workspace; preserve scrolling where content actually needs it. */



body.teacher-mode .workspace-side52{padding:22px 16px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;scrollbar-width:thin}



body.teacher-mode .workspace-side52 .brand{margin:0 8px 12px;font-size:22px}



body.teacher-mode .workspace-side52 .workspace-caption52{margin:0 12px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#b7d1da}



body.teacher-mode .workspace-nav52{display:grid;gap:4px}



body.teacher-mode .workspace-nav52 button{display:flex;gap:10px;align-items:center;width:100%;min-height:44px;margin:0;padding:10px 12px;font-size:14px;line-height:1.35}



body.teacher-mode .workspace-side52 .workspace-account-button52{margin-top:auto;padding:14px 12px;border-top:1px solid #ffffff26;border-radius:0;font-size:14px;min-height:48px}



.workspace-mobile52{display:none}



.workspace-menu52{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}



.workspace-menu52 button{display:flex;gap:12px;align-items:center;text-align:left;min-height:64px;margin:0}



.workspace-menu52 button.active{border-color:var(--green);background:var(--pale)}



.workspace-dialog52{max-width:640px}



.workspace-account52{display:grid;gap:10px;margin-bottom:24px}



.workspace-account52 button{width:100%;text-align:left}



.workspace-account52 p{font-weight:700;color:var(--ink)}



.workspace-tasks52 .workspace-task-head52{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}



.workspace-task-head52 h2{margin:0}



.workspace-task-grid52{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}



.workspace-task52{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--card);min-width:0;display:flex;flex-direction:column;gap:12px}



.workspace-task52 h3{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}



.workspace-task52 p{margin:0}.workspace-task52 .row{margin-top:auto;gap:8px}



.workspace-task52 button{margin:0;min-height:44px}.workspace-task-count52{font-size:14px;color:var(--muted);line-height:1.6}



body.teacher-mode .workspace-home52>.hero{padding:22px 28px;margin-bottom:18px}



body.teacher-mode .workspace-home52>.hero h1{font-size:30px}



body.teacher-mode .workspace-home52>.companion-main21{padding:24px;margin-bottom:16px}



@media(max-width:1050px){



 body.teacher-mode .shell{display:block}



 body.teacher-mode .sidebar.workspace-side52{display:none}



 body.teacher-mode .workspace-mobile52{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:15;background:var(--card);padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:16px}



 .workspace-mobile52 strong{margin-right:auto;color:var(--green)}



 body.teacher-mode .workspace-mobile52 button{min-height:44px;margin:0;padding:8px 14px}



}



@media(max-width:640px){



 .workspace-task-grid52,.workspace-menu52{grid-template-columns:1fr}



 .workspace-menu52 button{min-height:52px}



 .workspace-task52{padding:16px}.workspace-tasks52{padding:18px!important}



 .workspace-task52 .row{flex-direction:column;align-items:stretch}



 body.teacher-mode .workspace-home52>.hero{padding:20px}



 body.teacher-mode .workspace-home52>.hero h1{font-size:26px}



}





/* Readable weekly timetable in both display modes. */

body.teacher-mode .week-page53>.hero{padding:16px 24px;margin-bottom:16px;min-height:0}

body.teacher-mode .week-page53>.hero h1{font-size:26px;margin:4px 0}

body.teacher-mode .week-page53>.hero p{margin:4px 0;font-size:14px}

body.teacher-mode .week-page53>.hero .hero-icon{display:none}

body.teacher-mode .week-time21,body.teacher-mode .week-cell21{min-height:76px}

body.teacher-mode .week-cell21{padding:5px}

body.teacher-mode .week-time21{padding:10px 5px}

body.teacher-mode .week-free21{min-height:64px;color:#526674;background:#f3f6f8;border-color:#a8b9c4}

body.teacher-mode .week-lesson21{min-height:64px;padding:8px 10px 8px 13px;gap:2px}

body.teacher-mode .week-lesson21 strong{font-size:14px;line-height:1.35;color:#142c3c}

body.teacher-mode .week-lesson21>span:last-child{font-size:12px;line-height:1.35;color:#405565;margin-top:2px}

body.teacher-mode .week-state21{font-size:11px;color:#405565;margin:0}

body.teacher-mode .week-block21{font-size:10px;margin-top:2px;color:#213e50;background:#e4edf3}

body.teacher-mode .week-time21 strong{font-size:14px}

body.teacher-mode .week-time21 span,body.teacher-mode .week-dayhead21 span{font-size:12px}

body.teacher-mode.dark .week-wrap21{border-color:#617986}

body.teacher-mode.dark .week-cell21{background:#14232f;border-color:#526979}

body.teacher-mode.dark :is(.week-time21,.week-dayhead21,.week-corner21){background:#203747;color:#fff;border-color:#617986}

body.teacher-mode.dark :is(.week-time21 span,.week-dayhead21 span){color:#e2edf4}

body.teacher-mode.dark .week-free21{background:#14232f;color:#c2d2dd;border-color:#526979}

body.teacher-mode.dark .week-lesson21{background:#304b60;border-color:#8299a9;color:#fff;box-shadow:none}

body.teacher-mode.dark .week-lesson21:before{width:5px;background:color-mix(in srgb,var(--subject) 60%,#fff)}

body.teacher-mode.dark .week-lesson21 strong{color:#fff}

body.teacher-mode.dark .week-lesson21>span:last-child,body.teacher-mode.dark .week-state21{color:#e5eff6}

body.teacher-mode.dark .week-block21{background:#dcebf3;color:#142c3c}

body.teacher-mode.dark .week-lesson21:hover{background:#3d5e75;border-color:#c4e7f3}

body.teacher-mode.dark .week-dayhead21.today{color:#b9fff0;box-shadow:inset 0 -3px #82e5d3}

body.teacher-mode.dark :is(.week-break21,.week-break-time21){background:#203747;color:#dbe8ef;border-color:#526979}

body.teacher-mode.dark .week-modes21{background:#203747}

body.teacher-mode.dark .week-modes21 button{color:#eef6fa}

body.teacher-mode.dark .week-modes21 button.active{background:#c2eee7;color:#12382f;box-shadow:none}

body.teacher-mode.dark .week-controls21 input{color-scheme:dark;background:#203747;color:#fff;border-color:#8299a9}



/* Duties are short schedule entries, visually separate from lessons. */

body.teacher-mode .week-lesson21.week-duty53{min-height:44px;padding:6px 10px;background:#fff4da;border:1px dashed #a9843e;gap:2px}

body.teacher-mode .week-duty53:before{display:none}

body.teacher-mode .week-duty53 .week-state21{color:#62470d;font-size:11px}

body.teacher-mode .week-duty53 strong{color:#62470d;font-size:12px;font-weight:600}

body.teacher-mode .week-duty-cell53,body.teacher-mode .week-duty-time53{min-height:52px;padding:4px}

body.teacher-mode .week-duty-cell53 .week-free21{min-height:44px;border:0;background:transparent}

body.teacher-mode.dark .week-lesson21.week-duty53{background:#3a3020;border-color:#be9c58}

body.teacher-mode.dark .week-duty53 :is(strong,.week-state21){color:#ffe3a2}

body.teacher-mode.dark .week-lesson21.week-duty53:hover{background:#4c3e29}



.classes-grid53{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}

.classes-grid53>.card{margin:0}

.class-card53{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}

.class-card53 :is(h2,h3,p){margin:0;overflow-wrap:anywhere}.class-card53 h2{font-size:21px}.class-card53 h3{font-size:18px;line-height:1.4}

.class-card53 button{width:100%;margin:0!important}.class-card53 button.primary{margin-top:auto!important}

.class-avatar53{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--pale);color:var(--ink);font-weight:800}

.class-subjects53{font-size:13px;color:var(--muted);line-height:1.6}

.classes-controls53{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}

.classes-controls53 label{margin:0}.classes-toggle53{display:flex;align-items:center;gap:10px;min-height:44px}.classes-toggle53 input{width:20px;min-height:20px}

.classes-tabs53{display:flex;gap:8px;margin:16px 0}.classes-tabs53 button{flex:1;min-height:48px;margin:0}

body.teacher-mode .classes-page53>.hero{padding:22px 26px}

@media(max-width:1250px){.classes-grid53{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:640px){.classes-grid53{grid-template-columns:1fr}.classes-tabs53{gap:4px}.classes-tabs53 button{font-size:13px;padding:10px 6px}}


/* Submission state: readable text plus badges, never colour alone. */
body.teacher-mode .submission-row54{padding:18px 20px;gap:16px;border-inline-start:4px solid #82909c;background:#f1f4f6;align-items:center}
.submission-row54>div{min-width:0;flex:1}.submission-row54 strong{display:block;font-size:16px;line-height:1.4}
.submission-row54 .submission-meta54{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.submission-row54 .submission-badge54{display:inline-flex;padding:4px 9px;border-radius:8px;font-size:12px;font-weight:700;background:#dce3e8;color:#314657}
body.teacher-mode .submission-row54.submission-submitted54{background:#eff9f5;border-inline-start-color:#188264}
.submission-submitted54 .submission-badge54{background:#d1eee2;color:#14543e}
body.teacher-mode .submission-row54.submission-revision54{background:#fff8e9;border-inline-start-color:#a17420}
.submission-revision54 .submission-badge54{background:#f6e6bc;color:#61440a}
.submission-row54 .small{margin:9px 0 0;font-size:12px}
body.teacher-mode.dark .submission-row54{background:#26333f!important;border-color:#526574;border-inline-start-color:#94a7b7;color:#f1f5f8}
body.teacher-mode.dark .submission-row54 .muted{color:#d3dfe8}
body.teacher-mode.dark .submission-submitted54{background:#183e38!important;border-inline-start-color:#69d4b1}
body.teacher-mode.dark .submission-revision54{background:#3c3321!important;border-inline-start-color:#e4bd68}
@media(max-width:640px){body.teacher-mode .submission-row54{padding:16px;align-items:stretch;flex-direction:column}.submission-row54>button{width:100%;margin:0}}

.release-filters54{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:16px}.release-filters54 label{margin-top:0}
.release-grid54{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.release-group54{margin:24px 0}.release-group54>h2{font-size:20px;margin:0 0 14px}
.release-grid54 .release-card54{margin:0;min-width:0;display:flex;flex-wrap:wrap;align-content:start;gap:8px;padding:20px}
.release-card54 :is(h3,p){width:100%;overflow-wrap:anywhere}.release-card54 h3{font-size:18px;line-height:1.4;margin:8px 0 0}.release-card54 p{margin:4px 0 12px}
.release-primary54{display:flex;gap:8px;flex-wrap:wrap;width:100%}.release-primary54 button{margin:0!important;min-height:44px}
.release-more54{width:100%;margin-top:6px;border-top:1px solid var(--line);padding-top:6px}.release-more54 summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--muted);font-weight:600}
.release-more54 button{display:block;width:100%;text-align:left;margin:6px 0!important;min-height:44px}
@media(max-width:900px){.release-grid54{grid-template-columns:1fr}.release-filters54{grid-template-columns:1fr 1fr}.release-filters54>div:first-child{grid-column:1/-1}}
@media(max-width:500px){.release-filters54{grid-template-columns:1fr}.release-primary54{flex-direction:column}.release-primary54 button{width:100%}}

/* Worksheet catalogue: subject families and consistent timetable accents. */
.sheet-subjects18{display:flex;flex-direction:column;gap:16px;margin:20px 0}.subject-group55 h2{font-size:14px;margin:0 0 8px;color:var(--text);font-weight:700}.subject-buttons55{display:flex;flex-wrap:wrap;gap:10px}.subject-buttons55 button{border-left:6px solid var(--subject55);background:var(--card,#fff);color:inherit;text-align:left;min-height:46px}.subject-buttons55 button.active{background:var(--subject55);color:#fff;box-shadow:0 0 0 2px currentColor inset}.sheet-more55{margin-top:12px}.sheet-more55 summary{cursor:pointer;font-weight:600;padding:8px 0}.sheet-more55 .row{margin-top:8px;gap:8px}.wi-hero.wi-compact55{margin-top:24px;padding:20px;min-height:0}.wi-compact55 .wi-eyebrow{display:none}.wi-compact55 h2{font-size:20px}.wi-compact55 p{margin:6px 0}.dark .subject-buttons55 button:not(.active){background:#263844;color:#f4f8fc}@media(max-width:600px){.subject-buttons55{display:grid;grid-template-columns:1fr 1fr}.subject-buttons55 button{min-width:0;overflow-wrap:anywhere;font-size:14px}.wi-hero.wi-compact55{display:block}.wi-compact55 .wi-hero-actions{margin-top:12px}}

/* Audit 56: compact teacher-only navigation, import and readable input hints. */
body.teacher-mode .wi-hero.wi-compact55{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 22px;border-radius:16px}
body.teacher-mode .wi-hero.wi-compact55 h2{font-size:20px;margin:0 0 5px}body.teacher-mode .wi-hero.wi-compact55 p{font-size:14px;margin:0}
body.teacher-mode .wi-compact55 .wi-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0;flex-shrink:0}
body.teacher-mode .wi-compact55 .wi-eyebrow{display:none}
body.teacher-mode input::placeholder,body.teacher-mode textarea::placeholder{color:#546876;opacity:1}body.teacher-mode.dark input::placeholder,body.teacher-mode.dark textarea::placeholder{color:#bdcdd8}
body.teacher-mode .sheet-more55 summary{min-height:44px;padding:12px 0}
body.teacher-mode .hero{padding:22px 26px;margin-bottom:20px}body.teacher-mode .hero h1{font-size:30px}body.teacher-mode .hero .hero-art{width:64px;height:64px;font-size:32px}
@media(max-width:1050px){body.teacher-mode .workspace-mobile52>strong{font-size:14px;min-width:0;overflow-wrap:anywhere}body.teacher-mode .topline{display:none}}
@media(max-width:640px){body.teacher-mode .hero{padding:18px 20px;gap:12px}body.teacher-mode .hero h1{font-size:25px}body.teacher-mode .hero .hero-art{display:none}body.teacher-mode .hero .eyebrow{display:none}body.teacher-mode .wi-hero.wi-compact55{display:block;padding:16px}body.teacher-mode .wi-compact55 .wi-hero-actions{margin-top:12px}body.teacher-mode .wi-compact55 .wi-hero-actions button{flex:1;min-width:140px}body.teacher-mode .subject-buttons55:has(>button:only-child){grid-template-columns:1fr}}

/* Login only: unified visual identity, independent of the quiz. */
.auth{min-height:100dvh;grid-template-columns:minmax(0,1fr) minmax(420px,1fr);background:#edf4f8}.auth-story{padding:clamp(28px,6vw,96px);background:radial-gradient(ellipse at top right,#20999188,transparent 65%),linear-gradient(135deg,#19314d,#086973);color:#fff}.auth-story .brandmark{background:#ffffff24;color:#fff;border:1px solid #ffffff45}.auth-story h1{font-size:clamp(32px,4vw,56px);line-height:1.13;max-width:600px}.auth-story p{color:#e0f1f5;max-width:500px;font-size:17px}.auth-form{padding:32px;justify-content:center}.auth-inner{max-width:460px;background:#fff;color:#193247;border:1px solid #d2dfe7;border-radius:24px;padding:32px;box-shadow:0 20px 60px #163e5512}.auth-inner h2{font-size:28px}.auth-inner .muted{color:#526575}.auth-inner .eyebrow{color:#21656d}.auth-inner input{background:#f7fafc;color:#193247;border-color:#8da4b3;min-height:48px}.auth-inner label{color:#243e50}.auth-inner button.primary{background:linear-gradient(110deg,#203e60,#197477);color:#fff;min-height:48px;margin:12px 0}.auth-inner>button{width:100%;white-space:normal;background:#eef4f7;color:#234658;border:1px solid #cedde5}.auth-inner .error{background:#fff0ed;color:#7f3028}.dark .auth{background:#142531}.dark .auth-inner{background:#223745;border-color:#456170;color:#f2f7fa}.dark .auth-inner :is(h2,label){color:#f2f7fa}.dark .auth-inner .muted{color:#ccdae3}.dark .auth-inner .eyebrow{color:#9be3dd}.dark .auth-inner input{background:#172c3a;color:#fff;border-color:#7893a4}.dark .auth-inner>button{background:#2b4655;color:#edf7fb;border-color:#65818f}.auth :is(button,input):focus-visible{outline:3px solid #21a8b3;outline-offset:3px}
@media(max-width:760px){.auth{display:flex;flex-direction:column}.auth-story{padding:24px}.auth-story h1{font-size:28px;margin:22px 0 10px}.auth-story p{font-size:15px;margin:0}.auth-form{padding:20px 16px;align-items:flex-start}.auth-inner{padding:24px;width:100%}.auth-story .brand{font-size:22px}}

.completion-assistant57{max-width:1000px!important}.completion-list57{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.completion-item57{border:1px solid var(--line);border-left:4px solid #8395a3;border-radius:14px;padding:18px;min-width:0}.completion-item57 h3{overflow-wrap:anywhere}.completion-item57.completion-done57{border-left-color:#2c9c79}.completion-item57.completion-partial57{border-left-color:#c49635}.completion-item57.completion-not_done57{border-left-color:#8b7474}.completion-item57.completion-needs_review57{border-left-color:#5a8abd}.completion-reason57{font-size:14px;line-height:1.55}.completion-select57{display:flex;gap:8px;align-items:center;min-height:44px;margin:0}.completion-footer57{position:sticky;bottom:-26px;background:var(--card);padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:20px;z-index:2}@media(max-width:640px){.completion-list57{grid-template-columns:1fr}.completion-footer57{bottom:-18px;flex-wrap:wrap}.completion-footer57 button{width:100%}}

/* Direct, keyboard-accessible completion choices. */
.completion-choices59{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.completion-choices59 button{flex:1 1 110px;min-height:44px;padding:10px 8px;font-size:14px}.completion-choices59 button.selected{background:#205f68!important;color:#fff!important;border-color:#205f68;box-shadow:inset 0 0 0 2px #fff}.dark .completion-choices59 button.selected{background:#b8e9e2!important;color:#123a3b!important;border-color:#b8e9e2;box-shadow:inset 0 0 0 2px #285b60}

.solution-label71{color:#a12727;font-weight:650;white-space:pre-wrap}
.solution-input71 textarea,.solution-input71 input,.solution-input71 select{color:#a12727!important;-webkit-text-fill-color:#a12727;opacity:1!important;background:#fff3f1!important;accent-color:#a12727}
.solution-input71 label:has(input:checked),.solution-input71 .order-row{color:#a12727;background:#fff3f1;border-color:#bd6464}
.solution-input71 :disabled{opacity:1}
body.dark .solution-label71{color:#ffb4aa}
body.dark .solution-input71 textarea,body.dark .solution-input71 input,body.dark .solution-input71 select{color:#ffb4aa!important;-webkit-text-fill-color:#ffb4aa;background:#452c31!important}
body.dark .solution-input71 label:has(input:checked),body.dark .solution-input71 .order-row{color:#ffb4aa;background:#452c31}
