.lesson-page .brand-copy strong { color: #fff; }
.lesson-page.ch9-active .lesson-main { min-width: 0; }
.lesson-page.ch9-active .lesson-sidebar .button-outline,
.lesson-page.ch9-active .chapter9-experience .button-outline {
  color: #253d62;
  background: #fff;
  border-color: #7891ad;
}
.lesson-page.ch9-active .lesson-sidebar .button-outline:hover,
.lesson-page.ch9-active .chapter9-experience .button-outline:hover {
  color: #182840;
  background: #eef4f8;
  filter: none;
}
.lesson-page.ch9-active .form-status { color: #8a5700; }
.chapter9-experience { color: #182840; }
.chapter9-experience h1,
.chapter9-experience h2,
.chapter9-experience h3,
.chapter9-experience h4 { color: #182840; }
.ch9-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 32px;
  align-items: end;
  padding: 32px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(65,184,167,.34), transparent 28%),
    linear-gradient(135deg, #182840, #253d62 65%, #305385);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(24,40,64,.18);
}
.ch9-hero h1 { margin: 14px 0 12px; color: white; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
.ch9-hero p { max-width: 780px; margin: 0; color: #dce8f4; font-size: 18px; line-height: 1.55; }
.ch9-kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #bcd0e5; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ch9-duration { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); text-align: center; }
.ch9-duration strong { display: block; color: white; font-family: Georgia, serif; font-size: 54px; line-height: .9; }
.ch9-duration span { display: block; margin-top: 5px; color: #9fc6e5; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ch9-duration small { display: block; margin-top: 12px; color: #dce8f4; line-height: 1.45; }

.ch9-component-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.ch9-component-progress article {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  background: white;
  border: 1px solid #d2dce7;
  border-radius: 13px;
}
.ch9-component-progress article > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #305385;
  background: #e8f2fb;
  border-radius: 50%;
  font-weight: 900;
}
.ch9-component-progress article.complete { border-color: #7bc5b8; background: #f2fbf8; }
.ch9-component-progress article.complete > span { color: white; background: #146f69; }
.ch9-component-progress strong,
.ch9-component-progress small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch9-component-progress strong { font-size: 14px; }
.ch9-component-progress small { margin-top: 2px; color: #64748b; font-size: 12px; }

.ch9-stage-nav {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: flex;
  gap: 6px;
  padding: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  background: rgba(244,241,232,.94);
  border: 1px solid #d3dbe3;
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.ch9-stage-nav button {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  color: #526176;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}
.ch9-stage-nav button:hover { background: #e9eef4; }
.ch9-stage-nav button.active { color: white; background: #253d62; box-shadow: 0 7px 18px rgba(37,61,98,.18); }
.ch9-stage-nav button:disabled { color: #8a96a5; cursor: not-allowed; }

.ch9-stage { display: none; scroll-margin-top: 142px; padding: 30px; background: #fff; border: 1px solid #d6dee7; border-radius: 20px; box-shadow: 0 15px 34px rgba(24,40,64,.08); }
.ch9-stage.active { display: block; animation: ch9Fade .2s ease-out; }
@keyframes ch9Fade { from { opacity: 0; transform: translateY(5px); } }
.ch9-section-head { max-width: 850px; margin-bottom: 25px; }
.ch9-section-head.split { display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 24px; }
.ch9-section-head h2 { margin: 6px 0 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.ch9-section-head > p:last-child { color: #536276; font-size: 17px; line-height: 1.65; }
.ch9-card-label { display: inline-block; margin-bottom: 10px; color: #467cc7; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.ch9-overview-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.ch9-situation-card,
.ch9-objectives-card { padding: 25px; border-radius: 16px; }
.ch9-situation-card { color: white; background: #253d62; }
.ch9-situation-card .ch9-card-label { color: #75b6e7; }
.ch9-situation-card blockquote { margin: 8px 0 18px; color: white; font-family: Georgia, serif; font-size: 25px; line-height: 1.35; }
.ch9-situation-card p { color: #dce8f4; }
.ch9-objectives-card { background: #edf5fb; border: 1px solid #c9ddec; }
.ch9-objectives-card ol { margin: 8px 0 0; padding-left: 24px; }
.ch9-objectives-card li { margin: 10px 0; padding-left: 5px; line-height: 1.5; }
.ch9-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 25px; }
.ch9-path article { padding: 18px; background: #fafbfc; border: 1px solid #d8e0e8; border-radius: 14px; }
.ch9-path span { color: #146f69; font-weight: 900; }
.ch9-path h3 { margin: 7px 0; font-size: 18px; }
.ch9-path p { margin: 0; color: #657286; font-size: 14px; line-height: 1.45; }

.lecture-count { min-width: 105px; text-align: right; }
.lecture-count strong,
.lecture-count span { display: block; }
.lecture-count strong { color: #253d62; font-size: 24px; }
.lecture-count span { margin-top: 4px; color: #66758a; font-size: 13px; }
.lecture-progress-track { height: 7px; margin-bottom: 14px; overflow: hidden; background: #dfe7ee; border-radius: 999px; }
.lecture-progress-track i { display: block; width: 2%; height: 100%; background: linear-gradient(90deg, #467cc7, #41b8a7); transition: width .2s ease; }
.lecture-frame-shell { padding: 8px; background: #182840; border-radius: 16px; box-shadow: 0 18px 35px rgba(24,40,64,.2); }
.lecture-frame-shell iframe { display: block; width: 100%; aspect-ratio: 16 / 9; background: #d8e1eb; border: 0; border-radius: 10px; }
.lecture-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 16px 0 22px; }
.lecture-actions p { margin: 0; color: #5c6a7d; font-size: 14px; }

.warmup-workpaper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.warmup-workpaper > div { padding: 20px; background: #f5f8fb; border: 1px solid #d5e0e9; border-radius: 15px; }
.warmup-workpaper h3 { margin: 0 0 12px; color: #305385; }
.warmup-workpaper p { display: flex; justify-content: space-between; gap: 20px; margin: 8px 0; padding-bottom: 8px; border-bottom: 1px solid #dfe7ee; }
.warmup-workpaper p:last-child { border: 0; }
.warmup-answer { display: flex; gap: 16px; align-items: end; padding: 22px; margin-bottom: 16px; background: #fff9ed; border: 1px solid #ead6a9; border-radius: 15px; }
.warmup-answer label { flex: 1; font-weight: 800; }
.money-input { display: flex; align-items: center; margin-top: 7px; overflow: hidden; background: white; border: 1px solid #b9c6d2; border-radius: 9px; }
.money-input b { padding: 0 12px; color: #536276; font-size: 13px; }
.money-input input { width: 100%; padding: 11px; border: 0; outline: 0; font-size: 17px; }
.warmup-answer .form-status { flex-basis: 100%; }
.warmup-solution { padding: 18px 20px; margin-bottom: 18px; color: #245f47; background: #edf8f2; border: 1px solid #aad5bf; border-radius: 14px; }
.warmup-solution p { margin-bottom: 0; }

.mission-block { margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid #d6dee7; border-radius: 16px; }
.mission-title { display: flex; gap: 14px; align-items: center; padding: 20px 22px; background: #f5f8fb; border-bottom: 1px solid #d6dee7; }
.mission-title > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: white; background: #253d62; border-radius: 50%; font-weight: 900; }
.mission-title p,
.mission-title h3 { margin: 0; }
.mission-title h3 { margin-top: 3px; font-size: 21px; }
.prompt-block summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.prompt-block summary::-webkit-details-marker { display: none; }
.prompt-block summary span { color: #146f69; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.prompt-block summary em { color: #467cc7; font-style: normal; font-weight: 800; }
.mission-block-body { padding: 20px 22px; border-top: 1px solid #d6dee7; }
.mission-block-body pre { max-height: 360px; padding: 20px; overflow: auto; white-space: pre-wrap; color: #dce8f4; background: #182840; border-radius: 12px; font: 14px/1.6 "Segoe UI", sans-serif; }
.copy-status { display: inline-block; margin-left: 10px; color: #146f69; font-weight: 800; }

.evidence-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
.evidence-tray article { position: relative; min-width: 0; padding: 18px; background: #fbfcfd; border: 1px solid #d6dee7; border-radius: 13px; }
.document-type { display: inline-block; padding: 4px 7px; color: #305385; background: #e8f2fb; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.evidence-tray h4 { margin: 10px 0; font-size: 17px; }
.evidence-tray dl { margin: 0; }
.evidence-tray dl div { margin-top: 8px; }
.evidence-tray dt { color: #738095; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.evidence-tray dd { margin: 2px 0 0; font-weight: 800; }
.evidence-tray button { width: 100%; margin-top: 14px; padding: 8px; color: #305385; background: white; border: 1px solid #aebdca; border-radius: 8px; font-weight: 800; cursor: pointer; }
.evidence-tray button.reviewed { color: #146f69; background: #edf8f4; border-color: #7bc5b8; }

.mission-ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; padding: 18px; }
.ai-reconciliation { overflow: hidden; border: 1px solid #c9d9e7; border-radius: 13px; }
.ai-output-head { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #dce8f4; background: #305385; font-size: 13px; }
.ai-reconciliation table { width: 100%; border-collapse: collapse; }
.ai-reconciliation td,
.ai-reconciliation th { padding: 13px 16px; text-align: left; border-bottom: 1px solid #dbe3eb; }
.ai-reconciliation td:last-child,
.ai-reconciliation th:last-child { text-align: right; }
.ai-reconciliation th { background: #eef5fb; }
.ai-review-card { overflow: hidden; border: 1px solid #b9cbdc; border-radius: 13px; }
.ai-review-card header { padding: 17px; color: white; background: #253d62; }
.ai-review-card header span { color: #75b6e7; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.ai-review-card header h4 { margin: 4px 0 0; color: white; font-size: 21px; }
.ai-review-card dl { margin: 0; padding: 8px 17px 14px; }
.ai-review-card dl div { padding: 10px 0; border-bottom: 1px solid #dce4eb; }
.ai-review-card dl div:last-child { border: 0; }
.ai-review-card dt { color: #5e6e82; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ai-review-card dd { margin: 3px 0 0; line-height: 1.4; }

.mission-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; }
.mission-checklist label,
.debrief-ack { display: flex; gap: 10px; align-items: flex-start; padding: 13px; background: #f8fafb; border: 1px solid #d8e1e8; border-radius: 10px; line-height: 1.45; cursor: pointer; }
.mission-checklist input,
.debrief-ack input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: #146f69; }
.reviewer-stamp { border-color: #b9c9d7; }
.decision-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px; padding: 0; border: 0; }
.decision-options legend { grid-column: 1 / -1; margin-bottom: 4px; font-weight: 900; }
.decision-options label { position: relative; cursor: pointer; }
.decision-options input { position: absolute; opacity: 0; }
.decision-options span { display: grid; place-items: center; min-height: 58px; padding: 10px; text-align: center; background: #f7f9fb; border: 2px solid #d5dde5; border-radius: 11px; font-weight: 800; }
.decision-options input:checked + span { color: white; background: #253d62; border-color: #253d62; box-shadow: 0 7px 18px rgba(37,61,98,.16); }
.decision-options input:focus-visible + span { outline: 3px solid #f4b942; outline-offset: 2px; }
.stamp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 0 18px 18px; }
.stamp-fields label { font-size: 13px; font-weight: 900; }
.stamp-fields label.wide { grid-column: 1 / -1; }
.stamp-fields textarea { display: block; width: 100%; min-height: 92px; margin-top: 7px; padding: 12px; resize: vertical; color: #182840; background: white; border: 1px solid #aebdca; border-radius: 9px; font: 15px/1.45 "Segoe UI", sans-serif; }
.reviewer-stamp > .button,
.reviewer-stamp > .form-status { margin-left: 18px; margin-bottom: 18px; }

.decision-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.decision-compare article { padding: 22px; border-radius: 15px; }
.decision-compare article:first-child { background: #edf5fb; border: 1px solid #bdd6ea; }
.decision-compare article:last-child { color: white; background: #253d62; }
.decision-compare span,
.decision-compare strong { display: block; }
.decision-compare span { color: #467cc7; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.decision-compare article:last-child span { color: #75b6e7; }
.decision-compare strong { margin: 7px 0; font-family: Georgia, serif; font-size: 25px; }
.decision-compare article:last-child strong,
.decision-compare article:last-child p { color: white; }
.model-debrief { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.model-debrief > div { padding: 22px; background: #fbfcfd; border: 1px solid #d6dee7; border-radius: 15px; }
.model-debrief h3 { margin: 7px 0; }
.model-debrief p:last-child { color: #59697b; line-height: 1.55; }
.mistake-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mistake-links article { padding: 22px; background: #fff8eb; border: 1px solid #e7d09f; border-radius: 15px; }
.mistake-links span { color: #9b6615; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.mistake-links h3 { margin: 7px 0; }
.mistake-links a { color: #305385; font-weight: 900; }
.business-impact-card { margin-top: 16px; padding: 22px; background: #edf8f4; border: 1px solid #a9d8c8; border-left: 7px solid #146f69; border-radius: 15px; }
.business-impact-card h3 { margin: 6px 0; }
.debrief-ack { margin-top: 16px; background: white; }
.chapter-completion { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 16px; padding: 20px; background: #f3f6f9; border: 1px solid #d2dce5; border-radius: 14px; }
.chapter-completion strong,
.chapter-completion p { display: block; margin: 0; }
.chapter-completion p { margin-top: 4px; color: #617084; font-size: 13px; }
.chapter-completion .button.incomplete { color: #526176; background: #e3e9ee; border-color: #c5d0d9; }
.chapter-completion .button.incomplete:hover { color: #34465a; background: #d8e1e8; filter: none; }
.chapter-completion .button:disabled { color: #315f58; background: #d8e9e5; border-color: #b9d5cf; cursor: default; opacity: 1; }
.companion-links a { display: block; padding: 9px 0; color: #305385; border-bottom: 1px solid #d9e1e8; font-weight: 800; }
.companion-links a:last-child { border: 0; }

@media (max-width: 1180px) {
  .lesson-page.ch9-active .lesson-layout { grid-template-columns: 220px minmax(0,1fr); }
  .lesson-page.ch9-active .lesson-tools { display: none; }
  .evidence-tray { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .lesson-page.ch9-active .lesson-layout { display: block; }
  .lesson-page.ch9-active .lesson-sidebar { display: none; }
  .lesson-page.ch9-active .lesson-main { padding: 14px; }
  .ch9-hero { grid-template-columns: 1fr; padding: 24px; }
  .ch9-duration { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); text-align: left; }
  .ch9-duration strong { font-size: 38px; }
  .ch9-duration small { margin: 0 0 0 auto; max-width: 180px; text-align: right; }
  .ch9-component-progress { grid-template-columns: 1fr 1fr; }
  .ch9-stage-nav { top: 64px; margin-inline: -4px; }
  .ch9-stage-nav button { flex: 0 0 auto; }
  .ch9-stage { padding: 21px; scroll-margin-top: 125px; }
  .ch9-overview-grid,
  .warmup-workpaper,
  .mission-ai-grid,
  .decision-compare,
  .model-debrief,
  .mistake-links { grid-template-columns: 1fr; }
  .ch9-path { grid-template-columns: 1fr 1fr; }
  .lecture-actions,
  .warmup-answer,
  .chapter-completion { align-items: stretch; flex-direction: column; }
  .lecture-frame-shell { margin-inline: -12px; border-radius: 10px; }
  .lecture-frame-shell iframe { border-radius: 5px; }
  .mission-checklist { grid-template-columns: 1fr; }
  .decision-options { grid-template-columns: 1fr 1fr; }
  .stamp-fields { grid-template-columns: 1fr; }
  .stamp-fields label.wide { grid-column: auto; }
}
@media (max-width: 520px) {
  .ch9-component-progress { display: flex; overflow-x: auto; }
  .ch9-component-progress article { flex: 0 0 170px; }
  .ch9-section-head.split { display: block; }
  .lecture-count { margin-top: 12px; text-align: left; }
  .ch9-path,
  .evidence-tray { grid-template-columns: 1fr; }
  .decision-options { grid-template-columns: 1fr; }
  .prompt-block summary { grid-template-columns: 1fr auto; }
  .prompt-block summary span { grid-column: 1 / -1; }
}
