:root {
  color-scheme: light;
  --navy-950: #17233f;
  --navy-900: #21335b;
  --navy-800: #2c4678;
  --blue-700: #3f68a8;
  --blue-100: #e9f0fb;
  --orange-700: #a74719;
  --orange-100: #fff0e6;
  --green-800: #276749;
  --green-100: #e6f5ed;
  --red-800: #9b2c2c;
  --red-100: #fff0f0;
  --amber-900: #744210;
  --amber-100: #fff7dc;
  --ink: #18233b;
  --muted: #64708a;
  --line: #dce2ec;
  --surface: #ffffff;
  --surface-subtle: #f6f8fc;
  --page: #f2f4f8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(23, 35, 63, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.teacher-surface {
  overflow-x: hidden;
}

/* Keep public entry points aligned with the purple operational workspace. */
body:is(.entry-mode, .auth-mode, .admin-auth-mode) {
  --navy-950: #302142;
  --navy-900: #4e2b7a;
  --navy-800: #3d205f;
  --blue-700: #65418e;
  --blue-100: #f1eafa;
  --line: #e8def2;
  --surface-subtle: #faf7fd;
  --page: #f6f3fb;
}

button,
input,
select { font: inherit; }

button,
select,
input[type="date"] { min-height: 44px; }

button { touch-action: manipulation; }

a { color: inherit; }

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

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

:focus-visible {
  outline: 3px solid #d95f22;
  outline-offset: 3px;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus {
  outline: none;
}

.app-header {
  min-height: calc(68px + var(--safe-top));
  padding: calc(14px + var(--safe-top)) clamp(16px, 4vw, 36px) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand small {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-800);
  font-size: 11px;
  letter-spacing: 0;
}

.user-context {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
}

.user-context strong {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-context span { color: var(--muted); }

.app-main {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 28px 0 calc(48px + var(--safe-bottom));
}

.student-main { width: min(calc(100% - 28px), 760px); }

.loading-card,
.panel,
.assignment-card,
.learning-card,
.stat-card,
.table-card,
.flow-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-card,
.panel,
.flow-card,
.summary-card { padding: clamp(22px, 5vw, 36px); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { color: var(--ink); font-weight: 800; }

.button {
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

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

.button.primary {
  background: var(--navy-900);
  color: white;
}

.button.primary:hover:not(:disabled) { background: var(--navy-800); }

.button.secondary {
  border-color: #b9c9e2;
  background: var(--blue-100);
  color: var(--navy-900);
}

.button.ghost {
  border-color: var(--line);
  background: white;
  color: var(--navy-800);
}

.button.text {
  min-height: 44px;
  padding: 8px 2px;
  background: transparent;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button.large {
  min-height: 58px;
  padding: 17px 22px;
  font-size: 18px;
}

.button.full { width: 100%; }

.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.student-home {
  display: grid;
  gap: 18px;
}

.welcome-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.welcome-row p { margin: 8px 0 0; line-height: 1.55; }

.demo-label,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.demo-label {
  background: var(--orange-100);
  color: var(--orange-700);
}

.assignment-card {
  padding: clamp(24px, 5vw, 40px);
  border-top: 5px solid var(--navy-900);
}

.assignment-card h2 { margin-top: 8px; }

.assignment-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.meta-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.meta-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong { font-size: 17px; }

.learning-shell { display: grid; gap: 16px; }

.session-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.session-topline p { margin: 0; }

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

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--blue-700);
  transition: width .22s ease;
}

.learning-card {
  min-height: 420px;
  padding: clamp(24px, 6vw, 48px);
  display: flex;
  flex-direction: column;
}

.stage-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.word {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(42px, 10vw, 64px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.part-of-speech {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.meaning {
  margin: 22px 0 0;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.audio-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.audio-status {
  color: var(--muted);
  font-size: 13px;
}

.example-block {
  margin-top: 6px;
  padding: 22px;
  border-left: 4px solid var(--blue-700);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-subtle);
}

.example-en {
  margin: 0;
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 700;
  line-height: 1.55;
}

.example-en mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: #fff0b8;
  color: var(--ink);
}

.example-ko {
  margin: 12px 0 0;
  color: #4f5c73;
  font-size: 16px;
  line-height: 1.65;
}

.learning-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 -14px calc(-48px - var(--safe-bottom));
  padding: 14px 14px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(242, 244, 248, .96);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.choice-button {
  min-height: 62px;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.choice-button:hover:not(:disabled),
.choice-button:focus-visible { border-color: var(--blue-700); }

.choice-button:disabled { cursor: default; opacity: .72; }

.choice-button.dont-know {
  grid-column: 1 / -1;
  min-height: 50px;
  color: var(--muted);
  text-align: center;
}

.feedback {
  padding: 20px;
  border-radius: var(--radius-md);
}

.feedback.correct {
  border: 1px solid #a6dcc0;
  background: var(--green-100);
  color: var(--green-800);
}

.feedback.incorrect {
  border: 1px solid #efb7b7;
  background: var(--red-100);
  color: var(--red-800);
}

.feedback h2 { color: inherit; }
.feedback p { margin: 10px 0 0; line-height: 1.6; }

.spelling-stage {
  display: grid;
  align-content: start;
  gap: 22px;
  flex: 1;
}

.spelling-heading { text-align: center; }
.spelling-heading .stage-label { margin-inline: auto; }

.spelling-meaning {
  margin: 4px 0 8px;
  color: var(--navy-950);
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 850;
}

.spelling-heading .muted {
  margin: 0;
  line-height: 1.6;
}

.spelling-pattern {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.4vw, 10px);
  min-height: 72px;
  padding: 12px;
  overflow-x: auto;
}

.spelling-character {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(32px, 7vw, 48px);
  min-height: clamp(48px, 9vw, 62px);
  border-bottom: 3px solid #bcc8da;
  color: var(--navy-900);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(25px, 6vw, 36px);
  font-weight: 850;
  text-transform: lowercase;
}

.spelling-character.blank {
  border-color: #d95f22;
  color: #b64e18;
}

.spelling-length {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  background: #f8faff;
  color: var(--muted);
  font-weight: 800;
}

.spelling-length strong {
  color: var(--navy-900);
  font-size: 26px;
}

.spelling-form {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin: 0 auto;
}

.spelling-form label {
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 800;
}

.spelling-form input {
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 2px solid #aebbd0;
  border-radius: 14px;
  background: white;
  color: var(--navy-950);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.spelling-form input:focus { border-color: var(--blue-700); }
.spelling-form p { margin: 0; }

.spelling-actions {
  width: 100%;
  justify-content: space-between;
}

.spelling-correct-word {
  color: inherit;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(36px, 9vw, 58px);
  font-weight: 900;
  letter-spacing: .02em;
}

.summary-card { text-align: center; }
.summary-card > p { line-height: 1.65; }

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
  text-align: left;
}

.summary-stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.summary-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-900);
  font-size: 22px;
}

.teacher-main { display: grid; gap: 18px; }

.teacher-toolbar,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-heading p { margin: 8px 0 0; line-height: 1.55; }

.class-select,
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #bfc8d8;
  border-radius: 11px;
  background: white;
  color: var(--ink);
}

.class-select { width: auto; min-width: 160px; }

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

.stat-card { padding: 18px; }

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-900);
  font-size: 28px;
}

