* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --brand-navy: #092251;
  --brand-blue: #0f3b82;
  --brand-gold: #ffbc4b;
  --brand-cyan: #5bd6ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border: #cbd5e1;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(91, 214, 255, 0.14), transparent 24%),
    radial-gradient(circle at 100% 15%, rgba(255, 188, 75, 0.12), transparent 22%),
    linear-gradient(180deg, #eef4ff 0%, #f4f7fb 22%, #f8fafc 100%);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: min(92%, 1100px);
  max-width: 1100px;
  margin: auto;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.auth-card {
  width: min(100%, 460px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 30px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 34px 28px;
}

.auth-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color: var(--brand-navy);
}

.auth-description {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

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

.auth-field span {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(15, 59, 130, 0.12);
  transform: translateY(-1px);
}

.auth-submit-btn,
.logout-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-submit-btn {
  padding: 14px 18px;
  margin-top: 4px;
}

.auth-submit-btn:hover,
.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(9, 34, 81, 0.18);
}

.auth-feedback {
  min-height: 24px;
  font-size: 14px;
  font-weight: 600;
}

.auth-feedback.error {
  color: #b91c1c;
}

.auth-feedback.success {
  color: #166534;
}

.auth-note {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.auth-note h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--brand-navy);
}

.auth-note p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.session-bar {
  background: rgba(9, 34, 81, 0.96);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.session-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.session-message {
  font-size: 14px;
  color: #dbeafe;
}

.logout-btn {
  padding: 10px 16px;
  min-width: 110px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: white;
  padding: 88px 20px 116px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.65;
  z-index: -1;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 188, 75, 0.38), transparent 70%);
}

.hero::after {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(91, 214, 255, 0.34), transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.top-badge {
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(255, 188, 75, 0.2), rgba(255, 255, 255, 0.08));
  color: #ffe8b4;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 15px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  text-wrap: balance;
  color: #e2e8f0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat-pill {
  min-width: 120px;
  padding: 15px 18px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
}

.search-section {
  margin-top: -28px;
  margin-bottom: 16px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(203, 213, 225, 0.74);
  border-radius: 28px;
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  animation: fade-up 0.6s ease both;
}

.search-section h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

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

.search-helper {
  color: var(--text-muted);
}

.results-counter {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#searchInput {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#searchInput:focus {
  border-color: var(--brand-navy);
  box-shadow:
    0 0 0 4px rgba(15, 59, 130, 0.12),
    0 10px 24px rgba(15, 59, 130, 0.08);
  transform: translateY(-1px);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
  padding: 24px 0 54px;
}

.section-label {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #092251;
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(9, 34, 81, 0.12);
}

.topic-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 26px;
  padding: 26px;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  animation: fade-up 0.65s ease both;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-cyan));
}

.topic-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -48px;
  right: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 214, 255, 0.14), transparent 72%);
  pointer-events: none;
}

.topic-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 59, 130, 0.18);
}

.level {
  display: inline-block;
  width: fit-content;
  background: linear-gradient(135deg, #ffe29a, var(--brand-gold));
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.topic-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.topic-card button,
.quiz-actions button,
.back-btn {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 22px rgba(15, 59, 130, 0.18);
}

.topic-card button:hover,
.quiz-actions button:hover,
.back-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.quiz-section {
  padding: 20px 0 60px;
}

.hidden {
  display: none;
}

.hidden-by-search {
  display: none !important;
}

.empty-state {
  margin: 10px 0 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 600;
}

.student-progress-overview {
  margin-bottom: 18px;
}

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

.progress-summary-card,
.topic-progress-box,
.video-lesson-box {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 24px;
  padding: 24px;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.progress-summary-header h2,
.topic-progress-box h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brand-navy);
}

.video-lesson-header h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brand-navy);
}

.progress-summary-header p,
.topic-progress-box p {
  color: #475569;
}

.video-lesson-header p {
  color: #475569;
  margin-bottom: 16px;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b1f4d, #153b88);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.video-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.admin-students-box {
  margin-top: 22px;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-table-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand-navy);
}

.admin-table-header p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-students-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.admin-students-table thead {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: white;
}

.admin-students-table th,
.admin-students-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #dbe5f1;
}

.admin-students-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.admin-students-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.status-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.status-badge.inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.role-badge.admin {
  background: #dbeafe;
  color: #1d4ed8;
}

