/* Shared grade-table finish, including the lifted column's visual copy. */
.class-grade-scroll { border:1px solid color-mix(in srgb,var(--border) 90%,var(--primary)); border-radius:14px; background:var(--surface); scrollbar-color:color-mix(in srgb,var(--primary) 28%,var(--border)) var(--surface-2); }
.class-grade-scroll:focus-visible { outline:2px solid color-mix(in srgb,var(--primary) 34%,transparent); outline-offset:3px; }
.class-table.grade-matrix { --grade-row-bg:var(--surface); color:var(--text); font-variant-numeric:tabular-nums; }
.class-table.grade-matrix th,.class-table.grade-matrix td { width:108px; min-width:108px; max-width:108px; padding-right:6px; padding-left:6px; border-right:1px solid color-mix(in srgb,var(--border) 48%,transparent); }
.class-table.grade-matrix th { height:62px; padding-top:9px; padding-bottom:9px; border-bottom:1px solid color-mix(in srgb,var(--primary) 18%,var(--border)); background:color-mix(in srgb,var(--primary) 4%,var(--surface-2)); font-size:12px; font-weight:650; }
.class-table.grade-matrix td { height:54px; padding-top:8px; padding-bottom:8px; border-bottom:1px solid color-mix(in srgb,var(--border) 68%,transparent); background:var(--grade-row-bg); font-size:14px; }
.class-table.grade-matrix tr>:last-child { border-right:0; }
.class-table.grade-matrix tbody tr:last-child>td { border-bottom:0; }
.grade-matrix tbody tr:nth-child(even) { --grade-row-bg:color-mix(in srgb,var(--primary) 2.5%,var(--surface)); }
.grade-matrix tbody tr:is(:hover,:focus-within) { --grade-row-bg:color-mix(in srgb,var(--primary) 6%,var(--surface)); }
.class-table.grade-matrix .fixed-id { width:60px; min-width:60px; max-width:60px; }
.class-table.grade-matrix .fixed-name { width:100px; min-width:100px; max-width:100px; }
.grade-matrix tbody :is(.fixed-id,.fixed-name) { background:var(--grade-row-bg); }
.grade-matrix tbody .fixed-id { color:color-mix(in srgb,var(--primary) 65%,var(--muted)); font-size:12px; font-weight:650; letter-spacing:.025em; }
.grade-matrix .fixed-name { box-shadow:8px 0 14px -12px color-mix(in srgb,var(--primary) 55%,transparent); border-right-color:color-mix(in srgb,var(--primary) 14%,var(--border)); }
.grade-matrix thead :is(.fixed-id,.fixed-name) { background:color-mix(in srgb,var(--primary) 5%,var(--surface-2)); color:var(--primary); }
.grade-matrix .student-history-button { min-height:36px; padding:3px 2px; font-size:14px; line-height:1.4; font-weight:650; border-radius:7px; }
.grade-matrix .student-history-button small { display:none; }
.grade-matrix .student-history-button:hover,.grade-matrix .student-history-button:focus-visible { background:color-mix(in srgb,var(--primary) 7%,transparent); }
.grade-matrix .grade-name-column-head .table-sort-button { padding:3px 12px; }
.grade-matrix .grade-project-head { min-height:40px; gap:3px; padding:3px 14px; }
.grade-matrix .grade-project-head strong { display:block; width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); font-size:13px; font-weight:700; line-height:18px; }
.grade-matrix .grade-project-head>span { display:flex; align-items:center; justify-content:center; gap:3px; color:var(--muted); font-size:10px; line-height:13px; font-weight:500; }
.grade-matrix .grade-project-head .sort-mark { color:var(--primary); font-size:11px; line-height:1; }
.grade-matrix .grade-project-column-head:has(.sort-mark) { background:color-mix(in srgb,var(--primary) 9%,var(--surface)); border-bottom-color:var(--primary); }
.grade-matrix :is(.grade-column-hide,.grade-column-delete) { top:5px; width:18px; height:18px; opacity:0; transition:opacity .14s ease,background .14s ease; }
.grade-matrix .grade-column-hide { left:4px; }
.grade-matrix .grade-column-delete { right:4px; background:transparent; color:var(--muted); }
.grade-matrix .grade-column-delete:hover { background:color-mix(in srgb,var(--danger) 11%,var(--surface)); color:var(--danger); }
.grade-matrix :is(.grade-project-column-head,.grade-name-column-head):is(:hover,:focus-within) :is(.grade-column-hide,.grade-column-delete),.grade-matrix :is(.grade-column-hide,.grade-column-delete):focus-visible { opacity:1; }
.grade-matrix .grade-column-drag { left:4px; bottom:5px; opacity:.3; }
.grade-matrix .grade-project-column-head:is(:hover,:focus-within) .grade-column-drag { opacity:.85; }
.grade-matrix .grade-column-drag[aria-grabbed="true"] { opacity:1; }
.grade-matrix .grade-record-button { min-width:54px; min-height:34px; max-width:100%; padding:5px 12px; border-radius:8px; font-size:14px; line-height:22px; font-weight:650; }
.grade-matrix .grade-record-button::after { right:3px; font-size:9px; }
/* Only the hovered edit affordance and correction dots need positioned paint layers. */
.class-grade-scroll .grade-record-button { position:static; }
.class-grade-scroll .grade-record-button::after { display:none; transform:none; transition:none; }
.class-grade-scroll .grade-record-button:is(:hover,:focus-visible),.class-grade-scroll .grade-record-button.has-correction-tag { position:relative; }
.class-grade-scroll .grade-record-button:is(:hover,:focus-visible)::after { display:block; }
.grade-matrix .grade-record-button.has-correction-tag { min-width:54px; padding:5px 12px; }
.grade-matrix .grade-record-button.unregistered { min-width:0; padding:5px 8px; border-color:transparent; background:transparent; color:var(--muted); font-weight:450; }
.grade-matrix .grade-record-button.unregistered .history-empty { font-size:12px; }
.grade-matrix .grade-record-button.unregistered:hover,.grade-matrix .grade-record-button.unregistered:focus-visible { border-color:var(--border); background:var(--surface-2); color:var(--primary); }
.class-table.grade-matrix :is(th,td).total-column { width:96px; min-width:96px; max-width:96px; border-left:1px solid color-mix(in srgb,var(--primary) 18%,var(--border)); background:color-mix(in srgb,var(--primary) 6%,var(--surface)); color:var(--primary); }
.class-grade-toolbar .class-grade-pan { padding:7px 9px; border-color:var(--border); background:var(--surface); box-shadow:0 3px 12px rgba(31,45,39,.035); backdrop-filter:none; }
.class-grade-pan-button { border-radius:7px; }
.class-grade-pan-button:disabled { opacity:.3; cursor:default; }
.class-grade-pan-button:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.class-grade-pan-range { --grade-pan-progress:0%; appearance:none; -webkit-appearance:none; height:30px; margin:0; padding:0; border:0; border-radius:7px; background:transparent; touch-action:pan-y; }
.class-grade-pan-range::-webkit-slider-runnable-track { height:6px; border-radius:99px; background:linear-gradient(to right,color-mix(in srgb,var(--primary) 58%,var(--border)) var(--grade-pan-progress),var(--border) var(--grade-pan-progress)); }
.class-grade-pan-range::-moz-range-track { height:6px; border-radius:99px; background:var(--border); }
.class-grade-pan-range::-moz-range-progress { height:6px; border-radius:99px; background:color-mix(in srgb,var(--primary) 58%,var(--border)); }
.class-grade-pan-range::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:34px; height:18px; margin-top:-6px; border:2px solid var(--surface); border-radius:7px; background:var(--primary); box-shadow:0 1px 4px color-mix(in srgb,var(--primary) 25%,transparent); }
.class-grade-pan-range::-moz-range-thumb { box-sizing:border-box; width:34px; height:18px; border:2px solid var(--surface); border-radius:7px; background:var(--primary); box-shadow:0 1px 4px color-mix(in srgb,var(--primary) 25%,transparent); }
.class-grade-pan-range:focus-visible { outline:2px solid color-mix(in srgb,var(--primary) 60%,transparent); outline-offset:2px; }
.class-grade-pan-range:active::-webkit-slider-thumb { background:color-mix(in srgb,var(--primary) 85%,var(--text)); }
.class-grade-pan-range:active::-moz-range-thumb { background:color-mix(in srgb,var(--primary) 85%,var(--text)); }
/* Keep placeholders and the ghost consistent with the table finish. */
.class-table.grade-matrix .is-column-placeholder { background:color-mix(in srgb,var(--primary) 7%,var(--surface)); }
.grade-column-ghost .class-table.grade-matrix th { background:color-mix(in srgb,var(--primary) 9%,var(--surface-2)); }
.grade-column-ghost .class-table.grade-matrix td { background:var(--grade-row-bg); }
@media(hover:none),(pointer:coarse) {
  .grade-matrix :is(.grade-column-hide,.grade-column-delete) { opacity:.6; }
  .grade-matrix .grade-column-drag { opacity:.65; }
}
@media(max-width:900px) {
  .class-grade-scroll { border-radius:11px; }
  .class-table.grade-matrix th,.class-table.grade-matrix td { width:100px; min-width:100px; max-width:100px; }
  .class-table.grade-matrix th { padding-top:8px; padding-bottom:8px; height:60px; }
  .class-table.grade-matrix td { height:54px; }
  .class-table.grade-matrix .fixed-id { width:52px; min-width:52px; max-width:52px; }
  .class-table.grade-matrix .fixed-name { width:82px; min-width:82px; max-width:82px; }
  .grade-matrix .fixed-name { left:52px; }
  .class-table.grade-matrix :is(th,td).total-column { width:82px; min-width:82px; max-width:82px; }
  .grade-matrix .grade-project-head { padding-right:12px; padding-left:12px; }
  .grade-matrix .grade-record-button { min-height:36px; }
  .class-grade-scroll { scroll-padding-inline-start:134px; }
  .grade-project-column-head { scroll-margin-inline-start:134px; }
}
@media(prefers-reduced-motion:reduce) { .grade-matrix :is(.grade-column-hide,.grade-column-delete) { transition:none; } }
