:root {
  --blue: #792BB7;
  --blue-bright: #B044D6;
  --blue-deep: #210833;
  --sky: #F2E6FA;
  --bg: #FBF8FC;
  --card: #FFFFFF;
  --ink: #1A0A24;
  --muted: #74677B;
  --line: #E2D5E8;
  --green: #16794C;
  --green-bg: #E6F4EC;
  --amber: #8A5A00;
  --amber-bg: #FFF4D6;
  --red: #B42318;
  --red-bg: #FDECEA;
  --shadow: 0 1px 2px rgba(33, 8, 51, .06), 0 12px 32px rgba(33, 8, 51, .09);
  --focus: 0 0 0 3px #fff, 0 0 0 6px rgba(176, 68, 214, .62);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: linear-gradient(180deg, #F4EAFB 0, var(--bg) 360px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, textarea, select, input { font: inherit; }

button { color: inherit; }

a { color: var(--blue); }

a:hover { color: var(--blue-deep); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--blue-deep);
  line-height: 1.18;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.35rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.02em; }
h3 { font-size: 1.16rem; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.course-shell { min-height: 100vh; display: flex; flex-direction: column; }

.sticky-chrome {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(250, 246, 252, .97);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(250, 246, 252, .97);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  flex: none;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue) 58%, var(--blue-bright));
  box-shadow: 0 2px 10px rgba(33, 8, 51, .16);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.course-title {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.course-title small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-title strong {
  overflow: hidden;
  color: var(--blue-deep);
  font-size: .98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-back {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-deep);
  background: #fff;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.site-back:hover { color: #fff; background: var(--blue); }

.voice-controls { display: flex; gap: 6px; }

.icon-button,
.menu-button,
.close-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
}

.icon-button { padding: 8px 11px; }

.icon-button:hover,
.menu-button:hover,
.close-button:hover { border-color: #C69AD6; background: var(--sky); }

.icon-button:disabled { cursor: not-allowed; opacity: .45; }

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
}

.menu-button span:first-child { font-size: 1.1rem; line-height: 1; }

.progress-track {
  height: 6px;
  background: #EADFF0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transition: width .45s ease;
}

.stage {
  width: min(1080px, calc(100% - 36px));
  min-height: 580px;
  margin: 28px auto 14px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.screen-enter { animation: screen-in .45s cubic-bezier(.2, .7, .2, 1) both; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--blue-bright);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: var(--blue-bright);
  content: "";
}

.lead {
  max-width: 66ch;
  color: #5F5268;
  font-size: 1.13rem;
}

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

.hero-screen {
  position: relative;
  display: grid;
  min-height: 510px;
  align-items: center;
  margin: calc(clamp(24px, 5vw, 48px) * -1);
  padding: clamp(30px, 7vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(176, 68, 214, .78), transparent 38%),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.hero-screen::before,
.hero-screen::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
}

.hero-screen::before { right: -90px; top: -70px; width: 340px; height: 340px; }
.hero-screen::after { right: 15%; bottom: -145px; width: 280px; height: 280px; }

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-screen h1 { max-width: 14ch; color: #fff; }
.hero-screen .lead { max-width: 58ch; color: #F2E6FA; font-size: 1.2rem; }

.hero-meta,
.credit-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 12px 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .9rem;
  font-weight: 800;
}

.credit-pill {
  border-left: 3px solid #E1B7F1;
  border-radius: 0 8px 8px 0;
  background: rgba(33, 8, 51, .55);
}

.hero-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-map span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  color: #F7EDFC;
  font-size: .82rem;
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(33, 8, 51, .05);
}

.card.tint { background: var(--sky); }
.card h3 { margin-bottom: 7px; }
.card p:last-child { margin-bottom: 0; }

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

.decision-path {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33, 8, 51, .06);
}

