* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --teacher: #7c3aed;
  --admin: #0f766e;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #dbeafe 0, transparent 35%), var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.landing,
.auth-page,
.dashboard {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 18px 96px;
}

.hero-card,
.auth-card,
.welcome-card,
.goal-card,
.panel,
.feature-card,
.stat-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(28px, 6vw, 64px);
  margin-top: 36px;
}

.hero-card h1 {
  font-size: clamp(34px, 8vw, 68px);
  line-height: 0.96;
  max-width: 740px;
  margin: 18px 0;
}

.hero-card p {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn.full {
  width: 100%;
}

.feature-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.feature-card,
.stat-card,
.panel {
  padding: 22px;
}

.feature-card p,
.muted {
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(450px, 100%);
  padding: 28px;
}

.auth-card h1 {
  margin: 16px 0 6px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  margin: 16px 0;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  background: white;
}

input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px #dbeafe;
}

.flash {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 12px 0;
  font-weight: 700;
}

.flash-error {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.flash-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.center {
  text-align: center;
}

.small {
  font-size: 13px;
}

.suggestions {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 12px;
  margin: 14px 0;
}

.suggestion-btn {
  margin: 8px 6px 0 0;
  border: 0;
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.topbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 21px;
  font-weight: 900;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.ghost-link {
  color: var(--muted);
}

.welcome-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.12), rgba(255,255,255,.9)),
    white;
}

.welcome-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 5vw, 44px);
}

.welcome-card p {
  max-width: 650px;
  color: var(--muted);
}

.teacher-theme {
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(255,255,255,.9)), white;
}

.admin-theme {
  background: linear-gradient(135deg, rgba(15,118,110,.13), rgba(255,255,255,.9)), white;
}

.goal-card {
  padding: 24px;
  margin-top: 18px;
}

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

.goal-top h2 {
  margin: 0;
}

.goal-top span {
  color: var(--muted);
  font-size: 14px;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 18px 0;
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  border-radius: inherit;
}

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

.task-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
}

.task-item span {
  color: var(--muted);
  font-size: 14px;
}

.locked {
  opacity: .78;
}

.stat-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

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

.panel {
  margin-top: 18px;
}

.panel.soft {
  background: #f8fafc;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(15,23,42,.15);
  border-radius: 24px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  z-index: 20;
}

.bottom-nav a {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 16px;
  font-weight: 800;
}

.bottom-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.bottom-nav a.disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .welcome-card {
    display: block;
  }

  .welcome-card .btn {
    width: 100%;
    margin-top: 12px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-user {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .task-item {
    display: block;
  }

  .task-item span {
    display: block;
    margin-top: 6px;
  }

  .bottom-nav a {
    font-size: 12px;
  }
}


select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  background: white;
  font-family: inherit;
}

select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px #dbeafe;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}

.form-grid label {
  margin: 0;
}

.span-2 {
  grid-column: span 2;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form select {
  min-width: 130px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.actions-cell {
  white-space: nowrap;
}

.inline-form {
  display: inline;
}

.small-action {
  border: 0;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
  margin-right: 6px;
  cursor: pointer;
}

.button-link {
  font-family: inherit;
}

.student-page {
  padding-bottom: 110px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.mission-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.mission-number {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 900;
  font-size: 13px;
}

.mission-card h2 {
  margin: 16px 0 10px;
}

.mission-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mission-meta span {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.mission-card p {
  color: var(--muted);
  flex: 1;
}

.mission-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.mission-foot span {
  color: var(--muted);
  font-weight: 800;
}

.mission-hero {
  background:
    radial-gradient(circle at 10% 15%, rgba(37,99,235,.20), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 28px;
}

.mission-hero h1 {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
  margin: 18px 0 12px;
}

.mission-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 780px;
}

@media (max-width: 760px) {
  .form-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .panel-header {
    display: block;
  }

  .filter-form {
    margin-top: 12px;
  }

  .mission-card {
    min-height: auto;
  }
}


.example-cell {
  max-width: 320px;
  color: var(--muted);
}

.attach-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 12px;
  align-items: end;
}

.order-input {
  max-width: 90px;
}

.remove-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.word-learning-shell {
  margin-top: 18px;
}

.word-learning-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.word-learning-top h2 {
  margin: 12px 0 4px;
}

.word-counter {
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 900;
  color: var(--primary);
}

.word-progress {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 18px 0;
}

.word-progress div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  border-radius: inherit;
  transition: width .35s ease;
}

.word-card {
  display: none;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.14), transparent 32%),
    rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 44px);
  min-height: 540px;
}

.word-card.active {
  display: block;
  animation: wordIn .28s ease both;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.word-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 900;
  font-size: 13px;
}

