:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202742;background:#f4f6fb;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #edaa24;outline-offset:4px}header{height:88px;background:white;border-bottom:1px solid #e2e6f0;display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100vw - 1200px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px;color:#242b47;text-decoration:none;font-size:24px;white-space:nowrap}.brand-icon{background:#5141cf;color:white;font-size:34px;line-height:44px;width:44px;text-align:center;border-radius:12px}.brand b{color:#5141cf}.grade{font-size:12px;font-weight:750;letter-spacing:1.5px;color:#59627a}.grade span{color:#bbc0d1;padding:0 12px}main{max-width:1200px;margin:auto;padding:40px 24px 24px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow{font-size:12px!important;letter-spacing:1.8px;color:#5b4dca!important;font-weight:800;margin:0 0 9px!important}h1{font-size:38px;letter-spacing:-1.3px;margin:0 0 10px;line-height:1.2}.intro p{color:#667089;margin:0;font-size:16px;line-height:1.6}.session{display:flex;flex-direction:column;align-items:center;border:1px solid #dfe4f1;border-radius:16px;padding:13px 25px;background:#fff}.session strong{font-size:30px;color:#5141cf}.session span{font-size:12px;color:#667089}.layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:28px}.nav-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;color:#68728b;letter-spacing:1.3px;padding:0 9px 14px}.nav-heading span{background:#e6e9f2;border-radius:5px;padding:3px 6px}nav{display:grid;gap:7px}.skill{border:1px solid transparent;background:transparent;display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:13px 12px;border-radius:12px;color:#46506b}.skill:hover{background:#e9edf7}.skill[aria-current=true]{background:#5141cf;color:#fff;box-shadow:0 5px 15px #5141cf20}.skill .num{display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;border:1px solid #dbe0ec;background:#fff;border-radius:9px;font-size:13px;font-weight:700;color:#636c83}.skill[aria-current=true] .num{background:#6d5eda;border-color:#8c7fe4;color:#fff}.skill strong{font-size:14px;display:block;font-weight:650}.skill small{font-size:12px;display:block;opacity:.78;margin-top:3px}.aside-note{font-size:14px;color:#727b92;line-height:1.7;margin:24px 10px}.workspace{background:#fff;border:1px solid #e0e5f1;box-shadow:0 6px 26px #333f7210;border-radius:22px;padding:30px 34px;min-width:0;align-self:start}.work-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px;font-size:12px;color:#73809a}.pill{background:#eef0fc;color:#5748b9;border-radius:6px;padding:6px 9px;font-weight:700}h2{font-size:27px;letter-spacing:-.7px;margin:0 0 10px}.description{color:#657089;font-size:16px;line-height:1.6;margin:0 0 24px}.question{background-color:#f7f8fe;background-image:linear-gradient(#e6eafb70 1px,transparent 1px),linear-gradient(90deg,#e6eafb70 1px,transparent 1px);background-size:22px 22px;border:1px solid #e7eafa;border-radius:14px;padding:26px;margin-bottom:25px}.equation{font-size:clamp(25px,3vw,38px);font-weight:650;text-align:center;letter-spacing:.5px;line-height:1.6;padding:12px 0;color:#333c68}.story{font-size:19px;line-height:1.7;margin:0}.diagram{width:100%;height:auto;max-height:290px;display:block}.diagram text{font-family:inherit;font-size:15px;font-weight:650;fill:#343d60;paint-order:stroke;stroke:#f7f8fe;stroke-width:4px;stroke-linejoin:round}.diagram .unit{font-size:12px;font-weight:500}.model-note{font-size:13px;color:#626d87;text-align:center;margin:5px 0 0}.input-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px;margin-bottom:18px}label.field-label,fieldset legend{font-size:14px;font-weight:650;display:block;color:#46516b;margin-bottom:7px}input.answer{width:180px;max-width:100%;border:2px solid #dce1ee;border-radius:10px;padding:12px 15px;font-size:22px;color:#263151;background:#fff}input.expression{width:100%;font-size:20px}.unit-label{color:#738099;font-size:14px}.input-help{font-size:13px;color:#727e94;margin:-8px 0 19px;line-height:1.6}.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.primary{border:0;background:#5141cf;color:white;border-radius:10px;padding:14px 20px;font-weight:650;font-size:15px;display:flex;gap:25px;align-items:center}.primary:hover{background:#4030b9}.primary:disabled{background:#838caa;cursor:default}.secondary{background:white;border:1px solid #dce1ee;border-radius:10px;padding:13px 16px;color:#5c657e;font-size:14px;font-weight:600}.bottom{display:flex;justify-content:space-between;gap:15px;margin-top:26px;border-top:1px solid #edf0f6;padding-top:18px}.next,.text-button{border:0;background:none;color:#5141cf;font-size:14px;font-weight:650;padding:6px 0}.next{margin-left:auto}.next span{margin-left:14px}.feedback,.hint{padding:16px 19px;border-radius:11px;margin-top:19px;font-size:15px;line-height:1.7}.feedback strong,.hint strong{display:block;margin-bottom:3px}.feedback.good{background:#eafaef;color:#196242;border:1px solid #bfe8cd}.feedback.retry{background:#fff5df;color:#7b5411;border:1px solid #f0daad}.hint{background:#edf3ff;color:#3f557f}.step{margin:5px 0}fieldset{border:0;padding:0;margin:0 0 22px;min-width:0}.choice{display:flex;gap:12px;align-items:flex-start;border:1px solid #e1e5f1;border-radius:10px;padding:12px 14px;margin:8px 0;font-size:15px;line-height:1.6;cursor:pointer}.choice:has(input:checked){border-color:#8276d8;background:#f3f1ff}.choice input{accent-color:#5141cf;width:19px;height:19px;flex-shrink:0;margin-top:3px}footer{color:#727d94;font-size:12px;margin:30px 0 5px;display:flex;justify-content:space-between;gap:15px}[hidden]{display:none!important}@media(max-width:850px){.layout{grid-template-columns:230px minmax(0,1fr);gap:18px}.workspace{padding:25px 23px}main{padding:30px 20px}.grade{font-size:10px;letter-spacing:.7px}}@media(max-width:650px){header{height:72px;padding:0 20px}.grade{display:none}main{padding:25px 16px}h1{font-size:30px}.intro{gap:10px;margin-bottom:23px}.intro p{font-size:14px}.eyebrow{font-size:10px!important;letter-spacing:1px}.session{padding:10px;min-width:88px}.session span{font-size:10px}.layout{display:block}nav{grid-template-columns:1fr 1fr;gap:6px}.skill{padding:10px 8px;gap:8px;background:#fff;border-color:#e1e5f0}.skill strong{font-size:12px}.skill small{font-size:10px}.skill .num{width:27px;height:29px}.nav-heading{padding-bottom:9px}.aside-note{display:none}.workspace{margin-top:22px;padding:24px 20px;border-radius:17px}h2{font-size:24px}.question{padding:17px}.work-top{font-size:11px}.description{font-size:15px}footer span{display:none}.primary{gap:15px}.diagram text{font-size:16px}}@media(prefers-reduced-motion:no-preference){.workspace{animation:appear .25s ease}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}}
.student-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px;margin-bottom:28px;background:#fff;border:1px solid #e0e5f1;border-radius:15px}.student-label{display:block;font-size:11px;letter-spacing:1.3px;color:#75809a;margin-bottom:5px;font-weight:750}#student-name{font-size:20px;overflow-wrap:anywhere}.student-actions{display:flex;gap:10px}.streak-meter{padding:14px 16px;margin:0 0 20px;border:1px solid #e4e1f6;background:#f8f7ff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.streak-text strong{font-size:15px;display:block;color:#5141cf}.streak-text span{font-size:12px;color:#6d7690;display:block;margin-top:4px}.streak-dots{display:flex;gap:6px}.streak-dots span{border:1px solid #d8d4ed;background:#fff;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;font-size:13px;color:#7c83a0}.streak-dots .filled{background:#278453;border-color:#278453;color:#fff}.streak-meter.complete{background:#edf9f0;border-color:#cce7d2}.streak-meter.complete strong{color:#20683e}.skill .num.earned,.skill[aria-current=true] .num.earned{background:#23844d;color:#fff;border-color:#a4dbb9}.skill.mastered:not([aria-current=true]){background:#edf8ef}.skill[aria-current=true] .num.earned{border:2px solid #d5f4d6}#connection{padding:14px 18px;margin-bottom:20px;background:#fff0d5;border:1px solid #e8ce92;color:#714a05;border-radius:10px;line-height:1.6}dialog{border:1px solid #dce2f0;border-radius:20px;box-shadow:0 24px 100px #1b254d45;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 36px);padding:30px;color:#202742;background:#fff;overflow:auto}dialog::backdrop{background:#1820449e;backdrop-filter:blur(3px)}dialog p{line-height:1.6;color:#626e88}dialog input{margin-bottom:18px}.session-note{margin:0 0 20px!important}#name-error{color:#a2362b;font-size:14px}#report-dialog{width:min(960px,calc(100vw - 28px));padding:30px}.report-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}#report-student{font-size:28px;font-weight:750;color:#222b46;overflow-wrap:anywhere;margin:20px 0 6px}#report-summary{margin-top:0;color:#575f7b;font-size:15px}.table-scroll{overflow-x:auto;border:1px solid #e0e5ef;border-radius:12px;margin-top:22px}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}th{background:#f3f5fc;color:#63708c;font-weight:650;font-size:12px;padding:13px 15px;white-space:nowrap}td{padding:15px;border-top:1px solid #e5e9f2;line-height:1.5;min-width:110px}td:first-child{min-width:190px}td:last-child{min-width:160px;font-size:12px;color:#63708c}td small{display:block;color:#748099;font-size:12px;margin-top:4px}.mastery-badge{display:inline-block;background:#e5f6e9;color:#226841;border:1px solid #bfe0c8;border-radius:7px;padding:5px 9px;font-size:13px;font-weight:750;white-space:nowrap}.working-badge{font-size:13px;color:#737d93}.report-note,#report-status{font-size:13px;line-height:1.7;color:#6c7791}.report-actions{margin-top:22px}.intro .session{min-width:140px}.session strong{white-space:nowrap}button:disabled{cursor:wait;opacity:.65}#check:disabled{cursor:default}@media(max-width:650px){.student-bar{padding:15px;flex-wrap:wrap}.student-actions{width:100%;justify-content:space-between}.student-actions button{font-size:13px;padding:11px 14px}.streak-meter{align-items:flex-start;flex-direction:column}.streak-dots{align-self:flex-end}.intro .session{min-width:91px}.session strong{font-size:24px}dialog,#report-dialog{padding:23px 18px}.report-header{flex-wrap:wrap}.report-header button{font-size:12px;padding:9px 12px}#report-student{font-size:25px}td{padding:11px}th{padding:11px}}
@media print{body{background:white}body>header,body>main,#name-dialog{display:none!important}#report-dialog{position:static;display:block!important;width:100%;max-width:none;max-height:none;overflow:visible;border:0;box-shadow:none;padding:0;margin:0}#report-dialog:not([open]){display:none!important}dialog::backdrop{display:none}.report-header button,.report-actions{display:none!important}.table-scroll{overflow:visible}table{font-size:11px}td,th{padding:8px;min-width:0!important}td:last-child{font-size:10px}tr{break-inside:avoid}.mastery-badge{font-size:11px}#report-summary{font-size:12px}}
.report-qr-block{display:flex;align-items:center;gap:24px;padding:16px;margin:20px 0;background:#f5f7ff;border:1px solid #dce3f3;border-radius:15px}.report-qr-block img{display:block;background:#fff;flex-shrink:0;max-width:100%;width:240px;height:240px;border-radius:8px;image-rendering:pixelated}.report-qr-block h3{margin:0 0 10px;font-size:20px}.report-qr-block p{font-size:14px;line-height:1.6}.report-link{display:inline-block;text-decoration:none}.shared-report{max-width:980px;padding-top:30px}.report-card{background:#fff;border:1px solid #e0e5f1;border-radius:20px;padding:30px}.report-card h1{overflow-wrap:anywhere}.saved-summary{font-size:19px;color:#278453;margin-bottom:5px}.report-date{font-size:14px;color:#626e88;line-height:1.6;margin-top:6px}.phone-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 12px}.phone-actions a{text-decoration:none}.phone-help{font-size:13px;color:#68748d;line-height:1.6}.shared-report-page .table-scroll{margin-top:22px}.shared-report-page #phone-status{font-size:14px;color:#714a05}@media(max-width:650px){.report-qr-block{flex-direction:column;text-align:center;padding:15px}.report-qr-block img{width:240px;height:240px}.report-card{padding:22px 17px}.shared-report{padding:18px 12px}.phone-actions>*{flex:1 1 140px;justify-content:center;text-align:center;padding:13px 10px}.shared-report-page .table-scroll{overflow:visible;border:0;border-radius:0}.shared-report-page table,.shared-report-page tbody,.shared-report-page tr,.shared-report-page td{display:block;width:100%;min-width:0!important}.shared-report-page thead{display:none}.shared-report-page tr{border:1px solid #e1e5f0;border-radius:12px;padding:8px 14px;margin-bottom:12px}.shared-report-page td{border:0;padding:6px 0}.shared-report-page td:first-child{font-size:16px;margin-bottom:3px}.shared-report-page td:not(:first-child)::before{content:attr(data-label) ": ";font-weight:650;color:#66718b;font-size:13px}.shared-report-page td small{display:inline-block;margin-left:7px}.shared-report-page td:first-child small{display:block;margin-left:0}.shared-report-page td:last-child{font-size:13px}.shared-report-page .mastery-badge{font-size:13px}}
@media print{.report-qr-block{display:none!important}.shared-report-page>main.shared-report{display:block!important;max-width:none;margin:0;padding:0}.shared-report-page .report-card{border:0;padding:0;box-shadow:none}.shared-report-page .phone-actions,.shared-report-page .phone-help,.shared-report-page #phone-status,.shared-report-page .share-privacy{display:none!important}.shared-report-page .table-scroll{overflow:visible;border:1px solid #ddd}.shared-report-page table{display:table!important;width:100%;font-size:11px}.shared-report-page thead{display:table-header-group!important}.shared-report-page tbody{display:table-row-group!important}.shared-report-page tr{display:table-row!important;break-inside:avoid}.shared-report-page td{display:table-cell!important;width:auto!important;padding:8px!important;font-size:11px!important;border-top:1px solid #ddd}.shared-report-page td::before{display:none}.shared-report-page td small{display:block;margin-left:0}.shared-report-page h1{font-size:28px}}

/* Test practice: readable multi-step expressions and all test parts. */
.equation{overflow-wrap:anywhere;font-size:clamp(1.15rem,3vw,2rem);line-height:1.6}.equation-equals{font-size:1.5rem;font-weight:700;color:#68728b;margin:6px 0}.choice input[type=radio]{accent-color:#5141cf}fieldset{margin-top:22px}fieldset legend{font-weight:700;margin-bottom:10px}.skill small{font-size:12px}.skill strong{font-size:14px}
.mode-tabs{display:flex;gap:8px;background:#e8eaf5;padding:6px;border-radius:14px;margin-bottom:16px}.mode-tabs button{border:0;border-radius:10px;flex:1;padding:15px;color:#4e5876;background:transparent;font-weight:750;font-size:16px}.mode-tabs button[aria-pressed=true]{background:#5141cf;color:#fff;box-shadow:0 3px 8px #30365922}#mode-panel p{line-height:1.7;color:#58647e}#save-status{font-size:14px;color:#58647e;min-height:20px}.score-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.score-grid>div{padding:20px;border:1px solid #dfe4f0;border-radius:12px;background:#f6f7fd}.score-grid strong{font-size:27px;display:block;color:#5141cf}.score-grid span{display:block;font-size:14px;color:#606c84;margin-top:6px}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.result-tile{padding:14px;border:1px solid #edddbf;border-radius:12px;background:#fff8ec}.result-tile strong,.result-tile span{display:block;font-size:14px}.result-tile span{margin-top:7px}.earned-tile{background:#edf8ef;border-color:#c7e3ce}.teacher-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.teacher-search{display:flex;align-items:center;gap:12px;margin:24px 0}.teacher-search input{width:320px}.teacher-search label{white-space:nowrap}.teacher-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:24px}.student-result{border:1px solid #dce2ee;background:white;border-radius:14px;margin:14px 0;overflow:hidden}.student-result>summary{padding:20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;cursor:pointer;background:#fff}.student-result small{display:block;font-size:13px;color:#68748b;margin-top:6px}.student-result[open]>summary{background:#efedfb;border-bottom:1px solid #dfdaee}.student-detail{padding:22px}.student-detail p{line-height:1.6}.question-result{border:1px solid #dfe5f0;border-radius:10px;margin:10px 0}.question-result>summary{display:flex;justify-content:space-between;gap:14px;cursor:pointer;padding:15px}.question-result>summary span{font-size:14px;color:#56617a}.question-detail{padding:18px}.question-detail .question{max-width:650px}.question-detail li{line-height:1.6}#teacher-login{max-width:580px;margin:24px auto}#teacher-login input{margin:8px 0 20px}#teacher-login .input-help{margin-top:22px}#teacher-error{background:#fff0d5;color:#714a05;border-radius:12px;padding:16px;margin-bottom:20px}.teacher-page a{color:#5141cf}details:focus-visible,summary:focus-visible{outline:3px solid #e5a427;outline-offset:3px}@media(max-width:650px){.score-grid{gap:8px}.score-grid>div{padding:12px}.score-grid strong{font-size:23px}.score-grid span{font-size:12px}.results-grid{grid-template-columns:1fr}.teacher-heading,.teacher-search{flex-wrap:wrap}.teacher-search input{width:100%}.student-result>summary{grid-template-columns:1fr;gap:9px}.question-result>summary{flex-wrap:wrap}.student-detail{padding:14px}.teacher-page header>span{display:none}.teacher-pagination{gap:10px;margin:20px 0}}@media print{body.teacher-page>main{display:block!important;max-width:none;padding:0}.teacher-heading .actions,.teacher-search,.teacher-pagination,#teacher-login,#teacher-error{display:none!important}.student-result>summary{background:white}.student-result,.question-result{break-inside:avoid}.teacher-page details{overflow:visible}.teacher-page .student-detail{padding:10px}.teacher-page .question{background:white}.teacher-page h1{font-size:24px}}

.assessment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.assessment-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.assessment-card h2{margin:4px 0}.assessment-card p{margin:0;line-height:1.6}.assessment-card .primary{margin-top:auto;text-decoration:none}.hub-modes{margin:38px 0}.assessment-back{margin:0 0 20px}.assessment-back a{color:#4d39ca}.teacher-search{flex-wrap:wrap}.teacher-search select{max-width:280px}.assessment-card .pill{white-space:normal}@media(max-width:700px){.assessment-grid{grid-template-columns:1fr}.assessment-card{padding:24px}.hub-modes .results-grid{grid-template-columns:1fr}}

.availability{margin:24px 0}.access-form{padding:20px 0;border-top:1px solid #e5e1f0}.access-options{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.access-options .choice{margin:0}.access-options input{width:20px;height:20px;accent-color:#4d39ca}#settings-status{color:#315b41}

.review-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:18px 0}.review-question{display:flex;align-items:center;gap:10px;min-height:44px;min-width:0;border:1px solid #e1dcec;border-radius:9px;padding:8px 10px;background:#fff;color:#202742;text-align:left;font-size:14px}.review-question:hover{background:#f4f2ff;border-color:#b7aedf}.review-question>strong{min-width:25px;flex-shrink:0}.review-question-title{overflow-wrap:anywhere}.review-status{width:24px;min-width:24px;height:24px}.review-icon{display:block;width:24px;height:24px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){.review-questions{grid-template-columns:1fr}}.submit-warning{background:#fff3d6;border:1px solid #d3ab45;border-radius:12px;padding:18px;margin:24px 0}.review-question .diagram{max-height:250px}

.delete-attempt{border-top:1px solid #dfe4f1;margin-top:24px;padding-top:20px}.delete-attempt p{font-size:14px;color:#657089}#student-account-form{max-width:550px}#student-accounts{margin-top:20px}#account-status{overflow-wrap:anywhere}@media print{#account-status,#student-account-form,#student-accounts button,.delete-attempt{display:none!important}}

#class-form{max-width:550px;margin-bottom:20px}#class-filter{max-width:550px;margin-bottom:20px}#student-accounts select{max-width:180px;padding:8px;border:1px solid #dfe4f1;border-radius:7px}#account-class{margin-bottom:18px}

.reader-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border:1px solid #c9c5ee;border-radius:10px;background:#f1efff;color:#5141cf;vertical-align:middle}.reader-button:hover{background:#e5e0ff}.reader-button[aria-pressed=true]{background:#5141cf;color:white}.readable-choice{display:flex;align-items:center;gap:10px}.readable-choice>.choice,.readable-choice>span{flex:1;min-width:0}.question-reader-row{display:flex;align-items:flex-start;gap:12px}.question-reader-row>.description{flex:1}#reader-status{color:#5141cf;font-size:14px}#reader-status:empty{display:none}@media print{.reader-button,#reader-status{display:none!important}}

.dashboard-section{margin:20px 0}.dashboard-section>summary{cursor:pointer;font-size:22px;font-weight:700;color:#333c68;padding:5px 0}.dashboard-section-body{padding-top:22px}.dashboard-section .teacher-search{margin-top:0}.class-results-filter{max-width:550px;margin:24px 0}#notification-status{padding:14px;border-radius:8px;background:#f3f4fb}@media print{#accounts-section,#classes-section,#access-section,#notifications-section{display:none!important}}

#approval-requests{margin-top:20px}#approval-count{font-size:16px;color:#5141cf}#approval-status{color:#5141cf}@media print{#approvals-section{display:none!important}}

#push-status{padding:14px;background:#f3f4fb;border-radius:8px;line-height:1.6}.push-note{font-size:14px;color:#657089;margin-top:20px}.dashboard-section{scroll-margin-top:20px}@media print{#push-section{display:none!important}}

.assessment-status strong{display:block;font-size:14px}.assessment-status strong+small{margin-bottom:10px}.assessment-timeline{background:#f4f6fb;padding:12px 18px;border-radius:10px;margin:18px 0}.assessment-timeline p{margin:8px 0}

/* Keep assessment status visible when result entries are expanded. */
.student-result{--result-background:#fff}
.student-result.redo-complete{--result-background:#e5f5e9;border-color:#9bc9a6}
.student-result.redo-started{--result-background:#fff4c2;border-color:#dfc568}
.student-result,.student-result>summary,.student-result[open]>summary{background:var(--result-background)}
.result-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin:20px 0;font-size:14px;color:#344155}
.result-legend span{display:inline-flex;align-items:center;gap:8px}
.result-legend i{width:16px;height:16px;border:1px solid #a4acb8;border-radius:4px;background:#fff;flex:none}
.result-legend .complete{background:#e5f5e9;border-color:#9bc9a6}
.result-legend .started{background:#fff4c2;border-color:#dfc568}

/* Student language choice remains available on the sign-in dialog. */
header.student-language-header{flex-wrap:wrap;gap:1rem}.language-control{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:700}.language-control select{font:inherit;background:#fff;color:#23233c;border:1px solid #b9b8ce;border-radius:8px;padding:.55rem;min-height:44px}#name-form>.language-control{justify-content:flex-end;margin-bottom:1rem}[lang="es"] .skill strong{overflow-wrap:anywhere}[lang="es"] .mode-tabs button{white-space:normal}

.approval-hours{margin:24px 0;padding:20px;border:1px solid #d9d5ed;border-radius:12px;background:#f8f7fd}.approval-hours h3{margin-top:0}.approval-hours-fields{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.approval-hours-fields label{display:flex;flex-direction:column;gap:6px;font-weight:600}.approval-hours-fields .answer{width:auto;max-width:100%;margin:0}.approval-hours p{max-width:75ch}

.calculator-toggle{white-space:nowrap}.question-reader-row{flex-wrap:wrap}#calculator-dialog{width:min(390px,calc(100vw - 32px));max-height:90vh;padding:20px} .calculator-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.calculator-heading h2{font-size:1.3rem;margin:0}.calculator-heading button{padding:8px}#calculator-dialog>p{margin:14px 0 0;line-height:1.4}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.calculator-keys button{min-height:44px;padding:8px;font-size:1.1rem}#calculator-result{display:block;min-height:36px;margin:12px 0;font-size:1.4rem;overflow-wrap:anywhere}.accommodation-controls{min-width:260px;max-width:450px;margin-top:12px;white-space:normal}.accommodation-controls summary{cursor:pointer;font-weight:700;color:#4933ae}.accommodation-controls form{padding:12px;border:1px solid #d9d5ed;border-radius:8px;margin-top:8px}.accommodation-controls p{font-size:.85rem;line-height:1.5}.accommodation-controls .choice{align-items:flex-start;white-space:normal}

.fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.8em;line-height:1.2;margin:0 .15em}.fraction>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .2em .08em}.fraction>span:last-child{padding:.08em .2em 0}.written-response{display:block;width:100%;min-height:110px;resize:vertical;border:2px solid #dce1ee;border-radius:10px;padding:14px;font:inherit;line-height:1.6;color:#263151;background:white;margin:10px 0 16px}.written-help{font-size:.85rem;color:#667089;line-height:1.5;margin:10px 0 16px}.written-response-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;background:#f6f7fd;border-radius:8px;padding:14px}.written-review-part{margin:24px 0;padding-bottom:24px;border-bottom:1px solid #dfe4f0}.written-review-part>label{display:block;margin-top:16px}.written-review-part select{font:inherit;padding:8px}.review-question p{white-space:pre-wrap;overflow-wrap:anywhere}.written-assessment-page h1{font-size:clamp(24px,3vw,34px);max-width:850px}.written-assessment-page .grade{max-width:50%;white-space:normal}.written-assessment-page header{height:auto;min-height:88px;padding-top:12px;padding-bottom:12px}

.long-assessment-page #skills{max-height:min(55vh,420px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.long-assessment-page .workspace{scroll-margin-top:16px}

/* Math entry keeps fractions editable above and below a visible bar. */
.math-entry{width:100%;min-width:0}.input-row:has(.math-entry){flex-wrap:wrap}.math-entry-tools{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0}.math-entry-key{min-width:42px;min-height:40px;padding:5px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:20px}.math-entry-key:last-child{font-size:14px}.fraction-button-symbol{display:inline-flex;flex-direction:column;line-height:12px;font-size:12px}.fraction-button-symbol>span:first-child{border-bottom:1.5px solid currentColor;padding-bottom:2px}.math-entry-editor{border:2px solid #d9d5ef;border-radius:12px;padding:10px 12px;min-height:52px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:21px;line-height:2.5;background:white;color:#25233d;width:100%;box-sizing:border-box}.math-entry-editor.multiline{min-height:120px;font-size:18px;line-height:2.5}.math-entry-editor:focus-within{outline:3px solid #b7acf1;border-color:#5141cf}.math-entry-editor[aria-disabled=true]{background:#f4f3f8}.entry-fraction{display:inline-flex;vertical-align:middle;flex-direction:column;align-items:center;margin:0 4px;line-height:1.1}.entry-fraction input{display:block;min-width:2ch;max-width:15ch;margin:0;padding:2px 4px;border:0;border-radius:0;background:#f3f0ff;text-align:center;font:inherit;line-height:1.2;color:inherit;box-sizing:content-box}.entry-fraction input:first-child{border-bottom:2px solid #25233d}.entry-fraction input:focus{outline:2px solid #7763d4;background:#fff}.entry-fraction input:disabled{background:transparent}.math-entry [hidden]{display:none}
/* An attachment stays compact in the answer; its workspace fills a Chromebook screen. */
.drawing-attachment{margin:12px 0;padding:10px;border:1px solid #ddd8ec;border-radius:12px;background:#faf9ff}.drawing-thumbnail{margin-top:8px;max-width:320px}.student-drawing{display:block;width:100%;height:auto;max-width:100%;background:white;border:1px solid #d6d9e3;border-radius:6px}.drawing-response{margin:12px 0;break-inside:avoid}.drawing-response figcaption{font-weight:700;margin-bottom:6px}.drawing-response>button{margin-top:6px}.drawing-dialog{width:calc(100vw - 20px);max-width:1440px;height:calc(100dvh - 20px);max-height:none;padding:12px;box-sizing:border-box;border:1px solid #ddd8ec;border-radius:14px;overflow:hidden}.drawing-dialog[open]{display:flex;flex-direction:column;gap:8px}.drawing-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-shrink:0}.drawing-heading h2{font-size:19px;margin:0}.drawing-heading [role=status]{font-size:12px}.drawing-toolbar{flex-shrink:0;display:grid;gap:6px}.drawing-tools,.drawing-options,.drawing-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.drawing-toolbar button{font-size:12px;padding:6px 9px;min-height:32px}.drawing-tools button[aria-pressed=true]{background:#5141cf;color:white;border-color:#5141cf}.drawing-options{font-size:12px}.drawing-options label{display:flex;align-items:center;gap:4px}.drawing-options input[type=range]{width:65px}.drawing-options input[type=color]{width:30px;height:28px;padding:1px;border:1px solid #ccc}.drawing-options select{font:inherit;padding:4px}.drawing-scroll{min-height:100px;flex:1;overflow:auto;background:#e8eaf0;border-radius:6px;border:1px solid #ccd1df;overscroll-behavior:contain}.drawing-scroll svg{margin:0 auto;display:block;max-width:none;height:auto;touch-action:none;user-select:none;cursor:crosshair;background:white}.drawing-scroll svg[data-tool=select]{cursor:move}.drawing-scroll svg[data-tool=pan]{cursor:grab}.drawing-scroll svg[data-tool=text]{cursor:text}.drawing-tip{font-size:11px;margin:0;flex-shrink:0}.drawing-text-entry{display:flex;gap:6px;align-items:center;flex-shrink:0}.drawing-text-entry[hidden]{display:none}.drawing-text-entry textarea{flex:1;min-width:0}.drawing-viewer{width:90vw;max-width:1300px;height:90dvh;padding:14px;overflow:hidden}.drawing-viewer[open]{display:flex;flex-direction:column;gap:10px}.drawing-view-scroll{overflow:auto;flex:1}.drawing-view-scroll svg{max-width:none;flex-shrink:0}.drawing-response .student-drawing{max-height:500px;object-fit:contain}.review-question>.student-drawing{max-width:450px}@media(max-width:600px){.drawing-dialog{padding:6px}.drawing-heading h2{font-size:15px}.drawing-toolbar button{padding:5px 6px;font-size:11px}.drawing-options{gap:4px}.drawing-tip{display:none}}@media print{[data-enlarge-drawing]{display:none}.drawing-response .student-drawing{max-height:none}}

.access-form{min-width:0}.access-form legend{font-size:18px;font-weight:700;padding:0 6px}.availability-save{position:sticky;bottom:0;background:#fff;padding:12px 0;border-top:1px solid #ddd8ec;z-index:2}.availability-save p{margin:6px 0 0;font-size:14px}

.guest-entry{border-top:1px solid #dce2ee;margin-top:24px;padding-top:20px}.guest-entry button{width:100%;padding:14px}.guest-note{padding:14px 18px;border-radius:10px;background:#eef2fc;color:#344155;line-height:1.6}

/* Teacher score review stays readable on narrow screens. */
.score-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.grade-controls{padding:16px;margin-top:18px;background:#f6f7fd;border:1px solid #dfe4f0;border-radius:12px;display:grid;gap:12px}
.grade-controls label{display:grid;gap:6px;font-weight:650;max-width:650px}
.grade-controls select,.grade-controls textarea{width:100%;min-height:44px;font:inherit;padding:10px;border:1px solid #b8c1d4;border-radius:8px;background:#fff;box-sizing:border-box}
.grade-controls textarea{resize:vertical;font-weight:400}
.grade-controls p{font-size:13px;margin:0}.grade-review-actions{margin-top:18px}.score-review-status{min-height:24px}.score-parts{padding-left:22px}
@media print{.grade-controls,.grade-review-actions{display:none!important}}

.grade-celebration{position:relative;overflow:hidden;padding:28px;border-radius:20px;margin:0 0 24px;background:#f0f3ff;border:2px solid #c6ceef;text-align:center}
.grade-celebration .eyebrow{margin-top:0}.grade-big{display:flex;align-items:center;justify-content:center;gap:22px}.grade-big strong{font-size:clamp(44px,9vw,72px);line-height:1.1;color:#342a8a}.grade-big>span{display:grid;place-items:center;min-width:78px;min-height:78px;border-radius:50%;font-size:46px;font-weight:850;background:#5141cf;color:white}
.grade-celebration h2{margin:18px 0 8px}.grade-celebration p{max-width:620px;margin:12px auto}.grade-celebration small{display:block;line-height:1.6;color:#4c5973}.grade-celebrate{background:linear-gradient(125deg,#f1edff,#effbef);border-color:#b9d8a9;animation:grade-arrive 650ms ease-out both}.grade-celebrate:before,.grade-celebrate:after{content:'★';position:absolute;color:#bd8a00;font-size:42px;top:22px;left:24px;transform:rotate(-15deg)}.grade-celebrate:after{left:auto;right:24px;top:75px;transform:rotate(15deg);color:#8064cf}.grade-next-step{font-weight:700}
@keyframes grade-arrive{from{opacity:.4;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:450px){.grade-celebration{padding:22px 14px}.grade-big{gap:16px}.grade-big>span{min-width:64px;min-height:64px;font-size:38px}.grade-celebrate:before,.grade-celebrate:after{font-size:24px;left:12px}.grade-celebrate:after{left:auto;right:12px;top:50px}}
@media(prefers-reduced-motion:reduce){.grade-celebrate{animation:none}}

/* Keep both results filters together at every screen size. */
.teacher-search.results-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}
.result-filter-field{display:grid;gap:7px;min-width:0}.result-filter-field label{font-weight:650}.teacher-search.results-filters input,.teacher-search.results-filters select{width:100%;min-width:0;box-sizing:border-box;min-height:44px}.results-filters>button{min-height:44px}.result-filter-summary{padding:12px 14px;background:#efedfb;color:#342a8a;border-radius:10px;font-weight:650;line-height:1.5}
@media(max-width:760px){.teacher-search.results-filters{grid-template-columns:1fr 1fr}.result-filter-field:first-child{grid-column:1/-1}}
@media(max-width:450px){.teacher-search.results-filters{grid-template-columns:1fr}.result-filter-field:first-child{grid-column:auto}}

.attempt-controls{margin:22px 0;padding:18px;border:1px solid #d9deeb;border-radius:12px;background:#f8f9fe}.attempt-controls .actions{flex-wrap:wrap}.attempt-notice{padding:12px;border-radius:8px;background:#fff4d9;color:#674706}.attempt-lifecycle-status{min-height:24px}

#mode-panel{scroll-margin-top:12px}#mode-panel:focus{outline:none}.grade-redo{margin:18px auto 0;justify-content:center;max-width:100%}

.student-score-parts{border-top:1px solid #cbd1df;margin-top:10px;padding-top:8px;font-size:13px}.student-score-parts p{font-size:12px;margin:4px 0!important;line-height:1.5!important}.student-score-parts ul{padding-left:18px;margin:6px 0}.student-score-parts li{margin:5px 0;line-height:1.5;overflow-wrap:anywhere}.student-score-parts .part-missed{font-weight:700;color:#79500c}.student-score-parts .part-correct{color:#235f40}

/* Finished-test review: missed parts remain visible, with no question accordions. */
.shared-results-filters{margin:24px 0}.quick-review-toolbar{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(0,2fr);gap:16px;margin:20px 0}.quick-review-toolbar label{display:grid;gap:8px;font-weight:650}.quick-review-toolbar select{width:100%;min-width:0;box-sizing:border-box}.quick-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.quick-review-heading h2{margin:6px 0}.quick-review-heading p{margin:6px 0}.quick-review-badge{display:inline-block;border-radius:20px;padding:8px 13px;font-size:13px;font-weight:750;white-space:nowrap}.quick-review-badge.is-pending{color:#704b05;background:#fff0c8}.quick-review-badge.is-finalized{color:#1c623d;background:#e1f4e9}.quick-review-badge.is-legacy{color:#4f5362;background:#eef0f5}.quick-review-release{padding:14px 16px;background:#f1effc;border-left:4px solid #6d60cf;border-radius:6px;line-height:1.6}.quick-review-progress{font-weight:750}.quick-review-question{margin:26px 0;border-top:2px solid #e4e4ed;padding-top:14px}.quick-review-question>h3{font-size:18px}.quick-review-question>.question{font-size:18px;line-height:1.6;margin:14px 0;overflow-wrap:anywhere}.quick-review-part{min-width:0;margin:18px 0;border:1px solid #ccd1df;border-radius:12px;padding:20px;background:#fff;scroll-margin-top:20px}.quick-review-part legend{max-width:100%;font-weight:750;padding:0 8px;overflow-wrap:anywhere}.quick-review-part.is-marked{border-color:#b5abc9}.quick-review-part:focus-within{outline:3px solid #dad4f8;outline-offset:2px}.quick-review-answers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:4px 0 18px}.quick-review-answers>div{padding:12px 15px;background:#f6f7fa;border-radius:8px;min-width:0}.quick-review-answers>div:last-child{background:#eef6f1}.quick-review-answers>div>span{display:block;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:#535967;margin-bottom:7px}.quick-review-answer{white-space:pre-wrap;font-size:18px;line-height:1.55;overflow-wrap:anywhere}.quick-review-decisions{display:flex;gap:12px;flex-wrap:wrap}.quick-review-decisions label{display:flex;align-items:center;gap:10px;border:1px solid #c3c8d7;border-radius:9px;padding:12px 15px;cursor:pointer;min-height:44px;box-sizing:border-box;font-weight:650}.quick-review-decisions label:has(input:checked){border-color:#6552c6;background:#eeeafa;box-shadow:0 0 0 1px #6552c6}.quick-review-decisions input{width:18px;height:18px;accent-color:#5743c0;margin:0}.quick-review-comment{display:block;font-weight:650;margin:16px 0 8px}.quick-review-comment>span{font-weight:400;color:#636879}.quick-review-comment textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0;padding:10px;font:inherit;border:1px solid #cbd0dc;border-radius:8px;resize:vertical;min-height:64px}.quick-review-part-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.quick-review-mark-state{font-size:13px;color:#616676}.quick-review-final-actions{padding-top:22px;border-top:2px solid #e5e3ef;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quick-review-final-help{flex-basis:100%;font-size:14px;line-height:1.5;color:#535a6b}.quick-review-save-status{min-height:24px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}.quick-review-empty{background:#f7f7fb;border-radius:12px;padding:20px;margin:16px 0}.quick-review-override{border:1px solid #e3c77c;background:#fff8e7;padding:14px 16px;border-radius:9px;margin:16px 0}.quick-review-override p{margin:6px 0;line-height:1.5}.quick-review-override .choice{align-items:flex-start}.quick-review-drawing{max-width:100%;overflow:auto}.quick-review-drawing .drawing-preview{max-width:100%}.test-curve-scope{padding:12px 15px;background:#fff5de;border-radius:8px}.test-curve-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.test-curve-controls label{display:grid;gap:8px;flex:1;min-width:200px;font-weight:650}.test-curve-controls label span{font-weight:400;font-size:13px}.test-curve-controls input{width:100%;box-sizing:border-box}.test-curve-preview-box{margin:20px 0;padding:18px;border:1px solid #c8c1ea;border-radius:12px;background:#faf9ff}.test-curve-preview-box .table-scroll{max-height:420px;overflow:auto;margin:15px 0}.test-curve-preview-box td,.test-curve-preview-box th{white-space:normal;min-width:95px}.test-curve-preview-box td:first-child{min-width:160px}.test-curve-preview-box h4{font-size:18px;margin:0 0 10px}.teacher-curve-score{padding:12px;background:#eeeafb;border-radius:9px}
@media(max-width:640px){.quick-review-toolbar,.quick-review-answers{grid-template-columns:1fr}.quick-review-heading{flex-direction:column}.quick-review-part{padding:14px 12px}.quick-review-decisions{display:grid;grid-template-columns:1fr}.quick-review-part-actions{align-items:stretch}.quick-review-part-actions button{width:100%}.quick-review-final-actions>button{width:100%}.test-curve-controls>*{width:100%}.test-curve-controls label{min-width:0}.quick-review-answer{font-size:17px}}
@media print{#quick-review-section,#test-curve-section,.shared-results-filters{display:none!important}}

.format-feedback{flex-basis:100%;font-size:12px;line-height:1.5;color:#626e88;margin:6px 0 12px}.format-feedback.format-invalid{padding:8px 10px;background:#fff5dc;border-left:3px solid #bb7700;color:#765006}.review-format-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border:2px solid #9b5b00;border-radius:50%;background:#ffe3b2;color:#703f00;font-weight:850}.review-status.has-both{display:flex;gap:4px;width:52px;min-width:52px}.review-format-help{font-size:13px}

.retake-controls{margin-top:18px;padding-top:16px;border-top:1px solid #d9deeb}.retake-controls h4{margin:0}.retake-history{margin-top:16px}.retake-history summary{font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}.retake-history ul{padding:0;list-style:none}.retake-history li{padding:12px 0;border-top:1px solid #d9deeb}.retake-history p{overflow-wrap:anywhere}.retake-status{min-height:24px}.retake-controls button{min-height:44px;max-width:100%;white-space:normal}

/* Compact grade ledger: one line per attempt, with full details on expansion. */
.results-ledger{overflow-x:auto;margin-top:16px}
.result-column-headings,.results-ledger .student-result>summary{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(160px,1.4fr) 90px 105px 190px minmax(140px,1fr);align-items:center;gap:12px;min-width:1040px;padding:11px 14px;font-size:14px;line-height:20px}
.result-column-headings{font-size:12px;font-weight:750;color:#526078;background:#f2f4fa;border-radius:8px 8px 0 0}
.results-ledger .student-result{border-radius:0;margin:0;border-top:0;min-width:1040px}
.results-ledger .student-result:first-child{border-top:1px solid #dce2ee}
.results-ledger .student-result:last-child{border-radius:0 0 8px 8px}
.results-ledger .result-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.results-ledger .result-name{color:#4232ac;display:flex;gap:7px;align-items:center}
.results-ledger .result-name:before{content:'▸';flex:none}
.results-ledger .student-result[open]>.result-row .result-name:before{content:'▾'}
.results-ledger .result-name strong{overflow:hidden;text-overflow:ellipsis}
.result-test,.result-redo,.result-curve{font-variant-numeric:tabular-nums;text-align:right;font-weight:700}
.result-column-headings>span:nth-child(n+3):nth-child(-n+5){text-align:right}
.result-assessment,.result-status{color:#526078;font-size:12px}
.results-ledger .student-detail{background:#fff;white-space:normal}
.teacher-pagination[hidden]{display:none}
@media print{.results-ledger{overflow:visible}.result-column-headings,.results-ledger .student-result>summary{min-width:0;grid-template-columns:1.2fr 1.2fr .7fr .8fr 1.4fr 1fr;gap:6px;font-size:11px;padding:8px}.results-ledger .student-result{min-width:0}}

.teacher-mixed{display:inline-block;white-space:nowrap}
.teacher-fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;line-height:1.15;font-size:.9em;margin:0 .12em;white-space:nowrap}
.teacher-fraction>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .18em .08em}
.teacher-fraction>span:last-child{padding:.08em .18em 0}
.teacher-fraction-slash{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* Gradebook acknowledgment is explicit and independent of opening results. */
.gradebook-toolbar{border:1px solid #d8d2f1;border-radius:12px;padding:16px;margin:20px 0;background:#f8f7fd}
.gradebook-toolbar h3{margin-top:0}.gradebook-first-use{font-size:14px;color:#526078}
.gradebook-controls{display:flex;flex-wrap:wrap;align-items:end;gap:16px}.gradebook-controls>label:first-child{display:grid;gap:6px}.gradebook-select-all{display:flex;align-items:center;gap:8px;padding:10px 0}
.results-ledger .result-row>.gradebook-row{grid-column:1/-1;display:none;flex-wrap:wrap;gap:12px 24px;align-items:center;border-top:1px solid #dce2ee;padding-top:10px;white-space:normal;overflow:visible;text-align:left}
.gradebook-state,.gradebook-baseline{display:grid;gap:3px}.gradebook-state{min-width:220px}.gradebook-baseline{flex:1}.gradebook-baseline small{font-size:12px;color:#526078}.gradebook-row-actions{display:flex;align-items:center;gap:16px}.gradebook-row-actions label{display:flex;align-items:center;gap:7px}.gradebook-changed .gradebook-state strong{color:#8a3500}.gradebook-unrecorded .gradebook-state strong{color:#6545aa}.gradebook-recorded .gradebook-state strong{color:#21633d}.gradebook-unavailable{color:#526078;font-size:13px}
@media(max-width:600px){.gradebook-controls{align-items:stretch;flex-direction:column}.gradebook-controls button,.gradebook-controls select{width:100%}.gradebook-toolbar{padding:12px}}
@media print{.gradebook-controls,.gradebook-row-actions,#gradebook-status{display:none!important}.results-ledger .result-row>.gradebook-row{font-size:10px;gap:8px}.gradebook-state{min-width:0}.gradebook-first-use{display:none}}

/* Keep the default roster compact; comparisons open with a row or queue. */
.results-ledger .student-result[open]>.result-row>.gradebook-row,#teacher-results.gradebook-queue-active .result-row>.gradebook-row{display:flex}

.written-ai-draft{margin:1rem 0;padding:1rem;border:1px solid #98adc2;border-radius:.6rem;background:#f1f6fa;color:#183247}.written-ai-draft p{margin:.6rem 0}.written-ai-draft button{margin:.25rem 0;white-space:normal}.written-ai-status{font-weight:600}

/* Optional task reference leaves the drawing model and history mounted. */
.drawing-heading-actions{display:flex;gap:8px;flex-shrink:0}
.drawing-workspace{display:flex;gap:12px;position:relative;flex:1;min-height:0;min-width:0}
.drawing-editor-pane{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;min-width:0}
.drawing-reference{flex:0 0 310px;min-width:0;overflow:auto;overscroll-behavior:contain;padding:12px;box-sizing:border-box;border:1px solid #c4d4bc;border-radius:10px;background:#f5f8ed;color:#183f32;font-size:13px;line-height:1.5}
.drawing-reference[hidden]{display:none!important}
.drawing-reference-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #c4d4bc;padding-bottom:8px;margin-bottom:12px}
.drawing-reference-heading h3{font-size:16px;margin:0}.drawing-reference h4{font-size:16px;margin:3px 0 8px}
.drawing-reference p{margin:6px 0 12px;color:inherit}.drawing-reference ul{padding-left:20px}
.drawing-reference summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;box-sizing:border-box;font-weight:650}
.drawing-reference .story-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:750;margin:0}
.drawing-reference button,#draw-reference-toggle{min-height:44px}
.drawing-reference :focus-visible{outline:3px solid #b08020;outline-offset:2px}
.drawing-reference-title:focus{outline:none}
@media(max-width:959px){.drawing-reference{position:absolute;inset:0;z-index:2;width:auto;border-radius:8px;padding:14px}.drawing-editor-pane[inert]{visibility:hidden}.drawing-reference-heading{position:sticky;top:-14px;background:#f5f8ed;z-index:1;padding-top:10px}.drawing-reference .garden-views{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.drawing-heading-actions{gap:4px}.drawing-heading-actions button{padding:6px!important;max-width:100px}.drawing-heading{align-items:flex-start}.drawing-heading h2{max-width:210px}}

.drawing-pages{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 10px;background:#f3f0ff;border-bottom:1px solid #dcd6f2}.drawing-pages[hidden]{display:none}.drawing-pages label{display:flex;align-items:center;gap:5px;font-size:13px}.drawing-pages input{width:140px;max-width:35vw}.drawing-pages input,.drawing-pages select{min-height:36px}.drawing-pages span{font-size:12px;color:#514765}.drawing-pages button{min-height:36px}

.drawing-dialog .drawing-pages{flex-shrink:0;padding:2px 8px;gap:6px}.drawing-dialog .drawing-pages label{margin:0;font-size:12px}.drawing-dialog .drawing-pages input,.drawing-dialog .drawing-pages select{margin:0;padding:6px;min-height:36px}.drawing-dialog .drawing-pages select{max-width:160px}.drawing-dialog .drawing-pages input{width:120px}.drawing-dialog .drawing-pages span{white-space:nowrap}

.drawing-page-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.drawing-page-previews figure{margin:0;min-width:0}.drawing-page-previews figcaption{font-size:12px;font-weight:700;overflow-wrap:anywhere}.drawing-page-previews p{font-size:12px}

.drawing-dialog .drawing-options input,.drawing-dialog .drawing-options select{margin:0}.drawing-dialog .drawing-options input[type=range]{padding:0;width:50px;height:28px}.drawing-dialog .drawing-options select{width:auto}.drawing-dialog .drawing-tip{line-height:1.35}
