:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --misd-navy: #062844;
  --misd-gray: #96918E;
  --black: #000000;
  --white: #FFFFFF;
  --navy-soft: rgba(6, 40, 68, 0.08);
  --gray-soft: rgba(150, 145, 142, 0.1);
  --navy: var(--misd-navy);
  --ink: var(--black);
  --muted: rgba(0, 0, 0, 0.62);
  --dim: var(--misd-gray);
  --line: rgba(150, 145, 142, 0.38);
  --line-strong: rgba(150, 145, 142, 0.7);
  --surface: var(--white);
  --surface-soft: var(--gray-soft);
  --green: var(--misd-navy);
  --green-soft: var(--navy-soft);
  --gold-soft: var(--gray-soft);
  --red: var(--black);
  --red-soft: var(--gray-soft);
  --radius-sm: 8px;
  --radius-md: 13px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 16px rgba(6, 40, 68, 0.07);
  --shadow-md: 0 14px 36px rgba(6, 40, 68, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  overflow-x: hidden;
}

button,
input,
select,
textarea { font: inherit; }

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(6, 40, 68, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--misd-navy);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  width: min(1580px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  height: 100vh;
  padding: 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.09), transparent 28%),
    var(--misd-navy);
  box-shadow: 12px 0 30px rgba(6, 40, 68, 0.08);
}

.brand-block {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 4px 5px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-logo {
  display: block;
  width: 76px;
  height: 68px;
  object-fit: contain;
}

.brand-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.main-nav {
  display: grid;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
  padding: 0 1px 12px;
}

.nav-group-label {
  margin: 16px 10px 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-group-label:first-child { margin-top: 0; }

.nav-button,
.button,
.icon-button,
.template-button,
.export-card,
.priority-card {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.active {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--misd-navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.workspace {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 22px;
}

.workspace *,
.side-rail * { min-width: 0; }

h1,
h2,
h3,
h4,
p,
a,
button,
span,
strong,
dd,
dt,
pre,
textarea { overflow-wrap: anywhere; }

.eyebrow {
  margin: 0;
  color: var(--misd-navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-strip,
.student-hero,
.page-title,
.detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 128px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-strip {
  min-height: 160px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, var(--misd-navy), var(--misd-navy));
  box-shadow: var(--shadow-md);
}

.hero-strip .eyebrow { color: rgba(255, 255, 255, 0.8); }

.hero-strip h2,
.student-hero h2,
.page-title h2,
.detail-header h2 {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-strip h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); }

.hero-strip p,
.student-hero p,
.page-title p,
.section-head p,
.source-core p,
.student-card p,
.set-card p,
.legal-callout p,
.ethics-panel p,
.metric-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-strip > div > p:last-child { max-width: 710px; color: rgba(255, 255, 255, 0.84); }

.student-hero {
  border-top: 4px solid var(--misd-navy);
  background: linear-gradient(135deg, var(--gray-soft), #fff 48%);
}

.page-title { min-height: 110px; }

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.actions.vertical { display: grid; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

.button:hover,
.icon-button:hover,
.template-button:hover,
.export-card:hover,
.priority-card:hover { transform: translateY(-1px); }

.button.primary {
  border-color: var(--misd-navy);
  color: #fff;
  background: var(--misd-navy);
  box-shadow: 0 8px 20px rgba(6, 40, 68, 0.18);
}

.button.primary:hover { background: var(--misd-navy); }
.hero-strip .button.primary { border-color: #fff; color: var(--misd-navy); background: #fff; }
.hero-strip .button.ghost { border-color: rgba(255, 255, 255, 0.32); color: #fff; background: rgba(255, 255, 255, 0.1); }
.button.ghost { background: #fff; }
.button.mini { min-height: 32px; padding: 6px 9px; color: var(--muted); font-size: 0.72rem; }
.button.danger { border-color: rgba(150, 145, 142, 0.6); color: var(--red); background: var(--red-soft); }
.button:disabled { cursor: wait; opacity: 0.55; }

.icon { width: 17px; height: 17px; flex: 0 0 auto; }

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

.priority-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 20px;
  min-height: 126px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--misd-gray);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.priority-card.publish { border-left-color: var(--misd-navy); }
.priority-card span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.priority-card strong { grid-row: span 2; align-self: center; color: var(--navy); font-size: 2.7rem; line-height: 1; letter-spacing: -0.05em; }
.priority-card small { color: var(--muted); line-height: 1.4; }
.priority-card b { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--misd-navy); font-size: 0.76rem; }
.priority-card b .icon { width: 14px; }

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

.metric-card,
.panel,
.source-row,
.student-card,
.set-card,
.export-card,
.filter-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px 17px;
  border-radius: var(--radius-md);
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--misd-navy);
  content: "";
}

.metric-card > span,
.student-card-head,
.source-topline,
.set-card > div > span,
.fact-list dt,
.meta-line {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-card p { font-size: 0.76rem; }

.panel {
  padding: 19px;
  border-radius: var(--radius-md);
}

.two-column,
.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.search-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); }
.sets-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); }

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

.section-head h3,
.detail-main h3,
.ethics-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.section-head p { font-size: 0.8rem; }

.balance-list,
.status-stack,
.source-list,
.run-list,
.set-list,
.concept-list,
.rule-list { display: grid; gap: 8px; }

.balance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.75fr);
  gap: 9px 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.balance-row:first-child { border-top: 0; }
.balance-row strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 0.84rem; }
.balance-row span,
.mini-counts span,
.text-flag,
.run-row > span,
.student-card-foot,
.source-core p { color: var(--muted); font-size: 0.77rem; }

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-soft);
}

