:root {
  color-scheme: light;
  --ink: #1c1b19;
  --muted: #5f6368;
  --line: #d8d7d2;
  --paper: #ffffff;
  --surface: #f7f7f5;
  --blue: #005f99;
  --blue-dark: #003f66;
  --blue-soft: #e5f0f8;
  --gold: #f7bd23;
  --gold-dark: #d49a00;
  --green: #1f7a4d;
  --amber: #a15c10;
  --rose: #b4234c;
  --teal: #1f6f78;
  --shadow: 0 10px 24px rgba(28, 27, 25, 0.08);
  --blue-shadow: 0 14px 34px rgba(0, 63, 102, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Calibri, Arial, sans-serif;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); outline: 3px solid var(--gold); outline-offset: 2px; }

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.app-shell {
  min-height: 100vh;
}

.ucop-disclaimer {
  margin: 0 clamp(18px, 3vw, 36px);
  padding: 16px 0 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.print-report {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 3vw, 36px);
  border-bottom: 6px solid var(--gold);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  box-shadow: var(--blue-shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  min-width: 0;
}

.brand-logo {
  width: clamp(210px, 27vw, 370px);
  max-height: 72px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.hub-label {
  margin: 0;
  color: #ffe7a3;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.step-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.topbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.privacy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px clamp(18px, 3vw, 36px) 0;
  padding: 12px 14px;
  border: 1px solid #c5d4eb;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(28, 27, 25, 0.04);
}

.privacy-banner strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.privacy-banner span {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.35;
}

#status[data-tone="success"] {
  color: #d9f6df;
}

#status[data-tone="warning"] {
  color: #ffe7a3;
}

#status[data-tone="error"] {
  color: #ffd7df;
}

.actions {
  display: flex;
  gap: 10px;
}

.hub-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .hub-return-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 24px;
  padding: 26px clamp(18px, 3vw, 36px) 40px;
}

.control-panel {
  align-self: start;
  display: grid;
  gap: 14px;
}

.step-panel {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.step-panel:first-child {
  background: var(--blue-soft);
  border-color: #c5d4eb;
  border-left-color: var(--blue);
}

.compact-step {
  border-left-color: var(--blue);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.step-num {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 95, 153, 0.18);
}

.step-heading h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.inline-upload-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 95, 153, 0.22);
}

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

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.topbar .secondary-button {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .secondary-button:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.2);
}

