/* StudyPlatform components
 * Owns reusable visual components only. Page placement and all width-based
 * responsive behavior belong to layout.css.
 *
 * Material roles:
 * - Glass: navigation-adjacent orientation and "continue" surfaces.
 * - Solid: reading, answering and dense study surfaces.
 * - Tonal: low-emphasis grouping inside solid study surfaces.
 */

.btn,
button.btn,
a.btn {
  min-height: var(--control-height);
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.btn-primary,
button.btn-primary,
a.btn-primary {
  border-color: color-mix(in srgb, var(--accent) 78%, var(--line));
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #7a5cff));
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

:root[data-theme="dark"] :where(.btn-primary, button.btn-primary, a.btn-primary) {
  color: #0d131b;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] :where(.btn-primary, button.btn-primary, a.btn-primary) {
    color: #0d131b;
  }
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: linear-gradient(135deg, var(--accent-hover), color-mix(in srgb, var(--accent-hover) 78%, #8d73ff));
}

.btn-soft {
  background: var(--surface-soft);
}

.btn-danger {
  color: var(--danger);
}

/* ---------- Home / glass orientation surfaces ---------- */
.home-eyebrow,
.provider-eyebrow,
.track-type,
.hero-kicker {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.home-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 3.8vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.home-lead {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.provider-heading h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.provider-track-count {
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.home-noscript {
  color: var(--muted);
}

.track-card,
.resume-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

.track-card::before,
.resume-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glass-highlight), transparent);
  opacity: 0.42;
}

.track-card {
  min-width: 0;
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
  .track-card:hover {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--glass-border));
    box-shadow: 0 22px 62px color-mix(in srgb, var(--accent) 10%, transparent), var(--glass-shadow);
    transform: translateY(-2px);
  }
}

.track-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.track-card-head > div {
  min-width: 0;
}

.track-card h2,
.track-card h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.track-status {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border-muted);
  border-radius: 999px;
  background: var(--glass-fill-soft);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
}

.track-description {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}

.track-topics {
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.track-topics li {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.2;
}

.track-card-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--glass-border-muted);
}

.track-updated {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.45;
}

.track-action {
  min-height: var(--control-height);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 76%, transparent);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #7a5cff));
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 20%, transparent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

:root[data-theme="dark"] .track-action {
  color: #0d131b;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .track-action {
    color: #0d131b;
  }
}

.track-action:hover {
  box-shadow: 0 11px 28px color-mix(in srgb, var(--accent) 26%, transparent);
  transform: translateY(-1px);
}

.home-footer,
.site-footer {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.6;
}

.home-footer p,
.site-footer p {
  margin-bottom: 6px;
}

/* ---------- Hero / orientation ---------- */
.hero {
  min-width: 0;
  padding: 46px 0 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.hero-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-stats {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.hero-stat,
.score-pill,
.stage-progress {
  min-width: 112px;
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius-md);
  background: var(--glass-fill-soft);
  text-align: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 5%, transparent);
  backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
}

.hero-stat strong {
  font-size: 23px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.score-pill strong,
.stage-progress strong {
  font-size: 18px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stat span,
.score-pill span,
.stage-progress span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.progress-tools {
  width: fit-content;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.progress-tools > summary {
  min-height: 42px;
  padding: 8px 2px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}

.progress-tools-body {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--solid-shadow);
}

.progress-tools .language-policy {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- Dashboard: glass continuation + solid study overview ---------- */
.resume-panel,
.block,
.readiness-dashboard {
  min-width: 0;
  border-radius: var(--radius-lg);
}

.resume-panel {
  padding: 28px;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--glass-border));
}

.resume-copy {
  min-width: 0;
}

.resume-copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
}

.resume-copy h2 {
  margin-bottom: 7px;
  font-size: 23px;
  line-height: 1.3;
}

.resume-copy p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.resume-copy small {
  font-size: 13.5px;
}

.block,
.readiness-dashboard {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--solid-shadow);
}

.readiness-dashboard,
body[data-study-view="dashboard"] .block {
  padding: 28px;
}

.block-head h2,
.readiness-dashboard h2,
.roadmap-head h2 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.block-head p,
.readiness-dashboard p,
.roadmap-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.roadmap-head {
  margin: 10px 0 4px;
}

.readiness-grid,
.weakness-list {
  display: grid;
}

