:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe3ed;
  --panel: #ffffff;
  --canvas: #f3f6fa;
  --primary: #7b1113;
  --primary-hover: #5e0c0e;
  --success: #166534;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.topbar {
  min-height: 154px;
  padding: 24px;
  background: linear-gradient(130deg, #6f0d10, #921b1f);
  color: #fff;
}

.topbar-inner {
  width: min(100%, 980px);
  min-height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 20px;
}

.brand-logo {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
}

.brand-copy { min-width: 0; }

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 4px;
  font-size: clamp(25px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
  opacity: .75;
}

.subtitle { margin-bottom: 0; opacity: .86; }

.topbar-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

main {
  width: min(100%, 980px);
  margin: 24px auto 60px;
  padding: 0 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.launch-panel { max-width: 760px; margin: 0 auto; }

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

.section-copy { margin-bottom: 0; color: var(--muted); }
.direct-eyebrow { color: var(--primary); opacity: 1; }

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.neutral { background: #eef2f7; color: #475569; }
.badge.success { background: #dcfce7; color: var(--success); }
.badge.error { background: #fee2e2; color: var(--danger); }

.status-card {
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.status-card.success {
  border-color: #86efac;
  background: #f0fdf4;
  color: var(--success);
}

.status-card.error {
  border-color: #f3a39d;
  background: #fff1f0;
  color: #8f1d15;
}

.student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.student-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.student-card strong {
  color: var(--ink);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

button.primary { background: var(--primary); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--primary-hover); }
button.secondary { background: #fff; border-color: #aebbc9; color: #334155; }
button.secondary:hover:not(:disabled) { background: #f8fafc; }

.access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #f1c453;
  border-radius: 10px;
  background: #fffbeb;
  color: #713f12;
}

.access-banner.error {
  border-color: #f3a39d;
  background: #fff1f0;
  color: #8f1d15;
}

.access-banner strong { display: block; margin-bottom: 3px; }
.access-banner p { margin: 0 0 3px; }
.access-banner small { color: #64748b; }
.access-banner[hidden] { display: none; }

.privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  border-radius: 9px;
  background: #172033;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
  font-weight: 650;
}

.toast[hidden] { display: none; }

@media (max-width: 720px) {
  .topbar { min-height: auto; padding: 22px 20px; }
  .topbar-inner { min-height: auto; align-items: flex-start; flex-direction: column; }
  .brand-lockup { align-items: flex-start; gap: 15px; }
  .brand-logo { width: 68px; height: 68px; }
  .topbar-badge { display: none; }
  main { margin-top: 18px; padding: 0 16px; }
  .panel { padding: 18px; }
  .section-heading { flex-direction: column; }
  .student-card { align-items: flex-start; flex-direction: column; gap: 4px; }
  .action-row button { width: 100%; }
}
