:root {
  --navy: #07111f;
  --navy-2: #0b1730;
  --ink: #101828;
  --muted: #667085;
  --line: #e7ecf4;
  --white: #ffffff;
  --electric: #38bdf8;
  --blue: #4a90e2;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --pink: #fb7185;
  --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #4a90e2 34%, #8b5cf6 72%, #fb7185 100%);
  --shadow: 0 24px 60px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.account-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(320px, 46vh) 1fr;
}

.account-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: white;
  background:
    radial-gradient(circle at 75% 18%, rgba(56, 189, 248, .26), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(168, 85, 247, .20), transparent 34%),
    linear-gradient(135deg, #050b16, #07111f 48%, #101f3d);
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 64% 38%, black 0, transparent 72%);
  pointer-events: none;
}

.account-nav,
.account-hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.account-nav {
  min-height: 78px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(5,13,28,.72);
  backdrop-filter: blur(18px);
}

.account-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.account-wave {
  width: 62px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.account-wave span {
  width: 5px;
  border-radius: 99px;
  background: var(--brand-gradient);
  transform-origin: center;
  animation: accountWave 1.45s ease-in-out infinite;
}
.account-wave span:nth-child(1) { height: 14px; animation-delay: 0s; }
.account-wave span:nth-child(2) { height: 28px; animation-delay: .08s; }
.account-wave span:nth-child(3) { height: 42px; animation-delay: .16s; }
.account-wave span:nth-child(4) { height: 48px; animation-delay: .24s; }
.account-wave span:nth-child(5) { height: 34px; animation-delay: .32s; }
.account-wave span:nth-child(6) { height: 22px; animation-delay: .4s; }
.account-wave span:nth-child(7) { height: 16px; animation-delay: .48s; }

.account-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .95;
}
.account-wordmark-echo { color: white; }
.account-wordmark-aural {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link,
.secondary-button,
.primary-button,
.danger-button,
.small-button {
  border-radius: 999px;
  border: 0;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.nav-link:hover,
.secondary-button:hover,
.primary-button:hover,
.danger-button:hover,
.small-button:hover { transform: translateY(-1px); }

.nav-link {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  color: white;
  background: rgba(255,255,255,.06);
}

.account-hero-content {
  min-height: calc(46vh - 96px);
  padding: 58px 24px 52px;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 720px; }
.hero-kicker {
  margin: 0 0 13px;
  color: #8bdcff;
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero-title .gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.68;
}

.account-main {
  position: relative;
  z-index: 2;
  padding: 0 20px 52px;
}
.account-panel-wrap {
  width: min(1080px, 100%);
  margin: -48px auto 0;
}
.account-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}
.login-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
}
.card-eyebrow {
  margin: 0 0 9px;
  color: #7c3aed;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.045em;
}
.card-intro {
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.account-form { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; }
.field label {
  color: #344054;
  font-size: .9rem;
  font-weight: 800;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}
.field-help { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.primary-button {
  min-height: 52px;
  padding: 0 22px;
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 14px 30px rgba(74,144,226,.22);
}
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  color: #344054;
  background: #f2f4f7;
}
.danger-button {
  min-height: 42px;
  padding: 0 15px;
  color: #b42318;
  background: #fef3f2;
}
.small-button {
  min-height: 38px;
  padding: 0 14px;
  color: #344054;
  background: #f2f4f7;
}
button:disabled { cursor: wait; opacity: .62; transform: none !important; }

.form-message {
  min-height: 22px;
  margin: 2px 0 0;
  font-size: .9rem;
  font-weight: 750;
}
.form-message.error { color: #b42318; }
.form-message.success { color: #067647; }

.login-switch {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.login-switch a { color: #7c3aed; font-weight: 850; }

.dashboard-wrap {
  width: min(1180px, 100%);
  margin: -48px auto 0;
  display: grid;
  gap: 22px;
}
.dashboard-top {
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.dashboard-title { margin: 4px 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.05em; }
.dashboard-subtitle { margin: 0; color: var(--muted); line-height: 1.6; }
.dashboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.dashboard-section { padding: clamp(22px, 3vw, 32px); }
.section-title { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -.025em; }
.section-copy { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
}
.metric-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { display: block; margin-top: 7px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.04em; }
.seat-bar { height: 10px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #eef2f7; }
.seat-bar-fill { width: 0; height: 100%; border-radius: inherit; background: var(--brand-gradient); transition: width .28s ease; }

.student-create-form { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 10px; align-items: end; }
.student-list { display: grid; gap: 10px; margin-top: 20px; }
.student-row {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, .8fr) auto;
  align-items: center;
  gap: 12px;
  background: white;
}
.student-row.inactive { opacity: .58; background: #f8fafc; }
.student-name { font-weight: 900; }
.student-username { margin-top: 3px; color: var(--muted); font-size: .83rem; }
.student-status { font-size: .78rem; font-weight: 850; color: #067647; }
.student-row.inactive .student-status { color: #667085; }
.student-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.empty-state { padding: 28px; border: 1px dashed #cfd7e6; border-radius: 18px; color: var(--muted); text-align: center; }

.notice-card {
  margin-bottom: 22px;
  padding: 17px 19px;
  border: 1px solid rgba(139,92,246,.24);
  border-radius: 18px;
  color: #4c1d95;
  background: #f5f3ff;
  line-height: 1.55;
}

.dialog {
  width: min(500px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(16,24,40,.25);
}
.dialog::backdrop { background: rgba(7,17,31,.65); backdrop-filter: blur(4px); }
.dialog-inner { padding: 28px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.student-home-actions { display: grid; gap: 12px; margin-top: 24px; }
.student-home-actions .primary-button,
.student-home-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; }

@keyframes accountWave {
  0%, 100% { transform: scaleY(.62); opacity: .82; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

@media (max-width: 860px) {
  .account-shell { grid-template-rows: minmax(300px, auto) 1fr; }
  .account-nav { border-radius: 24px; }
  .account-hero-content { min-height: 280px; padding: 46px 10px 72px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-top { flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
  .student-create-form { grid-template-columns: 1fr 1fr; }
  .student-create-form .primary-button { grid-column: span 2; }
}

@media (max-width: 620px) {
  .account-hero { padding: 10px; }
  .account-nav { min-height: 68px; padding: 8px 12px; }
  .account-wave { width: 44px; transform: scale(.82); transform-origin: left center; }
  .account-logo { gap: 7px; }
  .account-wordmark { font-size: 1.55rem; }
  .nav-link { min-height: 38px; padding: 0 12px; font-size: .8rem; }
  .account-hero-content { padding: 38px 10px 72px; }
  .account-main { padding: 0 12px 34px; }
  .account-panel-wrap,
  .dashboard-wrap { margin-top: -40px; }
  .login-card,
  .dashboard-section,
  .dashboard-top { border-radius: 24px; }
  .student-create-form { grid-template-columns: 1fr; }
  .student-create-form .primary-button { grid-column: auto; }
  .student-row { grid-template-columns: 1fr; }
  .student-actions { justify-content: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}


/* Student progress dashboard */
.student-progress-shell { grid-template-rows: minmax(300px, 42vh) 1fr; }
.student-progress-hero-content { min-height: calc(42vh - 96px); padding-bottom: 74px; }
.student-progress-main { padding-bottom: 72px; }
.student-progress-wrap { width: min(1180px, 100%); margin: -54px auto 0; display: grid; gap: 22px; }
.student-identity-card { padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.student-dashboard-name { margin: 0 0 7px; font-size: clamp(1.65rem, 3.5vw, 2.45rem); letter-spacing: -.045em; }
.student-dashboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.student-dashboard-actions .primary-button, .student-dashboard-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; }
.progress-overview-card, .progress-list-card { padding: clamp(22px, 3.5vw, 34px); }
.progress-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.progress-heading-outside { padding: 8px 2px 0; }
.progress-level-pill, .module-progress-level { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; color: #6941c6; background: #f4f3ff; font-size: .76rem; font-weight: 900; }
.overall-progress-grid { margin-top: 24px; display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; }
.overall-score-orb { width: 176px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(from 210deg, #38bdf8, #8b5cf6, #fb7185, #38bdf8); box-shadow: inset 0 0 0 13px white, 0 16px 38px rgba(91, 76, 168, .18); }
.overall-score-orb strong { font-size: 2.65rem; line-height: 1; letter-spacing: -.06em; }
.overall-score-orb span { margin-top: 7px; color: #667085; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.overall-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.progress-metric { min-height: 96px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; display: grid; align-content: center; background: #fbfcfe; }
.progress-metric span { color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.progress-metric strong { margin-top: 8px; font-size: 1.45rem; letter-spacing: -.04em; }
.compiled-feedback-card { margin-top: 22px; padding: 20px 22px; border: 1px solid rgba(139,92,246,.22); border-radius: 20px; background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(139,92,246,.08), rgba(251,113,133,.06)); }
.compiled-feedback-card span, .module-feedback-block span, .module-next-step span { display: block; color: #7c3aed; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.compiled-feedback-card strong { display: block; margin-top: 8px; font-size: 1.05rem; line-height: 1.65; }
.module-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-progress-card { position: relative; overflow: hidden; padding: 24px; border-top: 4px solid #d0d5dd; }
.module-progress-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -90px; border-radius: 50%; background: rgba(139,92,246,.07); pointer-events: none; }
.module-progress-card.is-secure { border-top-color: #12b76a; }
.module-progress-card.is-strong { border-top-color: #38bdf8; }
.module-progress-card.is-developing { border-top-color: #8b5cf6; }
.module-progress-card.is-focus { border-top-color: #fb7185; }
.module-progress-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.module-progress-icon { width: 62px; height: 62px; border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; background: #fbfcfe; }
.module-progress-icon img { width: 42px; height: 42px; object-fit: contain; }
.module-group-label { margin: 18px 0 5px; color: #7c3aed; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.module-progress-card h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.module-score-line { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.module-score-line strong { font-size: 2.2rem; letter-spacing: -.06em; }
.module-score-line span { color: var(--muted); font-size: .83rem; font-weight: 750; }
.module-progress-bar { height: 9px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #eef2f7; }
.module-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.module-evidence-row { margin-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 750; }
.module-feedback-block, .module-next-step { margin-top: 18px; padding: 16px; border-radius: 16px; background: #f8fafc; }
.module-feedback-block p { margin: 7px 0 0; color: #344054; line-height: 1.55; }
.module-next-step { background: #f5f3ff; }
.module-next-step strong { display: block; margin-top: 7px; color: #4c1d95; line-height: 1.5; }
.module-card-footer { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.module-card-footer small { color: var(--muted); }
.module-card-footer a { color: #7c3aed; font-weight: 900; }
.progress-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.progress-list { display: grid; gap: 11px; margin-top: 20px; }
.progress-list-row { padding: 15px 16px; border: 1px solid var(--line); border-radius: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; background: #fbfcfe; }
.progress-list-row strong { display: block; }
.progress-list-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.progress-list-row p { grid-column: 1 / -1; margin: 2px 0 0; color: #475467; font-size: .88rem; line-height: 1.5; }
.round-score-badge, .question-mark { align-self: start; min-width: 72px; padding: 7px 10px; border-radius: 999px; text-align: center; font-size: .76rem; font-weight: 900; background: #f2f4f7; }
.round-score-badge.is-secure, .question-mark.is-full { color: #067647; background: #ecfdf3; }
.round-score-badge.is-strong { color: #026aa2; background: #f0f9ff; }
.round-score-badge.is-developing { color: #6941c6; background: #f4f3ff; }
.round-score-badge.is-focus, .question-mark.is-review { color: #b42318; background: #fef3f2; }
.progress-empty-state { padding: 24px; border: 1px dashed #cfd7e6; border-radius: 17px; color: var(--muted); line-height: 1.55; text-align: center; }
.progress-status { min-height: 22px; margin: 0; color: var(--muted); text-align: center; font-weight: 750; }

@media (max-width: 860px) {
  .student-identity-card { align-items: flex-start; flex-direction: column; }
  .student-dashboard-actions { justify-content: flex-start; }
  .overall-progress-grid { grid-template-columns: 1fr; }
  .overall-score-orb { margin: 0 auto; }
  .overall-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-progress-grid, .progress-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .student-progress-wrap { margin-top: -34px; }
  .student-dashboard-actions { width: 100%; display: grid; }
  .overall-metrics { grid-template-columns: 1fr 1fr; }
  .progress-section-heading { align-items: flex-start; }
  .module-score-line { align-items: flex-start; flex-direction: column; }
  .progress-list-row { grid-template-columns: 1fr; }
  .round-score-badge, .question-mark { justify-self: start; }
}


/* Teacher class and individual progress */
.class-progress-section { padding: clamp(24px, 3.5vw, 36px); }
.class-progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.class-summary-grid { margin-top: 24px; display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: stretch; }
.class-score-panel { min-height: 170px; padding: 24px; border-radius: 24px; display: grid; align-content: center; justify-items: center; text-align: center; background: linear-gradient(145deg, #071a35, #102f59); color: white; }
.class-level-pill { min-height: 30px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; color: #ddd6fe; background: rgba(255,255,255,.10); font-size: .72rem; font-weight: 900; }
.class-score-panel strong { margin-top: 12px; font-size: 3rem; letter-spacing: -.07em; }
.class-score-panel small { color: rgba(255,255,255,.72); font-weight: 750; }
.class-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.class-feedback-card { margin-top: 20px; }
.class-module-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.class-module-card { padding: 18px; border: 1px solid var(--line); border-top: 4px solid #d0d5dd; border-radius: 20px; background: #fff; }
.class-module-card.is-secure { border-top-color: #12b76a; }
.class-module-card.is-strong { border-top-color: #38bdf8; }
.class-module-card.is-developing { border-top-color: #8b5cf6; }
.class-module-card.is-focus { border-top-color: #fb7185; }
.class-module-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.class-module-icon { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: #fbfcfe; }
.class-module-icon img { width: 34px; height: 34px; object-fit: contain; }
.class-module-card > p { margin: 14px 0 4px; color: #7c3aed; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.class-module-card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.03em; }
.class-module-score { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.class-module-score strong { font-size: 1.8rem; letter-spacing: -.05em; }
.class-module-score span, .class-module-card small { color: var(--muted); font-size: .75rem; font-weight: 750; }
.class-module-card small { display: block; margin-top: 8px; }
.class-module-feedback { margin-top: 12px; color: #475467; font-size: .82rem; line-height: 1.45; }
.student-summary-button { min-width: 0; padding: 0; border: 0; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.student-summary-button:hover .student-name { color: #7c3aed; }
.student-progress-summary { width: fit-content; margin-top: 7px; padding: 5px 9px; border-radius: 999px; display: block; color: #667085; background: #f2f4f7; font-size: .72rem; font-weight: 850; }
.student-progress-summary.is-secure { color: #067647; background: #ecfdf3; }
.student-progress-summary.is-strong { color: #026aa2; background: #f0f9ff; }
.student-progress-summary.is-developing { color: #6941c6; background: #f4f3ff; }
.student-progress-summary.is-focus { color: #b42318; background: #fef3f2; }
.student-progress-dialog { width: min(1120px, calc(100vw - 30px)); max-height: calc(100vh - 30px); }
.student-progress-dialog-inner { max-height: calc(100vh - 30px); overflow: auto; }
.student-progress-dialog-heading { position: sticky; top: -28px; z-index: 3; margin: -28px -28px 22px; padding: 26px 28px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.dialog-close-button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: #344054; background: white; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.teacher-student-overview { display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.teacher-student-score { min-height: 160px; padding: 22px; border-radius: 22px; display: grid; align-content: center; justify-items: center; text-align: center; background: #f8fafc; border-top: 4px solid #d0d5dd; }
.teacher-student-score.is-secure { border-top-color: #12b76a; }
.teacher-student-score.is-strong { border-top-color: #38bdf8; }
.teacher-student-score.is-developing { border-top-color: #8b5cf6; }
.teacher-student-score.is-focus { border-top-color: #fb7185; }
.teacher-student-score span { color: #7c3aed; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.teacher-student-score strong { margin-top: 10px; font-size: 2.8rem; letter-spacing: -.06em; }
.teacher-student-score small { color: var(--muted); font-weight: 750; }
.teacher-student-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.teacher-student-module-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.teacher-student-module { padding: 18px; border: 1px solid var(--line); border-top: 4px solid #d0d5dd; border-radius: 19px; background: #fbfcfe; }
.teacher-student-module.is-secure { border-top-color: #12b76a; }
.teacher-student-module.is-strong { border-top-color: #38bdf8; }
.teacher-student-module.is-developing { border-top-color: #8b5cf6; }
.teacher-student-module.is-focus { border-top-color: #fb7185; }
.teacher-student-module > div { display: flex; align-items: center; justify-content: space-between; }
.teacher-student-module img { width: 38px; height: 38px; object-fit: contain; }
.teacher-student-module > div span { color: #6941c6; font-size: .72rem; font-weight: 900; }
.teacher-student-module h3 { margin: 12px 0 5px; }
.teacher-student-module > strong { font-size: 1.7rem; }
.teacher-student-module small { margin-left: 8px; color: var(--muted); }
.teacher-student-module p { color: #475467; line-height: 1.5; }
.teacher-student-module b { display: block; color: #7c3aed; font-size: .7rem; text-transform: uppercase; }
.teacher-student-module em { display: block; margin-top: 6px; color: #4c1d95; font-style: normal; line-height: 1.45; }
.teacher-progress-detail-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.teacher-progress-detail-grid h3 { margin: 0; font-size: 1.2rem; }

@media (max-width: 1050px) {
  .class-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .class-progress-heading { flex-direction: column; }
  .class-summary-grid, .teacher-student-overview { grid-template-columns: 1fr; }
  .class-score-panel { min-height: 145px; }
  .teacher-student-module-grid, .teacher-progress-detail-grid { grid-template-columns: 1fr; }
  .teacher-student-metrics { grid-template-columns: 1fr 1fr; }
  .student-progress-dialog-heading { top: -28px; }
}

@media (max-width: 520px) {
  .class-module-grid, .class-metrics-grid, .teacher-student-metrics { grid-template-columns: 1fr; }
  .student-progress-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }
  .student-progress-dialog-inner { max-height: calc(100vh - 14px); padding: 20px; }
  .student-progress-dialog-heading { margin: -20px -20px 18px; padding: 20px; top: -20px; }
}

/* ========================================================================
   EchoAural progress dashboards v2
   Practice · Live Quizzes · Homework
   ======================================================================== */

.progress-dashboard-v2 {
  background:
    radial-gradient(circle at 12% 14%, rgba(56, 189, 248, .08), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, .08), transparent 28%),
    #eef2f7;
}

.progress-dashboard-v2 .dashboard-shell-v2 {
  grid-template-rows: auto 1fr;
}

.progress-dashboard-v2 .dashboard-hero-v2 {
  min-height: 360px;
  padding-bottom: 78px;
}

.progress-dashboard-v2 .dashboard-hero-content-v2 {
  min-height: 0;
  padding: 42px 24px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: 42px;
}

.progress-dashboard-v2 .dashboard-hero-copy-v2 {
  min-width: 0;
}

.progress-dashboard-v2 .dashboard-hero-title-v2 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.progress-dashboard-v2 .dashboard-account-line {
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

.progress-dashboard-v2 .dashboard-account-line strong {
  color: #fff;
}

.dashboard-nav-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.hero-summary-card-v2 {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  color: #fff;
  background: rgba(6, 18, 36, .62);
  box-shadow: 0 28px 68px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.hero-summary-score-v2 {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "level percentage"
    "marks percentage";
  align-items: end;
  gap: 2px 18px;
}

.hero-summary-score-v2 > span {
  grid-area: level;
  color: #b9eaff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-summary-score-v2 > strong {
  grid-area: percentage;
  font-size: clamp(3.1rem, 6vw, 5rem);
  line-height: .82;
  letter-spacing: -.08em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary-score-v2 > small {
  grid-area: marks;
  color: rgba(255,255,255,.65);
  font-weight: 750;
}

.hero-summary-metrics-v2 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.teacher-hero-metrics-v2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-summary-metrics-v2 > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.hero-summary-metrics-v2 span,
.hero-summary-feedback-v2 > span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-summary-metrics-v2 strong {
  display: block;
  margin-top: 5px;
  font-size: 1.25rem;
  letter-spacing: -.04em;
}

.hero-summary-feedback-v2 {
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 17px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.055);
}

.hero-summary-feedback-v2 p {
  margin: 5px 0 0;
  font-size: .84rem;
  line-height: 1.48;
}

.progress-dashboard-v2 .dashboard-main-v2 {
  padding: 0 18px 56px;
}

.dashboard-stage-v2 {
  width: min(1500px, 100%);
  margin: -50px auto 0;
  display: grid;
  grid-template-columns: minmax(255px, .82fr) minmax(440px, 1.42fr) minmax(255px, .82fr);
  gap: 18px;
  align-items: start;
}

.ea-dashboard-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(210, 220, 234, .95);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 58px rgba(15,23,42,.12);
}

.quiz-panel-v2 {
  padding: 26px;
  border-color: rgba(139,92,246,.24);
  box-shadow: 0 28px 72px rgba(54, 41, 115, .16);
}

.homework-panel-v2 {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,250,252,.98));
}

.ea-panel-heading-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ea-panel-heading-wave {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 11px;
  background: #f3f5f9;
}

.ea-panel-heading-wave.dashboard-panel-icon-v5 {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 68% 22%, rgba(56, 189, 248, .24), transparent 38%),
    radial-gradient(circle at 22% 88%, rgba(168, 85, 247, .2), transparent 42%),
    linear-gradient(145deg, rgba(7, 17, 31, .98), rgba(13, 30, 60, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 14px 30px rgba(0, 0, 0, .12);
}

.ea-panel-heading-wave span:not(.dashboard-line-icon-v5) {
  width: 3px;
  border-radius: 99px;
  background: var(--brand-gradient);
}

.ea-panel-heading-wave.dashboard-panel-icon-v5 span:not(.dashboard-line-icon-v5) {
  background: #fff;
}
.ea-panel-heading-wave span:not(.dashboard-line-icon-v5):nth-child(1) { height: 11px; }
.ea-panel-heading-wave span:not(.dashboard-line-icon-v5):nth-child(2) { height: 22px; }
.ea-panel-heading-wave span:not(.dashboard-line-icon-v5):nth-child(3) { height: 15px; }

.ea-panel-heading-wave .dashboard-line-icon-v5 {
  width: 23px;
  height: 23px;
  display: block;
  background: #fff;
  -webkit-mask: var(--ea-icon) center / contain no-repeat;
  mask: var(--ea-icon) center / contain no-repeat;
}

.ea-panel-heading-v2 p {
  margin: 0 0 2px;
  color: #7c3aed;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ea-panel-heading-v2 h2,
.ea-panel-heading-v2 h3 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -.04em;
}

.ea-panel-heading-centre-v2 h2 {
  font-size: 1.62rem;
}

.ea-panel-intro-v2 {
  margin: 12px 0 17px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.52;
}

.category-content-v2 {
  display: grid;
  gap: 14px;
}

.category-score-card-v2 {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid #d0d5dd;
  border-radius: 20px;
  background: #fbfcfe;
}
.category-score-card-v2.is-secure { border-top-color: #12b76a; }
.category-score-card-v2.is-strong { border-top-color: #38bdf8; }
.category-score-card-v2.is-developing { border-top-color: #8b5cf6; }
.category-score-card-v2.is-focus { border-top-color: #fb7185; }

.category-score-main-v2 {
  padding: 16px 17px 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "level score"
    "marks score";
  align-items: end;
}

.category-score-main-v2 > span {
  grid-area: level;
  color: #7c3aed;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-score-main-v2 > strong {
  grid-area: score;
  font-size: 2.35rem;
  line-height: .9;
  letter-spacing: -.07em;
}

.category-score-main-v2 > small {
  grid-area: marks;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
}

.category-score-metrics-v2 {
  padding: 11px 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.category-score-metrics-v2 > div {
  min-width: 0;
  padding: 8px 7px;
  border-radius: 12px;
  background: #f8fafc;
}

.category-score-metrics-v2 span {
  display: block;
  color: var(--muted);
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.category-score-metrics-v2 strong {
  display: block;
  margin-top: 4px;
  font-size: .96rem;
}

.category-feedback-v2 {
  padding: 14px 15px;
  border: 1px solid rgba(139,92,246,.17);
  border-radius: 17px;
  background: linear-gradient(145deg, #faf9ff, #f7fbff);
}

.category-feedback-v2 > span,
.category-block-heading-v2 > span {
  color: #7c3aed;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.category-feedback-v2 p {
  margin: 5px 0 0;
  color: #475467;
  font-size: .82rem;
  line-height: 1.5;
}

.category-block-v2 {
  min-width: 0;
}

.category-block-heading-v2 {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.category-block-heading-v2 small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.category-module-list-v2,
.class-module-list-v2,
.individual-module-list-v2,
.category-history-list-v2 {
  display: grid;
  gap: 8px;
}

.category-module-row-v2,
.class-module-row-v2,
.individual-module-row-v2 {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid #d0d5dd;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  background: #fff;
}
.category-module-row-v2.is-secure,
.class-module-row-v2.is-secure,
.individual-module-row-v2.is-secure { border-left-color: #12b76a; }
.category-module-row-v2.is-strong,
.class-module-row-v2.is-strong,
.individual-module-row-v2.is-strong { border-left-color: #38bdf8; }
.category-module-row-v2.is-developing,
.class-module-row-v2.is-developing,
.individual-module-row-v2.is-developing { border-left-color: #8b5cf6; }
.category-module-row-v2.is-focus,
.class-module-row-v2.is-focus,
.individual-module-row-v2.is-focus { border-left-color: #fb7185; }

.category-module-icon-v2 {
  width: 38px;
  height: 38px;
  grid-row: 1 / span 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
}

.category-module-icon-v2 img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.category-module-copy-v2,
.class-module-copy-v2 {
  min-width: 0;
}

.category-module-copy-v2 > span,
.class-module-copy-v2 > span {
  display: block;
  overflow: hidden;
  font-size: .84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-module-copy-v2 small,
.class-module-copy-v2 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .66rem;
}

.category-module-row-v2 > strong,
.class-module-row-v2 > strong {
  font-size: 1.05rem;
  letter-spacing: -.04em;
}

.category-module-bar-v2 {
  grid-column: 2 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f5;
}

.category-module-bar-v2 i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
}

.category-module-row-v2 > p,
.class-module-row-v2 > p,
.individual-module-row-v2 > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #667085;
  font-size: .71rem;
  line-height: 1.42;
}

.category-module-list-v2.is-compact .category-module-row-v2 > p,
.class-module-list-v2.is-compact .class-module-row-v2 > p {
  display: none;
}

.category-history-row-v2 {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  background: #fbfcfe;
}

.category-history-row-v2 strong {
  display: block;
  font-size: .8rem;
}

.category-history-row-v2 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.4;
}

.category-history-row-v2 p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #475467;
  font-size: .72rem;
  line-height: 1.43;
}

.category-details-v2 {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.category-details-v2 summary {
  color: #344054;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

.category-details-v2[open] summary {
  margin-bottom: 9px;
}

.category-empty-v2 {
  padding: 20px 14px;
  border: 1px dashed #cfd7e6;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.category-empty-v2 p {
  margin: 9px 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

.category-empty-wave-v2 {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.category-empty-wave-v2 i { width: 3px; border-radius: 99px; background: var(--brand-gradient); }
.category-empty-wave-v2 i:nth-child(1) { height: 9px; }
.category-empty-wave-v2 i:nth-child(2) { height: 20px; }
.category-empty-wave-v2 i:nth-child(3) { height: 13px; }

.panel-action-v2,
.full-width-button-v2 {
  width: 100%;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.homework-placeholder-v2 {
  min-height: 330px;
  padding: 34px 18px;
  border: 1px dashed #cfd7e6;
  border-radius: 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(150deg, #fbfcfe, #f8f7ff);
}

.homework-placeholder-v2 h3 {
  margin: 4px 0 7px;
  font-size: 1.16rem;
  letter-spacing: -.03em;
}

.homework-placeholder-v2 > p:last-child {
  max-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.homework-icon-v2 {
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border: 1px solid rgba(139,92,246,.16);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(139,92,246,.1);
}

.homework-icon-v2 span {
  width: 5px;
  border-radius: 99px;
  background: var(--brand-gradient);
}
.homework-icon-v2 span:nth-child(1) { height: 22px; }
.homework-icon-v2 span:nth-child(2) { height: 44px; }
.homework-icon-v2 span:nth-child(3) { height: 30px; }

.dashboard-status-v2 {
  width: min(1500px, 100%);
  margin: 14px auto 0;
}

/* Teacher roster and account management */
.roster-section-v2 {
  width: min(1500px, 100%);
  margin: 18px auto 0;
  padding: 25px;
  border-radius: 28px;
}

.roster-heading-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.roster-account-summary-v2 {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 16px;
  background: #f5f3ff;
  text-align: right;
}

.roster-account-summary-v2 span {
  display: block;
  color: #7c3aed;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.roster-account-summary-v2 strong {
  display: block;
  margin-top: 3px;
  font-size: .88rem;
}

.roster-management-grid-v2 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-management-panel-v2 {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcfe;
}

.compact-account-metrics-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-account-metrics-v2 > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.compact-account-metrics-v2 span {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-account-metrics-v2 strong {
  display: block;
  margin-top: 4px;
  font-size: .92rem;
}

.student-create-form-v2 {
  grid-template-columns: minmax(160px, 1fr) minmax(140px, .8fr) 120px auto;
}

.student-list-v2 {
  max-height: 590px;
  overflow: auto;
  padding-right: 3px;
}

.student-row-v2 {
  grid-template-columns: minmax(130px, .75fr) minmax(330px, 1.35fr) 90px auto;
}

.student-category-results-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.student-category-results-v2 > div {
  min-width: 0;
}

.student-category-results-v2 > div > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.student-category-results-v2 .student-progress-summary {
  margin-top: 0;
  white-space: nowrap;
}

/* Individual progress modal */
.individual-overall-strip-v2 {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 160px minmax(260px, .8fr) minmax(300px, 1.2fr);
  gap: 14px;
  align-items: stretch;
  background: #fbfcfe;
}

.individual-overall-score-v2 {
  padding: 15px;
  border-top: 4px solid #d0d5dd;
  border-radius: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #fff;
}
.individual-overall-score-v2.is-secure { border-top-color: #12b76a; }
.individual-overall-score-v2.is-strong { border-top-color: #38bdf8; }
.individual-overall-score-v2.is-developing { border-top-color: #8b5cf6; }
.individual-overall-score-v2.is-focus { border-top-color: #fb7185; }
.individual-overall-score-v2 span { color: #7c3aed; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.individual-overall-score-v2 strong { margin-top: 4px; font-size: 2.25rem; letter-spacing: -.07em; }
.individual-overall-score-v2 small { color: var(--muted); font-size: .68rem; }

.individual-overall-metrics-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.individual-overall-metrics-v2 > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  align-content: center;
  background: #fff;
}
.individual-overall-metrics-v2 span { color: var(--muted); font-size: .6rem; font-weight: 850; text-transform: uppercase; }
.individual-overall-metrics-v2 strong { margin-top: 4px; font-size: 1.18rem; }

.individual-overall-strip-v2 > p {
  margin: 0;
  padding: 15px;
  border-radius: 15px;
  color: #475467;
  background: #fff;
  font-size: .82rem;
  line-height: 1.52;
}

.individual-category-grid-v2 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(390px, 1.42fr) minmax(230px, .82fr);
  gap: 14px;
  align-items: start;
}

.individual-category-panel-v2 {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fbfcfe;
}

.individual-category-panel-v2.is-featured {
  border-color: rgba(139,92,246,.22);
  background: #fff;
  box-shadow: 0 18px 45px rgba(76,29,149,.09);
}

.individual-score-v2 {
  margin-top: 14px;
  padding: 13px;
  border-top: 4px solid #d0d5dd;
  border-radius: 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.individual-score-v2.is-secure { border-top-color: #12b76a; }
.individual-score-v2.is-strong { border-top-color: #38bdf8; }
.individual-score-v2.is-developing { border-top-color: #8b5cf6; }
.individual-score-v2.is-focus { border-top-color: #fb7185; }
.individual-score-v2 strong { font-size: 1.9rem; letter-spacing: -.06em; }
.individual-score-v2 span { color: var(--muted); font-size: .68rem; }

.individual-module-row-v2 {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin-top: 8px;
}
.individual-module-row-v2 img { width: 28px; height: 28px; object-fit: contain; }
.individual-module-row-v2 > div strong { display: block; font-size: .78rem; }
.individual-module-row-v2 > div small { color: var(--muted); font-size: .62rem; }
.individual-module-level-v2 {
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #6d28d9;
  background: rgba(139, 92, 246, .08);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.individual-module-row-v2 > span { font-weight: 900; }

.compact-homework-v2 {
  min-height: 260px;
  margin-top: 14px;
}

/* Responsive dashboard behaviour */
@media (max-width: 1180px) {
  .progress-dashboard-v2 .dashboard-hero-content-v2 {
    grid-template-columns: 1fr minmax(330px, .85fr);
  }
  .dashboard-stage-v2,
  .individual-category-grid-v2 {
    grid-template-columns: minmax(230px, .9fr) minmax(380px, 1.3fr);
  }
  .dashboard-stage-v2 > .homework-panel-v2,
  .individual-category-grid-v2 > :last-child {
    grid-column: 1 / -1;
  }
  .homework-placeholder-v2,
  .compact-homework-v2 {
    min-height: 210px;
  }
  .student-row-v2 {
    grid-template-columns: minmax(130px, .7fr) minmax(280px, 1.3fr) auto;
  }
  .student-row-v2 .student-status {
    display: none;
  }
}

@media (max-width: 900px) {
  .progress-dashboard-v2 .dashboard-hero-v2 {
    padding-bottom: 62px;
  }
  .progress-dashboard-v2 .dashboard-hero-content-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-summary-card-v2 {
    width: 100%;
  }
  .dashboard-stage-v2,
  .individual-category-grid-v2 {
    grid-template-columns: 1fr;
  }
  .dashboard-stage-v2 > .homework-panel-v2,
  .individual-category-grid-v2 > :last-child {
    grid-column: auto;
  }
  .quiz-panel-v2 {
    order: -1;
  }
  .roster-management-grid-v2,
  .individual-overall-strip-v2 {
    grid-template-columns: 1fr;
  }
  .student-row-v2 {
    grid-template-columns: minmax(130px, .7fr) minmax(250px, 1.3fr);
  }
  .student-row-v2 .student-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .progress-dashboard-v2 .dashboard-hero-v2 {
    min-height: 0;
    padding: 12px 12px 54px;
  }
  .progress-dashboard-v2 .account-nav {
    min-height: 64px;
    padding: 7px 11px;
  }
  .progress-dashboard-v2 .account-wave {
    width: 44px;
    height: 38px;
  }
  .progress-dashboard-v2 .account-wordmark {
    font-size: 1.55rem;
  }
  .dashboard-nav-actions .nav-link:first-child {
    display: none;
  }
  .progress-dashboard-v2 .dashboard-hero-content-v2 {
    padding: 34px 10px 8px;
  }
  .progress-dashboard-v2 .dashboard-hero-title-v2 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
  }
  .hero-summary-score-v2 {
    grid-template-columns: 1fr auto;
  }
  .hero-summary-metrics-v2,
  .teacher-hero-metrics-v2,
  .category-score-metrics-v2,
  .class-category-metrics-v2,
  .individual-overall-metrics-v2,
  .compact-account-metrics-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main-v2 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .ea-dashboard-panel,
  .quiz-panel-v2,
  .roster-section-v2 {
    padding: 17px;
    border-radius: 22px;
  }
  .roster-heading-v2 {
    flex-direction: column;
  }
  .roster-account-summary-v2 {
    width: 100%;
    text-align: left;
  }
  .student-create-form-v2 {
    grid-template-columns: 1fr;
  }
  .student-row-v2 {
    grid-template-columns: 1fr;
  }
  .student-category-results-v2 {
    grid-template-columns: 1fr 1fr;
  }
  .student-category-results-v2 > div:first-child {
    grid-column: 1 / -1;
  }
  .student-row-v2 .student-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
  .student-progress-dialog {
    width: calc(100vw - 12px);
  }
  .individual-category-panel-v2 {
    padding: 14px;
  }
}

/* ========================================================================
   EchoAural teacher dashboard v3
   One-screen console layout: accounts · learning · class feedback
   ======================================================================== */

@media (min-width: 1181px) {
  html:has(body.teacher-dashboard-v3),
  body.teacher-dashboard-v3 {
    height: 100%;
    overflow: hidden;
  }
}

.teacher-dashboard-v3 {
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, .08), transparent 25%),
    radial-gradient(circle at 88% 16%, rgba(139, 92, 246, .08), transparent 28%),
    #eef2f7;
}

.teacher-dashboard-shell-v3 {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr);
}

.teacher-dashboard-header-v3 {
  position: relative;
  z-index: 5;
  padding: 10px 14px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(56, 189, 248, .22), transparent 31%),
    radial-gradient(circle at 18% 85%, rgba(168, 85, 247, .16), transparent 34%),
    linear-gradient(135deg, #050b16, #07111f 48%, #101f3d);
}

.teacher-dashboard-header-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 65% 35%, black 0, transparent 75%);
}

.teacher-dashboard-topbar-v3 {
  position: relative;
  z-index: 1;
  width: min(1580px, 100%);
  height: 72px;
  margin: 0 auto;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: rgba(5,13,28,.72);
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.teacher-dashboard-logo-v3 .account-wave {
  width: 48px;
  height: 40px;
  gap: 3px;
}

.teacher-dashboard-logo-v3 .account-wave span { width: 4px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(1) { height: 10px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(2) { height: 21px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(3) { height: 31px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(4) { height: 38px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(5) { height: 27px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(6) { height: 18px; }
.teacher-dashboard-logo-v3 .account-wave span:nth-child(7) { height: 11px; }
.teacher-dashboard-logo-v3 .account-wordmark { font-size: clamp(1.55rem, 2vw, 2rem); }

.teacher-welcome-v3 {
  min-width: 0;
  text-align: center;
}

.teacher-welcome-v3 p {
  margin: 0 0 1px;
  color: #8bdcff;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.teacher-welcome-v3 h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-welcome-v3 .gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.teacher-welcome-v3 > span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.58);
  font-size: .68rem;
}

.teacher-welcome-v3 > span strong { color: rgba(255,255,255,.9); }

.teacher-dashboard-actions-v3 .nav-link {
  min-height: 36px;
  padding: 0 13px;
  font-size: .77rem;
}

.teacher-dashboard-main-v3 {
  min-height: 0;
  padding: 10px 14px 14px;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, .055), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(139, 92, 246, .055), transparent 29%),
    #eef2f7;
}

.teacher-console-grid-v3 {
  width: min(1580px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(275px, .78fr) minmax(570px, 1.72fr) minmax(285px, .82fr);
  gap: 12px;
  align-items: stretch;
}

.teacher-console-v3 {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(210, 220, 234, .98);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.965);
  box-shadow: 0 22px 54px rgba(15,23,42,.11);
}

.learning-console-v3 {
  border-color: rgba(139,92,246,.22);
  box-shadow: 0 25px 62px rgba(54,41,115,.14);
}

.teacher-console-heading-v3 {
  flex: 0 0 auto;
  min-height: 45px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-console-heading-v3 .card-eyebrow {
  margin-bottom: 3px;
  font-size: .62rem;
}

.teacher-console-heading-v3 h2 {
  margin: 0;
  font-size: clamp(1.14rem, 1.45vw, 1.42rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.console-icon-button-v3,
.compact-primary-v3 {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
  white-space: nowrap;
}

.console-icon-button-v3 {
  border: 1px solid var(--line);
  color: #4c1d95;
  background: #f7f5ff;
}

.teacher-account-summary-v3 {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(139,92,246,.15);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(145deg, #faf9ff, #f8fbff);
}

.teacher-account-summary-v3 > div > span {
  display: block;
  color: #7c3aed;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teacher-account-summary-v3 > div > strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.licence-pill-v3 {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #067647;
  background: #ecfdf3;
  font-size: .61rem;
  font-weight: 900;
}

.teacher-account-metrics-v3 {
  margin-top: 9px;
  gap: 6px;
}

.teacher-account-metrics-v3 > div {
  padding: 7px 8px;
  border-radius: 11px;
}

.teacher-account-metrics-v3 span { font-size: .51rem; }
.teacher-account-metrics-v3 strong { margin-top: 2px; font-size: .76rem; }

.student-accounts-console-v3 .seat-bar {
  height: 7px;
  margin-top: 8px;
}

.compact-notice-v3 {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: .7rem;
  line-height: 1.35;
}

.student-create-form-v3 {
  flex: 0 0 auto;
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 7px;
  align-items: end;
}

.student-create-form-v3 .student-name-field-v3 { grid-column: 1 / -1; }
.student-create-form-v3 .field { gap: 4px; }
.student-create-form-v3 .field label { font-size: .67rem; }
.student-create-form-v3 .field input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: .74rem;
}
.student-create-form-v3 .primary-button {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 0 12px;
  font-size: .72rem;
}

.compact-form-message-v3 {
  flex: 0 0 auto;
  min-height: 14px;
  margin: 4px 0 0;
  font-size: .66rem;
}

.student-list-v3 {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-top: 6px;
  overflow: auto;
  padding-right: 3px;
  align-content: start;
  scrollbar-width: thin;
}

.student-list-v3 .student-row-v2 {
  padding: 9px;
  border-radius: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
}

.student-list-v3 .student-summary-button {
  min-width: 0;
  grid-column: 1;
}

.student-list-v3 .student-name {
  display: block;
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-list-v3 .student-username {
  display: block;
  margin-top: 1px;
  font-size: .62rem;
}

.student-list-v3 .student-category-results-v2 {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.student-list-v3 .student-category-results-v2 > div > span:first-child {
  margin-bottom: 2px;
  font-size: .48rem;
}

.student-list-v3 .student-progress-summary {
  max-width: 100%;
  padding: 3px 5px;
  overflow: hidden;
  font-size: .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-list-v3 .student-status {
  grid-column: 2;
  grid-row: 1;
  font-size: .56rem;
  white-space: nowrap;
}

.student-list-v3 .student-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.student-list-v3 .student-actions button {
  min-height: 26px;
  padding: 0 5px;
  font-size: .54rem;
  white-space: nowrap;
}

.learning-console-heading-v3 { align-items: center; }

.compact-dashboard-status-v3 {
  flex: 0 0 auto;
  min-height: 0;
  margin: 4px 0 0;
  font-size: .65rem;
}

.learning-console-scroll-v3,
.class-feedback-scroll-v3 {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.learning-console-scroll-v3 {
  padding: 10px 3px 2px 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.learning-category-v3 {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
}

.quiz-category-v3 {
  border-color: rgba(139,92,246,.2);
  background: #fff;
  box-shadow: 0 14px 32px rgba(76,29,149,.07);
}

.learning-category-v3 .ea-panel-heading-v2 { gap: 9px; }
.learning-category-v3 .ea-panel-heading-wave {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}
.learning-category-v3 .ea-panel-heading-v2 p { font-size: .55rem; }
.learning-category-v3 .ea-panel-heading-v2 h2 { font-size: 1.03rem; }

.learning-category-content-v3 {
  margin-top: 9px;
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(220px, 1.28fr);
  gap: 8px;
  align-items: stretch;
}

.learning-category-content-v3 > .category-score-card-v2,
.learning-category-content-v3 > .category-feedback-v2 {
  min-width: 0;
}

.learning-category-content-v3 > .category-block-v2 {
  grid-column: 1 / -1;
}

.learning-category-content-v3 .category-score-main-v2 {
  padding: 10px 11px 8px;
}
.learning-category-content-v3 .category-score-main-v2 > strong { font-size: 1.82rem; }
.learning-category-content-v3 .category-score-main-v2 > span { font-size: .55rem; }
.learning-category-content-v3 .category-score-main-v2 > small { font-size: .61rem; }

.learning-category-content-v3 .category-score-metrics-v2 {
  padding: 7px;
  gap: 4px;
}
.learning-category-content-v3 .category-score-metrics-v2 > div {
  padding: 5px;
  border-radius: 9px;
}
.learning-category-content-v3 .category-score-metrics-v2 span { font-size: .47rem; }
.learning-category-content-v3 .category-score-metrics-v2 strong { margin-top: 2px; font-size: .72rem; }

.learning-category-content-v3 .category-feedback-v2 {
  padding: 10px 11px;
  border-radius: 13px;
}
.learning-category-content-v3 .category-feedback-v2 > span { font-size: .54rem; }
.learning-category-content-v3 .category-feedback-v2 p {
  margin-top: 3px;
  font-size: .7rem;
  line-height: 1.35;
}

.learning-category-content-v3 .category-block-v2 { margin-top: 0; }
.learning-category-content-v3 .category-block-heading-v2 { margin-bottom: 5px; }
.learning-category-content-v3 .category-block-heading-v2 > span { font-size: .54rem; }
.learning-category-content-v3 .category-block-heading-v2 > small { font-size: .55rem; }

.learning-category-content-v3 .class-module-list-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.learning-category-content-v3 .class-module-row-v2 {
  min-width: 0;
  padding: 7px;
  border-radius: 11px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 5px;
}
.learning-category-content-v3 .category-module-icon-v2 {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}
.learning-category-content-v3 .category-module-icon-v2 img { width: 19px; height: 19px; }
.learning-category-content-v3 .class-module-copy-v2 > span { font-size: .64rem; }
.learning-category-content-v3 .class-module-copy-v2 > small { font-size: .49rem; }
.learning-category-content-v3 .class-module-row-v2 > strong { font-size: .72rem; }
.learning-category-content-v3 .class-module-row-v2 > p { display: none; }
.learning-category-content-v3 .category-module-bar-v2 { grid-column: 2 / -1; }

.homework-category-v3 { padding-bottom: 11px; }
.homework-placeholder-v3 {
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px dashed #cfd7e6;
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  background: linear-gradient(145deg, #fbfcfe, #f8f7ff);
}
.homework-status-pill-v3 {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7c3aed;
  background: #f5f3ff;
  font-size: .55rem;
  font-weight: 900;
  text-transform: uppercase;
}
.homework-placeholder-v3 strong { display: block; font-size: .72rem; }
.homework-placeholder-v3 p { margin: 2px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.32; }

.class-feedback-scroll-v3 {
  padding: 10px 2px 2px 0;
  display: grid;
  gap: 9px;
  align-content: start;
}

.class-overall-score-v3 {
  min-height: 146px;
  padding: 17px;
  border-radius: 19px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(56,189,248,.2), transparent 35%),
    linear-gradient(145deg, #071a35, #102f59);
  box-shadow: 0 18px 38px rgba(7,26,53,.2);
}
.class-overall-score-v3 > span {
  color: #b9eaff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.class-overall-score-v3 > strong {
  margin-top: 4px;
  font-size: clamp(2.9rem, 4.4vw, 4.25rem);
  line-height: .9;
  letter-spacing: -.08em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.class-overall-score-v3 > small { margin-top: 5px; color: rgba(255,255,255,.68); font-size: .7rem; }

.class-overall-metrics-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.class-overall-metrics-v3 > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
}
.class-overall-metrics-v3 span {
  display: block;
  color: var(--muted);
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.class-overall-metrics-v3 strong { display: block; margin-top: 3px; font-size: .94rem; }

.whole-class-feedback-v3 {
  padding: 13px;
  border: 1px solid rgba(139,92,246,.17);
  border-radius: 16px;
  background: linear-gradient(145deg, #faf9ff, #f7fbff);
}
.whole-class-feedback-v3 > span {
  color: #7c3aed;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.whole-class-feedback-v3 p {
  margin: 5px 0 0;
  color: #475467;
  font-size: .75rem;
  line-height: 1.46;
}

.class-feedback-guide-v3 {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
}
.class-feedback-guide-v3 .card-eyebrow { margin-bottom: 5px; font-size: .55rem; }
.class-feedback-guide-v3 > p:last-child { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.43; }

@media (max-width: 1320px) and (min-width: 1001px) {
  .teacher-console-grid-v3 {
    grid-template-columns: minmax(245px, .72fr) minmax(500px, 1.65fr) minmax(250px, .76fr);
  }
  .teacher-console-v3 { padding: 13px; border-radius: 22px; }
  .teacher-dashboard-topbar-v3 { gap: 14px; }
  .teacher-dashboard-logo-v3 .account-wordmark { font-size: 1.55rem; }
  .learning-category-content-v3 { grid-template-columns: minmax(135px, .68fr) minmax(190px, 1.32fr); }
}

@media (max-width: 1000px) {
  html:has(body.teacher-dashboard-v3),
  body.teacher-dashboard-v3 { height: auto; overflow: auto; }
  .teacher-dashboard-shell-v3 { height: auto; min-height: 100vh; grid-template-rows: auto 1fr; }
  .teacher-dashboard-header-v3 { padding-bottom: 10px; }
  .teacher-dashboard-topbar-v3 { height: auto; min-height: 72px; }
  .teacher-console-grid-v3 { height: auto; grid-template-columns: 1fr; }
  .teacher-console-v3 { min-height: 520px; }
  .learning-console-v3 { order: -1; }
  .student-list-v3 { max-height: 520px; }
}

@media (max-width: 650px) {
  .teacher-dashboard-header-v3 { padding: 7px 7px 9px; }
  .teacher-dashboard-topbar-v3 {
    padding: 7px 10px;
    border-radius: 19px;
    grid-template-columns: auto 1fr;
    gap: 9px;
  }
  .teacher-dashboard-logo-v3 .account-wordmark { display: none; }
  .teacher-welcome-v3 { text-align: left; }
  .teacher-welcome-v3 h1 { font-size: 1rem; }
  .teacher-welcome-v3 > span { font-size: .58rem; }
  .teacher-dashboard-actions-v3 { grid-column: 1 / -1; justify-content: flex-end; }
  .teacher-dashboard-main-v3 { padding: 0 7px 8px; }
  .teacher-console-v3 { min-height: 540px; padding: 13px; border-radius: 20px; }
  .learning-category-content-v3 { grid-template-columns: 1fr; }
  .learning-category-content-v3 > .category-block-v2 { grid-column: auto; }
  .learning-category-content-v3 .class-module-list-v2 { grid-template-columns: 1fr; }
}

.teacher-dashboard-v3 .learning-category-intro-v3 {
  margin: 5px 0 0 38px;
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.3;
}

/* Teacher dashboard v4: streamlined student accounts console */
.teacher-dashboard-v4 .teacher-dashboard-actions-v3 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.teacher-dashboard-v4 .student-accounts-console-v4 {
  overflow: hidden;
}

.teacher-dashboard-v4 .student-console-heading-v4 {
  align-items: center;
}

.teacher-dashboard-v4 .student-seat-heading-v4 {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 7px 10px;
  border: 1px solid rgba(139,92,246,.16);
  border-radius: 13px;
  text-align: right;
  background: linear-gradient(145deg, #faf9ff, #f7fbff);
}

.teacher-dashboard-v4 .student-seat-heading-v4 span {
  display: block;
  color: #7c3aed;
  font-size: .49rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.teacher-dashboard-v4 .student-seat-heading-v4 strong {
  display: block;
  margin-top: 2px;
  color: #101828;
  font-size: .82rem;
  line-height: 1;
}

.teacher-dashboard-v4 .student-seat-bar-v4 {
  flex: 0 0 auto;
  margin: 8px 0 0;
}

.teacher-dashboard-v4 .student-list-v4 {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px 2px 0;
}

.teacher-dashboard-v4 .student-console-footer-v4 {
  flex: 0 0 auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.teacher-dashboard-v4 .student-console-footer-v4 .compact-notice-v3 {
  margin: 0 0 7px;
}

.teacher-dashboard-v4 .student-console-footer-v4 .compact-form-message-v3 {
  margin: 0 0 5px;
}

.teacher-dashboard-v4 .add-student-launch-v4 {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
}

.teacher-dashboard-v4 .add-student-launch-v4:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.teacher-dashboard-v4 .add-student-dialog-inner-v4 {
  width: min(440px, calc(100vw - 34px));
}

.teacher-dashboard-v4 .student-create-form-v4 {
  margin-top: 17px;
}

@media (max-width: 650px) {
  .teacher-dashboard-v4 .teacher-dashboard-actions-v3 {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .teacher-dashboard-v4 .teacher-dashboard-actions-v3 .nav-link {
    min-height: 34px;
    padding: 0 11px;
  }
}


/* Teacher dashboard v5: decluttered centre learning summaries */
.teacher-dashboard-v5 .learning-console-v5 {
  overflow: hidden;
}

.teacher-dashboard-v5 .teacher-launch-actions-v8 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-dashboard-v5 .teacher-launch-actions-v8 .compact-primary-v3 {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.teacher-dashboard-v5 .learning-summary-list-v5 {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 10px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teacher-dashboard-v5 .learning-summary-card-v5 {
  min-height: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(139,92,246,.055), transparent 38%),
    #fbfcfe;
}

.teacher-dashboard-v5 .quiz-summary-v5 {
  border-color: rgba(139,92,246,.22);
  background:
    radial-gradient(circle at 92% 8%, rgba(139,92,246,.08), transparent 38%),
    #fff;
  box-shadow: 0 14px 32px rgba(76,29,149,.07);
}

.teacher-dashboard-v5 .homework-summary-v5 {
  border-style: dashed;
  background:
    radial-gradient(circle at 92% 8%, rgba(56,189,248,.06), transparent 38%),
    linear-gradient(145deg, #fbfcfe, #f8f7ff);
}

.teacher-dashboard-v5 .learning-summary-heading-v5 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.teacher-dashboard-v5 .learning-summary-icon-slot-v5,
.category-detail-icon-slot-v5 {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background:
    radial-gradient(circle at 68% 22%, rgba(56, 189, 248, .24), transparent 38%),
    radial-gradient(circle at 22% 88%, rgba(168, 85, 247, .2), transparent 42%),
    linear-gradient(145deg, rgba(7, 17, 31, .98), rgba(13, 30, 60, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 14px 30px rgba(0, 0, 0, .12);
}

.teacher-dashboard-v5 .learning-summary-icon-slot-v5 span:not(.dashboard-line-icon-v5),
.category-detail-icon-slot-v5 span:not(.dashboard-line-icon-v5) {
  width: 3px;
  border-radius: 99px;
  background: #fff;
}

.teacher-dashboard-v5 .learning-summary-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(1),
.category-detail-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(1) { height: 12px; }
.teacher-dashboard-v5 .learning-summary-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(2),
.category-detail-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(2) { height: 23px; }
.teacher-dashboard-v5 .learning-summary-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(3),
.category-detail-icon-slot-v5 span:not(.dashboard-line-icon-v5):nth-child(3) { height: 16px; }

.teacher-dashboard-v5 .learning-summary-icon-slot-v5 .dashboard-line-icon-v5,
.category-detail-icon-slot-v5 .dashboard-line-icon-v5 {
  width: 28px;
  height: 28px;
  display: block;
  background: #fff;
  -webkit-mask: var(--ea-icon) center / contain no-repeat;
  mask: var(--ea-icon) center / contain no-repeat;
}

.teacher-dashboard-v5 .learning-summary-title-v5 {
  min-width: 0;
}

.teacher-dashboard-v5 .learning-summary-title-v5 p {
  margin: 0 0 2px;
  color: #7c3aed;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teacher-dashboard-v5 .learning-summary-title-v5 h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -.035em;
}

.teacher-dashboard-v5 .learning-summary-percentage-v5 {
  min-width: 62px;
  text-align: right;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -.06em;
}

.teacher-dashboard-v5 .learning-summary-percentage-v5.is-secure { color: #067647; }
.teacher-dashboard-v5 .learning-summary-percentage-v5.is-strong { color: #026aa2; }
.teacher-dashboard-v5 .learning-summary-percentage-v5.is-developing { color: #6941c6; }
.teacher-dashboard-v5 .learning-summary-percentage-v5.is-focus { color: #b42318; }
.teacher-dashboard-v5 .learning-summary-percentage-v5.is-empty { color: #98a2b3; }

.teacher-dashboard-v5 .learning-summary-feedback-v5 {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(139,92,246,.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

.teacher-dashboard-v5 .learning-summary-feedback-v5 > span {
  display: block;
  color: #7c3aed;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teacher-dashboard-v5 .learning-summary-feedback-v5 p {
  margin: 4px 0 0;
  color: #475467;
  display: -webkit-box;
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.teacher-dashboard-v5 .learning-summary-footer-v5 {
  flex: 0 0 auto;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-dashboard-v5 .learning-summary-footer-v5 > span {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  font-size: .58rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-dashboard-v5 .learning-detail-button-v5 {
  min-height: 30px;
  padding: 0 10px;
  flex: 0 0 auto;
  font-size: .58rem;
}

.teacher-launch-dialog-v8 {
  width: min(720px, calc(100vw - 30px));
}

.teacher-launch-dialog-inner-v8 {
  max-height: calc(100vh - 30px);
  overflow: auto;
}

.teacher-launch-form-v8 {
  margin-top: 18px;
  gap: 16px;
}

.teacher-launch-section-v8 {
  display: grid;
  gap: 9px;
}

.teacher-launch-section-heading-v8 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.teacher-launch-section-heading-v8 span {
  color: #101828;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.teacher-launch-section-heading-v8 p {
  margin: 0;
  color: #667085;
  font-size: .74rem;
  font-weight: 700;
  text-align: right;
}

.teacher-launch-option-grid-v8 {
  display: grid;
  gap: 9px;
}

.teacher-launch-option-grid-v8.module-options-v8 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-launch-option-grid-v8.count-options-v8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-launch-option-grid-v8.level-options-v8 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.teacher-launch-option-v8 {
  min-height: 74px;
  padding: 12px 10px;
  border: 1px solid rgba(139,92,246,.16);
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #18233a;
  background:
    radial-gradient(circle at 88% 10%, rgba(56,189,248,.08), transparent 40%),
    linear-gradient(145deg, #fff, #f7f5ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.teacher-launch-option-v8 strong {
  display: block;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: -.025em;
}

.teacher-launch-option-v8 span {
  display: block;
  color: #667085;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.22;
}

.teacher-launch-option-v8:not(:disabled):hover,
.teacher-launch-option-v8:not(:disabled):focus-visible {
  border-color: rgba(56,189,248,.42);
  box-shadow: 0 14px 30px rgba(56,189,248,.12), inset 0 1px 0 rgba(255,255,255,.95);
  outline: none;
  transform: translateY(-1px);
}

.teacher-launch-option-v8.is-selected {
  border-color: rgba(56,189,248,.56);
  background:
    radial-gradient(circle at 88% 10%, rgba(56,189,248,.18), transparent 42%),
    linear-gradient(145deg, #effbff, #f7f2ff);
  box-shadow: 0 16px 36px rgba(56,189,248,.14), inset 0 1px 0 rgba(255,255,255,.95);
}

.teacher-launch-option-v8.is-selected strong {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.teacher-launch-option-v8.is-disabled,
.teacher-launch-option-v8:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.launch-helper-v8 {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(139,92,246,.14);
  border-radius: 14px;
  color: #475467;
  background: #f8f7ff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .teacher-dashboard-v5 .teacher-launch-actions-v8 {
    width: 100%;
    justify-content: stretch;
  }

  .teacher-dashboard-v5 .teacher-launch-actions-v8 .compact-primary-v3 {
    flex: 1 1 150px;
  }

  .teacher-launch-option-grid-v8.module-options-v8,
  .teacher-launch-option-grid-v8.count-options-v8,
  .teacher-launch-option-grid-v8.level-options-v8 {
    grid-template-columns: 1fr;
  }

  .teacher-launch-section-heading-v8 {
    display: block;
  }

  .teacher-launch-section-heading-v8 p {
    margin-top: 3px;
    text-align: left;
  }
}

.category-detail-dialog-v5 {
  width: min(900px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
}

.category-detail-dialog-inner-v5 {
  width: 100%;
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
}

.category-detail-heading-v5 {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(56,189,248,.12), transparent 34%),
    rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
}

.category-detail-title-wrap-v5 {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.category-detail-icon-slot-v5 {
  flex: 0 0 auto;
}

.category-detail-heading-v5 .section-title {
  margin-top: 2px;
}

.category-detail-heading-v5 .section-copy {
  margin-top: 4px;
}

.category-detail-dialog-v5 #categoryDetailContent {
  padding: 22px 24px 26px;
}

.category-detail-overview-v5 {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 15px;
}

.category-detail-score-v5 {
  min-height: 150px;
  padding: 20px;
  border-radius: 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(56,189,248,.2), transparent 35%),
    linear-gradient(145deg, #071a35, #102f59);
}

.category-detail-score-v5 > span {
  color: #c7d7f5;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-detail-score-v5 > strong {
  margin-top: 6px;
  font-size: 3.2rem;
  line-height: .9;
  letter-spacing: -.08em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.category-detail-score-v5 > small {
  margin-top: 7px;
  color: rgba(255,255,255,.68);
  font-weight: 750;
}

.category-detail-metrics-v5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-detail-metrics-v5 > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  align-content: center;
  background: #fbfcfe;
}

.category-detail-metrics-v5 span {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.category-detail-metrics-v5 strong {
  margin-top: 6px;
  font-size: 1.45rem;
}

.category-detail-feedback-v5 {
  margin-top: 15px;
  padding: 17px 18px;
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, #faf9ff, #f7fbff);
}

.category-detail-feedback-v5 > span {
  color: #7c3aed;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.category-detail-feedback-v5 p {
  margin: 6px 0 0;
  color: #475467;
  font-size: .9rem;
  line-height: 1.55;
}

.category-detail-apps-v5 {
  margin-top: 20px;
}

.category-detail-section-heading-v5 {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.category-detail-section-heading-v5 h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.category-detail-section-heading-v5 > span {
  color: #7c3aed;
  font-size: .72rem;
  font-weight: 850;
}

.category-detail-dialog-v5 .class-module-list-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-detail-dialog-v5 .class-module-row-v2 {
  min-width: 0;
}

.category-detail-dialog-v5 .class-module-row-v2 > p {
  display: block;
}

.homework-detail-placeholder-v5 {
  min-height: 300px;
  padding: 36px;
  border: 1px dashed #cfd7e6;
  border-radius: 22px;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(145deg, #fbfcfe, #f8f7ff);
}

.homework-detail-placeholder-v5 h3 {
  margin: 14px 0 0;
  font-size: 1.4rem;
}

.homework-detail-placeholder-v5 p {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .teacher-dashboard-v5 .learning-summary-list-v5 {
    grid-template-rows: none;
    grid-auto-rows: minmax(190px, auto);
  }
}

@media (max-width: 650px) {
  .teacher-dashboard-v5 .learning-summary-heading-v5 {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .teacher-dashboard-v5 .learning-summary-icon-slot-v5 {
    width: 40px;
    height: 40px;
  }

  .teacher-dashboard-v5 .learning-summary-percentage-v5 {
    min-width: 54px;
    font-size: 1.4rem;
  }

  .teacher-dashboard-v5 .learning-summary-footer-v5 {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-dashboard-v5 .learning-summary-footer-v5 > span {
    white-space: normal;
  }

  .teacher-dashboard-v5 .learning-detail-button-v5 {
    width: 100%;
  }

  .category-detail-dialog-v5 {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
  }

  .category-detail-dialog-inner-v5 {
    max-height: calc(100vh - 14px);
  }

  .category-detail-heading-v5 {
    padding: 18px;
  }

  .category-detail-dialog-v5 #categoryDetailContent {
    padding: 18px;
  }

  .category-detail-overview-v5 {
    grid-template-columns: 1fr;
  }

  .category-detail-metrics-v5,
  .category-detail-dialog-v5 .class-module-list-v2 {
    grid-template-columns: 1fr;
  }
}