.table-card { overflow: hidden; }

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
}

.table-scroll { overflow-x: auto; }

.student-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.student-table th,
.student-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8ecf2;
  text-align: left;
  white-space: nowrap;
}

.student-table th {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 12px;
}

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

.status-badge.completed { background: var(--green-100); color: var(--green-800); }
.status-badge.in_progress { background: var(--blue-100); color: var(--navy-800); }
.status-badge.not_started { background: #eef0f4; color: #536075; }
.status-badge.data_attention { background: var(--amber-100); color: var(--amber-900); }
.status-badge.not_scheduled { background: #f4f1eb; color: #685a46; }

.notice {
  padding: 14px 16px;
  border: 1px solid #efd59a;
  border-radius: var(--radius-md);
  background: var(--amber-100);
  color: var(--amber-900);
  line-height: 1.55;
}

.notice.success {
  border-color: #a6dcc0;
  background: var(--green-100);
  color: var(--green-800);
}

.notice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 6px;
  font-weight: 800;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.stepper li {
  padding: 10px;
  border-bottom: 4px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.stepper li.current {
  border-color: var(--blue-700);
  color: var(--navy-900);
}

.flow-card { display: grid; gap: 24px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.option-card {
  position: relative;
  display: block;
  min-height: 190px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
}

.option-card.disabled {
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72;
}

.option-card.disabled input { cursor: not-allowed; }

.option-card:has(input:checked) {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.option-card input {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
}

.option-card h3 { padding-right: 32px; }
.option-card p { color: var(--muted); line-height: 1.5; }
.option-card dl { margin: 14px 0 0; }
.option-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.option-card dt { color: var(--muted); }
.option-card dd { margin: 0; font-weight: 800; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field label,
.field legend { font-size: 14px; font-weight: 800; }

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: flex;
  gap: 8px;
}

.segment {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.segment[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
}

.review-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.review-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review-list div:last-child { border-bottom: 0; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 800; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] { display: none !important; }

@media (max-width: 840px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: 1fr; }
  .option-card { min-height: 0; }
}

@media (max-width: 700px) {
  .app-header { align-items: flex-start; }
  .user-context strong { max-width: 160px; }
  .app-main { padding-top: 20px; }
  .welcome-row,
  .teacher-toolbar,
  .page-heading,
  .table-header { align-items: stretch; flex-direction: column; }
  .class-select { width: 100%; }
  .assignment-meta,
  .summary-stats { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review-list div { grid-template-columns: 1fr; gap: 5px; }
  .learning-card { min-height: 390px; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 24px; }
  .stepper li { padding: 8px 4px; font-size: 12px; }
}

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

/* Platform administration keeps a separate session behind a visible role gateway. */
.admin-auth-mode .admin-header .user-context {
  display: none;
}

.admin-auth-mode .admin-header {
  justify-content: center;
}

.admin-main {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.admin-login {
  width: min(100%, 520px);
  margin: clamp(24px, 7vh, 72px) auto 0;
}

.admin-login .form-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.admin-login .button-row > * {
  flex: 1;
  justify-content: center;
}

.admin-toolbar {
  margin-bottom: 22px;
}

.admin-stats {
  margin-bottom: 18px;
}

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

.admin-grid + .panel,
.admin-main > .panel + .panel {
  margin-top: 18px;
}

.admin-invitation-result {
  align-items: stretch;
  flex-direction: column;
  margin-top: 18px;
}

.admin-invitation-result > div:first-child {
  display: grid;
  gap: 4px;
}

.account-role-form {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 8px;
}

.account-role-form select {
  min-width: 150px;
  min-height: 44px;
  padding: 9px 34px 9px 11px;
  border: 1px solid #bfc8d8;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.account-role-form .button {
  min-height: 44px;
  flex: 0 0 auto;
  padding-inline: 14px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.copy-field input {
  min-width: 0;
}

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

.permission-card {
  padding: 20px;
  border: 1px solid #dbe4f0;
  border-radius: var(--radius-md);
  background: #fbfcff;
}

.permission-card h3 {
  margin: 0 0 6px;
  color: var(--navy-900);
}

.permission-card .form-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .admin-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-main {
    width: min(100% - 20px, 1240px);
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .copy-field .button {
    width: 100%;
  }

  .account-role-form {
    min-width: 220px;
  }
}

/* 2A high-fidelity sales demo layer */
:root {
  --navy-950: #121d38;
  --navy-900: #1c2c52;
  --navy-800: #294271;
  --blue-700: #416bb0;
  --blue-100: #eaf1ff;
  --orange-700: #b84d1c;
  --orange-100: #fff1e8;
  --green-800: #237052;
  --green-100: #e9f8f0;
  --line: #d9e1ee;
  --surface-subtle: #f7f9fc;
  --page: #eef2f8;
  --shadow: 0 14px 36px rgba(25, 42, 78, .08);
  --shadow-soft: 0 5px 18px rgba(25, 42, 78, .06);
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(117, 158, 225, .12), transparent 32rem),
    radial-gradient(circle at 96% 4%, rgba(255, 168, 116, .10), transparent 28rem),
    var(--page);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: calc(74px + var(--safe-top));
  padding-top: calc(14px + var(--safe-top));
  border-bottom-color: rgba(198, 209, 226, .82);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 18px rgba(22, 39, 73, .04);
  backdrop-filter: blur(18px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.header-section {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-left: 4px;
}

.header-nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.header-nav-item.active {
  background: var(--blue-100);
  color: var(--navy-900);
}

.user-context-with-avatar {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.user-context-with-avatar > span:last-child {
  display: grid;
  gap: 3px;
}

.user-context-with-avatar strong {
  max-width: 250px;
}

.user-context-with-avatar small {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 850;
}

.avatar-student {
  background: #fff0c9;
  color: #8c5c00;
}

.avatar-teacher {
  background: var(--navy-900);
  color: white;
}

.brand {
  letter-spacing: -.04em;
}

.brand img {
  filter: drop-shadow(0 3px 5px rgba(35, 57, 98, .15));
}

.student-main {
  width: min(calc(100% - 32px), 860px);
  padding-top: 34px;
}

.student-home {
  gap: 20px;
}

.welcome-row {
  align-items: flex-start;
  padding: 6px 4px 10px;
}

.welcome-row h1 {
  max-width: 620px;
  font-size: clamp(30px, 5vw, 46px);
}

.welcome-row p {
  max-width: 560px;
}

.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(243, 248, 255, .96)),
    white;
  box-shadow: var(--shadow-soft);
}

.student-hero h2 {
  margin-top: 4px;
  font-size: clamp(22px, 4vw, 29px);
}

.student-hero p {
  margin: 9px 0 0;
  line-height: 1.6;
}

.daily-progress {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--navy-900);
  color: white;
}

.daily-progress span {
  color: #b9c8e5;
  font-size: 12px;
  font-weight: 750;
}

.daily-progress strong {
  font-size: 28px;
  letter-spacing: -.04em;
}

.daily-progress small {
  color: #d7e2f7;
  font-size: 12px;
}

.assignment-card {
  padding: clamp(26px, 5vw, 40px);
  border-top: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(252, 253, 255, .96));
  box-shadow: 0 16px 42px rgba(29, 49, 91, .10);
}

.assignment-card::before {
  display: block;
  width: 46px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef7b3b, #f5b55d);
  content: "";
}

.assignment-card h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.assignment-meta {
  gap: 12px;
  margin: 26px 0;
}

.meta-item {
  border: 1px solid #e2e8f2;
  background: #f8faff;
}

.meta-item strong {
  color: var(--navy-900);
}

.learning-shell {
  gap: 18px;
}

.session-topline {
  padding: 0 4px;
}

.session-topline p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.session-topline p:first-child::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f28a47;
  content: "";
}

.learning-card {
  min-height: 470px;
  border-color: #dbe3f0;
  background:
    radial-gradient(circle at 85% 12%, rgba(91, 139, 212, .10), transparent 14rem),
    white;
  box-shadow: 0 18px 44px rgba(25, 42, 78, .10);
}

.learning-card .word {
  font-size: clamp(48px, 11vw, 76px);
}

.learning-card .meaning {
  color: var(--navy-900);
}

.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-800);
  font-size: 12px;
  letter-spacing: .01em;
}

.stage-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-700);
  content: "";
}

.audio-row {
  margin-top: 28px;
}

.audio-row .button.secondary {
  border-color: #c5d6f1;
  background: #f0f5ff;
  color: var(--navy-900);
}

.audio-row .button.secondary:hover:not(:disabled) {
  background: #e4edff;
}

.learning-actions {
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(28, 46, 84, .05);
}

.summary-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.summary-card::before {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, #20365f, #5a85c8 55%, #f29a5a);
  content: "";
}

.summary-card-inner {
  padding: clamp(28px, 6vw, 52px);
}

.summary-card .summary-stats {
  margin-top: 30px;
}

.summary-stat {
  border: 1px solid #e2e8f2;
  background: #f8faff;
}

.summary-stat strong {
  font-size: 26px;
}

.teacher-main {
  width: min(calc(100% - 44px), 1240px);
  padding-top: 32px;
}

.teacher-toolbar {
  align-items: flex-start;
  padding: 4px 2px 0;
}

.teacher-toolbar h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.teacher-toolbar > div:first-child p:last-child {
  margin-top: 10px;
}

.teacher-toolbar .button-row {
  align-items: center;
}

.teacher-toolbar .class-select {
  border-color: #c9d5e8;
  box-shadow: var(--shadow-soft);
}

.teacher-toolbar .button.primary {
  box-shadow: 0 8px 18px rgba(28, 44, 82, .16);
}

.teacher-main > .notice {
  border-color: #d9e4f2;
  background: rgba(248, 251, 255, .90);
  color: #4a5e7e;
}

.teacher-main > .notice.success {
  border-color: #b8e3ca;
  background: var(--green-100);
  color: var(--green-800);
}

.teacher-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
  gap: 16px;
}