.role-badge.student {
  background: #f1f5f9;
  color: #334155;
}

.progress-stat-card {
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  padding: 18px 16px;
  display: grid;
  gap: 6px;
}

.progress-stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--brand-navy);
}

.progress-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.topic-progress-meta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 59, 130, 0.18);
  outline-offset: 2px;
}

.back-btn {
  margin-bottom: 24px;
}

.quiz-header,
.examples-box,
.questions-box,
.result-box {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 24px;
  padding: 24px;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  border: 1px solid rgba(203, 213, 225, 0.72);
}

.quiz-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.quiz-header p {
  color: #475569;
}

.examples-box h3,
.questions-box h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 24px;
}

.examples-box ul {
  padding-left: 20px;
}

.examples-box li {
  margin-bottom: 10px;
}

.question-item {
  border: 1px solid #dbe5f1;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.question-item p {
  margin-bottom: 14px;
  font-weight: 700;
}

.written-practice-box {
  margin-bottom: 22px;
}

.written-practice-box.hidden {
  display: none;
}

.written-practice-box h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #092251;
}

#writtenPracticeIntro {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}

.written-practice-item {
  border: 1px solid #dbe5f1;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.written-practice-line {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.9;
  color: #1e293b;
}

.written-practice-line:last-child {
  margin-bottom: 0;
}

.verb-cue {
  display: inline-block;
  margin-right: 8px;
  color: #0f3b82;
  font-weight: 700;
}

.written-answer-input {
  min-width: 170px;
  max-width: 240px;
  width: clamp(170px, 24vw, 240px);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  font-family: var(--font-sans);
  margin: 0 8px 6px 0;
}

.written-answer-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.written-answer-input.correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.written-answer-input.incorrect {
  background: #fee2e2;
  border-color: #dc2626;
}

.written-answer-feedback {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

.written-answer-feedback.correct {
  color: #15803d;
}

.written-answer-feedback.incorrect {
  color: #b91c1c;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.option-btn:hover {
  background: #eef4ff;
  border-color: #93c5fd;
}

.option-btn.selected {
  background: #dbeafe;
  border-color: #2563eb;
}

.option-btn.correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.option-btn.incorrect {
  background: #fee2e2;
  border-color: #dc2626;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.try-again-btn {
  background-color: #64748b !important;
}

.try-again-btn:hover {
  background-color: #475569 !important;
}

.result-box h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: #092251;
}