.ucop-help {
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.ucop-help p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ucop-help h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.ucop-help ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ucop-help a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.ucop-help a:hover {
  text-decoration: underline;
}

.ucop-url-tool { display: grid; gap: 9px; }
.ucop-url-tool > label { color: var(--ink); font-size: 0.86rem; font-weight: 800; }
.ucop-url-tool input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fff; font: inherit; }
.ucop-url-tool input:focus { outline: 3px solid rgba(0,87,146,.15); border-color: var(--blue); }
.ucop-url-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ucop-url-actions .primary-button { width: auto; }
.ucop-download-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 8px; background: #267447; color: #fff !important; }
.ucop-download-link[hidden] { display: none !important; }
.ucop-url-actions .primary-button:focus-visible, .ucop-download-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ucop-url-status { margin: 0; padding: 9px 10px; border-radius: 8px; font-size: 0.85rem; }
.ucop-url-status[data-tone="loading"] { background: #e9f3fb; color: var(--blue); }
.ucop-url-status[data-tone="success"] { background: #e9f7ef; color: #1c653c; }
.ucop-url-status[data-tone="error"] { background: #fff0f0; color: #922b2b; }
.catalog-upload-backup { margin-top: 10px; color: var(--muted); font-size: 0.84rem; }
.catalog-upload-backup summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.catalog-upload-backup .field { margin-top: 10px; }
.loaded-catalogs { margin-top: 12px; }
.catalog-list-empty { margin: 0; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 0.84rem; }
.catalog-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--ink); font-size: 0.84rem; }
.catalog-list-heading span { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--blue); color: #fff; text-align: center; font-weight: 800; }
.loaded-catalogs ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.loaded-catalogs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f7fafc; }
.loaded-catalogs li > span { display: grid; min-width: 0; }
.loaded-catalogs li strong { overflow: hidden; color: var(--ink); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.loaded-catalogs li small { color: var(--muted); font-size: 0.75rem; }
.loaded-catalogs li button { border: 0; background: transparent; color: #922b2b; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 800; }
.loaded-catalogs li button:hover { text-decoration: underline; }
.loaded-catalogs li button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.text-link {
  justify-self: start;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.benchmark-dashboard {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.benchmark-heading {
  align-items: flex-start;
  margin-bottom: 0;
}

.benchmark-guide {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c5d4eb;
  border-radius: 8px;
  background: var(--blue-soft);
}

.benchmark-guide-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.benchmark-guide-heading strong {
  color: var(--blue-dark);
}

.benchmark-guide-heading span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.benchmark-guide-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #b6cde0;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.benchmark-guide-card > div {
  display: grid;
  gap: 2px;
}

.benchmark-guide-card > div strong {
  color: var(--ink);
}

.benchmark-guide-card > div span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.benchmark-guide-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benchmark-guide-card li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #f7f7f5;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
}

.benchmark-guide-card li span {
  color: var(--blue-dark);
  font-weight: 900;
}

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

.benchmark-metric {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.benchmark-metric span,
.benchmark-grade-card small,
.benchmark-note span,
.benchmark-progress-topline span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.benchmark-metric strong {
  font-size: 1.75rem;
  line-height: 1;
}

.benchmark-metric.success {
  border-top: 4px solid var(--green);
}

.benchmark-metric.danger {
  border-top: 4px solid var(--rose);
}

.benchmark-metric.warning {
  border-top: 4px solid var(--amber);
}

.benchmark-metric.muted {
  border-top: 4px solid var(--line);
}

.benchmark-overall {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 12px;
}

.benchmark-progress-panel,
.benchmark-note {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.benchmark-progress-block {
  display: grid;
  gap: 9px;
}

.benchmark-progress-divider {
  height: 1px;
  background: var(--line);
}

.benchmark-progress-topline,
.benchmark-grade-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.benchmark-progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e4dd;
}

.benchmark-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.benchmark-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.benchmark-grade-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.benchmark-breakdown {
  display: grid;
  gap: 8px;
}

.benchmark-breakdown-row {
  display: grid;
  gap: 5px;
}

.benchmark-breakdown-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.benchmark-breakdown-topline strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.benchmark-breakdown-topline span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.benchmark-grade-card.on-track {
  border-top: 4px solid var(--green);
}

.benchmark-grade-card.mixed {
  border-top: 4px solid var(--amber);
}

.benchmark-grade-card.off-track,
.benchmark-grade-card.needs-grade {
  border-top: 4px solid var(--rose);
}

.bulk-dashboard-controls,
.student-detail-overview,
.course-review-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.course-review-panel .section-heading {
  align-items: start;
}

.course-review-panel .section-heading p {
  max-width: 780px;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.course-review-note {
  padding: 10px 12px;
  border-left: 4px solid var(--amber);
  background: #fff8e6;
  color: #604600;
  font-size: 0.86rem;
}

.mapping-file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.mapping-file-actions > div:first-child {
  display: grid;
  gap: 3px;
}

.mapping-file-actions span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mapping-file-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.mapping-file-buttons .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.mapping-file-buttons .secondary-button:not(:disabled):hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.mapping-file-import {
  cursor: pointer;
}

.mapping-file-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mapping-file-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mapping-file-buttons > * {
    flex: 1 1 auto;
  }
}

.mapping-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #edc86a;
  border-radius: 10px;
  background: #fff8e6;
}

.mapping-confirmation[data-tone="ready"] {
  border-color: #79b68e;
  background: #eef9f1;
}

.mapping-confirmation > div {
  display: grid;
  gap: 4px;
}

.mapping-confirmation span {
  color: var(--muted);
  line-height: 1.4;
}

.mapping-confirmation .primary-button {
  flex: 0 0 auto;
}

.course-review-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-review-mode-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
}

.course-review-mode-tabs button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 2px rgba(0, 95, 153, 0.12);
}

