@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#263431;background:#f5f6f3;font-size:14px;--ink:#1b2925;--muted:#7d8680;--orange:#f17b42;--green:#35765f;--border:#e7eae3}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:0;background:transparent;color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.3}h2{font-size:17px;letter-spacing:-.4px}h3{font-size:15px}a{color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#1c2925;color:#a7b5ae;padding:31px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 29px;color:#fff;font-size:20px;font-weight:800;letter-spacing:-.7px}.brandmark{width:34px;height:37px;display:grid;place-items:center;background:#ec8651;color:#1c2925;clip-path:polygon(0 0,100% 0,100% 55%,50% 100%,0 55%);font-size:17px}.brand small{font-size:10px;color:#a7b5ae;display:block;letter-spacing:2.5px;margin-top:3px}.school{padding:13px;border:1px solid #3a4540;border-radius:10px;font-size:12px;display:flex;align-items:center;gap:10px;margin:0 7px 25px}.school b{color:#e3ebe6;display:block;margin-bottom:4px}.school span:first-child{background:#34463d;border-radius:6px;padding:7px;color:#cbd6cc}.navlabel{font-size:10px;letter-spacing:1.8px;padding:0 14px;margin:5px 0 12px;color:#82958b}.nav{display:flex;flex-direction:column;gap:4px;overflow:auto}.nav button{display:flex;gap:12px;align-items:center;text-align:left;padding:12px 14px;border-radius:8px;font-size:13px;font-weight:500;transition:.15s}.nav button:hover{background:#2c3a33;color:white}.nav button.active{background:#f7eee2;color:#24382c;font-weight:700}.icon{display:inline-flex;align-items:center;justify-content:center;width:20px;font-size:17px;flex-shrink:0}.sidefoot{margin-top:auto;padding:24px 12px 0;font-size:11px;line-height:1.8}.sidefoot b{color:#c1cfc6}.shell{margin-left:242px}.topbar{height:83px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 37px;gap:16px}.crumb{font-size:12px;color:#89918b}.crumb b{color:#46564b;font-weight:500}.toptools{display:flex;gap:17px;align-items:center}.profile{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;background:#ede8dc;color:#67694f;display:grid;place-items:center;font-weight:700;font-size:12px}.avatar.orange{background:#fbe8dd;color:#a25f39}.profile b{font-size:12px;display:block}.profile small{font-size:10px;color:var(--muted)}.role{border:1px solid var(--border);border-radius:8px;padding:8px 11px;background:white;max-width:165px;color:#56645a;font-size:12px}.menu{display:none}.content{max-width:1550px;margin:auto;padding:31px 37px 25px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.intro{margin-bottom:25px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;color:#7c8b7f;font-weight:700;margin-bottom:8px}.subtitle{color:#808b81;font-size:12px;margin-top:9px;line-height:1.6}.btn{border-radius:8px;padding:11px 16px;background:#ee8050;color:white;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn:hover{filter:brightness(.96)}.btn.dark{background:#263b30}.btn.soft{background:#f2f4ed;color:#53654f}.btn.outline{background:white;border:1px solid #dfe5da;color:#52664e}.btn.danger{background:#fae8e4;color:#ad5345}.btn:disabled{opacity:.4;cursor:not-allowed}.banner{background:#e9eee4;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 28px;border-radius:12px;margin-bottom:23px;position:relative;overflow:hidden}.banner h2{font-size:21px;max-width:540px;margin:6px 0 9px}.banner p{color:#687b63;font-size:12px;line-height:1.7;max-width:510px}.banner .eyebrow{color:#6c7f60}.bannerart{width:142px;height:100px;position:relative;flex-shrink:0}.paper{background:#fffdf4;border-radius:7px;box-shadow:0 8px 10px #273a2112;width:100px;height:95px;position:absolute;left:20px;top:6px;transform:rotate(-9deg);padding:18px 15px;color:#739369}.paper:after{content:'─────\A ────\A ─────';white-space:pre;color:#c9d2bc;line-height:1.7}.star{position:absolute;right:0;top:0;color:#e69a57;font-size:28px}.circlecheck{background:#426e53;color:white;border:5px solid #e9eee4;border-radius:50%;position:absolute;right:4px;bottom:-3px;width:46px;height:46px;display:grid;place-items:center;font-size:21px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:21px 0}.metric{padding:21px;background:white;border:1px solid var(--border);border-radius:11px}.metric .label{color:#7b867e;font-size:11px}.metric .value{font:800 28px Manrope,system-ui;margin:12px 0 10px;letter-spacing:-1px}.metric .foot{font-size:10px;color:#8c968d}.metric .symbol{width:33px;height:33px;background:#f4f1e9;border-radius:8px;display:grid;place-items:center;font-size:17px;color:#8a9175}.pill{display:inline-block;padding:5px 8px;border-radius:5px;background:#eef3e9;color:#5a7b47;font-size:10px;white-space:nowrap}.pill.orange{background:#fff0e4;color:#bb7c3d}.pill.red{background:#fcebe7;color:#b76552}.pill.blue{background:#eaf0f4;color:#618296}.cols{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px;margin-bottom:20px}.card{border:1px solid var(--border);border-radius:11px;background:#fff;padding:23px;min-width:0}.cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.cardhead small{font-size:10px;color:var(--muted)}.link{font-size:11px;color:#7e8e72;font-weight:600;padding:4px}.chart{width:100%;height:208px;display:block;margin-top:20px}.chart text{font:10px system-ui;fill:#9aA396}.legend{font-size:10px;color:#8c968e;display:flex;gap:18px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#86a57a;margin-right:6px}.dot.orange{background:#edaf82}.schedule-item{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #eef0e9}.schedule-item:last-child{border:0}.time{font-size:12px;color:#788675;min-width:39px}.schedule-line{width:3px;background:#a0b38c;border-radius:3px}.schedule-item:nth-child(3n) .schedule-line{background:#e9a277}.schedule-item b{font-size:12px}.schedule-item p{color:#99a194;font-size:10px;margin-top:6px}.schedule-item .end{margin-left:auto;color:#98a18e;font-size:10px}.miniprogress{height:5px;border-radius:3px;background:#eef1e7;overflow:hidden;min-width:70px}.miniprogress span{display:block;height:100%;background:#94ac7e;border-radius:3px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{text-align:left;font-size:10px;color:#8d968d;font-weight:500;background:#f8f9f5;padding:12px}td{padding:14px 12px;border-bottom:1px solid #f0f2ec;color:#65725f}td b{color:#394d38;font-size:12px}tr:last-child td{border-bottom:0}td .sub{font-size:10px;color:#9ba395;margin-top:5px}.studentcell{display:flex;align-items:center;gap:10px}.studentcell .avatar{width:31px;height:31px;font-size:10px}.announcement{padding:14px 0;border-bottom:1px solid #eff1eb}.announcement:first-of-type{padding-top:0}.announcement:last-child{border:0}.announcement h3{font-size:12px;line-height:1.6}.announcement p{font-size:11px;color:#8e998c;line-height:1.7;margin-top:6px}.announcement small{font-size:9px;color:#a1a999;display:block;margin-top:9px}.demofoot{font-size:10px;color:#a1a99e;margin-top:22px;display:flex;justify-content:space-between;gap:15px;line-height:1.7}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:21px}.toolbar input{flex:1;min-width:170px}input,select,textarea{border:1px solid #dfe5d9;border-radius:7px;background:white;padding:11px 12px;color:#465740;font-size:12px;max-width:100%}textarea{min-height:95px;resize:vertical}input[type=checkbox],input[type=radio]{accent-color:#688956}label.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6c7d62}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.empty{text-align:center;padding:40px 20px;color:#94a08c;line-height:1.8}.empty b{color:#596e50;display:block;margin-bottom:8px}.list{display:grid;gap:13px}.listcard{background:white;border:1px solid var(--border);border-radius:10px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:17px}.listcard h3{margin:8px 0}.listcard p{font-size:11px;color:#89967e;line-height:1.7}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.question{padding:20px 0;border-bottom:1px solid var(--border)}.question p{line-height:1.8;margin:12px 0}.question img,.quiz img{max-width:100%;max-height:300px;border-radius:8px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;color:#88927e}.answers .right{color:#5d8247;background:#f0f5e8;border-radius:4px}.answers span{padding:9px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{padding:7px 12px;border-radius:7px;background:#f0f3e9;color:#798c69;font-size:11px}.chip.active{background:#2c4633;color:white}.note{font-size:11px;padding:13px 16px;background:#f8f2e6;border:1px solid #eee3cf;border-radius:7px;color:#9a845a;line-height:1.7;margin-bottom:18px}.tiny{font-size:11px;color:#97a08d;line-height:1.8}.day{border-left:1px solid var(--border);padding-left:16px}.day:first-child{border:0}.day h3{font-size:12px;margin-bottom:17px}.slot{background:#f0f4ea;padding:14px;border-radius:8px;margin-bottom:10px;font-size:11px;line-height:1.7}.slot:nth-child(3n){background:#fcf0e6}.slot strong{display:block;margin:6px 0}dialog{border:0;border-radius:14px;padding:0;width:min(640px,94vw);color:var(--ink);box-shadow:0 30px 100px #14241440;max-height:90dvh}dialog::backdrop{background:#14271f77;backdrop-filter:blur(3px)}.modalhead{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--border)}.modalbody{padding:25px}.modalfoot{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.close{font-size:24px;color:#92a08a}.checklist{max-height:230px;overflow:auto;border:1px solid var(--border);padding:12px;border-radius:7px}.checklist label{display:flex;gap:9px;padding:9px;font-size:12px;line-height:1.5}.checklist input{flex-shrink:0}.quiz{max-width:900px;margin:auto}.quiz .choice{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid var(--border);border-radius:8px;margin:10px 0;cursor:pointer;font-size:13px}.quiz .choice:has(input:checked){background:#f0f5e9;border-color:#91aa78}.quiz .qtext{font-size:20px;line-height:1.7;margin:25px 0}.quiz .qnum{width:34px;height:34px;border:1px solid var(--border);border-radius:6px;font-size:11px}.quiz .qnum.done{background:#e8f0df;color:#5a7944}.quiz .qnum.active{background:#2c4431;color:white}.quiz .choices{margin:20px 0 30px}#toast{position:fixed;right:28px;bottom:25px;background:#263c2d;color:white;z-index:100;padding:14px 22px;border-radius:8px;font-size:12px;box-shadow:0 6px 20px #223a2633;transform:translateY(100px);opacity:0;transition:.2s;max-width:90vw}#toast.show{transform:none;opacity:1}.score{font:800 53px Manrope;margin:22px 0;color:#60844f}.center{text-align:center}.hidden{display:none!important}.week{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.attendance select{padding:7px}.calendarbox{padding:7px 10px;border:1px solid #e1e6d9;background:white;border-radius:6px;font-size:11px;color:#7b8c6d}.barrow{display:flex;align-items:center;gap:10px;margin:18px 0;font-size:11px}.barrow .miniprogress{flex:1}.barrow>span:first-child{min-width:95px}
@media(min-width:1550px){.content{padding-top:40px}.metrics{gap:24px}.banner{padding:32px}}
@media(max-width:1100px){.sidebar{width:205px;padding:25px 12px}.shell{margin-left:205px}.topbar{padding:0 22px}.content{padding:25px 22px}.metrics{gap:10px}.metric{padding:16px}.cols{grid-template-columns:1.4fr 1fr;gap:15px}.card{padding:18px}.grid3{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);width:242px;transition:.2s}.sidebar.open{transform:none;box-shadow:0 0 0 100vmax #14271f66}.shell{margin:0}.topbar{height:68px;padding:0 18px}.menu{display:block;font-size:23px}.crumb{display:none}.toptools{gap:9px}.profile .profiletext{display:none}.content{padding:23px 17px}.cols{grid-template-columns:1fr}.grid3,.grid2{grid-template-columns:1fr 1fr}.metrics{grid-template-columns:1fr 1fr}.banner{padding:22px}.bannerart{width:108px}.banner h2{font-size:18px}.intro h1{font-size:26px}.intro{align-items:flex-start}.intro .btn{padding:10px;font-size:11px}.week{grid-template-columns:1fr}.day{padding:14px 0;border:0;border-bottom:1px solid var(--border)}.slot{display:inline-block;vertical-align:top;margin-right:10px;min-width:160px}.role{max-width:147px}.demofoot{flex-direction:column;gap:3px}}
@media(max-width:450px){.bannerart{display:none}.grid3,.grid2,.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.listcard{align-items:flex-start;flex-wrap:wrap}.answers{grid-template-columns:1fr}h1{font-size:24px}.metric .value{font-size:26px}.metric .label{font-size:10px}.card{padding:17px}.topbar .avatar{width:32px;height:32px}.intro .actions{width:100%}.quiz .qtext{font-size:17px}}
.nav{scrollbar-width:thin;scrollbar-color:#435449 transparent}.nav::-webkit-scrollbar{width:4px}.nav::-webkit-scrollbar-thumb{background:#435449;border-radius:4px}
.welcome{min-height:100dvh;background:radial-gradient(ellipse at 10% 10%,#e7edde,transparent 60%),#f5f6f3;padding:40px 20px}.welcome-brand{display:flex;gap:12px;align-items:center;max-width:560px;margin:15px auto 45px;font-size:22px;color:#263b30}.welcome-brand b span{font-size:11px;letter-spacing:2px;color:#829679;margin-left:5px}.welcome-card{max-width:560px;margin:auto;padding:38px;background:white;border:1px solid #e1e7da;border-radius:15px;box-shadow:0 18px 70px #20351d06}.welcome-card h1{font-size:31px;line-height:1.4}.welcome-card .subtitle{font-size:13px;line-height:1.9}.institution-option{display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid #dfe7d7;padding:18px;border-radius:10px;background:#f7f9f2}.institution-option small{display:block;font-size:11px;color:#879b7a;margin-top:7px}@media(max-width:500px){.welcome-card{padding:27px 22px}.welcome-card h1{font-size:26px}.welcome-brand{margin-bottom:30px}.toptools{gap:6px}.toptools .link{font-size:10px}.topbar .profile{display:none}}
/* Guided exam preparation */
.exam-dialog{width:min(700px,95vw)}.wizard-steps{list-style:none;display:flex;gap:14px;padding:0 0 23px;margin:0 0 23px;border-bottom:1px solid var(--border)}.wizard-steps li{display:flex;align-items:center;gap:9px;font-size:12px;color:#9aa292;flex:1}.wizard-steps li>span{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:50%;background:#f0f2eb;color:#8c9883;font-size:12px;font-weight:700}.wizard-steps li.current{color:#364e2d;font-weight:700}.wizard-steps li.current>span{background:#ee8050;color:white}.wizard-steps li.complete>span{background:#e7efdf;color:#60824c}.wizard-title{margin-bottom:20px}.wizard-title h3{font-size:20px;line-height:1.5;letter-spacing:-.6px}.wizard-title p{font-size:12px;line-height:1.8;color:#839177;margin-top:8px}.grade-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.grade-choice{text-align:left;padding:15px;background:#fafbf7;border:1px solid #e2e8da;border-radius:9px}.grade-choice b{display:block;font-size:13px}.grade-choice small{display:block;font-size:10px;color:#8d9c81;margin-top:6px}.grade-choice.selected{background:#eff5e7;border:2px solid #85a16f;padding:14px}.wizard-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.wizard-count{font-size:12px;color:#698751;font-weight:700}.wizard-hint{font-size:11px;color:#9aa38f;line-height:1.7;margin-top:12px}.new-question-entry{display:flex;align-items:center;gap:13px;text-align:left;background:#fff6ee;border:1px solid #f4d8c2;border-radius:10px;padding:16px;width:100%;color:#945e39}.new-question-entry b{display:block;font-size:13px}.new-question-entry small{display:block;color:#b08869;font-size:11px;margin-top:5px}.new-question-entry>span:last-child{margin-left:auto}.new-question-plus{display:grid;place-items:center;background:#f7e3d0;width:35px;height:35px;border-radius:8px;font-size:23px}.wizard-search{width:100%;margin-bottom:12px}.wizard-bank{max-height:280px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c5d0bb transparent}.wizard-question{display:flex;gap:11px;align-items:flex-start;padding:15px 13px;background:#fafbf7;border:1px solid #e5eade;border-radius:9px;margin-bottom:8px;cursor:pointer}.wizard-question input{margin:4px 0 0;width:17px;height:17px;flex-shrink:0}.wizard-question small{display:block;font-size:10px;color:#9aa58f;margin-bottom:6px;line-height:1.5}.wizard-question b{display:block;font-size:12px;line-height:1.7;font-weight:500}.wizard-question.picked{border-color:#a0b68b;background:#f0f5e9}.picked-mark{margin-left:auto;opacity:0;color:#6a8c51}.picked .picked-mark{opacity:1}.exam-summary{background:#f3f6ed;border:1px solid #e4eadb;padding:22px;border-radius:11px}.exam-summary h2{margin:13px 0 10px;font-size:19px;line-height:1.6}.exam-summary p{font-size:12px;color:#88997a;line-height:1.7}.duration-presets{gap:7px}.duration-presets .chip{font-size:12px;padding:10px 13px}.wizard-advanced{border:1px solid #e7ebdf;border-radius:8px;padding:15px;margin-top:20px;font-size:12px;color:#7f9071}.wizard-advanced summary{cursor:pointer;line-height:1.7}.wizard-advanced summary>span{float:right;font-size:10px;color:#9faa90}.wizard-advanced p{font-size:11px;line-height:1.8;color:#9aa68b;margin:15px 0}.wizard-publish-note{padding:14px 0 0;font-size:11px;color:#7d9467;line-height:1.8}.exam-success{text-align:center;padding:12px 0 28px}.exam-success-check{display:grid;place-items:center;background:#e9f2df;color:#719457;width:58px;height:58px;border-radius:50%;margin:0 auto 20px;font-size:28px}.exam-success h2{font-size:21px}.exam-success p{font-size:12px;color:#90a17e;margin-top:12px}@media(max-width:500px){.exam-dialog .modalbody{padding:20px 17px}.wizard-steps{gap:6px}.wizard-steps li{font-size:10px;gap:6px}.wizard-steps li>span{width:23px;height:23px;font-size:10px}.grade-choices{gap:7px}.grade-choice{padding:13px 10px}.grade-choice.selected{padding:12px 9px}.wizard-title h3{font-size:18px}.wizard-footer .row{gap:9px}.wizard-footer .btn{font-size:11px;padding:12px}.wizard-bank{max-height:230px}.wizard-question b{font-size:12px}.wizard-advanced summary>span{float:none;display:block;margin-left:16px}}
.wizard-duration-field{display:flex;flex-direction:column;gap:12px;margin-top:23px}.wizard-duration-field>label{font-size:12px;color:#6c7d62}
.wizard-add-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wizard-add-options .new-question-entry{padding:15px 12px;gap:9px}.wizard-add-options .new-question-entry small{font-size:10px;line-height:1.6}.bulk-entry{background:#f0f5e9;border-color:#d7e4c9;color:#60804c}.bulk-entry .new-question-plus{background:#e1ebd7}.bulk-entry small{color:#91a67c}.bulk-upload-steps section{margin:18px 0 25px}.bulk-upload-steps h3{font-size:15px;display:flex;align-items:center;gap:10px;line-height:1.6}.bulk-upload-steps h3>span{display:grid;place-items:center;background:#edf3e5;color:#719253;border-radius:50%;height:27px;width:27px;flex-shrink:0;font-size:12px}.bulk-upload-steps p{font-size:11px;line-height:1.8;color:#93a187;margin:12px 0}.bulk-upload-steps .field{margin-top:16px}.bulk-help{margin-top:14px;font-size:11px;color:#97a68a}.bulk-help summary{cursor:pointer}.bulk-preview{white-space:pre-wrap;font-size:12px;color:#a86546;line-height:1.8}.bulk-ready{border:1px solid #dce8cf;border-radius:8px;padding:14px 16px;background:#f1f7e9;color:#69864f;white-space:normal}.bulk-ready b{display:block;font-size:13px}.bulk-ready span{display:block;margin-top:5px;font-size:11px;line-height:1.7}.bulk-preview-list{margin-top:12px;color:#859579;white-space:normal}.bulk-preview-list p{padding:7px 0;font-size:11px}@media(max-width:550px){.wizard-add-options{grid-template-columns:1fr}.wizard-add-options .new-question-entry{padding:14px}.bulk-upload-steps h3{font-size:13px}}
/* Touch-friendly mobile layout; desktop keeps its existing arrangement. */
.mobile-action-label,.mobile-nav-close,.mobile-menu-backdrop{display:none}
@media(max-width:800px){
body.menu-is-open,body.modal-is-open{overflow:hidden}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #e7a377;outline-offset:3px}
.btn,.link,.chip,.nav button{min-height:46px}
.btn{font-size:14px;padding:12px 16px;line-height:1.4}
.link{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;font-size:13px}
input,select,textarea,.role{font-size:16px;min-height:48px;padding:12px;border-radius:9px}
input[type=checkbox],input[type=radio]{min-height:20px;width:20px;height:20px;padding:0;flex-shrink:0}
label.field{font-size:13px;line-height:1.6;gap:9px}
textarea{min-height:116px;line-height:1.6}
.content{padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
h1{font-size:26px;line-height:1.4;overflow-wrap:anywhere}.subtitle{font-size:13px;line-height:1.8}
.topbar{height:auto;min-height:68px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top))}
.menu{min-width:44px;min-height:46px;border:1px solid var(--border);border-radius:9px;font-size:22px}
.toptools{min-width:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.toptools>button{min-height:44px}.toptools>.role{width:auto;max-width:160px;min-width:0;font-size:13px;padding:10px 7px}.toptools .link{font-size:12px;padding:9px}.toptools .btn{padding:10px 12px;font-size:13px}.topbar .profile{display:none}
.sidebar{width:min(290px,88vw);padding-top:calc(24px + env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}.sidebar.open{box-shadow:none}.sidebar .brand{padding-right:30px}.mobile-nav-close{display:grid;place-items:center;position:absolute;right:13px;top:calc(17px + env(safe-area-inset-top));width:44px;height:44px;font-size:28px;color:#d9e5d9;border-radius:8px;background:#2a3b30}.mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#15291c80;z-index:19;width:100%;height:100%;border-radius:0}.nav{gap:6px}.nav button{padding:14px;font-size:14px}.sidefoot{padding-top:18px}
.intro .actions{width:100%;gap:10px}.intro .actions>.btn{flex:1;min-height:48px;font-size:14px}.intro .calendarbox{font-size:12px;padding:10px}
.toolbar{gap:10px}.toolbar input{width:100%;flex-basis:100%;min-width:0}.toolbar select{flex:1;min-width:140px}.toolbar .btn{min-height:48px}
.listcard{padding:18px;gap:16px}.listcard>div{min-width:0}.listcard h3{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.listcard p{font-size:13px;line-height:1.7}.listcard>.row{width:100%}.listcard>.row>.btn{flex:1}.listcard .link{min-height:44px}
.pill{font-size:11px;padding:7px 9px}.cardhead{flex-wrap:wrap}.tiny,.note{font-size:12px;line-height:1.8}.tablewrap{overscroll-behavior-x:contain}td{font-size:13px;padding:14px 12px}td .sub{font-size:11px}.attendance select{padding:10px;min-width:130px}.studentcell .avatar{width:36px;height:36px}
/* The dialog owns a single scroll area, with actions outside that area. */
dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;inset:auto;top:var(--visible-top,0px);left:0;width:100vw;max-width:100vw;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);margin:0;border-radius:0;overflow:hidden}
dialog .modalhead{flex-shrink:0;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;min-height:66px}.modalhead h2{font-size:17px;line-height:1.5}.close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;font-size:28px;border-radius:9px;background:#f5f6f0}
dialog .modalbody,.exam-dialog .modalbody{padding:20px 16px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:20px;-webkit-overflow-scrolling:touch}
dialog .modalbody>form{min-width:0}
.modal-actions{flex-shrink:0;background:#fff;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e0e6d8;box-shadow:0 -5px 20px #263b3008}
.modal-actions .wizard-footer{display:grid;grid-template-columns:minmax(84px,.75fr) minmax(0,1.5fr);align-items:end;gap:10px;margin:0;padding:0;border:0}.modal-actions .wizard-footer>.row{display:contents}.modal-actions .wizard-count{grid-column:1/-1;order:-1;text-align:center;font-size:13px;line-height:1.4}.modal-actions .wizard-footer>.btn:only-child{grid-column:1/-1}
.modal-actions .modalfoot{margin:0;gap:10px}.modal-actions .modalfoot>.btn{flex:1}.modal-actions .btn{min-height:50px;font-size:15px;padding:12px;white-space:normal;overflow-wrap:anywhere;text-align:center}.modal-actions .wizard-footer .btn{font-size:15px}
.desktop-action-label{display:none}.mobile-action-label{display:inline}
.wizard-steps{margin:0 0 20px;padding-bottom:18px;gap:8px}.wizard-steps li{font-size:11px;gap:7px}.wizard-steps li>span{height:26px;width:26px;font-size:11px}.wizard-title{margin-bottom:18px}.wizard-title h3{font-size:21px;line-height:1.5}.wizard-title p{font-size:13px;line-height:1.7;margin-top:7px}
.grade-choices{gap:9px}.grade-choice{min-height:76px;padding:14px 10px}.grade-choice.selected{padding:13px 9px}.grade-choice b{font-size:14px}.grade-choice small{font-size:11px;margin-top:7px}
.wizard-add-options{grid-template-columns:1fr;gap:12px}.wizard-add-options .new-question-entry{padding:17px 14px;gap:13px;min-height:82px}.new-question-entry b{font-size:15px}.wizard-add-options .new-question-entry small{font-size:12px;line-height:1.6}.new-question-plus{width:38px;height:38px;flex-shrink:0}
.wizard-bank{max-height:none;overflow:visible}.wizard-question{padding:16px 12px;gap:12px}.wizard-question input{width:22px;height:22px;margin-top:4px}.wizard-question b{font-size:14px;line-height:1.7}.wizard-question small{font-size:12px;line-height:1.5}.wizard-count{font-size:13px}.wizard-hint{font-size:12px}
.duration-presets .chip{font-size:14px;padding:12px 15px;min-height:46px}.wizard-duration-field>label{font-size:14px}.wizard-advanced{padding:16px;font-size:13px}.wizard-advanced summary{min-height:36px;padding:5px 0;line-height:1.7}.wizard-advanced p{font-size:12px}.wizard-publish-note{font-size:12px}.exam-summary{padding:20px}.exam-summary h2{font-size:19px}.exam-summary p{font-size:13px}
.bulk-upload-steps h3{font-size:15px;gap:11px}.bulk-upload-steps p{font-size:13px}.bulk-help{font-size:13px}.bulk-help summary{padding:12px 0}.bulk-ready span,.bulk-preview-list p{font-size:12px}.bulk-ready b{font-size:14px}.bulk-preview{font-size:13px}
.quiz{padding-bottom:110px}.quiz .qtext{font-size:19px;line-height:1.8}.quiz .choice{min-height:58px;font-size:15px;padding:16px 13px;gap:12px}.quiz .qnum{height:44px;width:44px;font-size:13px}.quiz-navigation{position:fixed;bottom:0;left:0;right:0;z-index:16;display:flex;flex-wrap:nowrap;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0e6d8;box-shadow:0 -5px 20px #263b3008}.quiz-navigation>.row{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.quiz-navigation .btn{font-size:13px;min-height:48px;padding:10px;white-space:normal;line-height:1.4}.quiz .choices{margin-bottom:22px}
#toast{left:16px;right:16px;top:calc(82px + env(safe-area-inset-top));bottom:auto;max-width:none;line-height:1.7;font-size:13px;transform:translateY(-160px)}#toast.show{transform:translateY(0)}
}
@media(max-width:360px){.toptools>.role{max-width:145px}.grade-choice b{font-size:13px}.modal-actions .btn{font-size:14px}.wizard-steps li{font-size:10px;gap:5px}.wizard-steps{gap:5px}.modal-actions .wizard-footer{grid-template-columns:minmax(78px,.7fr) minmax(0,1.4fr)}}

.teacher-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0 0 28px}.teacher-action{text-align:left;cursor:pointer;transition:transform .15s,border-color .15s}.teacher-action:hover{transform:translateY(-3px);border-color:#8fa979}.teacher-action-icon{display:grid;place-items:center;width:52px;height:52px;background:#edf2e6;border-radius:16px;font-size:26px;margin-bottom:22px}.teacher-action h2{margin-bottom:10px}.teacher-action p{color:#6c786c;line-height:1.6;margin-bottom:24px}.teacher-action>b{color:#527348}.teacher-draft{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid #edf0e7}.teacher-draft>div{min-width:0;overflow-wrap:anywhere}.exam-tabs{margin-bottom:22px}.draft-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.record-invite{display:flex;align-items:center;gap:12px;padding:18px 0 10px;cursor:pointer;font-size:14px}.record-invite input{width:20px;height:20px;flex-shrink:0}
@media(max-width:800px){.teacher-actions{grid-template-columns:1fr;gap:14px}.teacher-action{padding:24px}.teacher-action-icon{width:44px;height:44px;margin-bottom:15px}.teacher-action p{margin-bottom:16px}.teacher-draft{align-items:flex-start;flex-wrap:wrap}.draft-save-row{align-items:center}.draft-save-row .link{min-height:44px;flex-shrink:0}.draft-save-row .tiny{font-size:12px}.record-invite{min-height:48px}.record-invite input{min-height:20px}.exam-tabs .chip{min-height:46px}}
/* Login portals, institution branding and teacher profiles. */
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.portal-card{border:1px solid #dfe5d7;background:#fff;border-radius:13px;padding:19px 17px;text-align:left;display:flex;flex-direction:column;gap:8px;min-height:135px;transition:border-color .15s,background .15s}.portal-card>span{font-size:24px;color:#69835b}.portal-card>b{font-size:15px;color:#263b30}.portal-card>small{font-size:11px;color:#89917f;line-height:1.6}.portal-card.selected{border:2px solid #799963;padding:18px 16px;background:#f0f4e9}.portal-card:hover{border-color:#799963}.portal-continue{display:flex;width:100%;margin-top:24px}.portal-links{display:grid;gap:8px;margin-top:18px}.portal-links .institution-option{font-size:13px}.institution-logo{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:10px;padding:3px;flex-shrink:0}.school{align-items:center}.school>div{min-width:0;overflow-wrap:anywhere}.institution-brand-editor{display:flex;align-items:center;gap:18px;background:#f7f8f2;border:1px solid #e4e8dc;padding:18px;border-radius:12px;margin:20px 0}.institution-brand-editor .institution-logo,.institution-brand-editor .school-placeholder{width:74px;height:74px;border-radius:12px;background:#fff;display:grid;place-items:center;font-size:35px;color:#799963}.institution-brand-editor .link{padding:7px 0}.profile{border:0;background:transparent;text-align:left;cursor:pointer;color:inherit;padding:0}.profile-avatar{object-fit:cover;background:#edf0e7}.profile-summary{text-align:center;margin:0 0 25px}.profile-large{width:120px;height:120px;object-fit:cover;border-radius:50%;margin:0 auto 20px}.profile-placeholder{display:grid;place-items:center;background:#eef3e6;color:#69835b;font-size:36px}.profile-summary h2{margin-bottom:10px}.media-preview{display:flex;justify-content:center;padding:20px;background:#f4f6ee;border:1px solid #e4e8da;border-radius:12px}.media-preview img{width:190px;height:190px;object-fit:contain;background:#fff;border-radius:12px}.media-preview img.round{border-radius:50%;object-fit:cover}.danger-text{color:#ae5445}.install-preview{display:flex;align-items:center;gap:18px;margin-bottom:24px}.install-preview h2{overflow-wrap:anywhere}.install-preview .institution-logo{width:64px;height:64px}.install-instructions{padding-left:22px;font-size:14px;line-height:1.8;margin:24px 0}.install-instructions li{padding:9px 0}.toptools .install-app{font-size:12px;white-space:nowrap;color:#4b6d40}.teacher-profile-entry{font-size:12px}
@media(max-width:800px){.portal-card{padding:18px 14px;min-height:145px}.portal-card.selected{padding:17px 13px}.portal-card>b{font-size:15px}.portal-card>small{font-size:12px}.welcome-brand{margin-bottom:26px}.welcome-card{padding:25px 20px}.welcome-card h1{font-size:27px}.portal-continue{min-height:50px;font-size:14px}.institution-brand-editor{padding:15px;gap:15px}.institution-brand-editor .link{min-height:44px}.institution-logo{width:44px;height:44px}.toptools .install-app,.toptools .teacher-profile-entry{font-size:12px;padding:8px}.install-instructions{font-size:14px}.media-preview img{width:170px;height:170px}.portal-links .institution-option{min-height:50px}}
@media(max-width:360px){.portal-grid{gap:9px}.portal-card{padding:15px 10px}.portal-card.selected{padding:14px 9px}.portal-card>b{font-size:14px}.welcome-card{padding:24px 16px}}
.topbar{height:auto;min-height:88px;flex-wrap:wrap;gap:14px;padding-block:14px}.toptools{flex-wrap:wrap;justify-content:flex-end;row-gap:8px}.topbar .crumb{flex-shrink:0}
@media(max-width:800px){.topbar{min-height:68px;gap:8px;padding-block:10px;padding-top:calc(10px + env(safe-area-inset-top))}}

.institution-eyebrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.heading-institution-logo{width:32px;height:32px;object-fit:contain;border-radius:6px;background:#fff;padding:2px}

/* Compact role-specific entrance. Staff entry is shared through a direct link. */
.portal-family-grid .portal-card{min-height:106px;padding:16px;gap:5px}.portal-family-grid .portal-card.selected{padding:15px}.portal-family-grid .portal-card>span{font-size:22px}.portal-family-grid .portal-card>b{font-size:15px}.portal-family-grid .portal-card>small{font-size:12px;line-height:1.5}.portal-entry-card{display:flex;align-items:center;gap:14px;background:#f1f5ec;border:1px solid #dce5d4;border-radius:12px;padding:16px}.portal-entry-card>span{font-size:27px;color:#69835b}.portal-entry-card b{display:block;font-size:16px}.portal-entry-card small{display:block;margin-top:4px;font-size:12px;color:#77816d}
@media(max-width:500px){.portal-family-grid{gap:10px}.portal-family-grid .portal-card{padding:13px;min-height:108px}.portal-family-grid .portal-card.selected{padding:12px}.welcome-card h1{font-size:25px;line-height:1.25}.welcome-card .subtitle{font-size:14px;line-height:1.65}}