.progress-save-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f3b82;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(94%, 100%);
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .session-bar-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 72px 18px 94px;
  }

  .search-section {
    margin-top: -18px;
    padding: 20px;
  }

  .search-header {
    flex-direction: column;
    align-items: start;
  }

  .progress-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-table-header {
    flex-direction: column;
    align-items: start;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 16px;
  }

  .section-label {
    font-size: 24px;
    margin: 20px 0 8px;
  }

  .search-section h2,
  .quiz-header h2 {
    font-size: 24px;
  }

  .progress-summary-card,
  .video-lesson-box,
  .topic-progress-box,
  .quiz-header,
  .examples-box,
  .questions-box,
  .result-box {
    padding: 20px;
    border-radius: 20px;
  }

  .grammar-info,
  .structure-card,
  .written-practice-item,
  .question-item,
  .mistake-item {
    padding: 16px;
    border-radius: 16px;
  }

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

  .topic-card {
    min-height: 280px;
    padding: 22px;
  }

  .topic-card button,
  .quiz-actions button,
  .back-btn,
  .logout-btn,
  .auth-submit-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 18px 14px;
  }

  .container {
    width: min(92%, 100%);
  }

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

  .stat-pill {
    min-width: 0;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .search-section {
    border-radius: 22px;
    padding: 18px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .top-badge {
    font-size: 11px;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .subtitle {
    font-size: 15px;
  }

  .search-section h2,
  .progress-summary-header h2,
  .video-lesson-header h3,
  .topic-progress-box h3,
  .quiz-header h2,
  .examples-box h3,
  .questions-box h3 {
    font-size: 22px;
  }

  .section-label {
    font-size: 21px;
  }

  .topic-card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .topic-card p {
    margin-bottom: 18px;
  }

  .progress-summary-card,
  .video-lesson-box,
  .topic-progress-box,
  .quiz-header,
  .examples-box,
  .questions-box,
  .result-box {
    padding: 18px;
    border-radius: 18px;
  }

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

  .progress-stat-value {
    font-size: 26px;
  }

  .admin-students-table {
    min-width: 680px;
  }

  .mini-rule-table {
    gap: 10px;
  }

  .structure-text,
  .highlight-rule {
    font-size: 16px;
  }

  .vocabulary-chart-table {
    min-width: 640px;
  }
}

.grammar-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.grammar-info p {
  margin-bottom: 10px;
}

.time-expressions-box,
.examples-list-box,
.vocabulary-chart-box {
  margin-top: 20px;
}

.time-expressions-box h4,
.examples-list-box h4,
.vocabulary-chart-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.chart-tip {
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.7;
}

.chart-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vocabulary-chart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.vocabulary-chart-table thead {
  background: #163269;
}

.vocabulary-chart-table th {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

.vocabulary-chart-table th:last-child {
  border-right: none;
}

.vocabulary-chart-table td {
  padding: 14px 16px;
  border-top: 1px solid #dbe5f1;
  border-right: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.vocabulary-chart-table td:last-child {
  border-right: none;
}

.vocabulary-chart-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.vocabulary-chart-table tbody tr:hover {
  background: #eff6ff;
}
.third-person-box,
.spelling-rules-box {
  margin-top: 20px;
}

.third-person-box h4,
.spelling-rules-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.third-person-box p {
  margin-bottom: 12px;
  color: #334155;
}
.third-person-details-box,
.third-person-examples-box,
.common-mistakes-box {
  margin-top: 20px;
}

.third-person-details-box h4,
.third-person-examples-box h4,
.common-mistakes-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.third-person-details-box ul,
.third-person-examples-box ul,
.common-mistakes-box ul {
  padding-left: 20px;
}

.third-person-details-box li,
.third-person-examples-box li,
.common-mistakes-box li {
  margin-bottom: 10px;
  color: #334155;
}
.highlight-rule {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.red-text {
  color: #dc2626;
  font-weight: 700;
}

.blue-text {
  color: #0f3b82;
  font-weight: 700;
}
.mini-rule-table {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.mini-rule-row {
  display: grid;
  grid-template-columns: 1.5fr 60px 1.5fr;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 16px;
}

.mini-rule-subject {
  font-weight: 700;
  color: #dc2626;
}

.mini-rule-arrow {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #64748b;
}

.mini-rule-form {
  font-weight: 700;
  color: #0f3b82;
}

@media (max-width: 640px) {
  .mini-rule-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .mini-rule-arrow {
    display: none;
  }
}
.structure-box {
  margin-top: 18px;
}

.structure-box h4 {
  font-size: 20px;
  margin-bottom: 14px;
  color: #092251;
}

.structure-card {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.structure-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.affirmative-label {
  background: #dcfce7;
  color: #166534;
}

.negative-label {
  background: #fee2e2;
  color: #991b1b;
}

.question-label {
  background: #dbeafe;
  color: #1d4ed8;
}

.structure-text {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  line-height: 1.7;
}
.detail-example {
  display: inline-block;
  margin-top: 6px;
  color: #475569;
  font-style: italic;
  font-size: 15px;
}
.mistake-item {
  list-style: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.wrong-line {
  color: #b91c1c;
  font-weight: 700;
  margin-bottom: 8px;
}

.correct-line {
  color: #15803d;
  font-weight: 700;
}
.verb-types-box {
  margin-top: 20px;
}

.verb-types-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.verb-types-box p {
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.8;
}

.verb-types-box ul {
  padding-left: 20px;
}

.verb-types-box li {
  margin-bottom: 10px;
  color: #334155;
}
.pronunciation-box {
  margin-top: 20px;
}

.pronunciation-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.pronunciation-box ul {
  padding-left: 20px;
}

.pronunciation-box li {
  margin-bottom: 10px;
  color: #334155;
}

.sound-quiz-box {
  margin-top: 20px;
}

.sound-quiz-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #092251;
}

.sound-quiz-box p {
  margin-bottom: 16px;
  color:#334155;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .written-practice-line {
    font-size: 16px;
    line-height: 1.75;
  }

  .written-answer-input {
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
  }

  .written-answer-feedback {
    display: block;
    margin: 6px 0 0;
  }
}
