.practice-progress-overview {
  display: grid;
  gap: 26px;
  margin: 4px 0 42px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.practice-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.practice-progress-heading h1,
.practice-progress-heading p {
  margin: 0;
}

.practice-progress-heading h1 {
  margin-top: 5px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.35;
}

.practice-progress-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.practice-progress-eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.practice-exam-info-link {
  flex: 0 0 auto;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 4px;
}

.practice-exam-info-link:hover,
.practice-exam-info-link:focus-visible {
  color: var(--blue-hover);
  text-decoration-color: currentColor;
}

.practice-progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.practice-progress-main {
  display: grid;
  grid-template-columns: minmax(132px, .28fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  min-width: 0;
}

.practice-progress-count {
  display: grid;
  gap: 5px;
  padding-right: clamp(20px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.practice-progress-count > span,
.practice-overall-progress > div:first-child > span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
}

.practice-progress-count > strong {
  color: var(--navy);
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -.045em;
  line-height: 1;
}

.practice-progress-count > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.practice-overall-progress {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.practice-overall-progress > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.practice-overall-progress > div:first-child > strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
}

.practice-overall-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.practice-overall-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--action-blue), var(--action-teal));
  transition: width .25s ease;
}

.practice-overall-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.practice-overall-progress p strong {
  color: var(--navy);
}

.practice-progress-actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(46px, auto));
  gap: 10px;
}

.practice-progress-actions .button {
  width: 100%;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 12px;
}

.practice-mistake-link {
  justify-content: space-between;
  gap: 16px;
}

.practice-mistake-link > strong {
  color: var(--red);
  font-size: 11px;
  white-space: nowrap;
}

.practice-mistake-link.is-disabled > strong,
.practice-mistake-link[aria-disabled="true"] > strong {
  color: var(--subtle);
}

.practice-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(250px, auto);
  gap: 18px;
  align-items: baseline;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.practice-review-summary > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.practice-review-summary > strong {
  color: var(--blue);
  font-size: 15px;
  white-space: nowrap;
}

.practice-review-summary > small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.practice-review-summary:hover > small,
.practice-review-summary:focus-visible > small {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.practice-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 14px;
}

.practice-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.practice-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.practice-map-legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
}

.practice-map-legend i.is-complete {
  border-color: #0b9d83;
  border-radius: 50%;
  background: #0b9d83;
}

.practice-map-legend i.is-progress {
  border-color: #b7791f;
  background: #f6ad2f;
  transform: rotate(45deg) scale(.78);
}

.practice-map-legend i.is-unstarted {
  border-radius: 3px;
}

.practice-next-section {
  flex: 0 0 auto;
  color: var(--action-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.practice-next-section:hover,
.practice-next-section:focus-visible {
  text-decoration: underline;
}

.practice-chapter-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  list-style: none;
  background:
    linear-gradient(180deg, rgba(17, 108, 223, .025), transparent 42%),
    var(--surface);
}

.practice-chapter-item {
  min-width: 0;
}

.practice-chapter-card {
  display: grid;
  grid-template-rows: auto auto 4px auto;
  gap: 9px;
  min-height: 112px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(23, 43, 77, .05);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

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

.practice-chapter-top > strong {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: .04em;
}

.practice-chapter-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
}

.practice-chapter-state::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  content: "";
}

.practice-chapter-range {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.practice-chapter-progress {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.practice-chapter-progress > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--action-blue);
}

.practice-chapter-card > small {
  justify-self: end;
  white-space: nowrap;
}

.practice-chapter-card:hover {
  transform: translateY(-3px);
  border-color: var(--action-blue);
  box-shadow: 0 10px 20px rgba(17, 108, 223, .18);
}

.practice-chapter-card:focus-visible {
  outline: 3px solid rgba(17, 108, 223, .24);
  outline-offset: 3px;
  border-color: var(--action-blue);
}

.practice-chapter-card.is-complete {
  border-color: #0b9d83;
  background: color-mix(in srgb, var(--surface) 94%, #0b9d83);
}

.practice-chapter-card.is-complete .practice-chapter-state {
  color: #087764;
}

.practice-chapter-card.is-complete .practice-chapter-state::before {
  border-color: #0b9d83;
  border-radius: 50%;
  background: #0b9d83;
}

.practice-chapter-card.is-complete .practice-chapter-progress > i {
  background: #0b9d83;
}

.practice-chapter-card.is-progress {
  border-color: #b7791f;
  background: color-mix(in srgb, var(--surface) 94%, #f6ad2f);
}

.practice-chapter-card.is-progress .practice-chapter-state {
  color: #8b5a08;
}

.practice-chapter-card.is-progress .practice-chapter-state::before {
  border-color: #b7791f;
  background: #f6ad2f;
  transform: rotate(45deg) scale(.78);
}

.practice-chapter-card.is-progress .practice-chapter-progress > i {
  background: #b7791f;
}

.practice-chapter-card.is-next {
  box-shadow: 0 0 0 3px rgba(17, 108, 223, .09);
}

.exam-mode-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0 18px;
  padding: 0;
  border: 0;
}

.exam-mode-options legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.exam-mode-options label {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.exam-mode-options label:has(input:checked) {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(17, 108, 223, .12);
}

.exam-mode-options label:has(input:disabled) {
  cursor: not-allowed;
  opacity: .58;
}

.exam-mode-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--action-blue);
}

.exam-mode-options span {
  display: grid;
  gap: 4px;
}

.exam-mode-options strong {
  color: var(--navy);
  font-size: 15px;
}

.exam-mode-options small {
  color: var(--muted);
  font-size: 11px;
}

.exam-mode-options em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--action-blue);
  background: rgba(17, 108, 223, .09);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

html[data-theme="dark"] .practice-chapter-map,
html[data-theme="dark"] .practice-chapter-card,
html[data-theme="dark"] .exam-mode-options label {
  background-color: var(--surface);
}

html[data-theme="dark"] .practice-chapter-top > strong,
html[data-theme="dark"] .practice-chapter-range,
html[data-theme="dark"] .exam-mode-options legend,
html[data-theme="dark"] .exam-mode-options strong {
  color: #fff;
}

html[data-theme="dark"] .practice-chapter-card.is-complete .practice-chapter-state {
  color: #6ee7cf;
}

html[data-theme="dark"] .practice-chapter-card.is-progress .practice-chapter-state {
  color: #f8cc72;
}

html[data-theme="dark"] .practice-progress-count > strong,
html[data-theme="dark"] .practice-overall-progress > div:first-child > strong,
html[data-theme="dark"] .practice-overall-progress p strong,
html[data-theme="dark"] .practice-review-summary > span {
  color: var(--navy);
}

html[data-theme="dark"] .practice-overall-progress-track {
  background: var(--line-strong);
}

@media (max-width: 620px) {
  .practice-progress-overview {
    gap: 22px;
    margin-bottom: 34px;
    padding: 24px 0 26px;
  }

  .practice-progress-heading {
    flex-direction: column;
    gap: 10px;
  }

  .practice-exam-info-link {
    margin-top: 0;
  }

  .practice-progress-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .practice-progress-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .practice-review-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
  }

  .practice-review-summary > small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .practice-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-chapter-map {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 9px;
    padding: 12px;
  }

  .practice-chapter-card {
    min-height: 106px;
    padding: 11px 9px;
  }

  .exam-mode-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .practice-progress-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .practice-progress-count {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .practice-progress-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-overall-progress-track > span {
    transition: none;
  }
}
