:root {
  --ink: #102033;
  --muted: #596779;
  --line: #dbe5ee;
  --paper: #ffffff;
  --wash: #f4f8fb;
  --blue: #1d5fd1;
  --teal: #0f766e;
  --green: #15803d;
  --gold: #c38b22;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: #e9f0f6;
  border-radius: 5px;
  padding: 0.08rem 0.32rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.12);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: -0.18rem;
}

.primary-nav,
.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
}

.desktop-navigation > a,
.nav-dropdown > summary,
.nav-cta {
  border-radius: 7px;
  padding: 0.62rem 0.72rem;
  color: #25364b;
  cursor: pointer;
}

.desktop-navigation > a:hover,
.nav-dropdown > summary:hover {
  background: #eaf1f8;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-summary-icon {
  min-width: 20px;
  width: 20px;
  height: 20px;
  font-size: 0.9rem;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  display: grid;
  min-width: 330px;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 0.65rem;
}

.dropdown-panel a {
  display: grid;
  gap: 0.15rem;
  border-radius: 7px;
  padding: 0.75rem;
}

.dropdown-panel a:hover {
  background: var(--wash);
}

.dropdown-panel span {
  color: var(--muted);
  font-size: 0.88rem;
}

.grouped-dropdown-panel {
  min-width: 250px;
}

.nav-menu-group {
  position: relative;
}

.nav-menu-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 7px;
  padding: 0.72rem 0.75rem;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.nav-menu-group > summary::-webkit-details-marker {
  display: none;
}

.nav-menu-group > summary span:first-child {
  color: var(--ink);
  font-size: 0.95rem;
}

.nav-menu-group > summary:hover,
.nav-menu-group > summary:focus-visible,
.nav-menu-group[open] > summary {
  background: var(--wash);
}

.nav-group-arrow {
  color: var(--blue) !important;
  font-size: 1.25rem !important;
  line-height: 1;
}

.nav-group-links {
  position: absolute;
  right: 100%;
  top: -0.5rem;
  display: grid;
  width: 340px;
  max-height: min(70vh, 560px);
  gap: 0.25rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 0.55rem;
}

.nav-menu-group:not([open]) > .nav-group-links {
  display: none;
}

.nav-menu-group:hover > .nav-group-links,
.nav-menu-group:focus-within > .nav-group-links,
.nav-menu-group[open] > .nav-group-links {
  display: grid;
}

.nav-cta,
.btn.primary {
  background: var(--blue);
  color: white;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0.58rem 0.78rem;
  font: inherit;
}

.menu-state {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 800;
}

.mobile-navigation {
  display: none;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

#app.has-study-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

#app.has-study-sidebar > :not(.study-sidebar) {
  grid-column: 2;
}

.study-sidebar {
  grid-column: 1;
  grid-row: 1 / span 80;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.75rem;
}

.study-sidebar-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.study-sidebar-box > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem;
  cursor: pointer;
}

.study-sidebar-box > summary::-webkit-details-marker {
  display: none;
}

.study-sidebar-box strong,
.study-sidebar-box small {
  display: block;
}

.study-sidebar-box small {
  color: var(--muted);
  font-size: 0.82rem;
}

.study-nav-links {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding: 0.7rem;
  background: #f8fbfe;
}

.study-nav-links a {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.55rem 0.65rem;
  color: #123f82;
  font-weight: 800;
}

.study-nav-links a:hover,
.study-nav-links a:focus-visible {
  border-color: #b9cce1;
  background: #e8f2ff;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: clamp(2rem, 6vw, 5rem) 0 2rem;
}

.hero {
  position: relative;
  isolation: isolate;
  margin-top: 1rem;
  min-height: 560px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  padding: clamp(2rem, 5vw, 4.2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.92) 36%, rgba(248, 251, 255, 0.42) 64%, rgba(248, 251, 255, 0.18) 100%),
    image-set(
      url("../img/hero-aptitude-bg.webp") type("image/webp"),
      url("../img/hero-aptitude-bg.png") type("image/png")
    ) center right / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(29, 95, 209, 0.08), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(15, 118, 110, 0.06), transparent 34%);
}

.page-hero.compact {
  grid-template-columns: 1fr;
  padding: 2.2rem 0 1.2rem;
}

.hero-copy,
.hero-panel,
.content-band,
.toolbar-panel,
.form-shell,
.table-wrap,
.empty-state,
.instruction-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.system-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  margin-top: 1rem;
}

.system-strip p {
  margin: 0;
  color: var(--muted);
}