.progress-track span { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: var(--misd-navy); }

.mini-counts {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
}

.mini-counts span,
.tag,
.status-pill,
.text-flag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gray-soft);
  font-weight: 700;
}

.pipeline-row,
.run-row,
.set-card,
.source-row { display: grid; align-items: center; gap: 12px; }

.pipeline-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pipeline-row:first-child { border-top: 0; }
.pipeline-row strong { color: var(--navy); font-size: 1.2rem; }

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 13px;
  border-radius: var(--radius-md);
}

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

textarea { min-height: 112px; resize: vertical; }
textarea.tall { min-height: 230px; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--misd-navy);
  box-shadow: 0 0 0 3px rgba(6, 40, 68, 0.12);
}

label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
}

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

.source-form,
.search-panel,
#import-form { display: grid; gap: 13px; }

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 7px;
}

.template-button {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--gray-soft);
  text-align: left;
  font-size: 0.74rem;
  font-weight: 650;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 7px;
}

.check-card,
.inline-check,
.filter-check { display: flex; align-items: center; gap: 8px; }

.check-card {
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--gray-soft);
}

.check-card input,
.inline-check input,
.filter-check input { width: auto; min-height: 0; }

.filter-check {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.legal-callout {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(150, 145, 142, 0.45);
  border-radius: var(--radius-md);
  background: var(--gold-soft);
}

.legal-callout strong { color: var(--black); }

.source-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
}

.source-list.compact .source-row { grid-template-columns: minmax(0, 1fr) auto; }
.source-list.compact .quick-actions { display: none; }

.source-row:hover,
.student-card:hover,
.set-card:hover {
  border-color: rgba(150, 145, 142, 0.55);
  box-shadow: var(--shadow-md);
}

.source-row:focus-visible,
.student-card:focus-visible { outline-offset: 1px; }

.source-core h4,
.student-card h3,
.set-card h3 {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 0.96rem;
  line-height: 1.3;
}

.source-core p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-topline { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.source-scores { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }

.score {
  display: grid;
  width: 58px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: var(--gray-soft);
  font-weight: 800;
}

.score small {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.score.high { border-color: rgba(150, 145, 142, 0.45); color: var(--green); background: var(--green-soft); }
.score.mid { border-color: rgba(150, 145, 142, 0.45); color: var(--black); background: var(--gold-soft); }
.score.low { border-color: rgba(150, 145, 142, 0.45); color: var(--red); background: var(--red-soft); }

.quick-actions { display: flex; gap: 7px; }

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
}

.icon-button.accent { border-color: var(--misd-navy); color: #fff; background: var(--misd-navy); }

.status-pill.found { border-color: rgba(150, 145, 142, 0.45); color: var(--misd-navy); background: var(--navy-soft); }
.status-pill.needs-review { border-color: rgba(150, 145, 142, 0.45); color: var(--black); background: var(--gold-soft); }
.status-pill.accepted,
.status-pill.student-ready { border-color: rgba(150, 145, 142, 0.45); color: var(--green); background: var(--green-soft); }
.status-pill.rejected { border-color: rgba(150, 145, 142, 0.45); color: var(--red); background: var(--red-soft); }

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

.student-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  min-height: 288px;
  padding: 17px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.student-card-head,
.student-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; }

.concept-list { display: flex; flex-wrap: wrap; }
.tag { border-color: rgba(150, 145, 142, 0.4); color: var(--misd-navy); background: var(--gray-soft); font-size: 0.68rem; }

.mla {
  padding-left: 24px;
  color: var(--black);
  text-indent: -24px;
  line-height: 1.55;
}

.detail-shell { display: grid; gap: 12px; }

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  border-top: 4px solid var(--misd-navy);
}

