:root {
  color-scheme: light;
  --bg: #07111f;
  --surface: rgba(10, 18, 34, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-card-soft: rgba(247, 249, 255, 0.86);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(20, 31, 52, 0.08);
  --text: #edf3ff;
  --text-dark: #122033;
  --text-soft: rgba(237, 243, 255, 0.74);
  --text-muted: #5d6c84;
  --brand: #5ef2cf;
  --brand-strong: #13cfa6;
  --accent: #ff8f5c;
  --accent-strong: #ff6d5a;
  --violet: #9f8bff;
  --danger: #ff667d;
  --warning: #ffbf5a;
  --success: #24c28e;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 42px rgba(4, 8, 19, 0.18);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1240px;
  font-family: "Pretendard Variable", "SUIT Variable", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(94, 242, 207, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(159, 139, 255, 0.18), transparent 32%),
    linear-gradient(160deg, #091222 0%, #0d1631 46%, #121123 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body.theme-admin {
  background:
    radial-gradient(circle at top left, rgba(255, 143, 92, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(94, 242, 207, 0.14), transparent 32%),
    linear-gradient(165deg, #130d22 0%, #10192f 50%, #0c1224 100%);
}

body.theme-public {
  background:
    radial-gradient(circle at top left, rgba(233, 194, 78, 0.22), transparent 36%),
    radial-gradient(circle at bottom right, rgba(176, 128, 17, 0.16), transparent 32%),
    linear-gradient(180deg, #f8f2e4 0%, #f1e5ca 46%, #efe0c2 100%);
  color: #271a06;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.35;
}

.orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.orb--one {
  top: 72px;
  right: -80px;
  background: rgba(94, 242, 207, 0.32);
}

.orb--two {
  bottom: 80px;
  left: -110px;
  background: rgba(255, 143, 92, 0.22);
}

.theme-public .orb--one {
  background: rgba(227, 180, 40, 0.28);
}

.theme-public .orb--two {
  background: rgba(152, 113, 17, 0.18);
}

.orb--three {
  top: 140px;
  right: -100px;
  background: rgba(159, 139, 255, 0.26);
}

.orb--four {
  bottom: 70px;
  left: -80px;
  background: rgba(94, 242, 207, 0.24);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.site-header,
.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand--logo {
  align-items: center;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(94, 242, 207, 0.9), rgba(159, 139, 255, 0.92));
  color: #08101d;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.brand__logo-image {
  width: auto;
  max-width: min(100%, 320px);
  max-height: 84px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.brand__text span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.page-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.theme-public .page-switch {
  border-color: rgba(146, 108, 18, 0.18);
  background: rgba(255, 255, 255, 0.52);
}

.theme-public .switch-pill {
  color: rgba(72, 52, 18, 0.72);
}

.theme-public .switch-pill.is-active {
  background: linear-gradient(135deg, rgba(232, 198, 101, 0.42), rgba(255, 255, 255, 0.8));
  color: #704d08;
}

.switch-pill {
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.switch-pill:hover {
  transform: translateY(-1px);
}

.switch-pill.is-active {
  background: linear-gradient(135deg, rgba(94, 242, 207, 0.22), rgba(159, 139, 255, 0.24));
  color: var(--text);
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 20px auto 48px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  padding: 34px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(19, 207, 166, 0.14), rgba(159, 139, 255, 0.12));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.hero--admin {
  grid-template-columns: minmax(0, 1fr) auto;
}

.theme-admin .hero--admin {
  border-color: rgba(191, 147, 45, 0.2);
  background:
    linear-gradient(145deg, rgba(16, 24, 41, 0.94), rgba(10, 17, 31, 0.9)),
    radial-gradient(circle at top left, rgba(224, 182, 76, 0.18), transparent 36%);
}

.theme-admin .hero--admin h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #f0d089;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.theme-admin .hero--admin .eyebrow {
  color: #c8992f;
}

.theme-admin .hero--admin .hero__lead {
  color: rgba(239, 229, 205, 0.82);
}

.theme-public .hero--public {
  border-color: rgba(150, 112, 20, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 251, 241, 0.78)),
    radial-gradient(circle at top right, rgba(230, 197, 103, 0.28), transparent 34%);
  color: #2c1e07;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.theme-public .eyebrow {
  color: #a06f0d;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.theme-public .hero h1,
.theme-public .spotlight-card h2,
.theme-public .program-card__title,
.theme-public .snapshot-card__title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero__lead {
  margin: 0;
  max-width: 58ch;
  line-height: 1.74;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.theme-public .hero__lead {
  color: rgba(55, 39, 12, 0.76);
}

.hero__visual,
.hero__toolbar {
  align-self: stretch;
}

.hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
  align-content: start;
}

.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.academy-seal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(177, 132, 21, 0.16);
  box-shadow: 0 12px 30px rgba(123, 87, 21, 0.1);
}

.academy-seal__mark {
  width: 72px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.academy-seal__text {
  display: grid;
  gap: 4px;
}

.academy-seal__text strong {
  color: #76510b;
  font-size: 1.03rem;
  letter-spacing: 0.04em;
}

.glass-stat,
.mini-stat,
.stat-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.theme-public .glass-stat {
  border-color: rgba(177, 132, 21, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #4a3307;
}

.theme-public .glass-stat span {
  color: rgba(88, 62, 12, 0.72);
}

.glass-stat {
  padding: 16px 18px;
}

.glass-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.glass-stat span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.spotlight-card {
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(255, 143, 92, 0.24), rgba(159, 139, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-public .spotlight-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 236, 210, 0.82)),
    linear-gradient(135deg, rgba(232, 198, 101, 0.22), rgba(166, 121, 18, 0.1));
  border-color: rgba(177, 132, 21, 0.14);
  color: #3b2908;
}

.spotlight-card__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
}

.theme-public .spotlight-card__eyebrow {
  color: rgba(111, 79, 16, 0.74);
}

.spotlight-card__logo {
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  display: block;
  margin-bottom: 10px;
  object-fit: contain;
}

.spotlight-card h2 {
  margin: 10px 0 16px;
  font-size: 1.45rem;
}

.mini-stat-list {
  display: grid;
  gap: 12px;
}

.mini-stat {
  padding: 14px 16px;
}

.theme-public .mini-stat {
  border-color: rgba(177, 132, 21, 0.14);
  background: rgba(255, 255, 255, 0.64);
}

.theme-public .mini-stat span,
.theme-public .feature-list {
  color: rgba(75, 56, 17, 0.78);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  font-size: 1rem;
}

.mini-stat span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 191, 90, 0.24);
  background: rgba(255, 191, 90, 0.08);
  color: #ffe6b2;
  line-height: 1.6;
}

.notice--soft {
  margin-top: 0;
  border-color: rgba(19, 207, 166, 0.14);
  background: rgba(19, 207, 166, 0.08);
  color: var(--text-dark);
}

.hidden {
  display: none !important;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 18, 0.52);
  backdrop-filter: blur(18px);
}

.lock-card {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(150deg, rgba(12, 18, 33, 0.92), rgba(17, 25, 46, 0.88)),
    linear-gradient(135deg, rgba(94, 242, 207, 0.08), rgba(159, 139, 255, 0.1));
  box-shadow: var(--shadow-lg);
}

.lock-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.lock-card__lead {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.lock-card .field span,
.lock-card .notice--soft {
  color: var(--text);
}

.lock-card .field input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.lock-card .button--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.content-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.content-grid--public {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.content-grid--admin {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.stack-column {
  display: grid;
  gap: 20px;
}

.stack-column--gap {
  margin-top: 20px;
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: var(--surface-card);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
}

.theme-public .panel-card {
  border-color: rgba(177, 132, 21, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 246, 234, 0.96)),
    radial-gradient(circle at top right, rgba(230, 197, 103, 0.16), transparent 32%);
}

.theme-public .panel-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 221, 0.98)),
    radial-gradient(circle at top right, rgba(227, 180, 40, 0.18), transparent 30%);
}

.theme-public .panel-card__caption,
.theme-public .lecture-card__note,
.theme-public .muted,
.theme-public .section-meta,
.theme-public .queue-card__meta,
.theme-public .empty-state,
.theme-public .field span,
.theme-public .footer-note {
  color: #654f28;
}

.panel-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.95)),
    radial-gradient(circle at top right, rgba(94, 242, 207, 0.1), transparent 30%);
}

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