.overview-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.overview-card h2 {
  font-size: 23px;
}

.overview-card p {
  line-height: 1.55;
}

.overview-card-muted {
  color: var(--muted);
}

.overview-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.completion-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  border-color: #d1ddf1;
  background:
    radial-gradient(circle at 88% 20%, rgba(93, 141, 218, .18), transparent 13rem),
    linear-gradient(130deg, #fff, #f5f8ff);
}

.completion-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 8px;
}

.completion-value strong {
  color: var(--navy-900);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.06em;
}

.completion-value span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.completion-track {
  height: 11px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e8f4;
}

.completion-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #517ec3, #7ba2dd);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#5d89cf 0 40%, #e1e8f4 40% 100%);
  box-shadow: inset 0 0 0 1px rgba(65, 107, 176, .12);
}

.progress-ring::after {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: white;
  color: var(--navy-900);
  content: attr(data-progress);
  font-size: 22px;
  font-weight: 850;
}

.assignment-overview {
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.assignment-overview .assignment-overview-meta {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.assignment-overview-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf0f5;
  font-size: 14px;
}

.assignment-overview-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.assignment-overview-meta span {
  color: var(--muted);
}

.assignment-overview-meta strong {
  color: var(--navy-900);
  text-align: right;
}

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

.stat-card {
  position: relative;
  min-height: 116px;
  padding: 18px 19px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #d8e2f2;
  content: "";
}

.stat-card[data-status="attention"]::after { background: #e8b14d; }
.stat-card[data-status="progress"]::after { background: #6e95d4; }
.stat-card[data-status="complete"]::after { background: #6fc093; }

.stat-card strong {
  font-size: 30px;
}

.table-card {
  box-shadow: var(--shadow);
}

.table-header {
  align-items: flex-start;
  padding: 23px 24px 18px;
}

.table-header h2 {
  font-size: 23px;
}

.table-header p {
  margin: 7px 0 0;
}

.filter-row {
  justify-content: flex-end;
}

.filter-button {
  min-height: 44px;
  padding: 7px 11px;
  font-size: 12px;
}

.student-table {
  font-size: 14px;
}

.student-table th,
.student-table td {
  padding: 15px 18px;
}

.student-table tbody tr {
  transition: background .18s ease;
}

.student-table tbody tr:hover {
  background: #f8faff;
}

.student-table tbody tr.is-selected {
  background: #f1f6ff;
}

.student-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #edf2fb;
  color: var(--navy-800);
  font-size: 11px;
  font-weight: 850;
}

.row-action {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #cbd8eb;
  border-radius: 9px;
  background: white;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.row-action:hover {
  border-color: var(--blue-700);
  background: var(--blue-100);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: 16px;
}

.student-detail-card,
.report-card,
.content-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.student-detail-card,
.report-card {
  padding: 24px;
}

.detail-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
}

.detail-profile .avatar {
  width: 48px;
  height: 48px;
}

.detail-profile strong {
  display: block;
  font-size: 19px;
}

.detail-profile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-metric {
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-subtle);
}

.detail-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--navy-900);
  font-size: 21px;
}

