:root{font-family:"PingFang TC","Heiti TC","Microsoft JhengHei",system-ui,sans-serif;color:#243c3b;background:#f4f6f3}*{box-sizing:border-box}body{margin:0}main{max-width:1320px;margin:auto;padding:32px 24px}nav{display:flex;justify-content:space-between;gap:16px}a{color:#236b60}h1{font-size:34px;margin:16px 0}h1 small{font-size:17px;color:#62736c;font-weight:400}.eyebrow{color:#4a796c;letter-spacing:2px;font-size:12px;margin-top:40px}p{line-height:1.7}.filters{display:flex;gap:20px;background:white;border:1px solid #dae3dc;padding:20px;border-radius:16px;margin:24px 0}label{display:block;font-size:14px;margin:8px 0}select,input[type=number]{display:block;border:1px solid #b9c9c0;border-radius:8px;padding:10px;background:#fff;color:inherit;font:inherit}select{margin-top:8px;min-width:220px}input[type=checkbox]{accent-color:#287565;width:17px;height:17px;vertical-align:middle;margin-right:8px}input[type=number]{width:110px;margin-top:6px}button{background:#276f60;color:white;border:0;border-radius:8px;padding:9px 18px;font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:default}.table-wrap{overflow:auto;background:white;border:1px solid #dce4dd;border-radius:16px}table{border-collapse:collapse;width:100%;min-width:800px}th,td{padding:18px 24px;border-bottom:1px solid #e3e9e4;text-align:left}thead th{background:#e6efe9;color:#2e5548}tbody th{min-width:170px;position:sticky;left:0;background:white}.seat{display:inline-block;background:#edf2ed;border-radius:8px;padding:6px;margin-right:10px;color:#527466}.alert{background:#fff0d8;padding:16px;border-radius:10px}.success{background:#dfefe4;padding:14px;border-radius:10px}.dirty{display:block;color:#a25717;font-size:12px;margin-top:8px}[hidden]{display:none!important}.summary{display:flex;gap:20px;flex-wrap:wrap;color:#456858}.demo-tag{background:#fbe7c5;padding:12px 18px;border-radius:10px}@media(max-width:650px){main{padding:20px 12px}.filters{flex-direction:column;gap:4px}h1 small{display:block;margin-top:8px}th,td{padding:14px}nav{font-size:13px}}
.start-score{background:transparent;color:#276f60;border:1px solid currentColor;margin-right:6px;font-size:12px;padding:9px}.wheel-help{font-size:14px;border-left:3px solid #507eab;padding-left:12px}.style-picker{display:flex;gap:10px;flex-wrap:wrap;padding:22px 0;border-block:1px solid #bdcac5;margin:24px 0}.style-picker>div{width:100%}.style-picker p{font-size:13px;margin:6px 0}.style-picker button{flex:1;min-width:150px;text-align:left;background:transparent;color:inherit;border:1px solid #adbcb5;padding:14px}.style-picker b,.style-picker span{display:block}.style-picker span{font-size:12px;margin-top:8px;opacity:.8}.style-picker button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px}.style-picker [data-style=ledger]{background:#e8effe;color:#234789}.style-picker [data-style=editorial]{background:#fff;color:#151515;border-radius:0}.style-picker [data-style=night]{background:#172437;color:#9ff0d0}
body[data-theme=ledger]{background:#eef2f8;color:#20324c}body[data-theme=ledger] main{max-width:1500px}body[data-theme=ledger] h1{font-size:28px}body[data-theme=ledger] .table-wrap,body[data-theme=ledger] .filters{border-radius:4px}body[data-theme=ledger] thead th{background:#244d86;color:white}body[data-theme=ledger] th,body[data-theme=ledger] td{padding:8px 14px}body[data-theme=ledger] td form{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}body[data-theme=ledger] td label{margin:2px 0;font-size:12px}body[data-theme=ledger] td label:nth-child(3){grid-column:1 / -1;display:flex;align-items:center;gap:12px}body[data-theme=ledger] input[type=number]{margin:0;width:90px;padding:6px;font-size:20px;font-weight:650}body[data-theme=ledger] button{border-radius:3px}body[data-theme=ledger] td button:not(.start-score){background:#244d86}body[data-theme=ledger] tbody tr:nth-child(even),body[data-theme=ledger] tbody tr:nth-child(even) th{background:#f2f6fc}
body[data-theme=editorial]{background:#fff;color:#171717}body[data-theme=editorial] h1{font-family:Georgia,'Songti TC',serif;font-weight:500;font-size:44px;letter-spacing:2px}body[data-theme=editorial] .eyebrow{color:#111}body[data-theme=editorial] .table-wrap,body[data-theme=editorial] .filters{border-radius:0;border:1px solid #222}body[data-theme=editorial] thead th{background:#fff;color:#111;border-bottom:3px solid #111}body[data-theme=editorial] button{border-radius:0;background:#111;color:#fff}body[data-theme=editorial] select,body[data-theme=editorial] input[type=number]{border-radius:0;border-color:#777}body[data-theme=editorial] .seat{background:none;border:1px solid #222;border-radius:0;color:#111}body[data-theme=editorial] td{border-left:1px solid #ddd}body[data-theme=editorial] .start-score{background:#fff;color:#111}body[data-theme=editorial] .demo-tag{background:#f3f3f3;border-radius:0}body[data-theme=editorial] input[type=checkbox]{accent-color:#111}
body[data-theme=night]{background:#0d1422;color:#e3eaf4}body[data-theme=night] .filters,body[data-theme=night] .table-wrap,body[data-theme=night] tbody th{background:#172437;border-color:#344357}body[data-theme=night] thead th{background:#22364c;color:#99eace}body[data-theme=night] th,body[data-theme=night] td{border-color:#344357}body[data-theme=night] select,body[data-theme=night] input[type=number]{background:#0e1b2b;color:#a7f1d2;border-color:#44556c}body[data-theme=night] input[type=number]{font-family:monospace;font-size:25px;font-weight:bold}body[data-theme=night] a,body[data-theme=night] .eyebrow,body[data-theme=night] .summary,body[data-theme=night] h1 small{color:#9bc8d5}body[data-theme=night] .seat{background:#29415b;color:#b3d8f6}body[data-theme=night] .demo-tag{background:#303127;color:#f4dba1}body[data-theme=night] button{background:#9aebc8;color:#142939}body[data-theme=night] .start-score{background:none;color:#9aebc8}body[data-theme=night] .dirty{color:#ffd080}
/* Report layout: a single compact row per student, with three grouped cells. */
body[data-theme=report]{background:#eeeef0;color:#20252b;font-size:13px}body[data-theme=report] main{max-width:1600px;padding:22px}body[data-theme=report] h1{font-size:25px;margin:12px 0}body[data-theme=report] .eyebrow{margin-top:24px;color:#5d6570}body[data-theme=report] .style-picker{padding:12px 0;margin:14px 0;gap:7px}body[data-theme=report] .style-picker button{padding:9px;font-size:12px;border-radius:2px}body[data-theme=report] .style-picker span{font-size:11px;margin-top:3px}body[data-theme=report] .style-picker>div p{margin:2px 0}body[data-theme=report] .demo-tag{background:#fff9df;border:1px solid #e4dcae;border-radius:2px;padding:8px 12px;margin:8px 0}body[data-theme=report] .filters{padding:8px 14px;gap:24px;margin:12px 0;border:1px solid #bfc4cc;border-radius:0;align-items:center}body[data-theme=report] .filters label{display:flex;align-items:center;gap:12px;font-size:12px}body[data-theme=report] select{font-size:12px;padding:6px;margin:0;min-width:190px;border-radius:2px}body[data-theme=report] .table-wrap{border:1px solid #aeb5bf;border-radius:0}body[data-theme=report] table{min-width:1050px;table-layout:fixed}body[data-theme=report] thead th{background:#e1e5eb;color:#293443;font-weight:650;border-bottom:2px solid #7e8999;text-align:center;padding:10px}body[data-theme=report] thead th:first-child{width:160px;text-align:left}body[data-theme=report] th,body[data-theme=report] td{padding:6px 10px;border-right:1px solid #bfc7d1;border-bottom:1px solid #d6dbe2;height:44px}body[data-theme=report] tbody th{min-width:0;font-size:13px;font-weight:500;white-space:nowrap}body[data-theme=report] tbody tr:nth-child(even),body[data-theme=report] tbody tr:nth-child(even) th{background:#f3f5f8}body[data-theme=report] tbody tr:hover,body[data-theme=report] tbody tr:hover th{background:#e7f0fd}body[data-theme=report] .seat{font-size:11px;background:none;border-radius:0;border-right:1px solid #c4cad2;color:#596677;padding:3px 8px 3px 0;margin-right:8px}body[data-theme=report] td form{display:grid;grid-template-columns:28px 28px minmax(52px,1fr) 38px 40px;gap:8px;align-items:center;position:relative}body[data-theme=report] td label{margin:0;font-size:0;text-align:center}body[data-theme=report] input[type=checkbox]{margin:0;width:16px;height:16px;accent-color:#375b8f}body[data-theme=report] input[type=number]{margin:0;width:100%;min-width:48px;padding:4px 5px;font-size:16px;font-weight:600;text-align:center;border:1px solid #a9b4c3;border-radius:2px;background:transparent}body[data-theme=report] td button{font-size:0;padding:4px 2px;border-radius:2px;background:#355a8c;height:29px}body[data-theme=report] td button:not(.start-score)::after{content:'儲存';font-size:11px}body[data-theme=report] .start-score{margin:0;background:transparent;color:#52647b;border:1px solid #bbc5d0}body[data-theme=report] .start-score::after{content:'85';font-size:12px}body[data-theme=report] .dirty{position:absolute;right:0;bottom:-6px;font-size:0;width:5px;height:5px;border-radius:100%;background:#cb7b15}body[data-theme=report] .summary{font-size:12px;margin:10px 0;color:#4c5868}body[data-theme=report] .wheel-help{font-size:12px;margin:8px 0}body[data-theme=report] .report-subhead{display:grid;grid-template-columns:28px 28px minmax(52px,1fr) 38px 40px;gap:8px;font-size:10px;font-weight:400;margin-top:8px;color:#526074}body:not([data-theme=report]) .report-subhead{display:none}.style-picker [data-style=report]{background:#e1e5eb;color:#293443}
/* Adopt report mode; score clearing stays beside the score, without a start column. */
body[data-theme=report] td form{grid-template-columns:28px 28px minmax(60px,1fr) 22px 48px;gap:6px}body[data-theme=report] .report-subhead{grid-template-columns:28px 28px minmax(88px,1fr) 48px;gap:6px}body[data-theme=report] td label:nth-child(3){text-align:left}body[data-theme=report] .clear-score{font-size:18px!important;background:none;color:#69758a;border:0;padding:0}body[data-theme=report] .clear-score::after{content:none!important}body[data-theme=report] .save-state{font-size:10px;color:#4f6a57;white-space:nowrap}body[data-theme=report] td button[type=submit]:not([hidden]){grid-column:5;grid-row:1}body[data-theme=report] td form:has(button[type=submit]:not([hidden])) .save-state{grid-column:3 / 6;font-size:10px;color:#a34a29}body[data-theme=report] .dirty{display:none}body[data-theme=report] table{min-width:900px}.clear-score{background:transparent;color:#627183;padding:6px;font-size:18px}.save-state{font-size:11px;color:#52715d}

/* Traditional Chinese typography: local fonts, no remote font dependency. */
body{line-height:1.65;-webkit-font-smoothing:antialiased}
button,select,input{font-family:inherit}
body[data-theme=report] h1{font-family:"Songti TC","Noto Serif TC",serif;font-size:29px;font-weight:600;letter-spacing:.06em}
body[data-theme=report] h1 small{font-family:"PingFang TC",sans-serif;font-size:13px;letter-spacing:.02em}
body[data-theme=report] tbody th{font-size:14px;font-weight:500;letter-spacing:.035em}
body[data-theme=report] thead th{font-weight:600;letter-spacing:.03em}
body[data-theme=report] .report-subhead{font-size:11px;letter-spacing:.02em}
body[data-theme=report] .filters label{font-size:13px}
body[data-theme=report] input[type=number]{font-variant-numeric:tabular-nums;letter-spacing:.02em}

/* Revised typography: consistent clean sans-serif across the report. */
body[data-theme=report]{font-family:"Heiti TC","PingFang TC","Microsoft JhengHei",sans-serif;font-size:14px}
body[data-theme=report] h1{font-family:inherit;font-size:28px;font-weight:500;letter-spacing:.025em}
body[data-theme=report] h1 small{font-family:inherit;font-weight:400;letter-spacing:0}
body[data-theme=report] tbody th{font-size:15px;font-weight:400;letter-spacing:.02em}
body[data-theme=report] thead th{font-size:14px;font-weight:500;letter-spacing:.02em}
body[data-theme=report] .report-subhead{font-size:12px;font-weight:400;letter-spacing:0}
body[data-theme=report] .filters label,body[data-theme=report] select{font-size:14px}

/* Kai typography trial requested by the user. */
body[data-theme=report]{font-family:"Kaiti TC","BiauKai","DFKai-SB","KaiTi",serif;font-size:16px}
body[data-theme=report] h1{font-family:inherit;font-size:30px;font-weight:400;letter-spacing:.04em}
body[data-theme=report] h1 small{font-family:inherit}
body[data-theme=report] tbody th{font-size:17px;font-weight:400}
body[data-theme=report] thead th{font-size:16px;font-weight:400}
body[data-theme=report] .report-subhead{font-size:14px}
body[data-theme=report] .filters label,body[data-theme=report] select{font-size:16px}
body[data-theme=report] input[type=number]{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;font-variant-numeric:tabular-nums}

.scope-title{display:block;width:100%;min-width:0;box-sizing:border-box;text-align:center;font:inherit;color:inherit;background:rgba(255,255,255,.6);border:1px solid #b3bdca;border-radius:3px;padding:6px 4px;cursor:text}.scope-title:hover{border-color:#527ab0}.scope-title:focus{outline:2px solid #527ab0;outline-offset:1px;background:#fff}.scope-help{font-size:14px;color:#526074}body[data-theme=night] .scope-title{background:#142539;color:#d6f4e9}
/* Playful report palette, retaining dark text and clear column boundaries. */
body[data-theme=report]{background:#f1f6ff;color:#29384e}
body[data-theme=report] h1{color:#385a98}
body[data-theme=report] .eyebrow{color:#6b60a0}
body[data-theme=report] .filters{background:#fff;border-color:#cbdaf0;border-top:3px solid #91aeea}
body[data-theme=report] .table-wrap{border-color:#b9cce4}
body[data-theme=report] thead th:first-child{background:#d9efdf;color:#28533c}
body[data-theme=report] thead th:nth-child(3n+2){background:#cfe7ff;color:#254c78}
body[data-theme=report] thead th:nth-child(3n+3){background:#ffe0ce;color:#754b34}
body[data-theme=report] thead th:nth-child(3n+4){background:#e5dbff;color:#524175}
body[data-theme=report] thead th{border-bottom-color:#b2c5de}
body[data-theme=report] tbody td:nth-child(3n+2){background:#f2f8ff}
body[data-theme=report] tbody td:nth-child(3n+3){background:#fff6ee}
body[data-theme=report] tbody td:nth-child(3n+4){background:#f8f3ff}
body[data-theme=report] tbody tr:nth-child(even) td:nth-child(3n+2){background:#e7f2ff}
body[data-theme=report] tbody tr:nth-child(even) td:nth-child(3n+3){background:#ffeddc}
body[data-theme=report] tbody tr:nth-child(even) td:nth-child(3n+4){background:#efe7ff}
body[data-theme=report] tbody tr:nth-child(even) th{background:#edf6ef}
body[data-theme=report] tbody tr:hover td,body[data-theme=report] tbody tr:hover th{background:#fff3bc}
body[data-theme=report] th,body[data-theme=report] td{border-right-color:#c3d2e5;border-bottom-color:#d4deeb}
body[data-theme=report] .scope-title{background:rgba(255,255,255,.7);border-color:rgba(66,91,130,.25)}
body[data-theme=report] input[type=number]{background:#fff;border-color:#aabed9;color:#304d78}
body[data-theme=report] input[type=number]:focus{outline:2px solid #789ee9;outline-offset:1px}
body[data-theme=report] input[type=checkbox]{accent-color:#6566c8}
body[data-theme=report] .report-subhead{color:inherit}
body[data-theme=report] .summary{color:#48634e}
body[data-theme=report] .demo-tag{background:#fff0ca;border-color:#edd39a;color:#69512b}
body[data-theme=report] .wheel-help{border-color:#ad88dc;color:#665080}
body[data-theme=report] .save-state{color:#286744}
body[data-theme=report] .clear-score{color:#735995}
body[data-theme=report] nav>button{background:#7764b7;color:#fff}
.style-picker [data-style=report]{background:linear-gradient(110deg,#cfe7ff,#ffe0ce,#e5dbff);color:#344b6a}
.new-item{display:flex;gap:14px;align-items:end;flex-wrap:wrap;background:#fff;padding:14px;border:1px solid #cbdaf0;margin:16px 0}.new-item input[type=text]{display:block;padding:8px;border:1px solid #aabed9;font:inherit;min-width:240px}.new-item select{margin:0;min-width:120px}.new-item>span{font-size:13px;color:#58677c}.include-grade{display:block;font-size:13px;text-align:left}.gradebook-table th .save-state{display:block;min-height:14px}.grade-preview{margin:32px 0}.grade-preview h2 small{font-size:14px;font-weight:400}.save-error{display:block;color:#a33327;font-size:12px;grid-column:1 / -1;white-space:normal}body[data-theme=report] table.gradebook-table{table-layout:fixed}body[data-theme=report] .gradebook-table thead th{vertical-align:top}body[data-theme=report] .gradebook-table thead input[name=title]{font-size:16px}.grade-preview table{min-width:700px!important}.grade-preview th,.grade-preview td{height:auto!important}

/* Quiet help below the daily workflow; operational errors stay inline. */
.grading-nav{font-size:13px;margin-bottom:16px}.grading-nav a{color:#5a6d80;text-decoration:none}.grading-nav a:hover{text-decoration:underline}.grading-page-heading{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.grading-page-heading h1{margin:0!important}.live-page-badge{font-family:"PingFang TC",sans-serif;font-size:11px;font-weight:500;line-height:1.5;padding:3px 8px;background:#e4efe7;color:#45624d;border-radius:4px;white-space:nowrap}.grading-action-link{font-size:14px;margin:14px 0}.grading-help{border-top:1px solid #d2dce6;margin-top:48px;padding:12px 0 24px;display:flex;flex-direction:column;gap:2px}.grading-help>details{font-size:13px;color:#5e6e80}.grading-help summary{cursor:pointer;padding:9px 2px;width:fit-content;list-style-position:inside}.grading-help summary:hover{color:#304d69;text-decoration:underline}.grading-help summary:focus-visible{outline:2px solid #527ab0;outline-offset:3px;border-radius:3px}.grading-help-content{max-width:850px;line-height:1.9;color:#4e6174;padding:2px 8px 16px 18px}.grading-help-content h2{font-size:14px;font-weight:600;margin:12px 0 4px}.grading-help-content ul{padding-left:20px;margin:4px 0 12px}.grading-help-content li+li{margin-top:6px}.grading-help-links{display:flex;gap:12px 24px;flex-wrap:wrap}.grading-help-links a{color:inherit}.grading-help [open]>summary{color:#304d69}@media(max-width:650px){.grading-page-heading{gap:8px}.grading-help{margin-top:32px}}
.creation-feedback{font-size:14px;color:#32634c;background:#e8f3eb;border:1px solid #c8dfcd;padding:9px 14px;border-radius:5px;margin:12px 0}
body[data-theme=report] .gradebook-table td.correction-cell form{grid-template-columns:28px 56px minmax(60px,1fr) 22px 48px}body[data-theme=report] .gradebook-table th.correction-cell .report-subhead{grid-template-columns:28px 56px minmax(88px,1fr) 48px}body[data-theme=report] .gradebook-table .correction-cell .report-subhead span:nth-child(2){white-space:nowrap}
.grading-action-links{display:flex;gap:22px;flex-wrap:wrap;font-size:14px;margin:16px 0}.item-delete-link{display:block;width:fit-content;margin:4px 0;font-size:12px;color:#875950;font-weight:400}.items-management{min-width:650px!important;table-layout:auto!important}.items-management th,.items-management td{font-size:15px!important;white-space:normal!important;height:auto!important;padding:12px 16px!important}.items-management thead th:first-child{width:auto!important}.item-action-buttons{display:flex;gap:20px;align-items:center;margin:20px 0}.item-action-buttons .delete-confirm{background:#975148}.items-tabs{display:flex;justify-content:flex-start;gap:22px;margin:22px 0}.items-tabs [aria-current=page]{font-weight:600;color:#254b70;text-decoration-thickness:2px;text-underline-offset:5px}.delete-link{color:#925144}.legacy-candidates{font-size:14px;color:#675339;background:#fff5df;padding:12px 16px}.select-related{margin:16px 0}

body[data-theme=report] .gradebook-table td form{grid-template-columns:28px 28px 80px 22px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table .report-subhead{grid-template-columns:28px 28px 108px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table td.correction-cell form{grid-template-columns:28px 56px 80px 22px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table th.correction-cell .report-subhead{grid-template-columns:28px 56px 108px minmax(48px,1fr)}

body[data-theme=report] table.gradebook-table{min-width:0}

.grading-item{margin:12px 0}.grading-item>summary{cursor:pointer;padding:12px 16px;background:#cfe7ff;color:#254c78;border:1px solid #b9cce4}.grading-item>summary:focus-visible{outline:2px solid #527ab0;outline-offset:2px}.grading-item[open]>summary{margin-bottom:8px}

.grading-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:start;margin:12px 0}.grading-item-row>.grading-item{margin:0;min-width:0}.item-editor>summary{cursor:pointer;padding:12px 8px;color:#254c78}.item-editor form{width:280px;padding:12px;border:1px solid #b9cce4;background:#fff}.item-editor .save-state{display:block}.grading-item-row>.item-delete-link{margin:0;padding:12px 8px;font-size:16px}@media(max-width:650px){.grading-item-row{grid-template-columns:minmax(0,1fr) auto}.grading-item-row>.grading-item{grid-column:1 / -1}.item-editor form{width:min(280px,65vw)}}

.item-editor-help{font-size:12px;color:#5e6e80;margin:8px 0}.item-editor>summary:focus-visible{outline:2px solid #527ab0;outline-offset:2px}

/* The live completion controls share the existing saved completion state. */
body[data-theme=report] .gradebook-table td form:has(input[name=incomplete]){grid-template-columns:28px 64px 28px 130px 22px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table th .report-subhead:has(span:nth-child(5)){grid-template-columns:28px 64px 28px 158px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table td.correction-cell form:has(input[name=incomplete]){grid-template-columns:28px 64px 56px 130px 22px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table th.correction-cell .report-subhead:has(span:nth-child(5)){grid-template-columns:28px 64px 56px 158px minmax(48px,1fr)}
body[data-theme=report] .gradebook-table form:has(input[name=incomplete]) button[type=submit]:not([hidden]){grid-column:6}
body[data-theme=report] .gradebook-table form:has(input[name=incomplete]):has(button[type=submit]:not([hidden])) .save-state{grid-column:4 / 7}

body[data-theme=report] .gradebook-table .report-subhead:has(span:nth-child(5)) span:nth-child(2){color:#b42318;font-weight:700}
body[data-theme=report] .gradebook-table input[name=incomplete]{accent-color:#b42318}
body[data-theme=report] .gradebook-table label:has(input[name=incomplete]:checked){background:#fee4e2;border-radius:4px;outline:1px solid #fda29b;padding:4px 0}

.task-stats{display:flex;flex-wrap:wrap;gap:10px 22px;padding:12px 16px;margin:0 0 8px;background:#fff;border:1px solid #b9cce4;border-radius:4px;font-size:14px;color:#254c78}
.task-stats span{white-space:nowrap}.task-stats strong{font-size:20px;margin-left:6px;font-variant-numeric:tabular-nums}.task-stats .task-stat-completed{color:#216e46}.task-stats .task-stat-incomplete{color:#b42318}

body[data-theme=report] .gradebook-table td label:has([data-score-undo]){display:flex;align-items:center;gap:5px}
body[data-theme=report] .gradebook-table td label:has([data-score-undo]) input{width:80px;flex:0 0 80px}
body[data-theme=report] .gradebook-table td form button.score-undo{font-size:12px;padding:3px 5px;background:#e8f0fb;color:#254c78;border:1px solid #a9b4c3;white-space:nowrap;grid-column:auto;grid-row:auto}
body[data-theme=report] .gradebook-table td form button.score-undo::after{content:none}
body[data-theme=report] .gradebook-table td form button.score-undo:disabled{opacity:.4;cursor:default}

body[data-theme=report] .gradebook-table td form:has(textarea[name=note]){grid-template-columns:28px 64px 28px 130px 22px minmax(220px,1fr) 70px}
body[data-theme=report] .gradebook-table td.correction-cell form:has(textarea[name=note]){grid-template-columns:28px 64px 56px 130px 22px minmax(220px,1fr) 70px}
body[data-theme=report] .gradebook-table th .report-subhead:has(span:nth-child(6)){grid-template-columns:28px 64px 28px 158px minmax(220px,1fr) 70px}
body[data-theme=report] .gradebook-table th.correction-cell .report-subhead:has(span:nth-child(6)){grid-template-columns:28px 64px 56px 158px minmax(220px,1fr) 70px}
body[data-theme=report] .gradebook-table textarea[name=note]{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:5px 7px;border:1px solid #a9b4c3;border-radius:3px;background:#fff;font-family:inherit;font-size:14px;line-height:1.4;color:#b42318;resize:vertical}
body[data-theme=report] .gradebook-table form:has(textarea[name=note]) button[type=submit]:not([hidden]){grid-column:7}
body[data-theme=report] .gradebook-table form:has(textarea[name=note]):has(button[type=submit]:not([hidden])) .save-state{grid-column:6 / 8}

.task-stats .task-pending-seats{white-space:normal}.task-stats .task-pending-seats strong{font-size:16px;overflow-wrap:anywhere}

/* Keep each student's form intact when moving between one and two columns. */
body[data-mode=live][data-theme=report] main{max-width:2000px}
.student-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
body[data-theme=report] .student-columns table.gradebook-table{width:100%}
@media(min-width:1280px) and (hover:hover) and (pointer:fine){
 .student-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
 .grading-item-row>.grading-item{grid-column:1 / -1}
 body[data-theme=report] .student-columns .gradebook-table thead th:first-child{width:100px}
 body[data-theme=report] .student-columns .gradebook-table th,body[data-theme=report] .student-columns .gradebook-table td{padding:6px}
 body[data-theme=report] .student-columns .gradebook-table tbody th{font-size:15px;white-space:normal}
 body[data-theme=report] .student-columns .gradebook-table td form:has(textarea[name=note]){grid-template-columns:26px 64px 40px 116px 20px minmax(95px,1fr) 44px;gap:4px}
 body[data-theme=report] .student-columns .gradebook-table th .report-subhead:has(span:nth-child(6)){grid-template-columns:26px 64px 40px 140px minmax(95px,1fr) 44px;gap:4px;font-size:12px}
 body[data-theme=report] .student-columns .gradebook-table td label:has([data-score-undo]) input{width:70px;flex-basis:70px}
 body[data-theme=report] .student-columns .gradebook-table textarea[name=note]{font-size:13px;height:36px;min-height:36px}
}
@media(max-width:1279px){
 .grading-item-row>.grading-item{grid-column:1 / -1}
 .grading-item-row{grid-template-columns:minmax(0,1fr) auto}
 body[data-theme=report] .filters{flex-wrap:wrap;gap:10px 20px}
}
@media(max-width:900px){
 body[data-mode=live][data-theme=report] main{padding:16px 10px}
 body[data-theme=report] .student-columns .table-wrap{overflow:visible;border:0;background:transparent}
 body[data-theme=report] .student-columns table.gradebook-table,body[data-theme=report] .student-columns tbody{display:block}
 body[data-theme=report] .student-columns thead{display:none}
 body[data-theme=report] .student-columns tbody tr{display:block;border:1px solid #b9cce4;border-radius:6px;overflow:hidden;margin-bottom:10px}
 body[data-theme=report] .student-columns tbody th,body[data-theme=report] .student-columns tbody td{display:block;width:100%;height:auto;position:static;border-right:0}
 body[data-theme=report] .student-columns tbody th{background:#d9efdf;padding:8px 12px}
 body[data-theme=report] .student-columns .gradebook-table td form:has(textarea[name=note]){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-theme=report] .student-columns .gradebook-table td label{font-size:14px;text-align:center}
 body[data-theme=report] .student-columns .gradebook-table td label:has(input[type=checkbox]){display:flex;justify-content:center;align-items:center;gap:6px;min-height:36px}
 body[data-theme=report] .student-columns .gradebook-table label:has(input[name=incomplete]){color:#b42318}
 body[data-theme=report] .student-columns .gradebook-table td label:has([data-score-undo]){grid-column:1 / 3;justify-content:flex-start;flex-wrap:wrap}
 body[data-theme=report] .student-columns .gradebook-table td .clear-score{grid-column:3;grid-row:2}
 body[data-theme=report] .student-columns .gradebook-table td label.entry-note{grid-column:1 / -1;text-align:left}
 body[data-theme=report] .student-columns .gradebook-table textarea[name=note]{min-height:52px;font-size:16px}
 body[data-theme=report] .student-columns .gradebook-table form:has(textarea[name=note]) button[type=submit]:not([hidden]){grid-column:1;grid-row:auto;font-size:14px}
 body[data-theme=report] .student-columns .gradebook-table form:has(textarea[name=note]) .save-state{grid-column:2 / 4;font-size:12px}
 body[data-theme=report] .student-columns .gradebook-table input[type=number]{font-size:16px}
 .task-stats{gap:6px 14px;padding:10px}.task-stats strong{font-size:18px}
 body[data-theme=report] .filters label{flex-wrap:wrap}
 body[data-theme=report] .filters select{min-width:0;max-width:100%}
}

@media(pointer:coarse){.grading-item-row>.grading-item{grid-column:1 / -1}}

body[data-theme=report] .student-columns .gradebook-table .report-subhead span:nth-child(2){line-height:1.35;white-space:normal}
@media(max-width:900px){body[data-theme=report] .student-columns .gradebook-table label:has(input[name=incomplete]){font-size:13px}body[data-theme=report] .student-columns .gradebook-table label:has(input[name=incomplete]) span{min-width:0;line-height:1.4}}

body[data-theme=report] .gradebook-table input[type=number][data-low-score=true]{color:#b42318}

.entry-note{min-width:0}
body[data-theme=report] .gradebook-table td form button.note-add{display:block;font-size:12px;height:auto;padding:3px 6px;margin-top:3px;background:#e8f0fb;color:#254c78;border:1px solid #b9cce4}
body[data-theme=report] .gradebook-table td form button.note-add::after{content:none}
@media(max-width:900px){body[data-theme=report] .student-columns .gradebook-table td .entry-note{grid-column:1 / -1;text-align:left}body[data-theme=report] .student-columns .gradebook-table td .entry-note label{text-align:left}body[data-theme=report] .gradebook-table td form button.note-add{min-height:44px;font-size:14px}}

.workbook-student-search{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;margin:12px 0;background:#fff;border:1px solid #b9cce4}
.workbook-student-search label{margin:0}.workbook-student-search input[type=search]{flex:1;min-width:220px;max-width:440px;padding:8px;border:1px solid #aabed9;border-radius:3px;font:inherit}.workbook-student-search>span{font-size:14px;color:#5e6e80}
.workbook-search-results{padding:0 12px}.workbook-search-results li{margin:6px 0}.workbook-student-focus{padding:8px 12px;background:#e8f3eb;border:1px solid #c8dfcd}.workbook-student-focus a{margin-left:12px}
.student-columns.student-focus{grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){.workbook-student-search input[type=search]{min-width:0;width:100%;max-width:none;flex-basis:100%}.workbook-student-search button{min-height:44px}.workbook-search-results ul{padding-left:20px}}