.panel-card__header h2,
.panel-card__header h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.panel-card__caption {
  margin: 0;
  max-width: 34ch;
  color: var(--text-muted);
  line-height: 1.65;
}

.stack-form,
.filter-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(19, 207, 166, 0.4);
  box-shadow: 0 0 0 4px rgba(19, 207, 166, 0.12);
}

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

.filter-grid {
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
}

.field--grow {
  min-width: 0;
}

.section-builder {
  padding: 18px;
  border-radius: 24px;
  background: rgba(17, 28, 49, 0.04);
  border: 1px solid rgba(17, 28, 49, 0.05);
}

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

.section-builder__header h3 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.section-builder__list {
  display: grid;
  gap: 14px;
}

.section-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 28, 49, 0.08);
}

.section-row__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.15fr 1.25fr 1fr 0.7fr;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.button--primary {
  color: #08101d;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 34px rgba(255, 143, 92, 0.24);
}

.theme-public .button--primary {
  color: #382506;
  background: linear-gradient(135deg, #f4d57a, #c68a14);
  box-shadow: 0 16px 34px rgba(173, 125, 19, 0.22);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.panel-card .button--secondary {
  color: var(--text-dark);
  background: rgba(19, 207, 166, 0.08);
  border-color: rgba(19, 207, 166, 0.16);
}

.theme-public .panel-card .button--secondary,
.theme-public .button--secondary {
  color: #6f4c08;
  background: rgba(224, 186, 83, 0.12);
  border-color: rgba(182, 132, 18, 0.16);
}

.button--ghost {
  color: var(--text-dark);
  background: transparent;
  border-color: rgba(18, 32, 51, 0.12);
}

.theme-public .button--ghost {
  color: #7a570e;
  border-color: rgba(182, 132, 18, 0.18);
}

.theme-admin .hero .button--ghost,
.theme-public .site-header .button--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.button--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.button--wide {
  width: 100%;
}

.file-trigger {
  position: relative;
  overflow: hidden;
}

.file-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.feedback {
  margin-bottom: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.feedback--confirmed {
  background: rgba(36, 194, 142, 0.12);
  color: #0f7456;
}

.feedback--waitlisted {
  background: rgba(255, 143, 92, 0.14);
  color: #b25121;
}

.snapshot-panel,
.program-board,
.queue-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 32, 51, 0.05);
  color: var(--text-muted);
  line-height: 1.65;
}

.lecture-card,
.queue-card,
.snapshot-card,
.program-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 32, 51, 0.08);
  background: var(--surface-card-soft);
}