.detail-note {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-left: 3px solid #f0a057;
  border-radius: 0 11px 11px 0;
  background: #fff8ee;
  color: #6e4d2d;
  font-size: 13px;
  line-height: 1.55;
}

.report-card {
  background:
    linear-gradient(150deg, #fff, #fbfcff);
}

.report-card .report-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-card h3 {
  font-size: 20px;
}

.report-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.report-card p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.report-preview-list {
  display: grid;
  gap: 10px;
  margin: 19px 0;
}

.report-preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 13px;
}

.report-preview-list div:last-child {
  border-bottom: 0;
}

.report-preview-list span {
  color: var(--muted);
}

.report-preview-list strong {
  color: var(--navy-900);
  text-align: right;
}

.content-preview {
  padding: 24px;
}

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

.content-preview-heading p {
  margin: 7px 0 0;
}

.content-total {
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 850;
  white-space: nowrap;
}

.content-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.content-card {
  display: grid;
  gap: 12px;
  min-height: 152px;
  padding: 16px;
  border: 1px solid #e1e7f1;
  border-radius: 15px;
  background: #fbfcff;
}

.content-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.content-card h3 {
  font-size: 16px;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.band-chip {
  display: inline-flex;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #eef2f9;
  color: var(--navy-800);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.content-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.content-card-meta strong {
  color: var(--navy-900);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 27, 52, .40);
  backdrop-filter: blur(4px);
}

.report-modal[hidden] {
  display: none;
}

.report-modal-card {
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid #d6e0ef;
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 80px rgba(17, 31, 61, .24);
}

.report-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-modal-header h2 {
  font-size: 25px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--navy-900);
  font-size: 20px;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-subtle);
}