.course-review-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 260px) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
}

.course-review-toolbar label {
  display: grid;
  gap: 5px;
}

.course-review-toolbar label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-review-toolbar input,
.course-review-toolbar select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.course-review-result-count {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.course-review-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.course-review-pagination button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
}

.course-review-pagination span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.course-review-pagination label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.course-review-pagination select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.course-review-table {
  min-width: 1520px;
}

.course-review-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.course-review-table tr.manually-reviewed td {
  background: #f3f8fc;
}

.course-review-table tr.external-review td,
.course-review-table tr.mapping-needed td {
  background: #fff8e6;
}

.course-review-table .course-match-select {
  min-width: 300px;
}

.course-category-buttons,
.course-column-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 210px;
}

.course-category-buttons button,
.course-column-buttons button {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.course-category-buttons button:hover,
.course-column-buttons button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.course-category-buttons button.selected,
.course-column-buttons button.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.course-category-buttons button.suggested {
  border-color: var(--gold-dark);
  box-shadow: inset 0 0 0 1px var(--gold-dark);
}

.course-review-reset {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
}

.course-review-actions {
  display: grid;
  gap: 6px;
}

.course-review-confirm {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.course-review-confirm:hover,
.course-review-confirm:focus-visible {
  filter: brightness(0.92);
}

.bulk-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-view-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.bulk-view-tabs button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 2px rgba(0, 95, 153, 0.12);
}

.bulk-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.bulk-filter,
.bulk-student-nav label {
  display: grid;
  gap: 5px;
}

.bulk-filter span,
.bulk-student-nav label span {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bulk-filter select,
.bulk-student-nav select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
}

.bulk-clear-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.bulk-student-nav {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr) 44px auto;
  gap: 10px;
  align-items: end;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.bulk-filter-summary {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.nav-arrow {
  min-height: 38px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 1.1rem;
}

.nav-arrow:disabled {
  border-color: var(--line);
  background: #e9ecef;
  color: #8a8f96;
}

.bulk-filter-count {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.bulk-filter-summary span {
  color: var(--muted);
  font-weight: 800;
}

.student-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.student-status-key {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-status-key li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
}

.student-status-key li.complete {
  background: #e4f4ea;
  color: var(--green);
}

.student-status-key li.in-progress {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.student-status-key li.partial {
  background: #fff4cf;
  color: #7a5000;
}

.student-status-key li.started {
  background: #eef2f5;
  color: #334155;
}

.student-status-key li.not-started {
  background: #ffe5eb;
  color: var(--rose);
}

.student-status-key strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.student-status-key span {
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.88;
}

.student-overview-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.student-overview-card:hover,
.student-overview-card:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.student-overview-card.on-track {
  border-top: 4px solid var(--green);
}

.student-overview-card.off-track,
.student-overview-card.needs-grade {
  border-top: 4px solid var(--rose);
}

.student-overview-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.student-overview-topline strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.2;
}

.student-overview-meta {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.track-pill {
  flex: 0 0 auto;
  width: max-content;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.track-pill.on-track {
  background: #e4f4ea;
  color: var(--green);
}

.track-pill.off-track,
.track-pill.needs-grade {
  background: #ffe5eb;
  color: var(--rose);
}

.student-category-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-category-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f4f0e5;
  text-align: center;
}

.student-category-list li.complete {
  background: #e4f4ea;
  color: var(--green);
}

.student-category-list li.in-progress {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.student-category-list li.partial {
  background: #fff4cf;
  color: #7a5000;
}

.student-category-list li.started {
  background: #eef2f5;
  color: #334155;
}

.student-category-list li.not-started {
  background: #ffe5eb;
  color: var(--rose);
}

.student-category-list span {
  font-size: 0.78rem;
  font-weight: 900;
}

.student-category-list strong {
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  line-height: 1.15;
}

.student-dual {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f0e5;
  font-weight: 800;
}

.student-dual.pending {
  border-color: #f97316;
  background: #ffedd5;
  color: #9a3412;
}

.student-dual.complete {
  border-color: #8ccfab;
  background: #e7f6ee;
  color: var(--green);
}

.student-dual.muted {
  border-color: #d7d3c8;
  color: var(--muted);
}

.results {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.results > * {
  min-width: 0;
  max-width: 100%;
}

.summary-grid,
.requirement-grid {
  display: grid;
  gap: 14px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.summary-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.summary-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.summary-grid .summary-status.on-track {
  border-left-color: var(--green);
}

.summary-grid .summary-status.off-track {
  border-left-color: var(--rose);
}

.summary-grid .summary-status.needs-grade {
  border-left-color: var(--amber);
}

.summary-status small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}

.status-note {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.status-note.on-track {
  background: #e4f4ea;
  color: var(--green);
}

.status-note.off-track {
  background: #ffe5eb;
  color: var(--rose);
}

.status-note.needs-grade {
  background: #fff4cf;
  color: #7a5000;
}

.notice-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e4c66e;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fff8ea;
}

.notice-list p {
  margin: 0;
  color: #6f420b;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.requirement-grid {
  grid-template-columns: repeat(7, minmax(135px, 1fr));
}

.requirement-card {
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(28, 27, 25, 0.04);
}

.requirement-card.complete {
  border-top: 4px solid var(--green);
}

.requirement-card.in-progress {
  border-top: 4px solid var(--teal);
}

.requirement-card.partial {
  border-top: 4px solid var(--amber);
}

.requirement-card.started {
  border-top: 4px solid #64748b;
}

.requirement-card.not-started {
  border-top: 4px solid var(--rose);
}

.requirement-topline,
.requirement-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.requirement-topline span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.requirement-topline strong,
.requirement-foot {
  color: var(--muted);
  font-size: 0.86rem;
}

.requirement-card h3 {
  min-height: 40px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

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

.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
}

.requirement-card.in-progress .progress-track span {
  background: var(--teal);
}

.requirement-card.partial .progress-track span {
  background: var(--amber);
}

.requirement-card.started .progress-track span {
  background: #64748b;
}

.requirement-card.not-started .progress-track span {
  background: var(--rose);
}

.requirement-foot {
  display: grid;
  gap: 4px;
}

.requirement-foot .meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table-select {
  width: 100%;
  min-width: 170px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 0.86rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

td span {
  margin-top: 2px;
  color: var(--muted);
}

.audit-badge {
  display: inline-block;
  width: max-content;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f5;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.audit-badge.earned {
  background: #e4f4ea;
  color: var(--green);
}

.audit-badge.validated {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.audit-badge.repeated {
  background: #fff4cf;
  color: #7a5000;
}

.audit-badge.missing,
.audit-badge.ip {
  background: #ffe5eb;
  color: var(--rose);
}

tr:last-child td {
  border-bottom: 0;
}

.empty-panel {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #c7c0af;
  border-radius: 8px;
  background: #fff;
}

.empty-panel span {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .requirement-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

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

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

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

@media (max-width: 820px) {
  .topbar,
  .workspace {
    display: grid;
  }

  .topbar {
    gap: 16px;
  }

  .brand-lockup {
    display: grid;
    gap: 12px;
  }

  .brand-logo {
    width: min(100%, 320px);
    max-height: 62px;
  }

  .brand-copy {
    padding-left: 0;
    border-left: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .actions {
    flex-wrap: wrap;
  }

  .requirement-grid,
  .benchmark-overall,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .bulk-filter-grid,
  .bulk-student-nav,
  .course-review-toolbar {
    grid-template-columns: 1fr;
  }

  .course-review-result-count {
    padding-bottom: 0;
    white-space: normal;
  }

  .benchmark-guide-heading {
    display: grid;
  }

  .benchmark-guide-grid {
    grid-template-columns: 1fr;
  }

  .bulk-clear-button,
  .nav-arrow {
    width: 100%;
  }

  .student-category-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .privacy-banner {
    display: grid;
    gap: 5px;
  }

  .mapping-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .mapping-confirmation .primary-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 14px 16px;
  }

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

  .step-heading {
    gap: 10px;
  }

  .step-panel {
    padding: 14px;
  }

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

  .student-status-key {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.35in;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
  }

  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .app-shell {
    display: none !important;
  }

  .print-report {
    display: block;
  }

  .print-page {
    display: grid;
    gap: 8px;
    color: #111;
    font-size: 8.5pt;
    line-height: 1.2;
  }

  .print-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--blue);
  }

  .print-header h1 {
    margin: 1px 0 0;
    color: var(--blue-dark);
    font-size: 18pt;
    line-height: 1;
  }

  .print-org,
  .print-date span,
  .print-student-bar span,
  .print-summary-card span {
    margin: 0;
    color: #4b5563;
    font-size: 7.2pt;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .print-date {
    display: grid;
    gap: 2px;
    text-align: right;
  }

  .print-date strong {
    color: var(--blue-dark);
    font-size: 9pt;
  }

  .print-student-bar {
    display: grid;
    grid-template-columns: 1.7fr 0.55fr 1fr 1fr 0.65fr;
    gap: 6px;
    padding: 7px;
    border: 1px solid #cfd8e3;
    border-left: 5px solid var(--gold);
    border-radius: 4px;
  }

  .print-student-bar div,
  .print-summary-card {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .print-student-bar strong,
  .print-summary-card strong {
    overflow-wrap: anywhere;
    font-size: 9.5pt;
  }

  .print-status,
  .print-chip {
    display: inline-block;
    width: fit-content;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 7.5pt;
    font-weight: 900;
    line-height: 1.15;
  }

  .print-status.on-track,
  .print-chip.complete {
    background: #e4f4ea;
    color: var(--green);
  }

  .print-status.off-track,
  .print-status.needs-grade,
  .print-chip.not-started {
    background: #ffe5eb;
    color: var(--rose);
  }

  .print-chip.in-progress {
    background: var(--blue-soft);
    color: var(--blue-dark);
  }

  .print-chip.partial {
    background: #fff4cf;
    color: #7a5000;
  }

  .print-chip.started {
    background: #eef2f5;
    color: #334155;
  }

  .print-summary-row {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 6px;
  }

  .print-summary-card {
    padding: 7px;
    border: 1px solid #d8d7d2;
    border-radius: 4px;
    background: #f7f7f5;
  }

  .print-summary-card p {
    margin: 0;
    color: #374151;
  }

  .print-section {
    break-inside: avoid;
  }

  .print-section h2 {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 10.5pt;
  }

  .print-mini-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    border: 1px solid #cfd8e3;
  }

  .print-mini-table th,
  .print-mini-table td {
    padding: 3px 5px;
    border-bottom: 1px solid #d8d7d2;
    color: #111;
    font-size: 7.6pt;
    line-height: 1.15;
    vertical-align: top;
  }

  .print-mini-table th {
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 7pt;
    text-transform: uppercase;
  }

  .print-mini-table tr:last-child td {
    border-bottom: 0;
  }

  .print-two-column {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 8px;
  }

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

  .print-category-card {
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid #cfd8e3;
    border-top: 3px solid var(--blue);
    border-radius: 4px;
    break-inside: avoid;
  }

  .print-category-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 6px;
  }

  .print-category-topline div {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .print-category-topline strong {
    color: var(--blue-dark);
    font-size: 8.4pt;
    line-height: 1.1;
  }

  .print-category-topline span:not(.print-chip),
  .print-category-card p {
    margin: 0;
    color: #4b5563;
    font-size: 7.3pt;
  }

  .print-course-list {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .print-course-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding-top: 2px;
    border-top: 1px dotted #d8d7d2;
    font-size: 7.4pt;
  }

  .print-course-list span {
    overflow-wrap: anywhere;
  }

  .print-course-list strong {
    color: var(--blue-dark);
  }

  .print-muted {
    margin: 0;
    color: #4b5563;
    font-size: 8pt;
  }

  .print-footer {
    margin-top: 2px;
    padding-top: 5px;
    border-top: 1px solid #d8d7d2;
    color: #4b5563;
    font-size: 7.2pt;
  }
}