.lecture-card__top,
.snapshot-card__top,
.program-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.lecture-card__title,
.snapshot-card__title,
.program-card__title {
  margin: 0;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.muted,
.lecture-card__note,
.section-meta {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.pill-row,
.summary-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill {
  background: rgba(19, 207, 166, 0.1);
  color: #087c63;
}

.theme-public .pill {
  background: rgba(224, 186, 83, 0.14);
  color: #7a570e;
}

.badge--confirmed {
  background: rgba(36, 194, 142, 0.12);
  color: #13805f;
}

.theme-public .badge--confirmed {
  background: rgba(197, 138, 20, 0.14);
  color: #8a5b08;
}

.theme-public .badge--waitlisted {
  background: rgba(118, 81, 11, 0.12);
  color: #6f4c08;
}

.badge--waitlisted {
  background: rgba(255, 143, 92, 0.15);
  color: #bc5426;
}

.badge--present {
  background: rgba(36, 194, 142, 0.12);
  color: #13805f;
}

.badge--late {
  background: rgba(255, 191, 90, 0.18);
  color: #9a6200;
}

.badge--absent {
  background: rgba(255, 102, 125, 0.14);
  color: #b03d52;
}

.badge--excused,
.badge--pending {
  background: rgba(18, 32, 51, 0.08);
  color: #5f6d82;
}

.section-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.section-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 20, 39, 0.05);
}

.section-chip.is-full {
  background: rgba(255, 143, 92, 0.11);
}

.theme-public .section-chip {
  background: rgba(120, 92, 28, 0.06);
}

.theme-public .section-chip.is-full {
  background: rgba(224, 186, 83, 0.16);
}

.section-chip strong,
.section-chip span {
  display: block;
}

.section-chip strong {
  font-size: 1rem;
}