.report-modal .notice {
  margin: 20px 0;
}

@media (max-width: 940px) {
  .header-nav { display: none; }
  .teacher-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .teacher-toolbar .button-row {
    justify-content: flex-start;
  }
  .teacher-overview-grid,
  .detail-layout { grid-template-columns: 1fr; }
  .content-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .student-hero,
  .completion-hero { grid-template-columns: 1fr; }
  .daily-progress { min-height: 132px; }
  .completion-hero .progress-ring { width: 108px; height: 108px; }
  .completion-hero .progress-ring::after { width: 78px; height: 78px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-card-grid { grid-template-columns: 1fr; }
  .content-preview-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .app-header { padding-left: 14px; padding-right: 14px; }
  .header-divider,
  .header-section { display: none; }
  .user-context-with-avatar strong { max-width: 150px; }
  .student-main,
  .teacher-main { width: min(calc(100% - 24px), 860px); }
  .teacher-main { padding-top: 22px; }
  .teacher-toolbar .button-row { width: 100%; }
  .teacher-toolbar .button-row > * { flex: 1; }
  .completion-value strong { font-size: 46px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .table-header { padding-left: 18px; padding-right: 18px; }
  .filter-row { justify-content: flex-start; }
  .report-modal { padding: 12px; }
  .report-modal-card { padding: 22px; }
}

.learning-rhythm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.learning-rhythm-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.learning-rhythm-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #e9eef7;
  color: #60708b;
  font-size: 11px;
  font-style: normal;
}

.learning-rhythm-item.active {
  color: var(--navy-900);
}

.learning-rhythm-item.active i {
  background: var(--navy-900);
  color: white;
}

.learning-rhythm-line {
  width: 24px;
  height: 1px;
  background: #d8e1ef;
}

.assignment-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assignment-heading-row .eyebrow {
  margin-bottom: 0;
}

.assignment-description {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.stage-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 2px;
}

.stage-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a95a8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.stage-rail-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: white;
  color: #8190a9;
  font-size: 11px;
  font-style: normal;
}

