.grade-intro{background:linear-gradient(120deg,#eaf2e9,#f8f5e9);border:1px solid #dee8dc;border-radius:14px;padding:22px 25px;margin-bottom:20px;display:flex;justify-content:space-between;gap:25px;align-items:center}.grade-intro>div:first-child>svg{vertical-align:middle;margin-right:8px;color:var(--green)}.grade-intro strong{font-size:14px}.grade-intro p{font-size:12px;line-height:1.8;color:#63775e;max-width:580px;margin-top:9px}.weight-pills{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;min-width:200px}.weight-pills span{font-size:11px;padding:9px 10px;background:#ffffffc9;border:1px solid #dfe8da;border-radius:8px;white-space:nowrap}.weight-pills b{margin-left:5px;color:var(--green)}.grade-workspace{min-width:0}.grade-filters{padding:22px 24px 12px;display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}.grade-filters label{display:flex;flex-direction:column;gap:7px;flex:1;font-size:11px;font-weight:600;color:#64755c;min-width:135px}.grade-filters select,.grade-form input,.grade-form select{border:1px solid #dbe4d9;border-radius:8px;padding:11px;background:white;font-size:13px;min-height:43px;min-width:0;width:100%}.grade-help{font-size:11px;color:#71816b;line-height:1.8;padding:0 24px 17px}.grade-sheet{max-width:100%;overflow:auto;max-height:65vh;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.grade-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:12px}.grade-table thead th{position:sticky;top:0;background:#f0f5ee;z-index:2;min-width:110px;padding:15px 12px}.grade-table th span{display:block;max-width:150px;white-space:normal;overflow-wrap:anywhere}.grade-table th small{display:block;font-weight:400;font-size:10px;color:#71816b;margin-top:5px;white-space:nowrap}.grade-table .grade-name{position:sticky;left:0;min-width:220px;max-width:240px;white-space:normal;font-weight:500;background:white;z-index:1;padding:14px 18px;text-align:left}.grade-table thead .grade-name{z-index:3;background:#eaf2e8}.grade-table td{padding:10px 12px;text-align:center;white-space:nowrap}.grade-score{border:1px solid #dce5d8;border-radius:7px;width:74px;min-height:40px;text-align:center;background:#fff;font-size:14px;color:var(--ink)}.grade-score:invalid{border-color:#ba6253;background:#fff1ec}.grade-score.is-dirty{border-color:#bd9b46;background:#fff9e9}.grade-average{font-weight:700;color:var(--green);background:#f5f8ef}.grade-archive{display:block;font-size:10px;color:#956d46;text-decoration:underline;padding:5px 0}.grade-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 24px;font-size:11px;color:#71816b}.grade-empty{padding:28px;text-align:center;color:#71816b;font-size:12px;line-height:1.8}.grade-tools{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin:20px 0}.grade-tool{padding:24px;min-width:0}.grade-tool>p{font-size:12px;color:#71816b;line-height:1.8;margin-top:12px}.grade-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:20px;align-items:end}.grade-form label{font-size:11px;font-weight:500;display:flex;flex-direction:column;gap:8px;min-width:0}.grade-form label:first-child{grid-column:1/-1}.grade-form>button{grid-column:1/-1;justify-self:start}.grade-example{background:#f5f7f0;padding:15px;border-radius:8px;margin-top:22px;font-size:12px;color:#63775e;line-height:1.8}.grade-tool>summary{cursor:pointer;font-weight:600;font-size:14px}.grade-tool .table-wrap{overflow:auto;margin-top:18px;max-width:100%}#gradebook-feedback{color:#a54f3d;font-size:12px;padding:0 24px;line-height:1.8}#gradebook-feedback:empty{display:none}.support-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.support-section{margin-top:22px}.support-email{display:block;margin-top:5px;font-size:10px;color:#7a8874}.support-checks{list-style:none;padding:0;display:grid;gap:13px;margin:22px 0;font-size:12px;color:#56764c}.support-checks li{display:flex;gap:9px;align-items:center}.support-checks svg{width:16px;height:16px}.support-event{padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.support-event p,.support-event small{font-size:11px;color:#71816b;line-height:1.8;margin-top:7px}.nav-count.beta-count{background:#e3cf8e;color:#4c432b;font-size:9px}
@media(max-width:1000px){.grade-intro{display:block}.weight-pills{justify-content:flex-start;margin-top:16px}.grade-tools{grid-template-columns:1fr}.grade-filters>button{flex-basis:100%}.grade-table .grade-name{min-width:180px;max-width:180px}}
@media(max-width:650px){.grade-intro{padding:18px}.grade-filters{padding:17px;gap:12px}.grade-filters label{min-width:calc(50% - 8px)}.grade-filters label:nth-child(2){flex-basis:100%;order:-1}.grade-filters select,.grade-form input,.grade-form select,.grade-score{font-size:16px}.grade-help{padding-inline:17px}.grade-table .grade-name{min-width:150px;max-width:150px;font-size:11px;padding:12px}.grade-tool{padding:18px}.grade-form{grid-template-columns:1fr}.grade-form label:first-child{grid-column:auto}.grade-bottom{padding:15px 17px;align-items:flex-start;flex-direction:column}.grade-intro p{font-size:11px}.weight-pills span{font-size:10px;padding:8px}.grade-sheet{max-height:60dvh}.support-actions .btn{width:100%}.support-section .btn{white-space:normal}}
/* Demonstration notices and a deliberately explicit, staged CSV import. */
.legal-banner{padding:12px 24px;background:#faf3dc;color:#58481e;border-bottom:1px solid #e4d8b6;font-size:12px;line-height:1.65}
.legal-footer{align-items:flex-start;gap:18px;flex-wrap:wrap;line-height:1.8}.legal-footer>span:first-child{max-width:650px}
.legal-footer a,.legal-form-notice a,.login-bottom a{color:var(--green);text-decoration:underline}
.legal-form-notice{font-size:12px!important;color:#526451!important;margin-top:18px!important;line-height:1.7}
.login-bottom{position:static;max-width:430px;font-size:11px;line-height:1.7;color:#526451;margin-top:30px}
.login-form-side{flex-direction:column}
.grade-import{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f6f8f1}
.grade-import summary{cursor:pointer;font-weight:700}.grade-import p{font-size:12px;line-height:1.8;margin:12px 0;color:#526451}
.grade-import label{display:grid;gap:7px;margin:14px 0;font-size:12px}.grade-import select,.grade-import input{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:white}
#grade-import-feedback{margin-top:12px;font-size:12px;line-height:1.7;color:#314b40;overflow-wrap:anywhere}
@media(max-width:600px){.legal-banner{padding:10px 18px;font-size:11px}.login-form-side{padding-bottom:25px}.grade-import{padding:14px}.legal-footer{font-size:11px}}
.grade-view-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:7px;background:#eaf0e5;border-radius:12px}
.grade-view-button{flex:1;padding:12px 16px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:600;color:#526451;white-space:nowrap}
.grade-view-button:hover{background:#f7faf4}.grade-view-button.active{background:#174d3f;color:white;box-shadow:0 3px 10px #174d3f1a}
.grade-view-button:focus-visible{outline:3px solid #bb9e53;outline-offset:2px}
.grade-view-heading h2{padding:8px 24px 12px;font-size:20px}.grade-view-heading .grade-help{max-width:950px}
#content [hidden]{display:none!important}
@media(max-width:650px){.grade-view-nav{display:grid;grid-template-columns:1fr 1fr}.grade-view-button:first-child{grid-column:1/-1}.grade-view-button{padding:12px 8px}.grade-view-heading h2{padding-inline:17px;font-size:18px}}
.grade-request-list{padding:18px;display:grid;gap:14px}.grade-request-card{padding:20px;border:1px solid var(--line);border-radius:10px;background:white;min-width:0}
.grade-request-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.grade-request-card p{font-size:12px;line-height:1.8;margin:9px 0;overflow-wrap:anywhere}.grade-request-card small{color:#6b7c64;font-size:11px}.grade-request-reason{background:#f4f7ef;padding:12px;border-radius:7px;white-space:pre-wrap}
.grade-request-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.grade-request-cell{display:grid;justify-items:center;gap:4px}.grade-request-cell strong{font-size:15px}.grade-simulated{display:block;color:#7a7652;font-size:9px;margin-top:4px}
#grade-change-form{display:grid;gap:16px}#change-reason{width:100%;min-height:110px;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}#grade-change-error{color:#a54f3d;font-size:12px}

.teacher-welcome{padding:28px;margin-bottom:28px}.teacher-welcome p{line-height:1.8}.teacher-group-title{margin:24px 0 18px}.teacher-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.teacher-group{padding:24px;text-align:left;cursor:pointer;border:1px solid #dce5dd;color:#173f36}.teacher-group:hover{border-color:#719b87;box-shadow:0 6px 20px #133f3610}.teacher-group strong,.teacher-group span,.teacher-group small{display:block}.teacher-group strong{font-size:28px;margin-bottom:10px}.teacher-group small{margin-top:12px;line-height:1.6}