.section-chip span {
  margin-top: 4px;
  color: var(--text-muted);
}

.queue-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.queue-card__student {
  display: block;
  font-weight: 800;
}

.queue-card__meta {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}

.print-roster-controls {
  align-items: end;
  margin-bottom: 18px;
}

.print-roster-button-wrap {
  align-self: stretch;
}

.print-roster-button-wrap .button {
  width: 100%;
}

.print-roster-board,
.print-roster-list {
  display: grid;
  gap: 16px;
}

.print-roster-summary,
.print-group {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.print-roster-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.print-roster-summary h3 {
  margin: 8px 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.print-group__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.print-group__header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.print-group__header p,
.print-group__meta span {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.print-group__meta {
  text-align: right;
}

.print-group__meta strong {
  display: block;
  font-size: 1.1rem;
}

.print-table-shell {
  overflow: auto;
}

.print-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  text-align: left;
  vertical-align: top;
}

.print-table th {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

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

.stat-card {
  padding: 20px;
  color: var(--text);
}

.stat-card p {
  margin: 0;
  color: rgba(237, 243, 255, 0.75);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.summary-row {
  margin-top: 18px;
}

.table-shell {
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.data-table td strong,
.data-table td span {
  display: block;
}

.data-table td span {
  margin-top: 4px;
  color: var(--text-muted);
}

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

.table-select {
  width: 100%;
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 32, 51, 0.12);
  background: #fff;
}

.danger-text {
  color: var(--danger);
}

.footer-note {
  margin-top: 18px;
  padding: 0 4px;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-note a {
  color: var(--brand);
}

.theme-public .footer-note a {
  color: #9f700f;
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12, 18, 33, 0.95);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: toast-rise 220ms ease;
}

@keyframes toast-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .content-grid--public,
  .content-grid--admin,
  .stats-grid,
  .filter-grid,
  .section-row__grid {
    grid-template-columns: 1fr;
  }

  .hero__toolbar {
    justify-content: start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand--logo {
    justify-content: center;
  }

  .brand__logo-image {
    max-width: 100%;
    max-height: 74px;
  }

  .page-switch {
    width: 100%;
    justify-content: stretch;
  }

  .switch-pill {
    flex: 1 1 0;
    text-align: center;
  }

  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .hero,
  .panel-card {
    padding: 22px;
    border-radius: 26px;
  }

  .panel-card__header,
  .lecture-card__top,
  .snapshot-card__top,
  .program-card__top,
  .section-chip,
  .queue-card__top,
  .print-roster-summary,
  .print-group__header {
    flex-direction: column;
    align-items: start;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .hero__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .file-trigger {
    width: 100%;
  }

  .print-group__meta {
    text-align: left;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  }

  .data-table td {
    border: 0;
    padding: 8px 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .academy-seal {
    border-radius: 24px;
  }

  .academy-seal__mark {
    width: 64px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card strong {
    font-size: 1.7rem;
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
    min-width: 0;
  }
}

@media print {
  body.printing-roster {
    background: #fff !important;
    color: #111 !important;
  }

  body.printing-roster .orb,
  body.printing-roster .site-header,
  body.printing-roster .hero,
  body.printing-roster #runtimeNotice,
  body.printing-roster .stats-grid,
  body.printing-roster .content-grid--admin > .panel-card,
  body.printing-roster .content-grid--admin > .stack-column > .panel-card:not(.print-roster-card),
  body.printing-roster .stack-column--gap,
  body.printing-roster .footer-note,
  body.printing-roster .toast-container {
    display: none !important;
  }

  body.printing-roster .page-shell,
  body.printing-roster .content-grid--admin,
  body.printing-roster .content-grid--admin > .stack-column {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.printing-roster .print-roster-card {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.printing-roster .print-hide {
    display: none !important;
  }

  body.printing-roster .print-roster-summary,
  body.printing-roster .print-group {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.printing-roster .print-roster-summary {
    margin-bottom: 18px;
  }

  body.printing-roster .print-group {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 18px;
  }

  body.printing-roster .print-group__header {
    margin-bottom: 10px;
  }

  body.printing-roster .print-table {
    min-width: 0;
  }

  body.printing-roster .print-table th,
  body.printing-roster .print-table td {
    border: 1px solid #d7d7d7 !important;
    color: #111 !important;
  }
}