.stage-rail-item.current {
  color: var(--navy-900);
}

.stage-rail-item.current i {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
  box-shadow: 0 3px 8px rgba(28, 44, 82, .18);
}

.stage-rail-item.complete {
  color: var(--blue-700);
}

.stage-rail-item.complete i {
  border-color: #c7d8f3;
  background: var(--blue-100);
  color: var(--blue-700);
}

.word-stage-grid,
.example-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .42fr);
  gap: clamp(28px, 7vw, 68px);
  align-items: center;
  flex: 1;
}

.word-stage-main,
.example-stage-grid > div {
  min-width: 0;
}

.memory-cue,
.listen-cue {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: #f8faff;
}

.memory-cue::before,
.listen-cue::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e8effd;
  color: var(--blue-700);
  content: "↗";
  font-size: 18px;
  font-weight: 850;
}

.memory-cue span,
.listen-cue span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.memory-cue strong,
.listen-cue strong {
  color: var(--navy-900);
  font-size: 17px;
  line-height: 1.35;
}

.memory-cue p,
.listen-cue p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.example-stage-grid .example-block {
  margin-top: 16px;
}

.example-stage-grid .audio-row {
  margin-top: 18px;
}

.quiz-heading .word {
  margin-top: 18px;
}

.quiz-heading .muted {
  margin: 12px 0 0;
  font-size: 16px;
}

.feedback-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #f9fbfe;
}

.feedback-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.feedback-note strong {
  color: var(--navy-900);
  font-size: 13px;
}

.summary-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.summary-kicker .eyebrow {
  margin-bottom: 0;
}

.summary-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 17px;
  font-weight: 900;
}

.summary-stat small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.summary-next {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 15px 16px;
  border: 1px solid #dbe5f3;
  border-radius: 13px;
  background: #f6f9ff;
}

.summary-next span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-next strong {
  color: var(--navy-900);
  font-size: 14px;
}

.toolbar-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-kicker .eyebrow {
  margin-bottom: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65bd8a;
  box-shadow: 0 0 0 4px rgba(101, 189, 138, .13);
}

.today-date {
  color: #8490a5;
  font-size: 12px;
  font-weight: 700;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 11px;
}

.demo-notice > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo-notice > div strong {
  color: var(--navy-900);
  font-size: 13px;
}

.demo-notice > div span {
  color: #687893;
  font-size: 12px;
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #e8effc;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.notice.success .notice-icon {
  background: #d5f1df;
  color: var(--green-800);
}

.notice-state {
  margin-left: auto;
  color: #8b97aa;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.notice-summary {
  display: block;
  margin-top: 4px;
  color: #697994;
  font-size: 12px;
  font-weight: 750;
}

.table-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-title-row h2 {
  margin: 0;
}