.hero .hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.1);
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.lead,
.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.button-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.68rem 1rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  gap: 0.48rem;
}

.ui-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.btn.secondary {
  border-color: #b9cce1;
  background: #e8f2ff;
  color: #123f82;
}

.btn.ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.btn.small {
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  font-size: 0.9rem;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.3rem;
  background:
    linear-gradient(140deg, rgba(29, 95, 209, 0.12), rgba(15, 118, 110, 0.1)),
    white;
}

.mini-map {
  display: grid;
  gap: 0.55rem;
}

.mini-map.horizontal {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-map a {
  border: 1px solid #c6d8e8;
  border-left: 5px solid var(--teal);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  font-weight: 800;
}

.mini-map a:hover,
.mini-map a:focus-visible {
  border-color: var(--blue);
  border-left-color: var(--blue);
  background: #e8f2ff;
  color: #123f82;
}

.quick-actions,
.card-grid,
.contact-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 1rem 0 0.5rem;
}

.action-card,
.feature-card,
.accordion-card,
.result-card,
.question-card,
.stat-card,
.announcement-card,
.daily-task {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.action-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.home-action-groups {
  display: grid;
  gap: 0.75rem;
}

.home-action-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-action-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.home-action-group > summary::-webkit-details-marker {
  display: none;
}

.home-action-group > summary strong {
  display: block;
}

.home-action-group > summary small {
  color: var(--muted);
}

.quick-actions.compact {
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #f8fbfe;
}

.quick-actions.compact .action-card {
  padding: 0.75rem;
  box-shadow: none;
  border: 1px solid var(--line);
}

.stat-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem;
}

.stat-card strong {
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.action-card span,
.feature-card p,
.accordion-card small,
.result-card p,
.hint {
  color: var(--muted);
}

.feature-card,
.result-card,
.question-card,
.announcement-card,
.daily-task,
.content-band,
.toolbar-panel,
.form-shell,
.table-wrap,
.empty-state,
.instruction-box {
  padding: 1rem;
}

.feature-card h2,
.result-card h2,
.question-card h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: 1.18rem;
}

.section-head {
  margin: 2.4rem 0 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.65rem;
}

.announcement-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.announcement-card span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.announcement-card h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}

.announcement-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.checklist-panel {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.daily-task {
  display: grid;
  gap: 0.45rem;
}

.daily-task label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.daily-task input {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  accent-color: var(--green);
}

.daily-task small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.daily-task p {
  margin: 0;
  color: var(--muted);
}

.daily-task.done {
  border-color: #9fd9b2;
  background: #f0fbf3;
}

.daily-task.done strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #7bbf91;
}

.flashcard.done,
.question-card.done {
  border-color: #9fd9b2;
  background: #f4fbf6;
}

.mastery-check,
.selectable-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.mastery-check {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-weight: 800;
}

.mastery-check input,
.selectable-option input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--blue);
}

.diagnostic-result {
  margin-top: 1rem;
}

.formula-box {
  border: 1px solid #b9cce1;
  border-left: 5px solid var(--blue);
  border-radius: 7px;
  background: #f0f6ff;
  color: #123f82;
  font-weight: 900;
  padding: 0.75rem 0.85rem;
}

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