.gate-bar {
  min-width: 0;
  min-height: 48px;
  padding: 11px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.gate-bar:last-child {
  border-bottom: 0;
}

.gate-bar > span {
  min-width: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
}

.gate-bar > strong {
  flex: 0 0 auto;
  font-size: 15.5px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.gate-bar > strong small {
  font-size: 12.5px;
}

.status-text {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Chapter / reading surfaces stay opaque ---------- */
.chapter-list {
  display: grid;
  gap: 12px;
}

details.chapter {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--solid-shadow);
}

details.chapter > summary {
  min-width: 0;
  min-height: 112px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

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

.chapter-index {
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chapter-summary {
  min-width: 0;
}

.chapter-summary small {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.chapter-summary h2 {
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.chapter-summary p {
  max-width: 62ch;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.chapter-next-step {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

.chapter-progress {
  min-width: 72px;
  text-align: center;
}

.chapter-progress strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.chapter-progress span {
  margin-top: 4px;
  display: block;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.2;
}

.chapter-body {
  min-width: 0;
}

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

.focus-card {
  min-width: 0;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.focus-card > span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.focus-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.optional-row {
  min-width: 0;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 15px;
  line-height: 1.55;
}

.stage {
  min-width: 0;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--solid-shadow);
}

.stage-head {
  min-width: 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 48%, var(--surface));
}

.stage-no {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.stage-head > div {
  min-width: 0;
}

.stage-head h3 {
  margin-bottom: 5px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.022em;
}

.stage-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.stage-content {
  min-width: 0;
  padding: 24px;
  font-size: 16.5px;
  line-height: 1.72;
}

.stage-content > :where(p, ul, ol),
.detail-box > :where(p, ul, ol),
.feedback > :where(p, ul, ol),
.model-answer > :where(p, ul, ol) {
  max-width: var(--reading-measure);
}

.subhead {
  margin: 30px 0 13px;
}

.stage-content > .subhead:first-child,
.cert-phase > .subhead:first-child {
  margin-top: 0;
}

.subhead b {
  display: block;
  font-size: 17.5px;
}

.subhead small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.concept {
  min-width: 0;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.concept strong,
.concept span {
  font-size: 16px;
  line-height: 1.68;
}

.note-list,
.task-list {
  padding-left: 1.5em;
}

.note-list li,
.task-list li {
  margin: 9px 0;
  font-size: 16px;
  line-height: 1.72;
}

.stage-ack,
.deliverable-check,
.mastery,
.completion-list label,
.goal-grid label {
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.6;
}

.completion-list,
.goal-grid {
  display: grid;
  gap: 8px;
}

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

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

.resource {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.resource-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
}

.badges,
.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.lang-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.badge-required,
.badge-scope-required {
  color: var(--text);
  font-weight: 800;
}

.resource h4 {
  margin: 9px 0 6px;
  font-size: 17px;
  line-height: 1.5;
}

.resource p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.resource-progress {
  min-width: 126px;
}

.resource-progress label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

.resource-progress select,
.cert-course select {
  min-width: 118px;
  min-height: var(--control-height);
  padding: 7px 10px;
  font-size: 14px;
}

.resource details {
  margin-top: 16px;
}

.resource details > summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.resource-detail {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-box {
  min-width: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.detail-box h5 {
  margin-bottom: 7px;
  font-size: 15.5px;
}

.detail-box p,
.detail-box li {
  font-size: 15px;
  line-height: 1.68;
}

.gate {
  min-width: 0;
  margin-top: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.gate-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.gate h4,
.output-card h4 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.45;
}

.gate p,
.output-card p,
.scope-out {
  font-size: 15.5px;
  line-height: 1.68;
}

.gate-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.output-card,
.scope-out,
.feedback,
.model-answer {
  min-width: 0;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.output-card p {
  margin-bottom: 10px;
}

/* ---------- Quiz / Practice stay opaque for legibility ---------- */
.quiz-shell,
.practice-shell {
  margin-top: 18px;
}

.quiz-head,
.practice-headbar {
  min-width: 0;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
}

.quiz-head h4,
.practice-headbar h4 {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.5;
}

.quiz-head p,
.practice-headbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.quiz-list,
.practice-list {
  display: grid;
  gap: 16px;
}

.quiz-card,
.practice-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.quiz-card h4,
.practice-card h4 {
  margin: 13px 0 16px;
  font-size: 18.5px;
  line-height: 1.62;
}

.option-list {
  display: grid;
  gap: 9px;
}

.option {
  min-width: 0;
  min-height: 56px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}

.option:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.option.correct,
.option.is-correct {
  border-color: var(--success);
  background: var(--success-soft);
}

.option.wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.feedback > strong,
.model-answer > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.45;
}

.feedback p,
.feedback li,
.model-answer p,
.model-answer li {
  font-size: 15.5px;
  line-height: 1.7;
}

.feedback-hint {
  border-left: 3px solid var(--warning);
}

.feedback-explain {
  border-left: 3px solid var(--success);
}

.answer-rationale-list {
  margin-top: 8px;
}

.answer-rationale-list li {
  padding: 12px 0;
}

.official-reference {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

.practice-answer-label {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
}

.quiz-actions,
.practice-actions,
.cert-tools,
.toolbar,
.step-focus-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.quiz-actions,
.practice-actions {
  margin-top: 18px;
}

.practice-rubric {
  margin: 16px 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-rubric legend {
  font-size: 14px;
  font-weight: 700;
}

.practice-rubric label {
  min-height: 44px;
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.practice-rubric label:last-of-type {
  border-bottom: 0;
}

/* ---------- Certification ---------- */
.cert-phase-list {
  display: grid;
  gap: 20px;
}

.cert-phase {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--solid-shadow);
}

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

.cert-overview > div {
  min-width: 0;
  min-height: 96px;
  padding: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  text-align: center;
}

.cert-overview > div > span,
.cert-overview > div > small {
  font-size: 12.5px;
  line-height: 1.35;
}

.cert-overview > div > strong {
  font-size: 21px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cert-course-list {
  display: grid;
  gap: 8px;
}

.cert-course {
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.cert-course > a {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.cert-tool,
.future-cert {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.cert-tool {
  display: grid;
  gap: 12px;
}

.cert-tool h4,
.future-cert h4 {
  margin-bottom: 0;
  font-size: 16.5px;
  line-height: 1.5;
}

.cert-tool label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.exam-domain {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.exam-domain > summary {
  min-height: 50px;
  padding: 12px 14px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.exam-domain > .quiz-shell {
  padding: 14px;
}

.future-certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  opacity: 0.65;
}

.concept-catalog {
  width: 100%;
  margin: 0 0 24px;
}

.concept-catalog > summary {
  min-height: 50px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.source-supplement {
  margin-bottom: 20px;
}

.toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 300;
  max-width: min(340px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-fill-strong);
  color: var(--text);
  box-shadow: var(--glass-shadow-compact);
  font-size: 13px;
  backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-compact)) saturate(var(--glass-saturation));
}