.table-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eff3f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stat-card-wide {
  grid-column: span 2;
}

@media (max-width: 760px) {
  .word-stage-grid,
  .example-stage-grid { grid-template-columns: 1fr; }
  .memory-cue,
  .listen-cue { min-height: 0; }
}

@media (max-width: 430px) {
  .learning-rhythm { gap: 5px; }
  .learning-rhythm-line { width: 10px; }
  .learning-rhythm-item { font-size: 11px; }
  .stage-rail { gap: 4px; }
  .stage-rail-item { gap: 4px; font-size: 10px; }
  .stage-rail-item i { width: 21px; height: 21px; }
  .today-date { display: none; }
  .notice-state { display: none; }
  .stat-card-wide { grid-column: span 1; }
}

@media (min-width: 641px) and (max-width: 940px) {
  .teacher-overview-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  }
  .overview-card {
    min-height: 220px;
    padding: 20px;
  }
  .completion-hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
  }
  .completion-hero .progress-ring {
    width: 104px;
    height: 104px;
  }
  .completion-hero .progress-ring::after {
    width: 74px;
    height: 74px;
  }
}

/* Release bundle B: quiet momentum */
.today-assignment-card {
  display: grid;
  gap: 18px;
}

.today-assignment-card h1 {
  margin: 0;
  max-width: 680px;
}

.today-assignment-card .assignment-description {
  margin: -6px 0 0;
}

.today-assignment-card .assignment-meta {
  margin: 4px 0 2px;
}

.student-submit-state,
.summary-submission {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid #d8e2f0;
  border-radius: 13px;
  background: #f7f9fc;
}

.student-submit-state > span,
.summary-submission > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-submit-state strong,
.summary-submission strong {
  color: var(--navy-900);
  font-size: 16px;
}

.student-submit-state small,
.summary-submission p {
  margin: 0;
  color: #526079;
  font-size: 13px;
  line-height: 1.55;
}

.student-submit-state.confirmed,
.summary-submission.confirmed {
  border-color: #b8dfc9;
  background: var(--green-100);
}

.student-submit-state.pending,
.summary-submission.pending {
  border-color: #ead19b;
  background: var(--amber-100);
}

.student-submit-state.local_only,
.summary-submission.local_only {
  border-color: #d5ddec;
  background: #f3f6fb;
}

.summary-submission {
  margin: 0 0 22px;
}

.summary-submission .button {
  justify-self: start;
  margin-top: 6px;
}

.session-progress-copy {
  display: grid;
  gap: 3px;
}

.session-progress-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.session-progress-copy strong {
  color: var(--navy-900);
  font-size: 18px;
}

.session-kind {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}

.choice-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audio-stop {
  color: var(--navy-800);
}

.teacher-empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid #d4dfef;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.teacher-empty-copy h2,
.teacher-empty-copy h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.22;
}

.teacher-empty-copy > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #526079;
  line-height: 1.65;
}

.teacher-empty-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.teacher-setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacher-setup-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 94px;
  padding: 15px;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  background: #f8faff;
}

.teacher-setup-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--navy-900);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.teacher-setup-steps li div {
  display: grid;
  gap: 5px;
}

.teacher-setup-steps strong {
  color: var(--navy-900);
  font-size: 14px;
}

.teacher-setup-steps small {
  color: #526079;
  font-size: 12px;
  line-height: 1.45;
}

.operational-today-empty .teacher-empty-state {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: none;
}

