:root {
  color-scheme: light;
  --page: #f3f6fa;
  --paper: #ffffff;
  --ink: #172338;
  --muted: #5f6f82;
  --line: #d9e1eb;
  --blue: #245b92;
  --blue-dark: #173f6b;
  --teal: #19756f;
  --teal-soft: #eaf7f5;
  --gold: #b7791f;
  --red: #a12921;
  --red-soft: #fff1ef;
  --shadow: 0 18px 45px rgba(28, 52, 82, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(36, 91, 146, 0.08), transparent 33rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 91, 146, 0.28);
  outline-offset: 2px;
}

.admin-shell {
  width: min(1440px, calc(100% - 34px));
  margin: 24px auto 52px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(132deg, rgba(23, 63, 107, 0.98), rgba(36, 91, 146, 0.94)),
    #173f6b;
  color: #fff;
  box-shadow: var(--shadow);
}

.admin-hero > * {
  min-width: 0;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-status span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #edf6ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-hero h1,
.section-heading h2,
.workspace-head h3,
.visual-head h3,
.point-lab-head h3,
.review-head h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.admin-hero h1 {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.hero-lead {
  max-width: 850px;
  margin: 15px 0 0;
  color: #dceafb;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-hero .eyebrow {
  color: #b8e8e4;
}

.hero-actions,
.workspace-actions,
.point-controls,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.portal-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.portal-button:hover {
  background: var(--blue-dark);
}

.portal-button.secondary {
  background: var(--teal);
}

.portal-button.secondary:hover {
  background: #125e59;
}

.portal-button.ghost {
  border-color: #b9c8da;
  background: #fff;
  color: var(--blue-dark);
}

.admin-hero .portal-button.ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.section-nav {
  position: sticky;
  z-index: 10;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  border: 1px solid rgba(217, 225, 235, 0.9);
  border-radius: 999px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 28px rgba(31, 51, 78, 0.09);
  backdrop-filter: blur(12px);
}

.section-nav a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.section-nav a:hover {
  background: #eef4fb;
  color: var(--blue);
}

.portal-section {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(31, 51, 78, 0.055);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.section-heading > p:last-child,
.workspace-head p,
.point-lab-head p,
.review-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.management-card {
  display: flex;
  min-height: 215px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.management-card:hover {
  transform: translateY(-2px);
  border-color: #a9c1dd;
  box-shadow: 0 13px 30px rgba(36, 91, 146, 0.1);
}

.management-card span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.management-card strong {
  margin-top: 13px;
  font-size: 1.16rem;
}

.management-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.management-card em {
  margin-top: auto;
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.criteria-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #f8fbff;
}

.criteria-grid article > span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
}

.criteria-grid article:last-child > span {
  background: #68788d;
}

.criteria-grid article:nth-child(2) > span {
  background: var(--teal);
}

.criteria-grid .inactive-component {
  background: #f5f6f8;
}

.criteria-grid strong {
  font-size: 1.06rem;
}

.criteria-grid p {
  margin: 4px 0 0;
  color: var(--muted);
}

.formula-note {
  margin: 14px 0 0;
  border-left: 4px solid var(--teal);
  padding: 10px 13px;
  background: var(--teal-soft);
  color: #264b49;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.grading-workspace {
  margin-top: 22px;
  border: 1px solid #bdccdc;
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 26px);
  background: #f8fafc;
}

.workspace-head,
.point-lab-head,
.review-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.workspace-head h3,
.point-lab-head h3,
.review-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 19px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.status-grid article {
  display: grid;
  align-content: start;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.status-grid strong {
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.status-grid span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.83rem;
}

.status-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  background: #fff8ea;
}

.status-callout p {
  margin: 0;
  color: #675027;
}

.method-cards {
  display: grid;
  gap: 14px;
}

.method-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(17px, 2.5vw, 24px);
  background: #fbfdff;
}

.method-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.method-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.method-card > div > p {
  margin: 7px 0 0;
  color: var(--muted);
}

.method-disclosure {
  margin-top: 14px;
  border: 1px solid #bdccdc;
  border-radius: 10px;
  background: #fff;
}

.method-disclosure summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.method-disclosure summary::-webkit-details-marker {
  display: none;
}

.method-disclosure summary::after {
  content: "Show";
  border-radius: 999px;
  padding: 4px 9px;
  background: #e7f0fa;
  color: var(--blue);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.method-disclosure[open] summary::after {
  content: "Hide";
}

.method-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.disclosure-body {
  padding: 16px;
}

.disclosure-body h4 {
  margin: 20px 0 5px;
}

.rubric-grid,
.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rubric-grid article,
.definition-grid span {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  background: #f8fbff;
}

.rubric-grid p,
.definition-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.rubric-grid p {
  margin: 6px 0 0;
}

.definition-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.definition-grid span {
  display: grid;
  gap: 5px;
}

.compact-list {
  margin: 8px 0 0;
  padding-left: 22px;
}

.compact-list li + li {
  margin-top: 6px;
}

.privacy-note,
.evidence-note {
  margin: 14px 0 0;
  border-radius: 9px;
  padding: 12px 14px;
}

.privacy-note {
  background: var(--teal-soft);
  color: #244e4b;
}

.evidence-note {
  background: #edf3f9;
  color: #3d5067;
}

.disclosure-body blockquote {
  margin: 0;
  border-left: 4px solid var(--teal);
  padding: 10px 14px;
  background: var(--teal-soft);
  color: #264b49;
  font-weight: 750;
}

.semester-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: 10px;
  margin-top: 14px;
}

.semester-settings label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.semester-settings label > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.semester-settings input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9c8d9;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.settings-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-note.ready {
  color: var(--teal);
}

.settings-note.error {
  color: var(--red);
  font-weight: 750;
}

.file-card {
  display: grid;
  min-height: 135px;
  gap: 10px;
  border: 1px dashed #9db2c9;
  border-radius: 11px;
  padding: 14px;
  background: #fff;
}

.file-card.ready {
  border-style: solid;
  border-color: #72aaa4;
  background: #f0faf8;
}

.file-card > span {
  font-weight: 900;
}

.file-card input {
  width: 100%;
  font-size: 0.83rem;
}

.file-card em {
  align-self: end;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.workspace-actions {
  align-items: end;
  margin-top: 14px;
}

.class-filter,
.point-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.class-filter {
  min-width: 190px;
  margin-left: auto;
}

.class-filter select,
.point-controls input {
  min-height: 42px;
  border: 1px solid #b8c7d7;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.workspace-status,
.weight-status {
  margin: 13px 0;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.workspace-status.ready,
.weight-status.ready {
  border-color: #9bc8c3;
  color: #17635d;
}

.workspace-status.error,
.weight-status.error {
  border-color: #e4aaa5;
  background: var(--red-soft);
  color: var(--red);
}

.comparison-strip,
.kpi-grid,
.item-summary-grid {
  display: grid;
  gap: 10px;
}

.comparison-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 15px 0 10px;
}

.comparison-strip span,
.kpi-grid span,
.item-summary-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comparison-strip strong,
.kpi-grid strong,
.item-summary-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.05;
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.visual-card {
  min-width: 0;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fff;
}

.visual-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.visual-head h3 {
  font-size: 1.08rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.legend span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
  content: "";
}

.default-key::before {
  background: #aab8c8;
}

.adjusted-key::before {
  background: var(--teal);
}

.histogram {
  display: grid;
  height: 250px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  padding-top: 12px;
  border-bottom: 1px solid #cbd7e4;
}

.hist-bin {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
  text-align: center;
}

.hist-bars {
  display: flex;
  height: 100%;
  gap: 2px;
  align-items: end;
  justify-content: center;
}

.hist-bar {
  width: min(16px, 42%);
  min-height: 1px;
  border-radius: 4px 4px 0 0;
}

.hist-bar.default {
  background: #aab8c8;
}

.hist-bar.adjusted {
  background: var(--teal);
}

.hist-bin small {
  color: var(--muted);
  font-size: 0.68rem;
}

.class-comparison,
.boxplot-grid {
  display: grid;
  gap: 10px;
}

.class-row {
  display: grid;
  grid-template-columns: 58px 42px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}

.class-row > strong {
  font-size: 0.82rem;
}

.class-row > span {
  color: var(--muted);
  text-align: right;
}

.class-component-bars {
  display: grid;
  gap: 3px;
}

.component-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.component-fill {
  height: 100%;
  border-radius: inherit;
}

.component-fill.exam {
  background: var(--blue);
}

.component-fill.quiz {
  background: var(--gold);
}

.component-fill.final {
  background: var(--teal);
}

.box-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 48px;
  gap: 9px;
  align-items: center;
  font-size: 0.77rem;
}

.box-track {
  position: relative;
  height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 59.5%, #e1e7ef 60%, transparent 60.5%),
    #f3f6fa;
}

.box-whisker {
  position: absolute;
  top: 10px;
  height: 2px;
  background: #8093a8;
}

.box-iqr {
  position: absolute;
  top: 4px;
  height: 14px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: #cce8e5;
}

.box-median {
  position: absolute;
  top: 2px;
  width: 2px;
  height: 18px;
  background: var(--blue-dark);
}

.scatter-wrap {
  min-height: 255px;
}

.scatter-wrap svg {
  display: block;
  width: 100%;
  height: 265px;
}

.scatter-axis,
.scatter-grid {
  stroke: #cbd6e3;
  stroke-width: 1;
}

.scatter-grid {
  stroke-dasharray: 3 4;
}

.scatter-label {
  fill: var(--muted);
  font-size: 10px;
}

.point-lab,
.review-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.point-controls {
  align-items: end;
  margin-top: 16px;
}

.point-controls label {
  min-width: 145px;
}

.item-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid #e1e7ef;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #edf3f9;
  color: #34465c;
  font-size: 0.74rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

td {
  font-size: 0.8rem;
}

.item-table {
  min-width: 1180px;
}

.item-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.rate-cell {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 45px;
  gap: 8px;
  align-items: center;
}

.rate-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.rate-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.change-up {
  color: var(--teal);
  font-weight: 850;
}

.change-down {
  color: var(--red);
  font-weight: 850;
}

.student-table-wrap {
  max-height: 620px;
  margin-top: 14px;
}

.student-table-wrap table {
  min-width: 1060px;
}

.flag-cell {
  color: var(--red);
  font-weight: 700;
}

.demo-name {
  color: var(--muted);
  font-style: italic;
}

.workflow-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(170px, 0.34fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  background: #fbfdff;
}

.workflow-list li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.workflow-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.workflow-list em {
  border-radius: 8px;
  padding: 8px 10px;
  background: #edf3f9;
  color: #496078;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.admin-auth-card {
  width: min(510px, 100%);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(24px, 5vw, 42px);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-auth-card h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.admin-auth-card > p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b6c4d4;
  border-radius: 8px;
  padding: 9px 11px;
}

.portal-alert {
  margin: 13px 0;
  border: 1px solid #e6aaa5;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--red-soft);
  color: var(--red);
}

.small-note {
  margin-top: 18px;
  font-size: 0.85rem;
}

@media (max-width: 1120px) {
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .management-grid,
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .file-grid,
  .comparison-strip,
  .item-summary-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .criteria-grid,
  .definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-hero,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .management-grid,
  .criteria-grid,
  .rubric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .semester-settings,
  .future-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .workflow-list em {
    grid-column: 2;
  }

  .workspace-head,
  .point-lab-head,
  .review-head {
    display: grid;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-shell {
    width: min(100% - 16px, 1440px);
    margin-top: 8px;
  }

  .admin-hero,
  .portal-section,
  .grading-workspace {
    border-radius: 11px;
  }

  .section-nav {
    position: static;
    width: 100%;
    justify-content: center;
    border-radius: 11px;
  }

  .management-grid,
  .criteria-grid,
  .status-grid,
  .rubric-grid,
  .definition-grid,
  .semester-settings,
  .future-grid,
  .file-grid,
  .comparison-strip,
  .item-summary-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .management-card {
    min-height: auto;
  }

  .criteria-grid article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .criteria-grid article > span {
    width: 64px;
    height: 64px;
    font-size: 1.1rem;
  }

  .class-filter {
    width: 100%;
    margin-left: 0;
  }

  .admin-footer {
    display: grid;
  }

  .method-card {
    grid-template-columns: 1fr;
  }

  .status-callout,
  .workflow-list li {
    grid-template-columns: 1fr;
  }

  .workflow-list em {
    grid-column: auto;
  }
}

/* Task-first course dashboard and 2026 reporting view */
body {
  background: #f5f6f8;
}

.instructor-label {
  color: var(--red);
}

.course-dashboard {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.dashboard-header,
.report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header {
  min-height: 90px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.dashboard-actions .portal-button,
.report-header .portal-button {
  flex-shrink: 0;
}

.dashboard-header h1,
.report-header h1 {
  margin: 0;
  color: #202733;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.quiet-action,
.sidebar-back,
.sidebar-lock {
  color: #5f6b79;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.quiet-action:hover,
.sidebar-back:hover,
.sidebar-lock:hover {
  color: var(--red);
}

.primary-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  border: 1px solid #d6dde6;
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(38, 47, 60, 0.06);
}

.primary-task h2 {
  margin: 0;
  color: #1c2531;
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.primary-task p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
}

.primary-launch {
  min-width: 210px;
  gap: 16px;
  padding: 14px 18px;
  background: var(--red);
}

.primary-launch:hover {
  background: #7f211b;
}

.dashboard-tools {
  margin-top: 34px;
}

.dashboard-section-heading h2 {
  margin: 0 0 14px;
  color: #313b49;
  font-size: 1.05rem;
}

.compact-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-tool-card {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: center;
  border: 1px solid #dde2e8;
  border-radius: 10px;
  padding: 16px 40px 16px 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.compact-tool-card:hover {
  border-color: #aab8c8;
  box-shadow: 0 8px 22px rgba(38, 47, 60, 0.06);
}

.compact-tool-card span {
  color: #778493;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-tool-card strong {
  margin-top: 7px;
  font-size: 0.97rem;
}

.compact-tool-card em {
  position: absolute;
  right: 16px;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.report-shell {
  display: grid;
  width: min(1540px, calc(100% - 34px));
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.report-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  min-height: calc(100vh - 36px);
  align-content: start;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.sidebar-title {
  margin: 42px 0 24px;
}

.sidebar-title strong {
  color: #26313f;
  font-size: 1.08rem;
  line-height: 1.35;
}

.report-sidebar nav {
  display: grid;
  gap: 3px;
}

.report-sidebar nav a {
  border-radius: 7px;
  padding: 9px 10px;
  color: #566474;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.report-sidebar nav a:hover {
  background: #f0f3f6;
  color: var(--blue-dark);
}

.sidebar-lock {
  align-self: end;
  margin-top: 40px;
  padding: 10px;
}

.report-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.report-header {
  order: 0;
  min-height: 68px;
  padding: 4px 4px 12px;
}

.report-content .criteria-grid article {
  gap: 12px;
  padding: 13px;
}

.report-content .criteria-grid article > span {
  width: 58px;
  height: 58px;
  font-size: 1.08rem;
}

.report-content .criteria-grid p {
  font-size: 0.82rem;
}

.report-content > #grading {
  order: 1;
}

.report-content > #methods {
  order: 2;
}

.report-content > #workflow {
  order: 3;
}

.report-content .portal-section {
  margin-top: 16px;
  border-radius: 12px;
  box-shadow: none;
}

.report-content #grading {
  margin-top: 0;
}

.section-disclosure {
  padding: 0;
}

.section-disclosure > summary,
.workspace-disclosure > summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  list-style: none;
}

.section-disclosure > summary {
  padding: 18px 22px;
}

.section-disclosure > summary::-webkit-details-marker,
.workspace-disclosure > summary::-webkit-details-marker {
  display: none;
}

.section-disclosure > summary span {
  display: grid;
}

.section-disclosure > summary small {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-disclosure > summary strong {
  color: #283341;
  font-size: 1.05rem;
}

.section-disclosure > summary em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.section-disclosure > summary::after,
.workspace-disclosure > summary::after {
  color: var(--blue);
  content: "Open +";
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.section-disclosure[open] > summary::after,
.workspace-disclosure[open] > summary::after {
  content: "Close −";
}

.section-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.section-disclosure-body {
  padding: 24px;
}

.scope-panel {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.scope-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.scope-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.scope-button {
  min-height: 36px;
  border: 1px solid #c5ced8;
  border-radius: 7px;
  padding: 7px 11px;
  background: #fff;
  color: #556474;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.scope-button:hover {
  border-color: #91a5ba;
}

.scope-button.active {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.sils-panel {
  margin-top: 16px;
  border: 1px solid #d9e0e8;
  border-radius: 11px;
  padding: 18px;
  background: #fff;
}

.analysis-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.analysis-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.analysis-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.sils-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.sils-band {
  border: 1px solid #e0e5eb;
  border-radius: 9px;
  padding: 13px;
  background: #fafbfc;
}

.sils-band-label,
.sils-values {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.sils-band-label strong {
  font-size: 1.08rem;
}

.sils-band-label span,
.sils-values {
  color: var(--muted);
  font-size: 0.72rem;
}

.sils-bars {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}

.sils-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eaf0;
}

.sils-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.sils-target-bar {
  background: #a6b2c0;
}

.sils-actual-bar {
  background: var(--teal);
}

.sils-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sils-values span {
  display: grid;
}

.sils-difference {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #5f6b79;
  font-weight: 850;
}

.sils-difference.notable {
  color: var(--red);
}

.workspace-disclosure {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.workspace-disclosure > summary {
  min-height: 52px;
  padding: 12px 15px;
  color: #34465a;
  font-weight: 850;
}

.workspace-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.workspace-disclosure .visual-grid {
  margin: 0;
  padding: 14px;
}

.workspace-disclosure .point-lab,
.workspace-disclosure .review-section {
  margin: 0;
  border: 0;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 1120px) {
  .compact-tool-grid,
  .sils-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .report-shell {
    grid-template-columns: 1fr;
  }

  .report-sidebar {
    position: static;
    min-height: 0;
  }

  .sidebar-title {
    margin: 20px 0 12px;
  }

  .report-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-lock {
    margin-top: 14px;
  }

  .scope-panel,
  .analysis-heading {
    display: grid;
  }

  .scope-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .course-dashboard {
    width: min(100% - 18px, 1080px);
    padding-top: 12px;
  }

  .primary-task {
    grid-template-columns: 1fr;
  }

  .primary-launch {
    width: 100%;
  }

  .compact-tool-grid,
  .sils-comparison {
    grid-template-columns: 1fr;
  }

  .report-shell {
    width: min(100% - 12px, 1540px);
    margin-top: 6px;
  }

  .report-sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .sidebar-title,
  .report-sidebar nav {
    grid-column: 1 / -1;
  }

  .sidebar-title {
    margin: 16px 0 8px;
  }

  .report-sidebar nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .report-sidebar nav a {
    white-space: nowrap;
  }

  .sidebar-lock {
    align-self: start;
    margin: 0;
    padding: 0;
  }

  .report-header {
    align-items: flex-start;
  }

  .section-disclosure > summary {
    display: grid;
  }

  .section-disclosure > summary em {
    display: none;
  }

  .section-disclosure-body {
    padding: 14px;
  }

  .sils-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .sils-difference {
    grid-column: auto;
    margin-top: 0;
  }
}

.workbook-loader {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 19px;
  border: 1px solid #c5d7e8;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.workbook-loader .file-card {
  min-height: 118px;
  margin: 0;
  background: #f8fbff;
}

.workbook-passcode {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.workbook-passcode input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c8d9;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.workbook-passcode input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(19, 95, 145, 0.13);
}

.workbook-passcode em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.workbook-loader > .portal-button {
  min-height: 44px;
  white-space: nowrap;
}

.evidence-rebuild {
  margin-top: 13px;
}

.advanced-evidence-body {
  padding: 16px;
}

.advanced-evidence-body > p {
  margin: 0;
  color: var(--muted);
}

.hist-bars.single .hist-bar {
  width: min(24px, 64%);
}

@media (max-width: 1120px) {
  .workbook-loader {
    grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.72fr);
  }

  .workbook-loader > .portal-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .workbook-loader {
    grid-template-columns: 1fr;
  }

  .workbook-loader > .portal-button {
    grid-column: auto;
    width: 100%;
  }
}
/* Semester navigation is separate from the preserved reporting workbench. */
.admin-hub { max-width: 1000px; }
.admin-hub .dashboard-header { min-height: 72px; }
.admin-hub .dashboard-header h1 { font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.admin-hub .eyebrow { letter-spacing: 0; }
.admin-sections { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid #d9e1eb; margin: 14px 0 24px; }
.admin-sections a { padding: 10px 0; border-bottom: 3px solid transparent; color: #5f6b79; text-decoration: none; font-weight: 600; }
.admin-sections a[aria-current="page"] { border-color: #19756f; color: #125e59; }
.admin-section h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: 0; }
.admin-tool-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.admin-tool-list li { min-width: 0; border-bottom: 1px solid #d9e1eb; }
.admin-tool-list a { display: block; padding: 14px 0; text-underline-offset: 3px; overflow-wrap: anywhere; }
.archive-report-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 20px; margin-bottom: 8px; border-bottom: 1px solid #d9e1eb; }
.archive-report-entry h3 { margin: 0; font-size: 18px; }
.archive-report-entry p { margin: 4px 0 0; font-size: 14px; color: #5f6b79; }
.archive-report-entry .portal-button { flex-shrink: 0; border-radius: 6px; }
.admin-access-note, .archive-memory-note { color: #5f6b79; font-size: 13px; }
.admin-access-note { margin-top: 20px; }
.archive-memory-note { margin: 10px 0; }
@media (max-width: 680px) {
  .admin-hub .dashboard-header h1 { font-size: 22px; }
  .admin-sections { gap: 2px 16px; font-size: 14px; }
  .admin-tool-list { grid-template-columns: minmax(0, 1fr); }
  .archive-report-entry { align-items: flex-start; flex-direction: column; gap: 12px; }
}