.note-preview {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.note-preview section {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.85rem;
}

.note-preview h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.note-preview p {
  margin: 0;
}

.result-summary h2 {
  margin-top: 0.25rem;
}

.report-signal {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.75rem;
  margin-top: 0.65rem;
}

.report-signal strong,
.report-signal span {
  display: block;
}

.report-signal span {
  color: var(--muted);
  margin-top: 0.25rem;
}

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

.lesson-block {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.85rem;
  margin-top: 0.75rem;
}

.lesson-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.lesson-block p {
  margin: 0;
}

.danger-note {
  border-left: 5px solid var(--danger);
  border-radius: 7px;
  background: #fff6f6;
  padding: 0.75rem 0.85rem;
}

.teacher-card .tag-row span {
  background: #eef8f6;
  color: #11605a;
}

.parent-card {
  border-top: 4px solid var(--gold);
}

.timeline-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.timeline-steps section {
  border-left: 5px solid var(--blue);
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.8rem 0.9rem;
}

.timeline-steps p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.download-card {
  border-top: 4px solid var(--blue);
}

.review-card {
  border-top: 4px solid var(--teal);
}

.route-card {
  border-top: 4px solid var(--ink);
}

.dashboard-card {
  border-top: 4px solid var(--green);
}

.dashboard-current {
  align-items: stretch;
}

.dashboard-current .side-panel {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.test-page-card {
  border-top: 4px solid var(--blue);
}

.chapter-map-card {
  border-top: 4px solid var(--gold);
}

.builder-card {
  border-top: 4px solid var(--green);
}

.import-card {
  border-top: 4px solid var(--teal);
}

.topic-study-card {
  border-top: 4px solid var(--blue);
}

.repair-path-card {
  border-top: 4px solid var(--danger);
}

.route-task-card {
  border-top: 4px solid var(--green);
}

.route-task-card.done {
  border-color: #9fd9b2;
  background: #f4fbf6;
}

.student-note-card {
  border-top: 4px solid var(--gold);
}

.note-prompt-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.revision-queue-card {
  border-top: 4px solid var(--teal);
}

.revision-queue-card.done {
  border-color: #9fd9b2;
  background: #f4fbf6;
}

.weekly-summary-card {
  border-top: 4px solid var(--blue);
}

.parent-report-card {
  border-top: 4px solid var(--gold);
}

.code-sample {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f172a;
  color: #e5edf7;
  padding: 0.85rem;
  white-space: pre;
}

.code-sample code {
  background: transparent;
  color: inherit;
  padding: 0;
}

@media print {
  .site-header,
  .site-footer,
  .toolbar-panel,
  .button-row,
  .nav-cta,
  .menu-button {
    display: none !important;
  }

  body {
    background: white;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .feature-card,
  .content-band,
  .table-wrap {
    break-inside: avoid;
    box-shadow: none;
  }
}

.accordion-list {
  display: grid;
  gap: 0.8rem;
}

.accordion-card {
  overflow: hidden;
}

.accordion-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.accordion-card > summary::-webkit-details-marker {
  display: none;
}

.accordion-card small {
  display: block;
  margin-top: 0.2rem;
}

.summary-icon {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
}

.accordion-body {
  border-top: 1px solid var(--line);
  padding: 1rem;
}

.planned-line,
.connected-line,
.price {
  font-weight: 700;
}

.tag-row,
.meta-row,
.instruction-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row span,
.tag-row a,
.meta-row span,
.instruction-box span,
.pill {
  display: inline-flex;
  border-radius: 999px;
  background: #eaf1f8;
  color: #263b52;
  padding: 0.28rem 0.58rem;
  font-size: 0.84rem;
}

.action-tags a {
  border: 1px solid #d3e4f5;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.action-tags a:hover,
.action-tags a:focus-visible {
  background: #dff0ff;
  border-color: #9fc4eb;
  color: #123f82;
}

.compare-table td:first-child span {
  color: var(--muted);
  font-size: 0.88rem;
}

.compare-table .pill {
  margin: 0.12rem;
}

.mini-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0.8rem 0;
  padding: 0.55rem 0;
}

.mini-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

.mini-details summary::-webkit-details-marker {
  display: none;
}

.mini-details > summary::after {
  content: "+";
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 800;
}

.mini-details[open] > summary::after {
  content: "−";
}

.toolbar-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
}

.toolbar-panel label,
.lead-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c7d6;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.split-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 86px;
}

.metric-stack {
  display: grid;
  gap: 0.55rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0.7rem 0.8rem;
}

.metric strong {
  font-size: 1.3rem;
}

.question-list {
  display: grid;
  gap: 1rem;
}

.practice-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.practice-overview {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 3.3fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 1rem 0;
}

.practice-overview-heading h2,
.practice-set-header h2,
.set-complete h3 {
  margin: 0.1rem 0 0;
}

.practice-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}

.practice-metric-grid .metric {
  display: grid;
  justify-content: initial;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.practice-metric-grid .metric strong {
  color: var(--blue);
  font-size: 1.45rem;
}

.practice-metric-grid .metric span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.practice-workspace {
  width: min(100%, 920px);
  margin: 0 auto;
  scroll-margin-top: 88px;
}

.practice-set-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: white;
  padding: 1rem;
}

.practice-progress-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.practice-mode-switch {
  display: inline-flex;
  border: 1px solid #b9c7d6;
  border-radius: 7px;
  background: #f4f8fb;
  padding: 0.2rem;
}

.practice-mode-switch button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.practice-mode-switch button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(16, 32, 51, 0.14);
}

.set-progress-panel {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(180px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fbfe;
  padding: 0.75rem 1rem;
}

.set-progress-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
}

.set-progress-labels span {
  color: var(--muted);
}