.operational-compose-intro {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .teacher-empty-state {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .teacher-setup-steps {
    grid-template-columns: 1fr;
  }

  .teacher-empty-actions > * {
    width: 100%;
  }

  .session-progress-copy strong {
    font-size: 16px;
  }
}

.entry-admin-login {
  display: none;
}

.entry-mode .entry-admin-login {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: clamp(16px, 4vw, 36px);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Authentication and role-entry surfaces use task-specific widths instead of
   inheriting the data-dense teacher dashboard canvas. */
.entry-mode .student-header .header-divider,
.entry-mode .student-header .header-section,
.entry-mode .student-header .user-context,
.auth-mode .teacher-header .header-nav,
.auth-mode .teacher-header .user-context {
  display: none;
}

.entry-mode .student-header,
.auth-mode .teacher-header {
  justify-content: center;
}

.entry-mode .student-main,
.auth-mode .teacher-main {
  display: block;
}

.entry-gate {
  width: min(100%, 780px);
  margin: clamp(24px, 7vh, 72px) auto 0;
}

.entry-heading {
  max-width: 590px;
  margin-bottom: 28px;
}

.entry-heading h1,
.auth-gate h1,
.pairing-gate h1 {
  max-width: 18ch;
}

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

.role-choice-card {
  min-height: 248px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cbd7e9;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.role-choice-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 16px 34px rgba(25, 50, 92, .12);
  transform: translateY(-2px);
}

.role-choice-card:focus-visible {
  border-color: var(--blue-700);
}

.role-choice-kicker {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 850;
}

.role-choice-card strong {
  color: var(--navy-900);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.03em;
}

.role-choice-card > span:not(.role-choice-kicker):not(.role-choice-action) {
  color: var(--muted);
  line-height: 1.65;
}

.role-choice-action {
  margin-top: auto;
  color: var(--blue-700);
  font-weight: 850;
}

.auth-gate {
  width: min(100%, 520px);
  margin: clamp(24px, 7vh, 72px) auto 0;
}

.invitation-summary {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #cbdcf3;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--navy-900);
}

.invitation-summary span {
  color: var(--blue-700);
  font-size: 13px;
  line-height: 1.5;
}

.auth-gate input[readonly] {
  border-color: #cbd7e9;
  background: var(--surface-subtle);
  color: var(--navy-900);
}

.pairing-gate {
  width: min(100%, 560px);
  margin: clamp(24px, 7vh, 72px) auto 0;
}

.auth-gate .form-grid,
.pairing-gate .form-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.auth-actions,
.pairing-actions {
  margin-top: 4px;
}

.auth-actions > *,
.pairing-actions > * {
  flex: 1;
  justify-content: center;
}

@media (max-width: 700px) {
  .entry-gate {
    margin-top: 20px;
  }

  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .role-choice-card {
    min-height: 190px;
  }
}

@media (max-width: 430px) {
  .entry-mode .entry-admin-login {
    right: 12px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .entry-mode .student-header .brand {
    gap: 7px;
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .auth-actions,
  .pairing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-actions > *,
  .pairing-actions > * {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .spelling-actions {
    align-items: stretch;
  }

  .spelling-actions .button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .spelling-character {
    flex-basis: 29px;
    min-height: 46px;
    font-size: 24px;
  }
}
.read-aloud-step {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d5c2ed;
  border-radius: 14px;
  background: #f8f4fd;
}
.read-aloud-step strong { color: #42246d; }
.read-aloud-step p { margin: .5rem 0; }
.read-aloud-step .button-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.read-aloud-step [role="status"] { min-height: 1.5em; color: #533b76; }
.student-offering-list{display:grid;gap:12px;margin-top:18px}
.student-offering-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e4d8ef;border-radius:12px;padding:16px;background:#fbf9ff}
.student-offering-list article strong,.student-offering-list article small{display:block}
.student-offering-list article small{margin-top:5px;color:#726382}
.activity-player{max-width:850px;margin:24px auto;padding:28px}
.activity-player h1{margin:12px 0}.activity-player h2{margin:24px 0 16px}
.activity-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.activity-choices button,.activity-matching button{min-height:54px;border:1px solid #d8c8e9;border-radius:10px;background:#fff;color:#46305f;font:inherit;cursor:pointer;padding:10px 14px}
.activity-choices button:hover:not(:disabled),.activity-matching button:hover:not(:disabled){border-color:#4e2b7a;background:#f6effc}
.activity-choices button:disabled{opacity:.6;cursor:default}
.activity-read-progress{display:flex;gap:12px;margin:18px 0}.activity-read-progress span{border-radius:99px;background:#f0edf4;padding:9px 16px;color:#786989}.activity-read-progress span.done{background:#4e2b7a;color:#fff}
.activity-matching{display:grid;grid-template-columns:minmax(0,1fr) 20% minmax(0,1fr);margin:22px 0}.activity-matching>div{display:grid;gap:16px}.activity-matching button.selected,.activity-matching button.connected{background:#4e2b7a;color:#fff;border-color:#4e2b7a}.activity-matching svg{width:100%;height:100%;min-height:140px}.activity-matching path{fill:none;stroke:#8b43c1;stroke-width:3}
.activity-player :focus-visible,.student-offering-list :focus-visible{outline:3px solid #9c6ac7;outline-offset:3px}
@media(max-width:600px){.student-offering-list article{align-items:stretch;flex-direction:column}.activity-choices{grid-template-columns:1fr}.activity-player{margin:12px;padding:18px}.activity-matching{grid-template-columns:minmax(0,1fr) 13% minmax(0,1fr)}}