.detail-header p { color: var(--muted); }
.score-stack { display: flex; gap: 7px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: 14px;
  align-items: start;
}

.detail-main { display: grid; gap: 10px; }
.detail-main p { margin: 0; line-height: 1.65; }

.full-text {
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--black);
  background: var(--gray-soft);
  font-family: Georgia, serif;
  white-space: pre-wrap;
  line-height: 1.66;
}

.detail-aside {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.status-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--gray-soft);
}

.status-card span { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.fact-list { display: grid; gap: 8px; margin: 0; }
.fact-list div { padding: 9px 0; border-top: 1px solid var(--line); }
.fact-list dd { margin: 4px 0 0; line-height: 1.4; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.set-card { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; border-radius: var(--radius-md); }

.rule-list span {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.rule-list span:first-child { border-top: 0; }

.run-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.run-row:first-child { border-top: 0; }

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

.export-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 136px;
  padding: 17px;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.export-card .icon { width: 24px; height: 24px; color: var(--misd-navy); }
.export-card strong { color: var(--navy); }
.export-card span { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

.toast {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(150, 145, 142, 0.45);
  border-radius: 10px;
  color: var(--green);
  background: rgba(240, 250, 244, 0.96);
  box-shadow: var(--shadow-sm);
}

.toast button { padding: 5px 9px; border-radius: 7px; color: var(--green); background: #fff; }
.empty { padding: 28px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.startup-error { max-width: 780px; margin: 80px auto; padding: 30px; color: var(--ink); }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .side-rail {
    position: static;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    height: auto;
    gap: 14px;
    padding: 12px 14px;
  }
  .brand-block { padding: 0 14px 0 0; border-right: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; }
  .main-nav { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; padding: 2px 0; }
  .nav-group-label { display: none; }
  .nav-button { flex: 1 1 118px; min-width: 118px; }
  .metric-grid,
  .export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column,
  .grid-layout,
  .detail-grid,
  .source-row { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

@media (max-width: 820px) {
  .workspace { padding: 14px; }
  .dashboard-actions,
  .metric-grid,
  .export-grid,
  .form-grid,
  .balance-row,
  .source-row,
  .set-card,
  .detail-header { grid-template-columns: 1fr; }
  .hero-strip,
  .student-hero,
  .page-title { align-items: stretch; flex-direction: column; min-height: auto; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1; }
  .source-scores,
  .quick-actions,
  .score-stack,
  .mini-counts { justify-content: flex-start; }
  .student-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .workspace { padding: 10px; }
  .side-rail { grid-template-columns: 1fr; padding: 12px 10px; }
  .brand-block { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-group-label { display: none; }
  .nav-button { flex: 0 0 144px; min-width: 144px; scroll-snap-align: start; }
  .hero-strip,
  .student-hero,
  .page-title,
  .detail-header { padding: 20px; border-radius: 14px; }
  .hero-strip h2,
  .student-hero h2,
  .page-title h2,
  .detail-header h2 { font-size: clamp(1.75rem, 10vw, 2.6rem); }
  .filter-panel { grid-template-columns: 1fr; }
  .priority-card { grid-template-columns: minmax(0, 1fr) auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { background: #fff; }
  .side-rail,
  .hero-actions,
  .dashboard-actions,
  .filter-panel,
  .quick-actions,
  .button,
  .toast { display: none !important; }
  .app-shell { display: block; }
  .workspace { padding: 0; }
  .panel,
  .source-row,
  .student-card,
  .metric-card { break-inside: avoid; box-shadow: none; }
}