.decision-path.learning-path { border-top-color: var(--blue-bright); background: #FDF9FF; }

.path-label,
.choice-label {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.path-steps {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.path-steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--sky);
}

.path-steps li > span,
.combo-flow article > span {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.path-key {
  margin: 0;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--blue-deep);
  background: #F2E6FA;
}

.combination-example {
  margin-top: 26px;
  padding: clamp(20px, 3vw, 28px);
  border: 2px solid #CFB3DC;
  border-radius: 19px;
  background: #FDF9FF;
}

.combo-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.combo-flow article {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.combo-flow p { margin: 5px 0 0; }

.number-card { position: relative; padding-top: 58px; }

.number-card .number {
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: .86rem;
  font-weight: 900;
}

.concept-map {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 24px auto;
}

.concept-node {
  position: relative;
  padding: 16px 20px;
  border: 2px solid var(--blue);
  border-radius: 16px;
  color: var(--blue-deep);
  background: #fff;
  font-weight: 800;
}

.concept-node + .concept-node { margin-left: 9%; }
.concept-node + .concept-node::before {
  position: absolute;
  left: -6%;
  top: -14px;
  width: 2px;
  height: 14px;
  background: var(--blue-bright);
  content: "";
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.glossary-grid article {
  padding: 15px;
  border: 1px dashed #B88ACB;
  border-radius: 13px;
  background: #FDFAFF;
}

.glossary-grid h3 { margin-bottom: 5px; }
.glossary-grid p { margin: 0; }

.hierarchy-map { max-width: 820px; margin: 24px auto; }

.hierarchy-level {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 2px solid var(--blue);
  border-radius: 17px;
  color: var(--blue-deep);
  background: #FBF4FF;
}

.hierarchy-level strong { font-size: 1.08rem; }
.hierarchy-level > span { color: var(--muted); }
.hierarchy-level .hierarchy-level { margin: 16px 0 0 6%; background: #fff; }
.hierarchy-level .hierarchy-dl { margin-left: 8%; border-color: var(--blue-bright); background: var(--sky); }

.definition {
  margin: 20px 0;
  padding: 17px 19px;
  border-left: 6px solid var(--blue-bright);
  border-radius: 0 13px 13px 0;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.note,
.warning,
.success-box {
  margin-top: 18px;
  padding: 14px 17px;
  border-radius: 13px;
}

.note { border: 1px solid #CFB3DC; background: #FDFAFF; }
.warning { border: 1px solid #F0D28D; background: var(--amber-bg); }
.success-box { border: 1px solid #ABD5BF; background: var(--green-bg); }

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-left: 34px;
}

.timeline::before {
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--blue), var(--blue-bright));
  content: "";
}

.timeline-item { position: relative; }

.timeline-item::before {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 2px var(--blue-bright);
  content: "";
}

.timeline-item time {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 900;
}

.timeline-item h3 { margin: 2px 0 3px; }

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.process li {
  position: relative;
  min-height: 132px;
  padding: 15px;
  border-radius: 15px;
  background: var(--sky);
}

.process li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  right: -11px;
  top: 46%;
  color: var(--blue);
  content: "→";
  font-weight: 900;
}

.process b { display: block; margin-bottom: 7px; color: var(--blue-deep); }

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

.prompt-method li { min-height: 150px; }

.prompt-method li:not(:last-child)::after { display: none; }

.compare-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th { color: var(--blue-deep); background: var(--sky); }

.activity-panel {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid #CFB3DC;
  border-radius: 19px;
  background: #FDF9FF;
}

.activity-panel > h2,
.activity-panel > h3 { margin-bottom: 8px; }

.choice-guide { margin: 24px 0; }
.choice-guide > h2 { margin-bottom: 14px; font-size: 1.35rem; }

.choice-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.choice-guide-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 16px;
  background: #fff;
}

.choice-guide-card:nth-child(2) { border-top-color: var(--blue-bright); background: #FDF9FF; }
.choice-guide-card h3 { margin-bottom: 7px; }
.choice-guide-card > p:last-child { margin-bottom: 0; }

.choice-clue {
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--sky);
  font-size: .92rem;
  font-weight: 700;
}

.instructions {
  padding: 11px 14px;
  border-left: 4px solid var(--blue-bright);
  background: #fff;
}

.question-block {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.question-block legend,
.question-title {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-weight: 800;
}

fieldset.question-block { min-width: 0; }

.radio-option,
.check-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  margin: 8px 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.radio-option:hover,
.check-option:hover { border-color: #C69AD6; background: #FBF4FF; }

.radio-option input,
.check-option input { flex: none; margin-top: 5px; accent-color: var(--blue); }

.select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.activity-status {
  margin: 14px 0;
  color: var(--muted);
  font-size: .95rem;
}

.prompt-guide {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid #CFB3DC;
  border-radius: 13px;
  background: var(--sky);
}

.prompt-guide h3 { margin-bottom: 8px; }
.prompt-guide ul { margin: 0; padding-left: 22px; }

.guided-activity .choice-row {
  display: block;
  margin: 16px 0;
  padding: 19px;
  border-left: 5px solid var(--blue);
}

.choice-row legend {
  width: 100%;
  padding: 0;
}

.case-number {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-text {
  display: block;
  color: var(--blue-deep);
  font-size: 1.08rem;
  font-weight: 800;
}

.case-prompt { margin: 13px 0 8px; color: var(--muted); font-size: .92rem; }

.matrix-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.matrix-choice {
  display: flex;
  gap: 10px;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-weight: 750;
}

.matrix-choice:hover,
.matrix-choice:focus-within { border-color: var(--blue-bright); background: #FBF4FF; }
.matrix-choice input { flex: none; accent-color: var(--blue); }
.matrix-choice input:checked + span { color: var(--blue-deep); font-weight: 900; }

select,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}

select { min-height: 46px; padding: 7px 10px; }

textarea { min-height: 135px; padding: 12px 14px; resize: vertical; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { border-color: var(--blue); color: var(--blue); background: #fff; }
.button.secondary:hover { background: var(--sky); }
.button.ghost { border-color: var(--line); color: var(--blue-deep); background: #fff; }
.button:disabled { cursor: not-allowed; opacity: .45; }

.order-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

.order-chip {
  min-height: 46px;
  padding: 9px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.order-chip:hover { border-color: var(--blue-bright); }
.order-chip[aria-pressed="true"] { border-color: var(--blue); color: #fff; background: var(--blue); }
.order-result { min-height: 58px; padding: 13px; border: 2px dashed var(--line); border-radius: 13px; background: #fff; }

.feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 650;
}

.feedback[hidden] { display: none; }
.feedback.good { border: 1px solid #ABD5BF; color: #0A5B37; background: var(--green-bg); }
.feedback.try { border: 1px solid #E6C879; color: #6C4600; background: var(--amber-bg); }
.feedback.bad { border: 1px solid #E8AFA8; color: #8D1C13; background: var(--red-bg); }

.score-card {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  background: var(--sky);
}

.score-card strong { color: var(--blue-deep); font-size: 2.2rem; }

.source-list { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }

.source-list li {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.source-list a { font-weight: 800; }
.source-list small { display: block; margin-top: 3px; color: var(--muted); }

.sources-disclosure {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.sources-disclosure summary {
  padding: 16px 18px;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 900;
}

.sources-disclosure[open] { padding: 0 18px 18px; }
.sources-disclosure[open] summary { margin: 0 -18px 8px; border-bottom: 1px solid var(--line); }

.course-nav {
  display: grid;
  width: min(1080px, calc(100% - 36px));
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 auto 28px;
}

.course-nav #nextButton { justify-self: end; }
.course-nav #prevButton { justify-self: start; }
.course-nav p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 800; text-align: center; }

.course-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 16px max(18px, calc((100vw - 1080px) / 2));
  color: #F2E6FA;
  background: var(--blue-deep);
  font-size: .82rem;
}

.course-footer p { margin: 0; }

.index-overlay {
  position: fixed;
  z-index: 39;
  inset: 0;
  background: rgba(33, 8, 51, .34);
}

.course-index {
  position: fixed;
  z-index: 40;
  right: 14px;
  top: 74px;
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 90px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(33, 8, 51, .24);
}

.index-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.index-head small { color: var(--blue-bright); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.index-head h2 { margin: 2px 0 0; font-size: 1.4rem; }
.close-button { width: 44px; padding: 0; font-size: 1.4rem; }
.index-progress { margin: 12px 0; color: var(--muted); font-size: .9rem; }
.course-index ol { margin: 0; padding: 0; list-style: none; }

.index-section {
  padding: 12px 8px 5px;
  color: var(--blue-bright);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.index-button {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 9px;
  align-items: center;
  min-height: 45px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.index-button:hover,
.index-button[aria-current="step"] { background: var(--sky); }

.index-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: #EEE0F6;
  font-size: .76rem;
  font-weight: 900;
}

.index-button[aria-current="step"] .index-number { color: #fff; background: var(--blue); }
.index-name { overflow: hidden; font-size: .91rem; text-overflow: ellipsis; white-space: nowrap; }
.index-check { color: var(--green); font-weight: 900; }

.reset-panel {
  margin-top: 14px;
  padding: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.reset-panel > .button { width: 100%; }
.reset-panel p { margin: 0 0 8px; }
.reset-panel .button-row { margin-top: 8px; }
.reset-panel .button-row .button { min-height: 42px; padding: 8px 11px; font-size: .84rem; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr; }
  .decision-paths,
  .combo-flow { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process li { min-height: auto; }
  .process li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -16px; transform: rotate(90deg); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { flex-wrap: wrap; padding: 9px 12px; }
  .brand-mark { width: 40px; height: 40px; font-size: .92rem; }
  .course-title small { display: none; }
  .site-back { order: 3; flex: 1; justify-content: center; }
  .voice-controls { order: 3; width: 100%; }
  .voice-controls .icon-button { flex: 1; }
  .menu-button { margin-left: auto; }
  .course-index { top: 124px; max-height: calc(100vh - 138px); }
  .stage { width: calc(100% - 22px); min-height: 520px; margin-top: 18px; border-radius: 18px; }
  .grid.two,
  .grid.four { grid-template-columns: 1fr; }
  .select-row { grid-template-columns: 1fr; }
  .matrix-choices { grid-template-columns: 1fr; }
  .course-nav { width: calc(100% - 22px); grid-template-columns: 1fr 1fr; }
  .course-nav p { order: -1; grid-column: 1 / -1; }
  .course-nav .button { width: 100%; }
  .course-footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 390px) {
  .course-title strong { font-size: .86rem; }
  .menu-button { padding: 7px 9px; }
  .menu-button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .stage { padding: 20px 16px; }
  .hero-screen { margin: -20px -16px; padding: 26px 20px; }
  .button { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .progress-track, .course-nav, .course-footer, .course-index, .index-overlay { display: none !important; }
  body { background: #fff; }
  .stage { width: 100%; min-height: 0; margin: 0; border: 0; box-shadow: none; }
}