.word-card h2 {
  font-size: clamp(48px, 12vw, 88px);
  line-height: .95;
  margin: 24px 0 10px;
  letter-spacing: -0.05em;
}

.uz-meaning {
  font-size: clamp(24px, 6vw, 40px);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.listen-btn,
.more-toggle {
  border: 0;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  margin: 8px 8px 8px 0;
}

.example-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin: 18px 0;
}

.example-box p {
  font-size: 20px;
  line-height: 1.45;
  margin: 8px 0;
}

.example-box span {
  color: var(--muted);
}

.word-more {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin: 12px 0 18px;
}

.gentle-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 12px;
  color: #9a3412;
}

.word-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.word-actions .btn {
  flex: 1;
  min-width: 180px;
}

.word-finish {
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.16), transparent 35%),
    white;
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 54px);
}

.word-finish h2 {
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
  margin: 18px 0;
}

@media (max-width: 760px) {
  .attach-form {
    grid-template-columns: 1fr;
  }

  .word-learning-top {
    align-items: flex-start;
  }

  .word-actions {
    display: grid;
  }

  .word-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .word-card {
    min-height: auto;
  }
}


.practice-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(34,197,94,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,253,244,.96));
}

.practice-shell {
  margin-top: 18px;
}

.practice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.practice-top h2 {
  margin: 12px 0 4px;
}

.practice-card {
  display: none;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 32%),
    rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 42px);
}

.practice-card.active {
  display: block;
  animation: wordIn .28s ease both;
}

.practice-card h2 {
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.15;
  margin: 20px 0;
  letter-spacing: -0.03em;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.choice-btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.choice-btn:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
}

.choice-btn.selected {
  background: #eff6ff;
  border-color: #60a5fa;
}

.choice-btn strong {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
}

.practice-answer {
  width: 100%;
  margin: 14px 0;
}

.practice-feedback {
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
  font-weight: 800;
}

.practice-feedback.correct {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.practice-feedback.try-again {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.practice-feedback .explanation {
  display: block;
  font-weight: 500;
  color: inherit;
  opacity: .85;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .practice-card {
    padding: 22px;
  }

  .choice-btn {
    align-items: flex-start;
  }
}


.progress-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(124,58,237,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,243,255,.96));
}

.status-warning {
  background: #fff7ed;
  color: #9a3412;
}

.status-learning {
  background: #eff6ff;
  color: #1d4ed8;
}

.word-progress-list {
  display: grid;
  gap: 16px;
}

.progress-word-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
}

.progress-word-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.progress-word-top h3 {
  font-size: 28px;
  margin: 0 0 4px;
}

.progress-word-top p {
  margin: 0;
  color: var(--primary);
  font-weight: 900;
}

.mini-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 16px 0;
}

.mini-progress div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #2563eb, #7c3aed);
  border-radius: inherit;
}

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

.score-grid span {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.score-grid strong {
  display: block;
  color: var(--text);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .progress-word-top {
    display: block;
  }

  .progress-word-top .status-pill {
    margin-top: 12px;
  }

  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.strengthen-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(245,158,11,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,251,235,.96));
}

.strengthen-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.strengthen-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 22px;
}

.strengthen-card h3 {
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1;
  margin: 14px 0 6px;
  letter-spacing: -0.04em;
}

.strengthen-detail {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  margin: 12px 0;
  color: var(--muted);
}

.strengthen-detail strong {
  color: var(--text);
}

.strengthen-detail.action {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

@media (max-width: 760px) {
  .strengthen-card {
    padding: 18px;
  }
}


.review-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(37,99,235,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
}

.review-shell {
  margin-top: 18px;
}

.review-card {
  display: none;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 32%),
    rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 42px);
}

.review-card.active {
  display: block;
  animation: wordIn .28s ease both;
}

.review-card h2 {
  font-size: clamp(44px, 10vw, 80px);
  line-height: .98;
  margin: 22px 0 10px;
  color: var(--primary);
  letter-spacing: -0.05em;
}

@media (max-width: 760px) {
  .review-card {
    padding: 22px;
  }
}


.speaking-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(124,58,237,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,243,255,.96));
}

.feedback-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(34,197,94,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,253,244,.96));
}

.speaking-shell {
  margin-top: 18px;
}

.speaking-card,
.feedback-card,
.review-card-teacher {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 42px);
  margin-top: 18px;
}

.speaking-card h2,
.feedback-card h3,
.review-card-teacher h3 {
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1;
  margin: 18px 0 12px;
  letter-spacing: -0.04em;
}

.speaking-question {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin: 18px 0;
}

.speaking-question p {
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.3;
  margin: 10px 0 0;
}

