:root{--red:#a61934;--red-dark:#74172b;--ink:#262b38;--muted:#707784;--line:#e5e6ea;--bg:#f6f7f9;--green:#247859;--amber:#94660b;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;padding:10px 15px;border-radius:8px;color:var(--ink);font-weight:600}button:hover{background:#f1f2f5}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--red);border-color:var(--red);color:white}.primary:hover{background:var(--red-dark)}.danger{color:#a61934}.quiet{background:transparent;border:0}.small{font-size:12px;padding:6px 9px}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:white;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;gap:7px}.brand{display:flex;align-items:center;gap:12px;margin-bottom:37px;padding:0 10px}.brand-mark{height:42px;width:42px;display:grid;place-items:center;border-radius:12px;background:var(--red);color:white;font:bold 25px Georgia}.brand strong{display:block;font-size:18px;letter-spacing:-.5px}.brand small{color:var(--muted);font-size:11px;letter-spacing:1.6px}.nav-button{text-align:left;border:0;padding:13px 15px;background:transparent;color:var(--muted)}.nav-button.active{color:var(--red);background:#f9edf0}.nav-icon{display:inline-block;width:25px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:22px}.avatar{height:33px;width:33px;background:#f3e5e9;color:var(--red);border-radius:50%;display:grid;place-items:center;font-weight:700}.user{display:flex;gap:10px;align-items:center}.user small{display:block;color:var(--muted);font-size:11px}.main{min-width:0}.topbar{height:77px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;color:var(--muted);font-size:13px}.topbar select{border:1px solid var(--line);padding:8px 12px;border-radius:7px}.content{max-width:1500px;margin:auto;padding:36px 40px 70px}.eyebrow{color:var(--red);font-size:11px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:10px}h1{font-size:32px;letter-spacing:-1px;margin:0 0 10px;font-weight:700}h2{font-size:20px;letter-spacing:-.4px;margin:0 0 15px}h3{font-size:16px;margin:0 0 10px}p{line-height:1.6}.muted{color:var(--muted)}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:28px}.page-heading p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.stat span{color:var(--muted);font-size:12px}.stat strong{font-size:30px;font-weight:650;display:block;margin:10px 0 4px;letter-spacing:-1px}.stat small{font-size:11px;color:var(--muted)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:23px}.search{flex:1;min-width:200px;position:relative}.search input{width:100%;background:white}.toolbar input,.toolbar select{border:1px solid var(--line);padding:11px 13px;border-radius:8px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.subject-card{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;text-align:left;display:flex;flex-direction:column;min-height:192px;transition:transform .15s,box-shadow .15s}.subject-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #2221;background:white;border-color:#cdb7be}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.subject-icon{width:41px;height:41px;border-radius:10px;background:#f6edf0;color:var(--red);display:grid;place-items:center;font-size:13px;text-transform:uppercase}.subject-card h3{text-transform:capitalize;font-size:17px}.subject-card p{font-size:12px;color:var(--muted);margin:0 0 18px}.card-footer{border-top:1px solid #f0f0f2;padding-top:14px;margin-top:auto;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.pill{display:inline-block;border-radius:5px;padding:4px 7px;font-size:10px;letter-spacing:.2px;background:#f1f2f5;color:#69717e;font-weight:650;white-space:nowrap}.pill.green{background:#eaf6f0;color:var(--green)}.pill.amber{background:#fff5de;color:var(--amber)}.pill.red{background:#fcebf0;color:var(--red)}.progress{height:4px;border-radius:4px;background:#f0f0f3;overflow:hidden;margin-top:12px}.progress i{display:block;height:100%;background:var(--red)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-heading h2{margin:0}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);background:#fafafb;font-size:11px;font-weight:600;padding:14px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:14px;border-bottom:1px solid #eff0f2;vertical-align:top}tr:last-child td{border-bottom:0}td.title{min-width:240px}td.actions{white-space:nowrap}.link{border:0;background:none;color:var(--red);padding:0;text-align:left}.notice{padding:15px 18px;background:#fff6e3;border:1px solid #efdfb9;color:#765c24;border-radius:9px;margin:16px 0;font-size:13px;line-height:1.6;white-space:pre-line}.notice.good{background:#eef8f2;border-color:#c9e7d7;color:#246447}.notice.error{background:#fff0f2;border-color:#edc6cf;color:#96253d}.empty{padding:50px;text-align:center;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;text-align:left;font-size:12px;font-weight:600}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #dfe1e6;border-radius:7px;background:white;color:var(--ink);font-size:14px;font-weight:400}.field textarea{min-height:100px;resize:vertical}.field small{font-weight:400;color:var(--muted);line-height:1.5}.field.full{grid-column:1/-1}.check{display:flex;gap:9px;align-items:center;font-size:13px}.check input{width:17px;height:17px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px;align-items:center}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#831b33;color:white;padding:65px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:'';position:absolute;width:500px;height:500px;border:90px solid #ffffff08;border-radius:50%;bottom:-240px;right:-240px}.login-art .eyebrow{color:#f0b8c5}.login-art h1{font-size:51px;line-height:1.12;max-width:450px}.login-art p{max-width:390px;color:#edcbd3}.login-form{display:grid;place-items:center;padding:30px}.login-box{width:100%;max-width:400px}.login-box .brand{padding:0;margin-bottom:45px}.login-box h2{font-size:26px}.login-box .field{margin-top:18px}.login-box .primary{width:100%;margin-top:23px}.login-tabs{display:flex;border-bottom:1px solid var(--line);margin:25px 0}.login-tabs button{border:0;background:none;border-radius:0;color:var(--muted)}.login-tabs .active{color:var(--red);border-bottom:2px solid var(--red)}dialog{border:0;border-radius:15px;padding:30px;max-width:800px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 25px 80px #0003}dialog::backdrop{background:#17202c88;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-heading h2{margin:0}.editor-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.totals{display:flex;gap:12px;margin:18px 0}.total{background:white;border:1px solid var(--line);border-radius:10px;padding:14px 20px;min-width:160px}.total strong{font-size:23px;display:block}.total.ok{border-color:#a6d5bc}.total.bad{border-color:#e5bac4}.test-list{display:flex;flex-direction:column;gap:10px}.test-row{display:grid;grid-template-columns:32px 115px 1fr 135px 150px;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:10px;padding:16px}.test-row.dragging{opacity:.5}.test-row[draggable=true]{cursor:grab}.test-row .description{font-size:12px;color:var(--muted);margin-top:5px;max-height:38px;overflow:hidden}.test-numbers{font-size:12px;color:var(--red);line-height:1.8}.sticky-save{position:sticky;bottom:15px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--ink);color:white;border-radius:10px;margin-top:23px;padding:14px 20px;box-shadow:0 8px 35px #0002}.sticky-save small{display:block;color:#c3c7d0;margin-top:4px}.sticky-save button{border:0}.tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:25px}.tabs button{border:0;border-radius:0;background:transparent;color:var(--muted)}.tabs .active{border-bottom:2px solid var(--red);color:var(--red)}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-grid .panel{min-width:0}.matrix td,.matrix th{text-align:center}.matrix th:first-child,.matrix td:first-child{text-align:left;position:sticky;left:0;background:white}.matrix .cell{display:inline-block;width:27px;height:27px;line-height:27px;border-radius:5px;background:#f1f1f4;font-size:11px}.cell.approved{background:#dcefe5;color:#227854}.cell.submitted{background:#fff0c8;color:#976409}.error-text{color:var(--red);font-size:13px;white-space:pre-line}#toast{position:fixed;bottom:25px;right:25px;max-width:500px;background:var(--ink);color:white;border-radius:10px;padding:16px 20px;box-shadow:0 8px 35px #0003;z-index:20;display:none;white-space:pre-line}.loading{padding:80px;text-align:center;color:var(--muted)}pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#f5f6f8;padding:15px;border-radius:7px;max-height:300px;overflow:auto}a{color:var(--red)}.mobile-only{display:none}@media(min-width:1600px){.cards{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.sidebar{padding:25px 12px}.shell{grid-template-columns:205px 1fr}.content{padding:28px 25px}.stats{gap:10px}.stat{padding:17px}.test-row{grid-template-columns:25px 90px 1fr 110px}.test-row>.test-actions{grid-column:3/-1}.admin-grid{grid-template-columns:1fr}}@media(max-width:750px){.shell{display:block}.sidebar{position:static;height:auto;padding:15px;flex-direction:row;flex-wrap:wrap;gap:3px;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 auto 8px 0;width:100%}.sidebar-bottom{display:none}.nav-button{padding:9px 11px;font-size:12px}.nav-icon{width:18px}.topbar{height:55px;padding:0 18px}.content{padding:25px 16px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:25px}.cards{grid-template-columns:1fr}.page-heading{display:block}.page-heading>button{margin-top:15px}h1{font-size:27px}.login{display:block}.login-art{display:none}.login-form{min-height:100vh}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.test-row{grid-template-columns:23px 85px 1fr;padding:13px;gap:8px}.test-row>.weights{grid-column:2/4}.test-row>.test-actions{grid-column:2/4}.totals{flex-wrap:wrap}.total{min-width:130px;flex:1}.sticky-save{align-items:flex-start;flex-direction:column}.sticky-save .button-row{margin:0}.editor-head{align-items:flex-start;flex-direction:column}dialog{padding:20px}.mobile-only{display:block}.toolbar>select{max-width:100%}}
/* Teacher guidance and secondary filters */
.overview-more{margin:0 0 22px;border:1px solid var(--line);border-radius:9px;background:white;padding:13px 16px}.overview-more summary{cursor:pointer;font-weight:600;font-size:13px}.overview-more .toolbar{margin:16px 0 0}.editor-guidance{margin:18px 0}.editor-guidance>strong{font-size:17px}.editor-guidance p{margin:8px 0;color:var(--muted);font-size:14px}.editor-steps{display:flex;gap:16px;list-style:none;margin:18px 0 0;padding:0}.editor-steps li{display:flex;align-items:center;gap:9px;flex:1;color:var(--muted);font-size:13px}.editor-steps li span{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#f1f2f5}.editor-steps li[aria-current]{color:var(--red);font-weight:700}.editor-steps li[aria-current] span{background:var(--red);color:white}@media(max-width:750px){.editor-steps{flex-direction:column;gap:12px}.page-heading>.button-row{margin-top:16px}.sticky-save .button-row{width:100%}.sticky-save .button-row>button{flex:1}.overview-more .toolbar>select{width:100%}}
.pta-fields{grid-column:1/-1;min-width:0;margin:0;padding:18px;border:1px solid var(--line);border-radius:9px;display:grid;grid-template-columns:minmax(0,1fr);gap:17px}.pta-fields[hidden]{display:none}.pta-fields legend{font-size:13px;font-weight:700;color:var(--red);padding:0 7px}@media(max-width:750px){.pta-fields{grid-template-columns:1fr}}

#test-form .field[hidden]{display:none}

dialog:has(#test-form){max-width:980px}
#test-form .form-grid{align-items:start}
#test-form .form-grid>*{min-width:0}
#test-form .check{align-items:flex-start;gap:9px;font-weight:400;line-height:1.45;text-align:left}
#test-form input[type=checkbox]{flex:0 0 18px;width:18px!important;height:18px;min-height:18px;padding:0!important;margin:1px 0 0;accent-color:var(--red)}
#test-form .test-duration-field{display:flex;flex-direction:column;gap:10px}


#test-form .test-weight-field{border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;flex-direction:column;gap:12px}
#test-form .test-weight-field[hidden]{display:none}
#test-form .test-aids-field{border:1px solid var(--line);border-radius:9px;padding:16px;gap:12px}
#test-form .test-aids-field legend{font-size:13px;font-weight:700;padding:0 6px}
#test-form .test-aids-field>p{font-weight:400;margin:0}
#test-form .test-aids-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
#test-form .test-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
#test-form .test-form-actions p{margin:0;font-size:12px;max-width:400px}
#test-form .test-form-actions button{flex-shrink:0}
@media(max-width:650px){#test-form .form-grid,#test-form .test-aids-options{grid-template-columns:1fr}#test-form .test-form-actions{align-items:stretch;flex-direction:column}#test-form .test-form-actions p{max-width:none}}

#test-form .test-moment-field{display:flex;flex-direction:column;gap:10px}

#test-form .test-weight-field:has(+.test-weight-field[hidden]),#test-form .test-weight-field[hidden]+.test-weight-field{grid-column:1/-1}

.footnote-card{padding:16px;border:1px solid var(--line);border-radius:9px;margin:14px 0;display:grid;gap:12px}
.footnote-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footnote-heading button{font-size:12px;padding:7px 10px}
.footnote-targets[hidden]{display:none}
.footnote-test-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;max-height:240px;overflow:auto;padding:8px 2px}
.footnote-test-list .check{align-items:flex-start;text-align:left}
.footnote-test-list input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;padding:0}
.footnote-text{white-space:pre-wrap;overflow-wrap:anywhere}
.plan-footnotes ol{padding-left:25px}.plan-footnotes li{margin:12px 0}
.footnote-mark{font-weight:700;color:var(--red);font-size:11px}
.sheet-footnote-refs{display:inline-flex;flex-wrap:wrap;gap:3px;margin-left:5px;vertical-align:top}
@media(max-width:650px){.footnote-test-list{grid-template-columns:1fr}.footnote-heading{align-items:flex-start}}



#test-form .test-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid var(--line);border-radius:9px;padding:14px}#test-form .test-flags legend{font-size:13px;font-weight:700;padding:0 6px}@media(max-width:650px){#test-form .test-flags{grid-template-columns:1fr}}

#test-form .test-form-kind{display:flex;flex-direction:column;gap:10px}