.set-progress-panel progress {
  width: 100%;
  height: 0.65rem;
  accent-color: var(--teal);
}

.question-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: white;
  padding: 0.7rem;
}

#questionPaginationTop {
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 1rem;
}

#questionPaginationBottom {
  border-radius: var(--radius);
  margin-top: 1rem;
}

.pagination-pages {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
}

.pagination-page,
.pagination-arrow {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #c7d4e2;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pagination-arrow {
  padding: 0.45rem 0.7rem;
}

.pagination-page:hover,
.pagination-arrow:hover,
.pagination-page:focus-visible,
.pagination-arrow:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination-page.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.pagination-arrow:disabled {
  cursor: default;
  opacity: 0.45;
}

.pagination-ellipsis {
  display: grid;
  min-width: 28px;
  place-items: center;
  color: var(--muted);
}

.quiz-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: white;
  padding: 0.75rem 1rem;
}

.set-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #aad7bb;
  border-top: 0;
  background: #edf8f1;
  padding: 0.85rem 1rem;
}

.set-complete h3 span {
  color: var(--green);
}

.set-complete p {
  margin: 0.25rem 0 0;
  color: #315b40;
}

.question-position {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin: -0.15rem 0 0.8rem;
  padding-bottom: 0.65rem;
}

.question-position span {
  color: var(--muted);
}

.options-grid {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #c7d4e2;
  border-radius: 7px;
  background: white;
  padding: 0.78rem;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.option-letter {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf3f9;
  color: #294763;
  font-weight: 800;
}

.option.correct .option-letter {
  background: #ccebd7;
  color: #175b2f;
}

.option.wrong .option-letter {
  background: #ffd7d4;
  color: #902820;
}

.option:hover,
.option.selected {
  border-color: var(--blue);
  background: #e8f2ff;
}

.option.correct {
  border-color: #94d3aa;
  background: #eaf8ef;
}

.option.wrong {
  border-color: #f2a6a0;
  background: #fff1f0;
}

.option.muted {
  opacity: 0.72;
}

.option:disabled {
  cursor: default;
}

.practice-actions {
  margin-top: 0.85rem;
}

.answer-result {
  border-left: 4px solid currentColor;
  border-radius: 5px;
  background: #f8fbfe;
  padding: 0.65rem 0.75rem;
}

.practice-reference-links {
  border-top: 1px solid var(--line);
  margin-top: 0.7rem;
  padding-top: 0.65rem;
}

.practice-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.8rem;
  margin-top: 0.75rem;
}

.answer-tools {
  background: #ffffff;
}

.answer-panel {
  border-left: 5px solid var(--green);
}

.explanation-panel {
  line-height: 1.75;
}

.topic-panel {
  border-left: 5px solid var(--blue);
}

.topic-panel p {
  margin: 0.35rem 0 0.65rem;
}

.success-text {
  color: var(--green);
  font-weight: 800;
}

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

.urdu-note {
  border-right: 4px solid var(--teal);
  border-radius: 7px;
  background: #eef8f6;
  padding: 0.8rem;
  direction: rtl;
  text-align: right;
}

