:root {
  --color-royal-purple: #0b7551;
  --color-royal-purple-dark: #096343;
  --color-deep-charcoal: #2d4f4a;
  --color-soft-lavender: #f9f5ec;
  --color-accent: #0b7551;
  --color-surface: #efe7d6;
  --color-card: #ffffff;
  --color-border: #e3dccf;
  --color-muted: #6b5f55;
  --color-success: #0b7551;
  --color-danger: #b42318;
  --color-warning: #b54708;
  --radius: 8px;
  --shadow: none;
  --touch: 40px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --sidebar-width: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-surface);
  color: var(--color-deep-charcoal);
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--text-link, var(--accent-color, var(--color-royal-purple))); }
:focus-visible {
  outline: 3px solid #c98d4a;
  outline-offset: 2px;
}

.page-title { font-size: 1.35rem; margin: 0 0 6px; font-family: Outfit, Inter, sans-serif; line-height: 1.2; overflow-wrap: anywhere; }
.page-lead { color: var(--color-muted); margin: 0 0 18px; }
.card {
  background: var(--color-card); border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.card + .card, .stack > * + * { margin-top: 16px; }
.stat-grid, .form-grid { display: grid; gap: 12px; }
.stat-grid { grid-template-columns: 1fr; }
.stat {
  background: #fff; border: 0; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.stat span { display: block; color: var(--color-muted); font-size: .9rem; margin-bottom: 6px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--accent-color, var(--color-royal-purple)); font-variant-numeric: tabular-nums; }
.stat-grid { margin-bottom: 16px; }
.slip-preview-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 640px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #525659;
}
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch); padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--accent-color, var(--color-royal-purple)); color: #fff; }
.btn-primary:hover { background: var(--accent-hover, var(--color-royal-purple-dark)); color: #fff; }
.btn-outline { background: #fff; border-color: var(--color-border); color: var(--color-deep-charcoal); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-ghost { background: transparent; color: inherit; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 1.2rem; color: #2a2622; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: #0b7551; color: #fff; font-size: 1rem;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.page-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.page-title-row .page-title { margin-bottom: 4px; }
.page-title-row .toolbar { margin-bottom: 0; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-actions form { margin: 0; }
.stat-grid.analysis { margin-bottom: 16px; }
.chart-card canvas { max-height: 280px; }
.form-control, select, textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="tel"], input[type="search"] {
  width: 100%; min-height: var(--touch); border: 0; border-radius: 999px;
  padding: 10px 18px; background: #f1e9da; color: inherit; font: inherit;
  font-size: 16px;
}
textarea { border-radius: 20px; min-height: 120px; }
input[type="number"] { input-mode: numeric; }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .table-wrap {
  box-shadow: none;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
table.data { width: 100%; border-collapse: collapse; margin: 0; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
table.data th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #5b746b;
  background: #f6efe1; font-weight: 700;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #f6efe1; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2;
}
.chip--ok { background: #f6efe1; color: #096343; }
.chip--warn { background: #fff6e5; color: #93370d; }
.chip--danger { background: #fdecea; color: #7a271a; }
.chip--muted { background: #eef3f0; color: #4a4036; }
.progress-track {
  height: 8px; border-radius: 999px; background: #e4f0ea; overflow: hidden; min-width: 88px;
}
.progress-track__bar { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); }
.progress-track__bar--ok { background: #2f7d5b; }
.progress-track__bar--warn { background: #c47a12; }
.progress-track__bar--danger { background: #b42318; }
.progress-meta { display: block; margin-top: 6px; color: var(--color-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.alert { border-radius: 20px; padding: 14px 18px; margin-bottom: 16px; white-space: pre-line; }
.alert-success { background: #f6efe1; color: #096343; }
.alert-danger { background: #fdecea; color: #7a271a; }
.alert-warning { background: #fff6e5; color: #93370d; }
.alert-info { background: #f1e9da; color: #2a2622; }
.temp-password-box {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f6efe1;
  color: #096343;
  border: 1px solid #d5c9b4;
}
.temp-password-box p { margin: 0 0 10px; }
.temp-password-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.temp-password-row input {
  flex: 1 1 220px;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .06em;
  font-weight: 700;
  background: #fff;
}
.empty-state { text-align: center; padding: 32px 12px; color: var(--color-muted); }
body.auth-body {
  background: #f9f5ec;
  min-height: 100dvh;
}
body.auth-body .skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
body.auth-body .skip-link:focus {
  left: 12px;
  z-index: 400;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}
.auth-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) calc(1.25rem + env(safe-area-inset-right, 0px)) 1rem calc(1.25rem + env(safe-area-inset-left, 0px));
  background: #2d4f4a;
  color: #fff;
}
.auth-visual__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.auth-visual__brand .brand-mark {
  background: #f1d9b4;
  color: #2d4f4a;
}
.auth-visual__copy,
.auth-visual__foot { display: none; }
.auth-visual__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c98d4a;
}
.auth-visual__title {
  margin: 0;
  max-width: 18ch;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.auth-visual__points {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.auth-visual__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #f1e9da;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.auth-visual__points i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(222, 242, 148, 0.16);
  color: #f1d9b4;
}
.auth-visual__foot {
  margin: 0;
  color: #e3dccf;
  font-size: 0.85rem;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 1.25rem calc(1.1rem + env(safe-area-inset-right, 0px)) calc(1.75rem + env(safe-area-inset-bottom, 0px)) calc(1.1rem + env(safe-area-inset-left, 0px));
}
.auth-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: #f9f5ec;
}
.auth-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(26, 61, 50, 0.08);
  padding: 1.6rem 1.45rem 1.5rem;
}
.auth-shell--wide .auth-card { width: min(100%, 480px); }
.auth-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b7551;
}
.auth-card .page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
  color: #2a2622;
}
.auth-card .page-title.auth-welcome { color: #2d4f4a; }
.auth-card .page-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.auth-form { display: grid; gap: 1rem; }
.auth-field { margin: 0; }
.auth-field label {
  color: #2a2622;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 6px;
}
.auth-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.auth-field__row label { margin-bottom: 0; }
.auth-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 6px 0 14px;
  border-radius: 16px;
  background: #f9f5ec;
  border: 1.5px solid #e3dccf;
}
.auth-input > i {
  color: #0b7551;
  font-size: 1.05rem;
}
.auth-input input,
.auth-input input[type="text"],
.auth-input input[type="password"],
.auth-input input[type="email"],
.auth-input input[type="number"],
.auth-input select {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  border-radius: 0;
}
.auth-input input::placeholder { color: #6b8a7e; }
.auth-input input:focus,
.auth-input select:focus { outline: none; }
.auth-input:focus-within {
  background: #fff;
  border-color: #0b7551;
  box-shadow: 0 0 0 4px rgba(193, 217, 108, 0.55);
}
.auth-field input[type="file"] {
  min-height: 48px;
  border-radius: 16px;
  background: #f9f5ec;
  border: 1.5px solid #e3dccf;
  padding: 8px 12px;
}
.auth-eye {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #2d4f4a;
  border-radius: 12px;
  cursor: pointer;
}
.auth-eye:hover { background: #f1e9da; }
.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  font-size: 1rem;
}
.auth-welcome-actions { display: grid; gap: 0.7rem; margin-top: 0.25rem; }
.auth-forgot {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b7551;
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  color: #4a4036;
  font-size: 0.92rem;
}
.auth-switch a { color: #0b7551; font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.waiting-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
}
.waiting-status__code {
  color: var(--color-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.waiting-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 10px;
}
.waiting-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f9f5ec;
  font-weight: 700;
}
.waiting-steps li.is-done { background: #f1d9b4; }
.waiting-steps li.is-current { background: #fff6e5; }
.waiting-steps i { color: #0b7551; }
.auth-step-status { margin: 0; font-size: 0.8rem; font-weight: 700; color: #2a2622; }
.auth-step-title { margin: 0; font-size: 0.92rem; font-weight: 800; color: #2a2622; }
.auth-step-dots { display: flex; gap: 5px; }
.auth-step-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e3dccf;
}
.auth-step-dots span.is-active { background: #0b7551; }
.auth-wizard-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.auth-wizard-nav .btn { flex: 1; min-height: 44px; }
.auth-welcome-actions .btn-outline,
.auth-wizard-nav .btn-outline {
  border-color: #e3dccf;
  color: #2a2622;
}
@media (max-height: 520px) and (orientation: landscape) {
  .auth-visual { padding: 0.7rem 1rem; }
  .auth-panel { padding: 0.85rem 1rem 1rem; }
  .auth-card { padding: 1.1rem 1.15rem 1.15rem; }
}
@media (min-width: 720px) {
  .auth-card { padding: 2rem 2rem 1.75rem; }
}
@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  }
  .auth-visual {
    position: sticky;
    top: 0;
    min-height: 100dvh;
    height: 100dvh;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 3.25rem);
    background:
      radial-gradient(circle at 12% 18%, rgba(222, 242, 148, 0.18), transparent 36%),
      radial-gradient(circle at 88% 88%, rgba(193, 217, 108, 0.12), transparent 32%),
      #2d4f4a;
  }
  .auth-visual__copy,
  .auth-visual__foot { display: block; }
  .auth-panel {
    background: #f9f5ec;
    padding: clamp(1.5rem, 4vw, 3rem);
  }
  .auth-shell--wide .auth-card { width: min(100%, 520px); }
}
@media (min-width: 1280px) {
  .auth-visual__title { max-width: 14ch; }
}
.score-shell { position: relative; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot.saved { background: var(--color-success); }
.status-dot.saving { background: #f79009; }
.status-dot.offline { background: #667085; }
.status-dot.invalid, .status-dot.error { background: var(--color-danger); }
.status-dot.unsaved { background: #f79009; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.toast-host {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  gap: 8px;
}
.toast { background: var(--color-deep-charcoal); color: #fff; padding: 12px 16px; border-radius: 20px; min-width: min(90vw, 280px); }

@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .page-title-row { flex-direction: column; align-items: stretch; }
  .page-title-row .toolbar,
  .page-title-row > .btn { width: 100%; }
  .page-title-row .toolbar .btn { flex: 1 1 auto; }
  .toolbar { gap: 8px; }
  .table-wrap:has(table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds)) {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) thead { display: none; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) tbody { display: block; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) tr { display: block; border: 0; border-radius: 20px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 0; padding: 8px 14px; overflow-wrap: anywhere; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td:first-child { padding-top: 14px; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td:last-child { padding-bottom: 14px; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td::before { content: attr(data-label); flex: 0 0 auto; font-weight: 700; color: var(--color-muted); }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td:not([data-label])::before,
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td[data-label=""]::before,
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td.table-actions::before { display: none; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td.table-actions,
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td:has(form) {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td[colspan] {
    display: block;
    text-align: center;
    color: var(--color-muted);
  }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td[colspan]::before { display: none; }
  table.data:not(.se-grid-table):not(.roster-table):not(.grade-bounds) td[data-label="Progress"] {
    flex-direction: column;
    align-items: stretch;
  }
  form.card > .btn,
  .card > .btn,
  .settings-form__actions .btn,
  .score-picker__actions .btn,
  .score-pack__actions .btn,
  .score-pack__file-row .btn { width: 100%; }
  .score-picker,
  .score-pack { max-width: none; }
  .score-pack__file-row { flex-direction: column; align-items: stretch; }
  .settings-save { flex-direction: column; align-items: stretch; }
  .settings-save .toolbar { width: 100%; }
  .settings-save .btn { width: 100%; }
}
@media (min-width: 768px) {
  .page-title { font-size: 1.55rem; }
  .page-lead { margin-bottom: 22px; }
  .card { padding: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .mobile-only { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.option-cards { display: grid; gap: 12px; margin-bottom: 18px; }
.verify-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.stanine-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stanine-pill { border-radius: 10px; padding: 8px 10px; background: var(--color-soft-lavender); }
.stanine-pill strong, .stanine-pill span { display: block; }
.stanine-pill small { color: var(--color-muted); }
.stanine-pill.g1 { background: #0b7551; color: #fff; }
.stanine-pill.g1 small { color: #f1e9da; }
.stanine-pill.g2, .stanine-pill.g3 { background: #0b7551; color: #fff; }
.stanine-pill.g2 small, .stanine-pill.g3 small { color: #f1e9da; }
.stanine-pill.g9 { background: #e3dccf; }
.grade-matrix td.has-n { font-weight: 700; }
.grade-bounds-card { margin: 16px 0 22px; }
.grade-bounds-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grade-bounds { min-width: 860px; }
.grade-bounds th,
.grade-bounds td { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.grade-bounds th:first-child,
.grade-bounds td:first-child {
  text-align: left; white-space: normal; position: sticky; left: 0; z-index: 1;
  background: #f6efe1; min-width: 148px;
}
.grade-bounds td:first-child { background: #fff; }
.grade-bounds tbody tr:hover td:first-child { background: #f6efe1; }
.grade-bounds__pct { display: block; font-weight: 600; color: var(--color-muted); font-size: .68rem; letter-spacing: 0; text-transform: none; }
.grade-bounds__cell.has-n { font-weight: 700; }
.profile-photo.placeholder { display: grid; place-items: center; background: var(--color-soft-lavender); color: #0b7551; font-size: 2rem; font-weight: 700; }
.choice-block { border: 1px solid var(--color-border); border-radius: 20px; padding: 12px 14px; margin: 12px 0; }
.choice-block legend { font-weight: 700; padding: 0 6px; }
.check-row { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.hint { color: var(--color-muted); font-size: .92rem; }
.chart-grid { display: grid; gap: 16px; }
.chart-card canvas { max-height: 280px; }
.legend-card ol { margin: 0; padding-left: 18px; }
.grade-legend { display: grid; gap: 4px; }
.compact td, .compact th { padding: 8px; }
.logo-preview, .photo-preview, .profile-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 20px; border: 1px solid var(--color-border); }
.sig-preview { max-height: 64px; }
.profile-hero { display: flex; gap: 16px; align-items: center; }
.student-profile { max-width: 1080px; }
.student-id-card {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b7551, #0b7551);
  color: #fff;
  box-shadow: var(--shadow);
}
.student-id-photo {
  width: 128px; height: 148px; object-fit: cover;
  border-radius: 14px; border: 3px solid #fff; background: #fff;
}
.student-id-photo.placeholder {
  display: grid; place-items: center;
  background: var(--color-soft-lavender); color: #0b7551;
  font-size: 2.4rem; font-weight: 800;
}
.student-id-kicker { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; opacity: .85; }
.student-id-name { margin: 6px 0 4px; font-size: 1.7rem; line-height: 1.2; }
.student-id-number { margin: 0 0 8px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; font-size: 1.05rem; }
.student-id-meta { margin: 0; opacity: .92; }
.student-id-actions { margin: 14px 0 0; }
.student-id-card .btn-primary { background: #fff; color: #0b7551; }
.student-id-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.profile-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.profile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
}
.profile-tab:hover { background: #f1e9da; color: #0b7551; }
.profile-tab.is-active,
.profile-tab.active {
  background: #0b7551;
  color: #fff;
}
.profile-tab.is-active:hover,
.profile-tab.active:hover { background: #096343; color: #fff; }
.profile-panel { padding: 16px 0 8px; display: grid; gap: 16px; }
.profile-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.45rem 1.45rem;
}
.profile-card__head { margin: 0 0 1.05rem; }
.profile-card__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-card__kicker {
  margin: 0 0 0.35rem;
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #f1d9b4;
  color: #2a2622;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-card__title {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
}
.profile-card__lead {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  max-width: 46rem;
}
.profile-section-grid {
  display: grid;
  gap: 16px;
}
.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-fact {
  background: #f9f5ec;
  border-radius: 16px;
  padding: 13px 14px;
  min-width: 0;
}
.profile-fact span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.profile-fact strong {
  display: block;
  margin-top: 5px;
  font-size: 1.02rem;
  font-weight: 800;
  word-break: break-word;
}
.profile-subhead {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.profile-sitting {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.profile-sitting li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f1e9da;
  border-radius: 16px;
}
.profile-sitting strong { display: block; }
.profile-sitting span {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  color: #0b7551;
}
.subject-group + .subject-group { margin-top: 1.2rem; }
.subject-group h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.subject-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.subject-tile {
  background: #fff;
  border: 1px solid #e3dccf;
  border-radius: 18px;
  padding: 14px;
}
.subject-tile--core {
  background: #f1e9da;
  border-color: transparent;
}
.subject-tile__code {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b7551;
}
.subject-tile strong { display: block; margin-top: 4px; font-size: 0.95rem; }
.profile-mock-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 1.1rem;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  background: #f9f5ec;
  border-radius: 999px;
}
.profile-mock-chip {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: #4a4036;
}
.profile-mock-chip:hover { background: #fff; color: #0b7551; }
.profile-mock-chip.is-active { background: #0b7551; color: #fff; }
.profile-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.1rem;
}
.profile-kpi {
  background: #f9f5ec;
  border-radius: 20px;
  padding: 14px 16px;
}
.profile-kpi--accent {
  background: #0b7551;
  color: #fff;
}
.profile-kpi__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}
.profile-kpi__value {
  display: block;
  margin-top: 6px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.profile-results-table { margin-top: 0.2rem; }
.profile-results-table table.data { margin: 0; }
.profile-grade {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  background: #f1e9da;
}
.profile-grade.is-top { background: #0b7551; color: #fff; }
.profile-grade.is-high { background: #0b7551; color: #fff; }
.profile-grade.is-mid { background: #f1d9b4; color: #2a2622; }
.profile-grade.is-low { background: #e3dccf; color: #4a4036; }
.profile-counted {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1d9b4;
  color: #2a2622;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.profile-empty {
  text-align: center;
  padding: 36px 16px 12px;
  max-width: 420px;
  margin: 0 auto;
}
.profile-empty--compact { padding: 4px 0 0; text-align: left; max-width: none; }
.profile-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f1e9da;
  color: #0b7551;
  font-size: 1.4rem;
}
.profile-empty h3 {
  margin: 0 0 6px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
}
.profile-empty p { margin: 0 0 16px; color: var(--color-muted); }
.profile-slip-well {
  margin-top: 0.35rem;
  background: #e8e4dc;
  border-radius: 18px;
  padding: 10px;
}
.profile-slip-frame {
  min-height: min(78vh, 920px);
  border: 0;
  border-radius: 10px;
  background: #525659;
}
@media (max-width: 640px) {
  .profile-facts { grid-template-columns: 1fr; }
  .profile-tabs { width: 100%; }
  .profile-tab { flex: 1 0 auto; }
  .student-id-name { font-size: 1.35rem; overflow-wrap: anywhere; }
  .student-id-actions { width: 100%; }
  .student-id-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 768px) {
  .student-id-card { grid-template-columns: 128px 1fr; }
  .profile-section-grid { grid-template-columns: 1.05fr 0.95fr; }
  .profile-kpis { grid-template-columns: repeat(4, 1fr); }
}
.mock-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
.mock-pick-card,
.mock-confirm {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  color: #2a2622;
}
.mock-pick-card__kicker {
  margin: 0 0 0.4rem;
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #f1d9b4;
  color: #2a2622;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-pick-card__title {
  margin: 0.55rem 0 0.7rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.25rem;
  color: #2a2622;
}
.mock-pick-card__meta {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: #1a1a1a;
  font-size: 0.92rem;
}
.mock-pick-card__meta li { margin: 0.2rem 0; }
.mock-confirm { max-width: 560px; }
.mock-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.register-summary { margin-bottom: 0; }
.register-layout {
  display: grid;
  gap: 16px;
}
.register-form .toolbar { margin-top: 8px; }
.register-terms { margin: 12px 0; }
.settings-form {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}
.settings-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.settings-hub { padding-bottom: 1.5rem; }
.settings-hero {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.15rem;
}
.settings-hero__logo,
.settings-hero__mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  flex-shrink: 0;
  object-fit: cover;
}
.settings-hero__mark {
  display: grid;
  place-items: center;
  background: #0b7551;
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}
.settings-hero__copy { min-width: 0; }
.settings-hero__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b7551;
}
.settings-hero__title {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
}
.settings-hero__meta {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.settings-hero__hint {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}
.settings-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.settings-hero__chips li {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #f1d9b4;
  font-size: 0.75rem;
  font-weight: 800;
}
.settings-hub__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.settings-hub__nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.settings-hub__nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 auto;
  min-width: 9.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 700;
}
.settings-hub__nav-item i { font-size: 1.1rem; margin-top: 2px; }
.settings-hub__nav-label { display: block; color: var(--color-deep-charcoal); }
.settings-hub__nav-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
}
.settings-hub__nav-item:hover { background: #f1e9da; color: #0b7551; }
.settings-hub__nav-item.is-active {
  background: #0b7551;
  color: #fff;
}
.settings-hub__nav-item.is-active .settings-hub__nav-label,
.settings-hub__nav-item.is-active .settings-hub__nav-desc { color: #fff; }
.settings-hub__main { min-width: 0; }
.settings-page { display: grid; gap: 16px; }
.settings-save {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
}
.settings-save p { margin: 0; color: var(--color-muted); }
.settings-save .toolbar { margin: 0; }
.settings-upload-grid { margin-bottom: 16px; }
.settings-upload { display: grid; gap: 8px; cursor: pointer; max-width: 280px; }
.settings-upload input { width: 100%; }
.settings-upload__frame {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 20px;
  background: #f9f5ec;
  overflow: hidden;
}
.settings-upload__frame img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
}
.settings-upload__frame--sig img { height: 96px; }
.settings-upload__empty {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-weight: 700;
}
.settings-upload__empty i { font-size: 1.4rem; }
.settings-upload__meta { font-size: 0.8rem; color: var(--color-muted); }
.form-span { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .settings-hub__layout { grid-template-columns: 236px minmax(0, 1fr); }
  .settings-hub__nav {
    flex-direction: column;
    position: sticky;
    top: 12px;
    overflow: visible;
  }
  .settings-hub__nav-item { min-width: 0; }
}
.offer-page { display: grid; gap: 16px; }
.offer-intro { margin: 0; }
.offer-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}
.offer-summary article {
  background: #f9f5ec;
  border-radius: 16px;
  padding: 12px 14px;
}
.offer-summary span {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.offer-summary strong {
  display: block;
  margin-top: 4px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.25rem;
}
.offer-stage { display: grid; gap: 12px; }
.offer-page .offer-stage { margin: 0; }
@media (min-width: 820px) {
  .offer-page .offer-stage { grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr); align-items: start; }
}
.offer-panel {
  border: 0;
  margin: 0;
  min-width: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.25rem;
}
.register-form .offer-panel {
  box-shadow: none;
  background: #f9f5ec;
  padding: 1rem 1.05rem 1.1rem;
}
.offer-panel__legend {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
}
.offer-panel__legend strong {
  display: block;
  font-size: 0.98rem;
}
.offer-panel__legend span span {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.offer-panel__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #f1d9b4;
  color: #2d4f4a;
  font-size: 1.05rem;
}
.offer-panel--optional .offer-panel__icon { background: #f1e9da; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.offer-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3dccf;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.offer-chip__check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f6efe1;
  color: transparent;
  font-size: 0.78rem;
}
.offer-chip__name { line-height: 1.2; }
.offer-chip:hover { background: #f9f5ec; }
.offer-chip:has(input:focus-visible),
.offer-toggle:has(input:focus-visible) {
  outline: 3px solid #c98d4a;
  outline-offset: 2px;
}
.offer-chip:has(input:checked) {
  background: #f1d9b4;
  border-color: #0b7551;
  box-shadow: none;
}
.offer-chip:has(input:checked) .offer-chip__check {
  background: #0b7551;
  color: #fff;
}
.offer-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 16px;
  border: 1.5px solid #e3dccf;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}
.offer-toggle__switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #e3dccf;
}
.offer-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 61, 50, 0.18);
  transition: transform 0.15s ease;
}
.offer-toggle__copy { min-width: 0; }
.offer-toggle__copy strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}
.offer-toggle__copy em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.offer-toggle__on { display: none; }
.offer-toggle:hover { background: #f9f5ec; }
.offer-toggle:has(input:checked) {
  background: #f1d9b4;
  border-color: #0b7551;
}
.offer-toggle:has(input:checked) .offer-toggle__switch { background: #0b7551; }
.offer-toggle:has(input:checked) .offer-toggle__switch::after { transform: translateX(20px); }
.offer-toggle:has(input:checked) .offer-toggle__on { display: inline; }
.offer-toggle:has(input:checked) .offer-toggle__off { display: none; }
.offer-toggle:has(input:checked) .offer-toggle__copy em { color: #2d4f4a; }
.offer-block {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
.offer-block legend {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 4px;
}
.mock-page { container-type: inline-size; padding-bottom: 1.25rem; }
.mock-page__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 1rem;
}
.mock-page__head .page-title { margin-bottom: 4px; }
.mock-page__head .page-lead { margin-bottom: 0; max-width: 42rem; }
.mock-page__offerings { flex: 0 0 auto; }
.mock-page__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.mock-page__stats li {
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.mock-page__stats span {
  display: block;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mock-page__stats strong {
  display: block;
  margin-top: 4px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}
.mock-page__jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch;
}
.mock-page__jump a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--color-deep-charcoal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.mock-page__jump a:hover { background: #f1e9da; color: #0b7551; }
.mock-section { scroll-margin-top: 12px; margin-bottom: 1.35rem; }
.mock-section:last-child { margin-bottom: 0; }
.mock-section__head { margin: 0 0 0.85rem; }
.mock-section__head h2 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
}
.mock-section__head p {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  max-width: 42rem;
}
.mock-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.2rem;
}
.mock-catalog {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-catalog__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mock-catalog__table {
  width: 100%;
  border-collapse: collapse;
}
.mock-catalog__table th,
.mock-catalog__table td {
  text-align: left;
  vertical-align: middle;
  padding: 12px 14px;
}
.mock-catalog__table thead th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: #f1e9da;
  white-space: nowrap;
}
.mock-catalog__col-index {
  width: 1%;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.mock-catalog__table thead .mock-catalog__col-index { text-align: right; }
.mock-catalog__table tbody th,
.mock-catalog__table tbody td {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.mock-catalog__table tbody tr:last-child th,
.mock-catalog__table tbody tr:last-child td { border-bottom: 0; }
.mock-catalog__table tbody tr:hover th,
.mock-catalog__table tbody tr:hover td { background: #f6efe1; }
.mock-catalog__row--ready th,
.mock-catalog__row--ready td { background: #f7fff0; }
.mock-catalog__row--ready:hover th,
.mock-catalog__row--ready:hover td { background: #eefcdc; }
.mock-catalog__mock {
  font-weight: 400;
  min-width: 12rem;
}
.mock-catalog__name {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mock-catalog__meta {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.mock-catalog__table .mock-card__status {
  max-width: 16rem;
  line-height: 1.3;
}
.mock-catalog__num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.mock-catalog__action { width: 1%; white-space: nowrap; }
.mock-catalog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.mock-catalog__actions form { margin: 0; }
.mock-catalog__action .btn {
  min-height: 40px;
  padding: 8px 16px;
}
.mock-catalog__wait {
  color: var(--color-muted);
  font-weight: 700;
}
@media (max-width: 767px) {
  .mock-catalog__wrap { overflow: visible; }
  .mock-catalog__table,
  .mock-catalog__table thead,
  .mock-catalog__table tbody,
  .mock-catalog__table tr,
  .mock-catalog__table th,
  .mock-catalog__table td {
    display: block;
    width: 100%;
    max-width: none;
  }
  .mock-catalog__table thead { display: none; }
  .mock-catalog__table tbody tr {
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .mock-catalog__table tbody tr:last-child { border-bottom: 0; }
  .mock-catalog__table tbody th,
  .mock-catalog__table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    background: transparent !important;
  }
  .mock-catalog__table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .mock-catalog__col-index { display: none !important; }
  .mock-catalog__mock {
    display: block;
    padding: 0 0 8px;
    min-width: 0;
  }
  .mock-catalog__num { white-space: normal; text-align: right; }
  .mock-catalog__action {
    display: block;
    padding-top: 10px;
    white-space: normal;
  }
  .mock-catalog__action::before { display: none; }
  .mock-catalog__actions { justify-content: flex-start; }
  .mock-catalog__actions .btn { flex: 1 1 auto; }
}
.mock-card--ready { box-shadow: var(--shadow), inset 4px 0 0 #0b7551; }
.mock-card--quiet {
  background: #f7fbf9;
  box-shadow: none;
  border: 1px solid var(--color-border);
}
.mock-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mock-card__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #e3dccf;
  color: #2a2622;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.mock-card__status--primary { background: #f1d9b4; }
.mock-card__status--outline { background: #fff6e5; }
.mock-card__status--muted { background: #e3dccf; }
.mock-card__code {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mock-card__title {
  margin: 0.7rem 0 0.15rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.18rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.mock-card__cohort {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.mock-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.mock-card__facts div {
  min-width: 0;
  background: #f9f5ec;
  border-radius: 14px;
  padding: 10px 12px;
}
.mock-card--quiet .mock-card__facts div { background: #fff; }
.mock-card__facts dt {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-card__facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mock-card__progress { margin-top: 12px; }
.mock-card__bar {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f1e9da;
  overflow: hidden;
}
.mock-card__bar > span {
  display: block;
  height: 100%;
  background: #0b7551;
  border-radius: inherit;
}
.mock-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 1rem;
}
.mock-card__foot form { margin: 0; min-width: 0; }
.mock-card__foot .btn { min-width: min(100%, 8.5rem); }
.mock-card__wait {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}
.mock-card__cancel {
  background: transparent;
  border-color: transparent;
  color: var(--color-danger);
  min-width: 0;
  box-shadow: none;
}
.mock-card__cancel:hover { background: #fdecea; }
.mock-hub-wait {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
  font-weight: 700;
}
@container (max-width: 539px) {
  .mock-page__head .mock-page__offerings { width: 100%; }
  .mock-card__foot > .btn:not(.mock-card__cancel),
  .mock-card__foot > form { flex: 1 1 100%; }
  .mock-card__foot > .btn:not(.mock-card__cancel),
  .mock-card__foot > form .btn { width: 100%; min-width: 0; }
}
@container (min-width: 540px) {
  .mock-hub { gap: 14px; }
}
@media (max-width: 639px) {
  .mock-page__head .mock-page__offerings { width: 100%; }
}
@media (max-width: 420px) {
  .mock-page__stats { gap: 6px; }
  .mock-page__stats li { padding: 10px; }
  .mock-page__stats span { font-size: 0.64rem; }
  .mock-page__stats strong { font-size: 1.15rem; }
  .mock-card__facts { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .register-layout { grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
.score-hub {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.score-picker,
.score-pack { max-width: none; }
.score-picker__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.score-picker__field { margin-top: 14px; }
.score-picker__actions,
.score-pack__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.score-pack__upload { margin-top: 16px; }
.score-pack__file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.score-pack__file-row input[type="file"] {
  flex: 1 1 180px;
  min-width: 0;
  min-height: var(--touch);
}
.sheet-table-card { margin-top: 4px; }
.sheet-table-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 12px;
}
.sheet-table-card__head h2 { margin: 0; font-size: 1.15rem; }
.sheet-table__code {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: .78rem;
  letter-spacing: .04em;
}
@media (min-width: 900px) {
  .score-hub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}
.score-submit .hint { margin-bottom: 12px; }
.current-mock-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: var(--space-6, 1.25rem);
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--color-border, #d9e2dc);
  border-radius: 12px;
  background: var(--color-surface, #fff);
}
.current-mock-panel h2 { margin: 0 0 4px; font-size: 1.25rem; }
.current-mock-panel p { margin: 0; color: var(--color-muted); }
.current-mock-panel__kicker {
  margin: 0 0 4px !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.current-mock-panel__actions { display: flex; gap: 8px; }

.main-content.score-entry--worksheet {
  max-width: none;
  padding: 0.75rem 1rem 1.25rem;
}
.has-score-sheet .main-content {
  max-width: none;
  padding: 0.75rem 1rem 1.25rem;
}

.se-ws { margin-bottom: 0.5rem; }
.se-ws-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  min-width: 0;
}
.se-ws-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  text-decoration: none;
}
.se-ws-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
.se-ws-context-line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.se-ws-context-line strong {
  color: var(--color-deep-charcoal);
  font-weight: 700;
}
.se-ws-sep { margin: 0 0.2rem; color: #6b5f55; }
.se-ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.se-search-wrap {
  position: relative;
  width: 100%;
  max-width: 240px;
  flex-shrink: 0;
}
.se-search-wrap svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.score-entry--worksheet .se-search,
.score-entry--worksheet input.se-search {
  width: 100%;
  min-height: 36px;
  padding: 0.35rem 0.65rem 0.35rem 2rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
}
.se-ws-excel {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}
.se-ws-upload {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px 10px;
}
.se-ws-upload summary { cursor: pointer; font-weight: 700; font-size: 0.8rem; }
.se-ws-upload form { margin-top: 8px; display: grid; gap: 8px; }
.se-ws-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}
.se-ws-progress { font-variant-numeric: tabular-nums; white-space: nowrap; }

.se-sheet-grid { margin: 0; }
.se-grid-scroll {
  border: 1px solid var(--color-border);
  background: #fff;
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.se-grid-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}
.se-grid-table th,
.se-grid-table td {
  border: 1px solid #e3dccf;
}
.se-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f6efe1;
  color: #374151;
  font-size: 0.68rem;
  padding: 0.45rem 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: bottom;
}
.se-grid-col-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #374151;
}
.se-grid-col-max {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #6b5f55;
}
.se-grid-table tbody td {
  padding: 0;
  background: #fff;
  vertical-align: middle;
}
.se-grid-table tbody tr:nth-child(even) td { background: #fafafa; }
.se-grid-table tbody tr.se-row-focused td { background: #f1e9da; }
.se-grid-table tbody tr.se-row-absent { opacity: 0.5; }
.se-grid-table tbody tr.se-row-hidden { display: none; }

.se-grid-num-col {
  position: sticky;
  left: 0;
  z-index: 11;
  min-width: 36px;
  width: 36px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b5f55;
  background: #fff;
}
.se-grid-table thead th.se-grid-num-col,
.se-grid-table thead th.se-grid-id-col,
.se-grid-table thead th.se-grid-name-col {
  background: #dceee6;
  z-index: 30;
}
.se-grid-id-col {
  position: sticky;
  left: 36px;
  z-index: 11;
  min-width: 112px;
  padding: 0.3rem 0.55rem;
  border-right: 1px solid var(--color-border);
  background: #fff;
}
.se-grid-name-col {
  position: sticky;
  left: 148px;
  z-index: 10;
  min-width: 160px;
  max-width: 280px;
  padding: 0.3rem 0.55rem;
  border-right: 1px solid var(--color-border);
  background: #fff;
}
.se-grid-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-deep-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.se-grid-id {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-deep-charcoal);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.se-grid-col { min-width: 88px; text-align: center; }
.se-grid-col--abs { min-width: 52px; }
.se-grid-cell--abs { text-align: center; }

.se-input-wrap--grid { margin: 0; width: 100%; min-height: 36px; }
.score-entry--worksheet .se-input-wrap--grid .score-input-box,
.score-entry--worksheet input.score-input-box {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 100%;
  padding: 0.35rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-deep-charcoal);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.score-entry--worksheet .score-input-box:focus {
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.score-entry--worksheet .score-input-box:disabled {
  background: transparent;
  color: #6b5f55;
}
.score-entry--worksheet .score-input-box.error {
  background: #fef2f2;
  color: var(--color-danger);
  box-shadow: inset 0 0 0 1px var(--color-danger);
}

.se-absent-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
  cursor: pointer;
  margin: 8px auto;
}
.se-absent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.se-absent-slider {
  position: absolute;
  inset: 0;
  background: #e3dccf;
  border-radius: 999px;
}
.se-absent-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.se-absent-toggle input:checked + .se-absent-slider { background: var(--color-danger); }
.se-absent-toggle input:checked + .se-absent-slider::before { transform: translateX(14px); }
.se-absent-toggle input:disabled + .se-absent-slider { opacity: 0.5; }

.se-empty-search {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  display: none;
}
.se-empty-search.visible { display: block; }

.se-invalid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.4);
}
.se-invalid-modal.is-open { display: flex; }
.se-invalid-modal__panel {
  width: min(100%, 400px);
  background: #fff;
  border-radius: 16px;
  padding: 1.15rem;
  text-align: center;
}
.se-invalid-modal__title { margin: 0 0 8px; }
.se-invalid-modal__message { margin: 0 0 6px; }
.se-invalid-modal__context { margin: 0 0 14px; color: var(--color-muted); font-size: 0.85rem; }
.se-invalid-modal__actions { display: flex; justify-content: center; gap: 8px; }

@media (max-width: 640px) {
  .se-search-wrap { max-width: none; flex: 1 1 100%; min-width: 0; }
  .score-entry--worksheet .se-search,
  .score-entry--worksheet input.se-search {
    font-size: 16px;
    min-height: 44px;
  }
  .score-entry--worksheet .se-input-wrap--grid .score-input-box,
  .score-entry--worksheet input.score-input-box {
    font-size: 16px;
    min-height: 44px;
  }
  .se-ws-status { width: 100%; margin-left: 0; justify-content: space-between; }
  .se-grid-id-col { min-width: 96px; }
  .se-grid-name-col { left: 132px; min-width: 130px; }
  .settings-hero { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .settings-hero__title { font-size: 1.25rem; }
  .settings-hub__nav-desc { display: none; }
}
@media (min-width: 768px) {
  .mock-pick-grid { grid-template-columns: repeat(2, 1fr); }
}
.identity-preview { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.print-body { background: #fff; }
.print-main { max-width: 800px; margin: 0 auto; padding: 16px; }
.slip { border: 1px solid var(--color-border); border-radius: 16px; padding: 20px; background: #fff; }
.slip-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.slip-brand { display: flex; gap: 14px; align-items: center; }
.slip-logo { width: 72px; height: 72px; object-fit: contain; }
.slip-photo { width: 84px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); }
.slip-kicker { letter-spacing: .08em; text-transform: uppercase; color: #0b7551; font-size: .75rem; margin: 0; }
.slip-identity { display: grid; gap: 12px; margin: 16px 0; }
.slip-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slip-kpis div { background: var(--color-surface); border-radius: 10px; padding: 8px 10px; }
.slip-kpis span { display: block; color: var(--color-muted); font-size: .78rem; }
.slip-note, .muted { color: var(--color-muted); font-size: .9rem; }
.slip-table { width: 100%; border-collapse: collapse; }
.slip-table th, .slip-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--color-border); }
.slip-table tr.counted td { font-weight: 600; }
.slip-footer { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-top: 24px; }
.slip-signature { max-height: 76px; }
.sign-line { width: 180px; border-bottom: 1px solid #111; height: 40px; }
.slip-qr { width: 110px; height: 110px; }
.code { font-family: ui-monospace, monospace; letter-spacing: .08em; }
.page-break { page-break-before: always; break-before: page; }
@media (min-width: 768px) {
  .option-cards { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .slip-identity { grid-template-columns: 1fr 1.2fr; }
  .slip-kpis { grid-template-columns: repeat(4, 1fr); }
  .stanine-row { grid-template-columns: repeat(9, 1fr); }
}
@media print {
  .no-print, .sidebar, .school-brand-bar, .ta-topbar, .top-navbar, .toolbar { display: none !important; }
  .print-main, .slip { max-width: none; border: 0; box-shadow: none; }
  html, body { overflow: visible; background: #fff; }
}

.roster {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
}
.roster-count {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
}
.roster-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  max-width: 360px;
  margin: 0;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--color-soft-lavender);
  color: var(--color-muted);
}
.roster-search input {
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.roster-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.roster-table { margin: 0; min-width: 720px; }
.roster-table th, .roster-table td { vertical-align: middle; padding: 12px 14px; }
.roster-table tbody tr:hover { background: #f6efe1; }
.roster-table tbody tr.is-hidden { display: none !important; }
.roster-table th:first-child,
.roster-table td.roster-student {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  min-width: 220px;
}
.roster-table tbody tr:hover td.roster-student { background: #f6efe1; }
.roster-student-inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.roster-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #f1e9da;
  color: #0b7551;
  font-weight: 800;
  font-size: .95rem;
}
.roster-avatar--photo { object-fit: cover; background: #e3dccf; }
.roster-student-copy { display: grid; gap: 2px; min-width: 0; }
.roster-name {
  font-weight: 700;
  color: var(--color-deep-charcoal);
  text-decoration: none;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-name:hover { color: var(--accent-color, #0b7551); text-decoration: underline; }
.roster-id {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--color-muted);
}
.roster-muted { color: var(--color-muted); }
.roster-mock { max-width: 16rem; }
.roster-col-actions { width: 1%; }
.roster-actions { justify-content: flex-end; flex-wrap: nowrap; }
.roster-enrol { display: flex; align-items: center; gap: 8px; }
.roster-enrol select {
  width: auto;
  min-width: 140px;
  max-width: 180px;
  min-height: 40px;
  padding: 8px 14px;
}
.btn-icon {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d5c9b4;
  color: #2a2622;
}
.btn-icon i { font-size: 1.05rem; }
.btn-icon:hover { background: #f1e9da; color: #2a2622; }
.btn-icon-danger {
  background: #fff;
  color: var(--color-danger);
  border: 1px solid #f0c7c3;
}
.btn-icon-danger:hover { background: #fdecea; color: var(--color-danger); }
.btn-compact {
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}
.roster-filter-empty {
  margin: 0;
  padding: 28px 18px;
  text-align: center;
  color: var(--color-muted);
}
.roster--empty { padding: 8px; }
.roster-empty {
  text-align: center;
  padding: 48px 20px;
  max-width: 420px;
  margin: 0 auto;
}
.roster-empty h2 { margin: 12px 0 8px; font-size: 1.2rem; }
.roster-empty p { margin: 0 0 18px; color: var(--color-muted); }
.roster-empty .toolbar { justify-content: center; }
.roster-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #f1e9da;
  color: #0b7551;
  font-size: 1.6rem;
}

@media (max-width: 767px) {
  .roster-table { min-width: 0; width: 100%; }
  .roster-table-wrap { overflow: visible; }
  .roster-search { max-width: none; }
  .roster-table th:first-child,
  .roster-table td.roster-student {
    position: static;
    min-width: 0;
  }
  table.data.roster-table {
    min-width: 0;
    width: 100%;
  }
  table.data.roster-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 14px;
    margin: 12px;
    box-shadow: var(--shadow);
  }
  table.data.roster-table td {
    padding: 4px 0;
    min-width: 0;
  }
  table.data.roster-table td.roster-student {
    grid-column: 1;
    grid-row: 1;
    display: block;
  }
  table.data.roster-table td.roster-status {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    align-items: flex-start;
  }
  table.data.roster-table td.roster-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    justify-content: stretch;
    align-items: start;
    gap: 8px;
    padding: 6px 0;
  }
  table.data.roster-table td.roster-meta::before {
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  table.data.roster-table td.roster-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    margin-top: 6px;
  }
  table.data.roster-table td.roster-student::before,
  table.data.roster-table td.roster-status::before,
  table.data.roster-table td.roster-actions::before {
    content: none;
    display: none;
  }
  .roster-actions { flex-wrap: wrap; }
  .roster-enrol { flex: 1 1 auto; }
  .roster-enrol select { max-width: none; flex: 1 1 140px; }
  .roster-name { white-space: normal; }
}

.pay-box { margin-top: 16px; }
.pay-box h2 { margin: 0 0 8px; font-size: 1.05rem; }
.pay-box__lead { margin: 0 0 12px; color: var(--color-muted); }
.pay-box__notes { margin: 12px 0 0; color: var(--color-muted); }
.mock-flow__title { margin: 0 0 6px; font-size: 1.15rem; }
.mock-flow__steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mock-flow__step {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f9f5ec;
}
.mock-flow__step--done { background: #f6efe1; }
.mock-flow__step--current { background: #fff6e5; }
.mock-flow__copy { min-width: 0; }
.mock-flow__copy strong { display: block; }
.mock-flow__copy span { display: block; margin-top: 2px; color: var(--color-muted); font-size: .85rem; }
.mock-flow__step form { margin: 0; }
.pay-accounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pay-account {
  background: #f9f5ec;
  border-radius: 16px;
  padding: 14px 16px;
}
.pay-account__method {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b7551;
}
.pay-account__name { margin: 4px 0 8px; font-weight: 800; }
.pay-account__line { margin: 0; font-size: 0.92rem; }
.invoice-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-pick { display: grid; gap: 6px; margin-top: 8px; }
.mock-ledger {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.mock-ledger:first-of-type { border-top: 0; padding-top: 0; }
.mock-ledger__head {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.mock-ledger__head h3 { margin: 0; font-size: 1.05rem; }
.mock-ledger__head p { margin: 4px 0 0; color: var(--color-muted); }
.mock-ledger__money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mock-ledger__money span { display: block; color: var(--color-muted); font-size: 0.72rem; font-weight: 700; }
.mock-ledger__money strong { display: block; margin-top: 2px; }
@media (max-width: 767px) {
  .mock-flow__step form,
  .mock-flow__step .btn { width: 100%; }
}
@media (min-width: 768px) {
  .pay-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-ledger__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .invoice-next .btn { width: auto; }
}