.target-words {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: 22px;
  padding: 16px;
  margin: 18px 0;
}

.target-words div,
.target-words.compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.target-words span {
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.speaking-instruction {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 20px;
  padding: 16px;
  margin: 18px 0;
  font-weight: 700;
}

.timer-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin: 18px 0;
  font-size: 20px;
}

.timer-box strong {
  color: var(--primary);
  font-size: 34px;
}

.microphone-pulse {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 24px auto;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  font-size: 58px;
  animation: micPulse 1.2s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,99,235,.25); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(37,99,235,0); }
}

.review-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.review-card-teacher audio,
.feedback-card audio {
  width: 100%;
  margin: 12px 0;
}

.teacher-comment {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
}

.teacher-comment p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .speaking-card,
  .feedback-card,
  .review-card-teacher {
    padding: 20px;
  }

  .microphone-pulse {
    width: 108px;
    height: 108px;
    font-size: 48px;
  }
}


.teacher-review-page .stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.sticky-filter {
  position: sticky;
  top: 10px;
  z-index: 15;
}

.teacher-filter {
  display: grid;
  grid-template-columns: 150px 1fr 180px 1fr auto auto;
  gap: 10px;
}

.teacher-review-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
}

.teacher-review-card.needs-review {
  border-color: #fed7aa;
}

.teacher-review-card.is-reviewed {
  border-color: #bbf7d0;
}

.review-card-header {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
}

.review-card-header h3 {
  font-size: clamp(24px, 5vw, 42px);
  margin: 10px 0 4px;
  letter-spacing: -0.04em;
}

.review-card-header p {
  margin: 0;
  color: var(--muted);
}

.review-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-symbol {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 900;
  font-size: 20px;
}

.review-card-body {
  border-top: 1px solid var(--border);
  padding: 20px;
}

.review-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.review-meta-grid span {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.teacher-word-chips button,
.template-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
  margin: 4px;
  background: white;
  color: #3730a3;
}

.teacher-word-chips button.marked-used {
  background: #dcfce7;
  color: #166534;
}

.teacher-word-chips button.marked-strengthen {
  background: #fff7ed;
  color: #9a3412;
}

.quick-template-area {
  display: grid;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  margin: 16px 0;
}

.template-group > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: capitalize;
}

.template-chip {
  background: #eef2ff;
}

.template-chip:hover {
  background: #e0e7ff;
}

.teacher-feedback-form {
  margin-top: 16px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.feedback-note {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.feedback-note p {
  color: var(--muted);
  margin-bottom: 0;
}

.retry-ready {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.improved-feedback-card {
  border-left: 6px solid #bbf7d0;
}

@media (max-width: 1000px) {
  .teacher-filter {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-review-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-meta-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .teacher-filter {
    grid-template-columns: 1fr;
  }

  .teacher-review-page .stats-grid,
  .review-meta-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .review-card-header {
    display: block;
  }

  .review-header-right {
    margin-top: 12px;
    justify-content: space-between;
  }
}


.group-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.group-list {
  display: grid;
  gap: 10px;
}

.group-list-item {
  display: block;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
}

.group-list-item.active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.group-list-item strong {
  display: block;
  margin-bottom: 4px;
}

.group-list-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.mini-assign-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.member-list {
  display: grid;
  gap: 10px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

.member-item small {
  color: var(--muted);
}

.group-mini-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.group-mini-list span {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .group-layout,
  .assignment-grid {
    grid-template-columns: 1fr;
  }
}


.profile-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(37,99,235,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96));
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 18px;
  margin-top: 18px;
}

/* Phase 11 mobile polish */
.student-page {
  padding-bottom: 124px;
}

.bottom-nav {
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  min-height: 44px;
  display: grid;
  place-items: center;
}

.panel,
.goal-card,
.word-card,
.practice-card,
.review-card,
.speaking-card,
.feedback-card,
.strengthen-card,
.teacher-review-card {
  scroll-margin-top: 16px;
}

input,
select,
textarea,
button,
.btn {
  min-height: 44px;
}

.flash {
  line-height: 1.45;
}

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

  .landing,
  .auth-page,
  .dashboard {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mission-hero,
  .welcome-card,
  .panel,
  .goal-card {
    border-radius: 22px;
  }

  .bottom-nav {
    bottom: 8px;
    width: calc(100% - 16px);
    border-radius: 20px;
    padding: 8px;
  }

  .bottom-nav a {
    font-size: 11px;
    padding: 8px 4px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 18px;
  }

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

@media (max-width: 390px) {
  .bottom-nav a {
    font-size: 10px;
  }

  .mission-hero h1,
  .welcome-card h1 {
    font-size: 30px;
  }
}