.timer {
  border-radius: 7px;
  background: var(--ink);
  color: white;
  padding: 0.55rem 0.85rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.page-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.sticky-tools {
  position: sticky;
  top: 76px;
  z-index: 9;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form.single-column {
  grid-template-columns: 1fr;
}

.lead-form label:has(textarea),
.lead-form button {
  grid-column: 1 / -1;
}

.clean-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
}

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

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

th {
  background: #eef4fa;
}

.preview-dialog {
  width: min(620px, calc(100% - 2rem));
  border: 0;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.preview-dialog::backdrop {
  background: rgba(16, 32, 51, 0.48);
}

.dialog-close {
  float: right;
  border: 0;
  background: #eaf1f8;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
}

.search-field {
  flex: 1 1 360px;
}

[hidden] {
  display: none !important;
}

.search-results {
  display: grid;
  gap: 0.75rem;
}

.result-card span {
  color: var(--teal);
  font-weight: 800;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.vocabulary-summary,
.vocabulary-card-heading,
.vocabulary-study-heading,
.pagination-bar,
.vocab-pronunciation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vocabulary-summary {
  margin: 0 0 0.85rem;
}

.vocabulary-summary p {
  margin: 0;
}

.curriculum-progress-label {
  margin-top: 0.35rem !important;
}

.curriculum-progress {
  display: block;
  width: min(34rem, 100%);
  height: 0.65rem;
  margin-top: 0.55rem;
  accent-color: var(--teal);
}

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

.vocabulary-grid > .empty-state,
.vocabulary-mini-grid > .empty-state {
  grid-column: 1 / -1;
}

.vocabulary-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.vocabulary-card p,
.vocabulary-study-card p {
  margin: 0;
}

.vocabulary-card-heading {
  align-items: start;
}

.review-pill {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e4f5ea;
  color: #21613c;
  padding: 0.22rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.vocab-pronunciation {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #314860;
  font-family: Georgia, "Times New Roman", serif;
}

.vocab-pronunciation span {
  border: 1px solid #d5e0ea;
  border-radius: 6px;
  background: #f7fafc;
  padding: 0.35rem 0.5rem;
}

.vocab-audio-actions .btn {
  min-height: 32px;
  padding: 0.35rem 0.55rem;
}

.feature-card .vocab-meaning {
  color: var(--ink);
  font-size: 1rem;
}

.feature-card .vocab-urdu {
  border-right: 4px solid var(--teal);
  border-radius: 6px;
  background: #eef8f7;
  color: #163f3b;
  padding: 0.55rem 0.7rem;
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
  line-height: 1.8;
}

.vocab-urdu span {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
}

.feature-card .vocab-example {
  border-left: 3px solid #b9cce1;
  color: #314860;
  padding-left: 0.65rem;
}

.pagination-bar {
  justify-content: center;
  margin: 1rem 0;
}

.pagination-bar span {
  color: var(--muted);
  font-weight: 800;
}

.vocabulary-study-panel {
  margin: 1.2rem 0 1.5rem;
}

.practice-study-support {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.practice-study-support > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  list-style: none;
  cursor: pointer;
}

.practice-study-support > summary::-webkit-details-marker {
  display: none;
}

.practice-study-support > summary strong,
.practice-study-support > summary small {
  display: block;
}

.practice-study-support > summary small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.study-support-action {
  flex: 0 0 auto;
  border: 1px solid #b9c7d6;
  border-radius: 6px;
  color: var(--blue);
  padding: 0.45rem 0.65rem;
  font-weight: 800;
}

.practice-study-support[open] .study-support-action {
  font-size: 0;
}

.practice-study-support[open] .study-support-action::after {
  content: "Close study words";
  font-size: 0.9rem;
}

.study-support-body {
  border-top: 1px solid var(--line);
  background: #f8fbfe;
  padding: 1rem;
}

.vocabulary-study-heading {
  align-items: end;
  margin: 0 0 0.8rem;
}

.vocabulary-study-heading h2,
.vocabulary-study-card h3 {
  margin: 0.1rem 0 0.45rem;
}

.vocabulary-study-heading p {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.vocabulary-study-toolbar {
  margin-bottom: 0.75rem;
}

.vocabulary-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.vocabulary-study-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.skill-content-count {
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  background: #eef8f7;
  padding: 0.55rem 0.7rem;
}

.vocabulary-trainer-mount {
  margin-bottom: 1.1rem;
}

.vocabulary-trainer-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #b9cce1;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.vocabulary-trainer-launch h2,
.vocabulary-trainer-launch p {
  margin: 0;
}

.vocabulary-trainer-launch > div:first-child {
  display: grid;
  gap: 0.35rem;
}

.trainer-launch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.trainer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.trainer-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0.6rem 0.75rem;
}

.trainer-stats strong {
  color: var(--blue);
  font-size: 1.3rem;
}

.trainer-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.trainer-reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
}

.vocabulary-trainer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f8fb;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.trainer-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.trainer-session-bar > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trainer-session-bar span {
  color: var(--muted);
}

.trainer-card {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #c7d5e4;
  border-radius: var(--radius);
  background: white;
  padding: clamp(1rem, 4vw, 2rem);
}

.trainer-card h2,
.trainer-card p {
  margin: 0;
}

.trainer-card h2 {
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1.2;
}

.trainer-instruction {
  color: var(--muted);
}

.trainer-answer-input {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.trainer-answer-input input {
  font-size: 1.08rem;
}

.trainer-definition {
  color: var(--ink);
  font-size: 1.1rem;
}

.trainer-rating-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  border: 0;
  margin: 0.25rem 0 0;
  padding: 0;
}

.trainer-rating-group legend {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.rating-button {
  display: grid;
  gap: 0.1rem;
  min-height: 72px;
  border: 1px solid;
  border-radius: 7px;
  cursor: pointer;
  padding: 0.55rem;
  font: inherit;
  text-align: left;
}

.rating-button span {
  font-size: 0.8rem;
}

.rating-button kbd {
  justify-self: end;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.72rem;
}

.rating-button.again {
  border-color: #efb0aa;
  background: #fff1ef;
  color: #8a241d;
}

.rating-button.hard {
  border-color: #e8c675;
  background: #fff8e2;
  color: #704d00;
}

.rating-button.good {
  border-color: #9fc4eb;
  background: #eef6ff;
  color: #123f82;
}

.rating-button.easy {
  border-color: #95d2c9;
  background: #edf9f7;
  color: #155e55;
}

.rating-button:hover,
.rating-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.12);
  transform: translateY(-1px);
}

.trainer-complete {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
}

.trainer-complete h2,
.trainer-complete p {
  margin: 0;
}

.trainer-complete-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.trainer-complete-stats span {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0.7rem;
}

.trainer-complete-stats strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: white;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    padding: 0.6rem;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .primary-nav.open {
    display: flex;
  }

  .desktop-navigation {
    display: none;
  }

  .mobile-navigation {
    display: grid;
    gap: 0.45rem;
  }

  .mobile-nav-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
  }

  .mobile-nav-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
  }

  .mobile-nav-group > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-links {
    display: grid;
    gap: 0.25rem;
    border-top: 1px solid var(--line);
    padding: 0.45rem;
    background: #f8fbfe;
  }

  .mobile-nav-links a {
    display: grid;
    gap: 0.08rem;
    border-radius: 7px;
    padding: 0.65rem 0.7rem;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus-visible {
    background: #e8f2ff;
  }

  .mobile-nav-links small {
    color: var(--muted);
    font-size: 0.8rem;
  }

  .hero,
  #app.has-study-sidebar,
  .quick-actions,
  .quick-actions.compact,
  .card-grid,
  .compact-grid,
  .contact-grid,
  .stat-grid,
  .announcement-strip,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

  .vocabulary-trainer-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .trainer-launch-actions {
    justify-content: flex-start;
  }

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

  .trainer-reset {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #app.has-study-sidebar > :not(.study-sidebar),
  .study-sidebar {
    grid-column: 1;
  }

  .study-sidebar {
    grid-row: auto;
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 1.2rem;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(248, 251, 255, 0.82)),
      image-set(
        url("../img/hero-aptitude-bg.webp") type("image/webp"),
        url("../img/hero-aptitude-bg.png") type("image/png")
      ) center right / cover no-repeat;
  }

  .hero .hero-panel {
    background: rgba(255, 255, 255, 0.82);
  }

  .system-strip {
    grid-template-columns: 1fr;
  }

  .mini-map.horizontal {
    grid-template-columns: 1fr;
  }

  .note-card {
    grid-column: span 1;
  }

  .lesson-card {
    grid-column: span 1;
  }

  .side-panel,
  .sticky-tools {
    position: static;
  }

  .practice-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .practice-filter-bar .btn {
    justify-self: start;
  }

  .practice-overview {
    grid-template-columns: 1fr;
  }

  .practice-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.6rem;
  }

  .site-header {
    padding: 0.7rem 0.75rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .accordion-card > summary,
  .accordion-body,
  .question-card,
  .toolbar-panel,
  .form-shell,
  .table-wrap {
    padding: 0.85rem;
  }

  .hero,
  .page-hero {
    padding-top: 1rem;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .vocabulary-summary,
  .vocabulary-study-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .vocabulary-grid,
  .vocabulary-mini-grid {
    grid-template-columns: 1fr;
  }

  .trainer-rating-group,
  .trainer-complete-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .practice-filter-bar,
  .practice-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practice-filter-bar .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .practice-overview,
  .practice-set-header,
  .set-progress-panel,
  .quiz-stepper,
  .set-complete {
    padding: 0.8rem;
  }

  .practice-set-header,
  .set-complete,
  .practice-study-support > summary {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-mode-switch {
    width: 100%;
  }

  .practice-mode-switch button {
    flex: 1;
  }

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

  .quiz-stepper {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quiz-stepper strong {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .question-pagination {
    flex-wrap: wrap;
  }

  .pagination-pages {
    order: -1;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .pagination-arrow {
    flex: 1;
  }

  .study-support-action {
    align-self: flex-start;
  }
}

.teacher-report-card {
  border-top: 4px solid var(--teal);
}

.remedial-plan-card {
  border-top: 4px solid var(--gold);
}

.remedial-homework-card {
  border-top: 4px solid var(--green);
}
