:root{color-scheme:light;--blue:#0f6cbf;--blue-dark:#0b5190;--ink:#212529;--muted:#66717d;--line:#dee2e6;--pale:#f2f6fa;--total:#f2f2f2;--danger:#b3261e;--green:#197045;font-family:Arial,"Segoe UI",sans-serif;font-size:15px;color:var(--ink);background:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{border:1px solid #b8bdc2;background:#fff;color:var(--ink);padding:9px 14px;border-radius:5px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.4}button:hover,.button:hover{background:#f0f2f4}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}button.primary:hover{background:var(--blue-dark)}button.danger{color:var(--danger);border-color:#d9a7a3}button.link{border:0;color:var(--blue);padding:0;background:transparent;text-align:left}button.icon-button{border:0;padding:4px 7px;min-width:28px;background:transparent;font-size:19px;color:#68737d}button.icon-button:hover{background:#e3e9ef}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80b8e8;outline-offset:2px}input,select,textarea{border:1px solid #aab1b8;border-radius:4px;padding:9px 11px;color:var(--ink);background:#fff;max-width:100%}input[type=checkbox]{width:17px;height:17px;padding:0;accent-color:var(--blue);vertical-align:middle;cursor:pointer}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:78px}label{font-weight:600}a{color:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:650;letter-spacing:-.5px;margin-bottom:9px}h2{font-size:22px;font-weight:600;margin-bottom:20px}h3{font-size:17px}.muted{color:var(--muted)}.small{font-size:13px}.nowrap{white-space:nowrap}.hidden-text{color:#7e8790}.badge{font-size:12px;display:inline-block;padding:4px 9px;border-radius:4px;background:#edf2f7;color:#466177;white-space:nowrap}.badge.success{color:var(--green);background:#eaf4ed}.badge.warning{color:#815900;background:#fff3cf}.badge.gray{background:#eee;color:#69717a}.gradebook-app{padding:26px 30px 90px;max-width:1900px;margin:auto}.breadcrumbs{font-size:13px;color:#626e79;display:flex;gap:9px;align-items:center;margin-bottom:22px}.breadcrumbs span:first-child{color:var(--blue)}.course-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}.course-header .course-title{color:var(--muted);font-size:15px;max-width:760px;line-height:1.5}.user-info{display:flex;gap:10px;align-items:center;font-size:13px;color:#5b6671;white-space:nowrap}.avatar{background:#e6eef5;color:#375a76;font-weight:600;border-radius:50%;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.report-bar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:23px}.report-bar select{min-width:265px;color:var(--ink);font-size:16px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.toolbar{display:flex;align-items:end;gap:16px;justify-content:space-between;margin:0 0 20px;flex-wrap:wrap}.filters{display:flex;gap:15px;align-items:end;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:13px;font-weight:500;color:#4f5964}.search-box{min-width:290px}.search-box input{width:100%;padding-left:34px}.search-wrap{position:relative}.search-wrap .search-symbol{position:absolute;left:12px;top:10px;color:#7d858c}.toolbar-status{font-size:13px;color:var(--muted);padding-bottom:10px}.notice{background:#eaf3fa;border:1px solid #caddf0;color:#224f73;padding:13px 16px;border-radius:4px;margin-bottom:18px;line-height:1.6}.notice.warning{background:#fff9e7;border-color:#ecdcaf;color:#755910}.notice .actions{margin-top:9px}.table-viewport{border:1px solid var(--line);border-radius:4px;overflow:auto;max-height:65vh;position:relative}.grade-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:14px;table-layout:fixed}.grade-table th,.grade-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:12px;text-align:center;min-width:145px;height:55px;font-variant-numeric:tabular-nums}.grade-table th:last-child,.grade-table td:last-child{border-right:0}.grade-table tr:last-child td{border-bottom:0}.grade-table thead th{background:#f7f8f9;vertical-align:middle;font-weight:600;white-space:normal}.grade-table thead th.group-head{background:#eaf0f6;text-align:left;height:43px;padding:8px 12px;font-size:14px;color:#304b62}.grade-table thead th.root-head{background:#e2ebf3;color:#234966}.group-head .group-title{display:flex;align-items:center;gap:7px}.grade-table th.student-col,.grade-table td.student-col{position:sticky;left:0;min-width:270px;width:270px;max-width:300px;text-align:left;z-index:3;background:#fff;box-shadow:1px 0 0 #c9cfd5}.grade-table th.student-col{z-index:5;background:#f6f7f8;vertical-align:bottom}.grade-table td.total,.grade-table th.total{background:var(--total);font-weight:600}.grade-table td.course-total,.grade-table th.course-total{background:#e8eff5;color:#1b4567;font-weight:700}.grade-table tbody tr:hover td{background:#f4f8fb}.grade-table tbody tr:hover td.total{background:#e7edf2}.grade-table tfoot td{font-weight:600;background:#f4f5f6;border-top:1px solid #bcc4cd}.grade-table tfoot .student-col{background:#f4f5f6}.student-name{display:flex;align-items:center;gap:10px}.student-name .avatar{width:32px;height:32px;font-size:12px}.student-name .name{text-align:left;line-height:1.45}.student-name .name button{font-size:14px;display:block}.student-name .name small{color:#77818b;font-size:11px;display:block;font-weight:400}.item-heading{display:flex;align-items:start;justify-content:space-between;gap:8px;text-align:left}.item-heading .item-label{font-size:13px;color:var(--blue);border:0;background:transparent;padding:0;text-align:left;font-weight:600;line-height:1.5}.item-heading .item-label:hover{text-decoration:underline}.item-heading .range{color:#7c858e;display:block;font-size:11px;margin-top:8px;font-weight:400}.item-type{display:inline-block;color:#6584a0;font-size:14px;margin-right:5px}.cell-content{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:27px}.grade-value{font-variant-numeric:tabular-nums}.grade-value.excluded{text-decoration:line-through;color:#91979e}.cell-content .cell-menu{opacity:0;position:absolute;right:-10px;top:0}.cell-content:hover .cell-menu,.cell-content:focus-within .cell-menu{opacity:1}.grade-input{width:76px;padding:7px;text-align:center;font-size:14px}.overridden-mark{color:#c18a24;font-size:11px}.feedback-mark{color:#0f6cbf;font-size:12px}.lock-mark{color:#7a858e;font-size:11px}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;color:#626e78;font-size:13px}.table-footer select{padding:6px 8px;font-size:13px}.pagination{display:flex;align-items:center;gap:9px}.pagination button{padding:4px 10px}.legend{display:flex;gap:22px;color:#75808a;font-size:12px;margin-top:18px;flex-wrap:wrap}.save-bar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #cbd3da;box-shadow:0 -2px 12px #1c334714;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 30px;z-index:20}.save-bar span{font-size:14px;color:#59636e}.settings-table{width:100%;border-collapse:collapse;font-size:14px}.settings-table th{text-align:left;background:#f5f6f7;color:#5c6670;font-weight:600}.settings-table td,.settings-table th{padding:12px 15px;border-bottom:1px solid var(--line);vertical-align:middle}.settings-table tbody tr.category-row{background:#f1f5f8;font-weight:600}.settings-table tbody tr:hover{background:#f6f9fc}.settings-table .weight-input{width:80px;text-align:right;padding:6px 9px}.settings-name{display:flex;align-items:center;gap:7px;min-width:200px}.indent{width:18px;display:inline-block;flex-shrink:0}.settings-name .item-icon{color:#667a8c}.row-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.publication-panel{border:1px solid var(--line);border-radius:5px;padding:20px;margin-top:24px;max-width:760px}.publication-panel h3{margin-bottom:14px}.publication-panel label.check-row{font-weight:400}.publication-panel .field{margin-top:14px;max-width:320px}.check-row{display:flex;align-items:center;gap:9px;line-height:1.5;font-size:14px}.help{font-size:12px;line-height:1.6;color:#6c7781;margin:7px 0 0}.setup-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px}.empty-state{border:1px dashed #ced5db;padding:50px 24px;text-align:center;border-radius:5px;color:#6c7680}.empty-state h3{color:#374753;font-size:19px}.single-table input[type=number]{width:100px}.single-table textarea{width:240px;min-height:38px;height:38px;font-size:13px}.single-table .check-cell{text-align:center}.single-table th{white-space:nowrap}.report-summary{display:flex;gap:24px;padding:22px 0 25px}.summary-block{border-left:3px solid #b6cada;padding-left:15px;min-width:180px}.summary-block .summary-label{font-size:13px;color:#6d7882}.summary-block .summary-number{font-size:28px;display:block;margin-top:6px;color:#234966}.user-report .settings-name{min-width:260px}.history-list{border:1px solid var(--line);border-radius:4px}.history-entry{padding:16px 20px;border-bottom:1px solid var(--line)}.history-entry:last-child{border-bottom:0}.history-entry .history-meta{display:flex;gap:14px;align-items:center;color:#76818b;font-size:12px;margin-bottom:8px}.history-entry details{font-size:13px;margin-top:9px;color:#536574}.history-entry li{padding:4px 0}.history-entry strong{font-size:14px}.entry-card{max-width:620px;margin:12vh auto;padding:36px;border:1px solid #dce2e7;border-radius:8px;box-shadow:0 8px 35px #2646630b}.entry-card p{color:#65727d;line-height:1.6}.entry-card .button{margin:8px 7px 15px 0}.entry-icon{color:var(--blue);font-size:36px;margin-bottom:17px}.login-card{max-width:430px}.login-card h1{font-size:25px}.login-card form{display:flex;flex-direction:column;gap:9px}.login-card label{font-size:14px;margin-top:8px}.login-card button{margin-top:12px}.error-banner{background:#fbeeed;padding:12px;border:1px solid #e5b8b3;border-radius:4px;color:#a72820!important}.toast{position:fixed;bottom:90px;right:25px;max-width:480px;z-index:200;background:#253f52;color:white;padding:15px 20px;border-radius:5px;box-shadow:0 3px 20px #0003;line-height:1.5}.toast.error{background:#9b2c26}.loading{padding:70px;text-align:center;color:#71808e}dialog{border:1px solid #d4dbe1;border-radius:7px;padding:0;max-width:680px;width:calc(100% - 32px);box-shadow:0 15px 70px #0004}dialog::backdrop{background:#1025366b}.dialog-header{padding:21px 24px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-header h2{margin:0;font-size:21px}.dialog-body{padding:23px 24px;max-height:70vh;overflow:auto}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}.form-grid .field label{font-weight:600;font-size:14px}.form-grid .check-row{font-weight:400}.formula-input{font-family:Consolas,monospace;min-height:100px}.reference-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.reference-list button{font-family:Consolas,monospace;font-size:12px;background:#edf3f8;color:#37566e;padding:5px 8px}.app-footnote{font-size:12px;color:#8a949d;margin-top:28px;display:flex;justify-content:space-between;gap:16px}.app-footnote button{font-size:12px}.icon-svg{width:16px;height:16px;vertical-align:middle;flex-shrink:0}.student-hidden{font-size:12px;color:#869099}.scroll-hint{font-size:12px;color:#8a949d;text-align:right;margin:8px 0}.table-title{font-size:19px;margin:0 0 18px}.bulk-row{display:flex;align-items:end;gap:12px;padding:16px;border:1px solid var(--line);border-radius:4px;margin-bottom:20px}.bulk-row .field{max-width:150px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(max-width:800px){.gradebook-app{padding:18px 15px 90px}.course-header{flex-direction:column;gap:12px}.course-header h1{font-size:26px}.report-bar{align-items:stretch;flex-direction:column}.report-bar select{min-width:0;width:100%}.search-box{min-width:220px}.table-viewport{max-height:66vh}.grade-table th.student-col,.grade-table td.student-col{min-width:210px;width:210px}.grade-table th,.grade-table td{min-width:130px;padding:10px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.save-bar{padding:12px 15px}.save-bar span{font-size:12px}.setup-footer,.table-footer{align-items:flex-start;flex-direction:column}.report-summary{flex-wrap:wrap;gap:20px}.summary-block{min-width:140px}.entry-card{margin:6vh 15px}.settings-table td,.settings-table th{padding:10px}.row-actions{gap:8px}.settings-table{min-width:740px}.user-report{min-width:650px}.actions button,.actions .button{font-size:13px;padding:8px 10px}}

.grade-table th.email-col,.grade-table td.email-col{min-width:230px;width:230px;max-width:300px;text-align:left;overflow-wrap:anywhere}.grade-table th.email-col{vertical-align:bottom}.grade-table tfoot .email-col{background:#f4f5f6}
.weight-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.weight-control input:disabled{background:#e9ecef;color:#68737d}.weight-control .weight-input{width:112px}.weight-control .small{flex-basis:100%}

.setup-fields{border:0;padding:0;margin:0;min-width:0}
.move-handle{border:0;background:transparent;color:#526b7c;cursor:grab;font-size:21px;padding:3px 5px;flex-shrink:0}.move-handle:active{cursor:grabbing}.setup-row.drop-before td{border-top:3px solid #0874cc}.setup-row.drop-after td{border-bottom:3px solid #0874cc}.setup-row.drop-inside td{background:#dceefa}.course-total-row td{border-top:2px solid #bdcbd8;font-weight:600}.course-total-row .link{font-weight:700}
.options-cell{width:72px;text-align:right;white-space:nowrap}.row-menu-trigger{font-size:25px;line-height:1;width:40px;height:40px;padding:4px;border:1px solid transparent;background:transparent;color:#526b7c;border-radius:5px}.row-menu-trigger:hover,.row-menu-trigger[aria-expanded=true]{background:#e6edf3;border-color:#c8d3de}.row-menu{position:fixed;z-index:1000;min-width:220px;max-width:300px;max-height:70vh;overflow:auto;padding:6px;background:#fff;border:1px solid #c8d3de;border-radius:6px;box-shadow:0 6px 22px #0003}.row-menu button{display:block;width:100%;text-align:left;border:0;background:#fff;padding:10px 12px;border-radius:3px;white-space:normal}.row-menu button:hover:not(:disabled),.row-menu button:focus-visible{background:#edf3f8}.row-menu .actions{display:flex;flex-direction:column;align-items:stretch;gap:0}.row-menu .small{display:block;padding:7px 12px}.row-menu .error-banner{display:block;margin:4px}

.settings-table .category-header-row td{background:#edf0f2;border-top:1px solid #d6dde3;font-weight:600}
.settings-table .category-header-row .link{color:#465461;font-weight:700}
.settings-table .category-total-row td{background:#f7f8fa;font-weight:600;border-bottom:1px solid #cbd5de}
.settings-table .category-total-row .settings-name{align-items:center}
.setup-sigma{font-size:25px;line-height:1;color:#7b858e;flex-shrink:0;margin-right:5px}
.setup-total-label{display:inline-flex;flex-direction:column;gap:4px;min-width:0}
.setup-total-label small{font-size:11px;color:#87919b;font-weight:600;letter-spacing:.2px}
.settings-table .setup-total-label .link{color:#465461;font-weight:700}

.setup-toggle{width:30px;height:30px;min-width:30px;padding:5px;background:#f7f8f9;border:1px solid #cfd6dc;color:#465461;border-radius:4px;flex-shrink:0}
.setup-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .12s}
.setup-toggle[aria-expanded=true] svg{transform:rotate(90deg)}

/* The LTI grows vertically; only wide tables need an internal horizontal scroll. */
.table-viewport{max-height:none;overflow-x:auto;overflow-y:hidden}

.setup-activity-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}.setup-activity-title .badge{font-weight:400;white-space:normal}

/* Read-only source feedback. */
.learning-summary{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;padding:14px 0;font-size:.9rem}.learning-summary progress{width:150px;height:12px;accent-color:#1769aa}.learning-summary small{flex-basis:100%;color:#586778}.learning-summary.compact{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:180px;white-space:normal;font-weight:400}.learning-summary.compact progress{width:100%}.pending-cell{background:#fff8e6}.pending-label{display:block;font-size:.8rem;color:#795400}.risk-status{padding:3px 7px;border-radius:4px}.risk-secured{color:#185a31;background:#e7f4eb}.risk-unreachable{color:#8b2020;background:#fbeaea}.risk-in_progress{color:#795400;background:#fff1cd}.risk-unavailable{color:#4b5968;background:#eef0f3}
.activity-notices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px;margin:20px 0}.activity-notice{display:flex;gap:14px;padding:16px;border:1px solid #d6def1;border-radius:12px;background:white;color:#17233c;align-items:flex-start}.activity-notice strong{display:block;font-size:1rem;line-height:1.45}.activity-notice p{margin:.25rem 0 0;color:#4c6081;line-height:1.5}.activity-notice ul{padding-left:18px;margin:.4rem 0 0}.notice-symbol{display:grid;place-items:center;flex:0 0 35px;height:35px;border-radius:10px;background:#eaf0ff;color:#254fd1}.duplicate .notice-symbol{background:#fff3d9;color:#986100}.uncategorized .notice-symbol{background:#f0f1f6;color:#4f5777}
.canvas-attempt{margin:1rem 0;border:1px solid #d9dfe5;padding:1rem;border-radius:5px}.canvas-attempt summary{cursor:pointer;font-weight:600}.canvas-comment{padding:.7rem 0;border-top:1px solid #d9dfe5}.canvas-comment time{font-size:.85rem;color:#667}.feedback-text{white-space:pre-wrap;overflow-wrap:anywhere}.rubric-selected{background:#e6f1fb;border-left:3px solid #096cc3;padding:.4rem}.rubric-selected small,.canvas-attempt td small{display:block}.canvas-attempt td{vertical-align:top}

.overdue-cell{background:#fbeaea}.overdue-label{display:block;font-size:.8rem;color:#8b2020}.delivery-label{display:block;font-size:.8rem;color:#586778}
