.learn-main {
  --learn-surface: #fffefa;
  --learn-soft: #eeefe5;
  --learn-lavender: #e4ddfa;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.etf-basket { border:2px solid #a5b68b; border-radius:12px 12px 28px 28px; padding:16px; background:#fffefa; text-align:center; }
.etf-label { font-size:11px; letter-spacing:2px; color:#59614d; }
.etf-holdings { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0; }
.etf-holdings > span { background:#e4ddfa; border-radius:8px; padding:14px 6px; font-size:12px; font-weight:600; }
.etf-holdings small { display:block; font-size:11px; font-weight:400; margin-top:6px; }
.etf-basket > strong { display:block; font-size:12px; line-height:1.5; }
/* Shared compact mobile lesson layout. Desktop is unchanged. */
@media (max-width: 600px) {
  .scenario.company-mobile { padding:18px; margin:12px 0; padding-bottom:100px; }
  .company-mobile > .eyebrow { display:none; }
  .company-mobile .scenario-steps { margin:0 0 14px; }
  .learn-main .company-mobile h1 { font-size:25px; line-height:1.2; letter-spacing:-.6px; margin:12px 0; }
  .company-mobile .lesson-visual { padding:12px; margin:14px 0; }
  .company-mobile .lesson-visual figcaption,
  .company-mobile .lesson-visual .visual-note { display:none; }
  .company-mobile .concept-flow { flex-direction:row; gap:6px; align-items:stretch; }
  .company-mobile .concept-flow .flow-arrow { display:none; }
  .company-mobile .concept-flow .concept-card:has(.lesson-illustration) { display:flex; flex-direction:column; padding:10px 4px; gap:6px; text-align:center; }
  .company-mobile .concept-card .lesson-illustration { width:100%; max-width:95px; margin:auto; }
  .company-mobile .concept-card strong { font-size:12px; }
  .company-mobile .concept-card small { display:none; }
  .company-mobile .story-text { font-size:16px; line-height:1.6; margin:14px 0; }
  .company-mobile .choice-label { font-size:12px; margin:10px 0; }
  .company-explore .concept-card { display:none !important; }
  .company-explore[data-part="0"] .concept-card:nth-child(1),
  .company-explore[data-part="1"] .concept-card:nth-child(3),
  .company-explore[data-part="2"] .concept-card:nth-child(5) { display:flex !important; outline:none !important; box-shadow:none; border:0; background:transparent; }
  .company-explore .concept-card strong { display:none; }
  .company-explore .concept-card .lesson-illustration { width:150px; max-width:150px; max-height:125px; }
  .company-mobile .lesson-navigation { position:fixed; bottom:0; left:0; right:0; z-index:10; margin:0; padding:12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background:#f5f5ee; box-shadow:0 -4px 16px #2429240a; }
  .company-mobile .lesson-navigation button { min-height:48px; font-size:14px; }
  /* Comparisons need both sides and their labels, unlike the company tour. */
  .company-mobile:not([data-lesson="company"]) .concept-card small { display:block; font-size:11px; }
  .company-mobile:not([data-lesson="company"]) .lesson-visual figcaption { display:block; font-size:13px; margin-bottom:12px; padding-bottom:8px; }
  .company-mobile .lesson-visual figcaption > span { display:none; }
  .company-mobile:not([data-lesson="company"]) .visual-note { display:block; font-size:12px; margin-top:10px; }
  .company-mobile .ownership-brand { gap:10px; margin-bottom:10px; }
  .company-mobile .ownership-brand .lesson-illustration { width:65px; }
  .company-mobile .ownership-brand strong { font-size:16px; }
  .company-mobile .concept-tiles { gap:5px; }
  .company-mobile .concept-tiles > span { height:42px; gap:3px; }
  .company-mobile .budget-total { font-size:18px; margin-top:12px; }
  .company-mobile .ownership-scene { flex-direction:row; gap:14px; align-items:center; }
  .company-mobile .ownership-grid { width: min(42%, 140px); gap:3px; }
  .company-mobile .visual-stat { min-width:0; }
  .company-mobile .visual-stat strong { font-size:24px; }
  .company-mobile .visual-stat p { margin:8px 0; }
  .company-mobile .share-ticket { min-width:0; padding:10px 18px; }
  .company-mobile .share-equation { gap:10px; }
  .company-mobile .share-equation > strong { font-size:18px; }
  .company-mobile .visual-bar-row { margin:10px 0; }
  .company-mobile .profit-row { margin:10px 0; }
  .company-mobile .mock-post { padding:12px; gap:8px; }
  .company-mobile .mock-post blockquote { font-size:16px; }
  .company-mobile .check-prompt { margin-top:16px; }
  .company-mobile .check-answers { gap:10px; margin:16px 0; }
}
.animation-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #24292415;
  padding-top: 14px;
  margin-top: 16px;
}
.animation-controls > span {
  flex: 1 1 180px;
  font-size: 12px;
  line-height: 1.5;
  color: #59614d;
}
.animation-controls button {
  border: 1px solid #b7bcae;
  background: #fffefa;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.animation-controls button:hover {
  background: #e4ddfa;
}
@media (prefers-reduced-motion: reduce) {
  .animation-controls button {
    display: none;
  }
}
/* Illustrated learning materials: crisp at every screen size. */
.lesson-visual {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px #24292408;
}
.lesson-visual figcaption {
  padding-bottom: 16px;
  border-bottom: 1px solid #24292415;
}
.lesson-illustration {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0 auto 8px;
}
.concept-flow .concept-card {
  padding: 16px 10px 20px;
  box-shadow: 0 4px 0 #2429240a;
}
.concept-flow .concept-card:has(.lesson-illustration) {
  background: linear-gradient(160deg, #fffefa, #f7f7f0);
}
.concept-flow .concept-card strong {
  font-size: 16px;
}
.concept-flow .flow-arrow {
  background: #fffefa;
  border: 1px solid var(--line);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
}
.ownership-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.ownership-brand .lesson-illustration {
  width: 110px;
  margin: 0;
}
.ownership-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
  margin-top: 8px;
}
.concept-tiles > span {
  height: 66px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 3px 0 #24292412;
}
.concept-tiles small {
  font-size: 8px;
  letter-spacing: 1px;
  opacity: 0.7;
}
.concept-tiles b {
  font-size: 11px;
}
.share-ticket {
  min-width: 110px;
  box-shadow: 4px 5px 0 #24292418;
  border-bottom: 3px solid var(--ink);
  position: relative;
}
.visual-bar-row .visual-track {
  height: 28px;
  border: 1px solid #24292412;
}
.visual-bar {
  box-shadow: inset 0 2px 0 #ffffff30;
}
.mock-post {
  box-shadow: 0 5px 0 #2429240a;
}
@media (max-width: 500px) {
  .concept-flow .concept-card:has(.lesson-illustration) {
    display: grid;
    grid-template-columns: 90px 1fr;
    text-align: left;
    align-items: center;
    column-gap: 16px;
  }
  .concept-card .lesson-illustration {
    grid-row: span 2;
    margin: 0;
  }
  .concept-flow .concept-card small {
    align-self: start;
  }
  .concept-flow .flow-arrow {
    margin: auto;
  }
  .ownership-brand {
    gap: 10px;
  }
  .ownership-brand strong {
    font-size: 18px;
  }
}
.concept-flow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.concept-card {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px 10px;
  text-align: center;
  background: var(--learn-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.concept-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: auto;
  border-radius: 12px;
  background: var(--learn-lavender);
  font-size: 24px;
}
.concept-card strong {
  font-size: 14px;
}
.concept-card small {
  font-size: 12px;
  line-height: 1.5;
  color: #59614d;
}
.flow-arrow {
  color: var(--purple);
  font-size: 22px;
}
.exchange-return {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--lime);
  font-size: 14px;
  text-align: center;
}
.concept-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.concept-tiles span {
  display: grid;
  place-items: center;
  height: 45px;
  background: #dfe3d2;
  border: 1px solid #b4bca5;
  border-radius: 8px;
}
.concept-tiles .owned-tile {
  background: var(--lime);
  border-color: var(--ink);
}
.share-equation {
  display: grid;
  gap: 20px;
  text-align: center;
}
.share-ticket {
  display: inline-block;
  padding: 18px;
  margin: 4px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--learn-lavender);
  font-size: 12px;
  line-height: 1.8;
}
.share-equation > strong {
  font-size: 22px;
}
.path-section h2 {
  font-size: 21px;
  margin: 18px 0 8px;
}
.path-section p {
  font-size: 14px;
  color: #59614d;
  margin: 0 0 8px;
}
@media (max-width: 500px) {
  .concept-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
  .path-preview > span {
    width: 32px;
    height: 36px;
    font-size: 20px;
  }
}
.path-preview {
  display: flex;
  align-items: center;
  max-width: 340px;
  margin-bottom: 28px;
}
.path-preview > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #e7e1f7;
  color: #5642b6;
  font-size: 24px;
}
.path-preview > span.done {
  background: #dcebdd;
  color: #315e41;
}
.path-preview i {
  height: 2px;
  flex: 1;
  background: #d5cee5;
}
.scenario-steps {
  display: flex;
  gap: 16px;
  margin: 18px 0 28px;
}
.scenario-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #706a7c;
}
.scenario-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #efedf2;
}
.scenario-steps .reached b {
  background: #e8e1fc;
  color: #493298;
}
.scenario-steps [aria-current] {
  color: #493298;
  font-weight: 700;
}
.lesson-visual {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #e2dced;
  border-radius: 18px;
  background: #f7f5fc;
}
.lesson-visual figcaption {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 22px;
}
.lesson-visual figcaption > span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: #736a82;
  margin-top: 6px;
}
.visual-note {
  font-size: 13px;
  line-height: 1.6;
  color: #61586f;
  margin: 18px 0 0;
}
.ownership-scene {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ownership-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 180px;
  flex-shrink: 0;
}
.ownership-grid span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #e0d9ee;
  border: 1px solid #c9bfdc;
}
.ownership-grid .is-yours {
  background: #6551c8;
  border-color: #493298;
}
.visual-stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  color: #5642b6;
}
.visual-stat span,
.visual-stat p {
  font-size: 13px;
  line-height: 1.5;
}
.visual-bar-row {
  display: grid;
  grid-template-columns: 85px 1fr 30px;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  font-size: 12px;
}
.visual-track {
  background: #e8e2ef;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
}
.visual-bar {
  display: block;
  height: 100%;
  background: #7862cc;
  border-radius: 5px;
}
.visual-bar.muted {
  background: #a69abf;
}
.visual-bar.expected {
  background: repeating-linear-gradient(
    135deg,
    #b7aacb 0px,
    #b7aacb 4px,
    #e9e1f3 4px,
    #e9e1f3 8px
  );
}
.profit-legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  margin-bottom: 14px;
}
.profit-legend span:last-child {
  color: #365f4c;
}
.profit-row {
  margin: 18px 0;
  font-size: 12px;
}
.profit-track {
  display: flex;
  height: 34px;
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
}
.profit-track > span {
  display: grid;
  place-items: center;
  font-weight: 700;
}
.cost-segment {
  background: repeating-linear-gradient(
    135deg,
    #e0d8ee 0px,
    #e0d8ee 5px,
    #ece7f4 5px,
    #ece7f4 10px
  );
  color: #564767;
}
.profit-segment {
  background: #c7e4d4;
  color: #254b37;
}
.coin-budget {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.coin-budget span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e7ddfa;
  border: 1px solid #c9b9e7;
  color: #574084;
  font-size: 12px;
  font-weight: 700;
}
.budget-total {
  font-weight: 700;
  font-size: 24px;
  margin-top: 16px;
  color: #5642b6;
}
.portfolio-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  margin-top: 20px;
}
.portfolio-breakdown span {
  padding: 10px;
  background: white;
  border-radius: 8px;
}
.portfolio-breakdown strong {
  display: block;
  margin-top: 5px;
}
.mock-post {
  display: flex;
  gap: 14px;
  background: white;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e5dfeb;
}
.post-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #ece7f5;
  border-radius: 50%;
  color: #63557c;
}
.mock-post small {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #756881;
}
.mock-post blockquote {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.evidence-tags span {
  font-size: 11px;
  padding: 6px 10px;
  background: #f3e6cd;
  color: #705426;
  border-radius: 6px;
}
@media (max-width: 500px) {
  .lesson-visual {
    padding: 16px;
  }
  .ownership-scene {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ownership-grid {
    width: min(100%, 200px);
  }
  .coin-budget {
    grid-template-columns: repeat(5, 1fr);
  }
  .scenario-steps {
    gap: 10px;
  }
  .visual-bar-row {
    grid-template-columns: 70px 1fr 25px;
    gap: 8px;
  }
}
.learn-hero {
  margin: 38px 0 32px;
}
.learn-main h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 14px 0 22px;
}
.learn-main h1:focus {
  outline: none;
}
.check-prompt { display:flex; align-items:flex-start; gap:12px; margin:24px 0 18px; padding:16px; background:#eeefe5; border-radius:12px; scroll-margin-top:24px; }
.check-prompt:focus { outline:none; }
.check-prompt p { font-size:20px; font-weight:600; line-height:1.5; letter-spacing:normal; margin:0; }
.check-marker { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; border-radius:50%; background:#e4ddfa; color:#514380; font-size:15px; font-weight:600; }
.check-answers button { display:flex; align-items:center; gap:12px; font-size:15px; padding:14px 16px; }
.answer-letter { display:grid; place-items:center; flex-shrink:0; width:28px; height:28px; border:1px solid var(--line); border-radius:8px; font-size:12px; color:#59614d; }
.lesson-path .step-number.is-complete {
  background: #e0eacb;
  color: #4e6140;
}
.scenario .completion-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0eacb;
  color: #4e6140;
}
.learn-main .path-preview > span.done {
  background: #e0eacb;
  color: #4e6140;
}
.lesson-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.lesson-navigation .learn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  min-height: 52px;
  border: 1px solid #b7bcae;
  border-radius: 14px;
  background: var(--learn-surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 0 #d9ddcf;
}
.lesson-navigation .learn-back:hover {
  background: var(--learn-soft);
  border-color: var(--ink);
}
.lesson-navigation .learn-primary {
  margin-left: auto;
  width: auto;
}
@media (max-width: 500px) {
  .lesson-navigation {
    gap: 10px;
    align-items: stretch;
  }
  .lesson-navigation button {
    padding: 12px 14px;
    font-size: 14px;
  }
}
.learn-main h1 {
  scroll-margin-top: 24px;
}
.learn-hero > p,
.story-text {
  font-size: 18px;
  line-height: 1.75;
  max-width: 60ch;
}
.learn-hero label {
  display: block;
  margin-top: 30px;
  font-size: 14px;
}
.learn-hero progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 12px 0 24px;
  accent-color: #6551c8;
}
.learn-primary {
  background: var(--lime);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  border-radius: 14px;
  padding: 16px 25px;
  min-height: 52px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.learn-note {
  font-size: 13px !important;
  color: #625f6c;
  line-height: 1.6;
  margin-top: 20px;
}
.lesson-path {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.lesson-path button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 18px;
  text-align: left;
  border: 1px solid #ddd9e8;
  border-radius: 16px;
  padding: 20px;
  background: white;
  color: #24212e;
  font: inherit;
  cursor: pointer;
}
.lesson-path button:disabled {
  background: #f0eef3;
  color: #696674;
  cursor: default;
}
.lesson-path button > span:nth-child(2) {
  flex: 1;
}
.lesson-path small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eeebfa;
  color: #5642b6;
  font-weight: 700;
}
.learn-back {
  display: block;
  background: transparent;
  border: 0;
  padding: 15px 0;
  min-height: 48px;
  font: inherit;
  color: #5642b6;
  cursor: pointer;
}
.scenario {
  margin: 24px 0;
  padding: clamp(20px, 4vw, 40px);
  background: white;
  border: 1px solid #e4e0eb;
  border-radius: 24px;
}
.scenario h2 {
  font-size: 20px;
  margin-top: 30px;
}
.learn-choices {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.learn-choices button {
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  padding: 18px;
  min-height: 56px;
  border: 1px solid #d5cde9;
  border-radius: 12px;
  background: #fbfaff;
  color: #292333;
  cursor: pointer;
}
.learn-choices button:hover {
  background: #eee9fc;
  border-color: #6551c8;
}
.learn-main button:focus-visible,
.learning-nav a:focus-visible {
  outline: 3px solid #6551c8;
  outline-offset: 4px;
}
.choice-label {
  font-size: 14px;
  color: #6551c8;
}
#feedback {
  line-height: 1.7;
  color: #574585;
}
.completion-mark {
  color: #3b7752;
  font-size: 32px;
}
/* Share the Market palette instead of maintaining a separate purple theme. */
.learn-primary:hover {
  background: #caf252;
}
.learn-hero progress {
  accent-color: var(--purple);
}
.path-preview > span,
.step-number,
.post-avatar {
  background: var(--learn-lavender);
  color: var(--ink);
}
.path-preview > span.done,
.scenario-steps .reached b,
.ownership-grid .is-yours,
.profit-segment,
.coin-budget span {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
}
.path-preview i {
  background: var(--line);
}
.scenario,
.lesson-path button,
.mock-post,
.portfolio-breakdown span {
  background: var(--learn-surface);
  color: var(--ink);
  border-color: var(--line);
}
.lesson-path button:disabled,
.scenario-steps b,
.visual-track {
  background: var(--learn-soft);
  color: var(--muted);
}
.lesson-visual {
  background: #e9f0d9;
  border-color: var(--line);
}
.ownership-grid span {
  background: #dfe3d2;
  border-color: #b4bca5;
}
.visual-stat strong,
.budget-total,
.scenario-steps [aria-current],
.profit-legend span:last-child,
.cost-segment {
  color: var(--ink);
}
.visual-bar {
  background: var(--purple);
}
.visual-bar.muted {
  background: #8b976e;
}
.visual-bar.expected {
  background: repeating-linear-gradient(
    135deg,
    #bab0f1 0px,
    #bab0f1 4px,
    #e4ddfa 4px,
    #e4ddfa 8px
  );
}
.cost-segment {
  background: repeating-linear-gradient(
    135deg,
    #dcd5f3 0px,
    #dcd5f3 5px,
    #eae6f7 5px,
    #eae6f7 10px
  );
}
.evidence-tags span {
  background: #f8d4bd;
  color: var(--ink);
}
.learn-choices button {
  background: var(--learn-surface);
  border-color: var(--line);
  color: var(--ink);
}
.learn-choices button:hover {
  background: #e9f0d9;
  border-color: var(--ink);
}
.learn-back,
.choice-label,
#feedback {
  color: #5d4fb0;
}
.learn-note,
.visual-note,
.scenario-steps span,
.lesson-visual figcaption > span,
.mock-post small {
  color: #59614d;
}
.learn-main button:focus-visible {
  outline-color: var(--purple);
}
.completion-mark {
  color: #55633b;
}
@media (max-width: 500px) {
  .learn-main {
    padding: 0 16px 40px;
  }
  .learn-primary {
    width: 100%;
  }
  .lesson-path button {
    padding: 16px;
    gap: 12px;
  }
}
/* Curriculum player: a compact, guided reading and reflection surface. */
.foundation-lesson [hidden] { display:none !important; }
.choice-feedback { margin:20px 0; padding:18px 20px; border-radius:16px; line-height:1.5; }
.choice-feedback p { margin:6px 0 0; }
.choice-feedback.is-correct { background:#e8efdf; color:#35492f; }
.choice-feedback.is-retry { background:#f5eadd; color:#684a30; }
.foundation-lesson .check-answers button.choice-correct { border-color:#7f986a; background:#e8efdf; }
.foundation-lesson .check-answers button.choice-wrong { border-color:#b88a63; background:#f5eadd; }
.nia-scene { margin:20px 0; border:1px solid #e7e5dc; border-radius:24px; overflow:hidden; background:#fffefa; }
.goal-product { display:flex; align-items:center; gap:16px; padding:22px; background:#f5f3ee; }
.goal-product svg { width:80px; height:80px; flex-shrink:0; }
.goal-product > div { display:grid; gap:5px; }
.goal-product small { font-size:10px; letter-spacing:.12em; color:#626b58; }
.goal-product strong { font-size:20px; letter-spacing:-.03em; }
.goal-product span { font-size:13px; color:#626b58; }
.goal-price { margin-left:auto; font-size:26px; font-variant-numeric:tabular-nums; }
.goal-object .nia-weeks button small { display:block; margin-top:5px; font-size:11px; }
@media(max-width:600px) { .goal-product { padding:16px 12px; gap:10px; } .goal-product svg { width:60px; height:60px; } .goal-product strong { font-size:17px; } .goal-price { font-size:22px; } }
.nia-art { position:relative; background:#faf8f1; }
.nia-art img { display:block; width:100%; height:auto; max-height:290px; object-fit:contain; }
.nia-scene-label { position:absolute; top:14px; left:16px; border-radius:20px; background:#fffefae8; padding:7px 11px; font-size:10px; font-weight:700; letter-spacing:.13em; }
.nia-scene figcaption { padding:16px 20px 8px; font-size:21px; font-weight:700; letter-spacing:-.03em; }
.nia-goal-facts { display:grid; grid-template-columns:1.4fr 1fr 1fr; padding:10px 20px 20px; gap:10px; font-size:16px; font-weight:600; }
.nia-goal-facts small { display:block; font-size:9px; letter-spacing:.12em; color:#69715f; margin-bottom:6px; }
.nia-savings { padding:18px 20px; background:#f0f2e8; border-top:1px solid #e0e4d6; }
.nia-savings-heading { display:flex; justify-content:space-between; align-items:center; font-size:14px; }
.nia-savings-heading strong { font-size:20px; }
.nia-savings progress { appearance:none; display:block; width:100%; height:12px; margin:14px 0; border:0; border-radius:8px; overflow:hidden; background:#dedfcf; }
.nia-savings progress::-webkit-progress-bar { background:#dedfcf; }
.nia-savings progress::-webkit-progress-value { background:#8d7cc9; transition:width .35s ease; border-radius:8px; }
.nia-savings progress::-moz-progress-bar { background:#8d7cc9; }
.nia-weeks { display:flex; gap:6px; }
.nia-weeks button { flex:1; min-height:44px; border:1px solid #d8dccd; border-radius:12px; padding:8px 2px; background:#fffefa; font:inherit; font-size:12px; cursor:pointer; color:#353b32; }
.nia-weeks button[aria-pressed="true"] { background:#7160ad; color:white; border-color:#7160ad; }
.nia-savings p { font-size:14px; line-height:1.5; margin:14px 0 6px; }
.nia-savings > small { color:#626b58; font-size:12px; }
@media(max-width:600px) { .nia-art img { max-height:210px; } .nia-scene figcaption { font-size:19px; padding:14px 14px 6px; } .nia-goal-facts { padding:10px 14px 16px; font-size:14px; } .nia-savings { padding:16px 14px; } }
@media(prefers-reduced-motion:reduce) { .nia-savings progress::-webkit-progress-value { transition:none; } }
.animated-scene svg { display:block; width:100%; max-height:240px; overflow:visible; fill:none; stroke:#42493e; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.animated-scene svg text { stroke:none; fill:#30372e; text-anchor:middle; font-family:inherit; font-size:16px; font-weight:500; }
.animated-scene .scene-value { font-size:24px; font-weight:700; }
.animated-scene .paint-paper { fill:#fffefa; }
.animated-scene .paint-lavender { fill:#e4ddfa; }
.animated-scene .paint-purple { fill:#9482d7; }
.animated-scene .paint-sage { fill:#dce7c9; }
.animated-scene .paint-peach { fill:#f5d6c1; }
.animated-scene .scene-line { stroke:#7160d8; stroke-width:4; stroke-dasharray:600; animation:scene-draw 1.2s ease-out both; }
.animated-scene .scene-detail, .animated-scene .scene-result, .animated-scene .scene-arrive { animation:scene-reveal .65s ease-out both; }
.animated-scene .scene-detail { animation-delay:.15s; }
.animated-scene .scene-result { animation-delay:.4s; }
.animated-scene .scene-grow { transform-box:fill-box; transform-origin:center bottom; animation:scene-grow .85s ease-out both; }
.animated-scene .scene-flow { stroke:#7160d8; stroke-dasharray:100; animation:scene-draw .8s ease-out both; }
.scene-intro .scene-detail, .scene-intro .scene-result, .scene-develop .scene-result { visibility:hidden; animation:none; }
.animated-scene figcaption { padding-bottom:10px; margin-bottom:6px; }
@media(max-width:600px) {
  .animated-scene svg text { font-size:20px; }
  .animated-scene svg .scene-value { font-size:28px; }
  .animated-scene svg .scene-caption { font-size:18px; }
}
@keyframes scene-reveal { from { opacity:0; } to { opacity:1; } }
@keyframes scene-grow { from { transform:scaleY(.08); } to { transform:scaleY(1); } }
@keyframes scene-draw { from { stroke-dashoffset:600; } to { stroke-dashoffset:0; } }
@media(prefers-reduced-motion:reduce) { .animated-scene * { animation:none !important; } }
.foundation-lesson .check-answers button[aria-pressed="true"] { background:#e4def6; border-color:#7160d8; }
.foundation-unit { margin: 32px 0; }
.foundation-unit h2 { font-size: 22px; }
.foundation-unit .lesson-path { margin: 16px 0; }
.foundation-secondary { display:block; border:1px solid var(--line); border-radius:14px; padding:14px 18px; background:var(--learn-surface); color:var(--ink); margin:12px 0; font:inherit; cursor:pointer; }
.foundation-secondary:disabled { opacity:.5; cursor:default; }
.foundation-context { margin:20px 0; font-size:15px; line-height:1.6; }
.foundation-context summary { cursor:pointer; color:#5d4fb0; }
.foundation-lesson { max-width:760px; margin:20px auto; }
.foundation-lesson h1 { font-size:clamp(24px,4vw,34px); line-height:1.2; margin:16px 0 24px; }
.foundation-lesson h1.foundation-small-title { font-size:24px; }
.foundation-lesson .story-text { font-size:18px; line-height:1.65; }
.foundation-lesson .check-prompt p { font-size:20px; line-height:1.5; font-weight:600; }
.foundation-lesson .lesson-navigation { display:flex; justify-content:space-between; gap:16px; margin-top:28px; }
.foundation-lesson .lesson-navigation .learn-primary { width:auto; margin:0 0 0 auto; }
.foundation-lesson .lesson-navigation .learn-back { margin:0; min-height:48px; border:1px solid var(--line); border-radius:12px; padding:10px 16px; }
.foundation-visual { margin:20px 0; padding:22px; }
.foundation-visual figcaption { font-size:18px; font-weight:700; margin-bottom:18px; }
.foundation-panels { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.foundation-panels > div { background:var(--learn-surface); border:1px solid var(--line); border-radius:16px; padding:18px 14px; }
.foundation-panels small { display:block; color:#59614d; margin-bottom:10px; }
.foundation-panels strong { display:block; font-size:20px; line-height:1.4; }
.foundation-shares { display:grid; grid-template-columns:repeat(10,1fr); gap:5px; margin-top:18px; }
.foundation-shares span { text-align:center; border:1px solid var(--line); border-radius:5px; padding:8px 0; background:#fffefa; }
.foundation-shares .owned { background:#d9d1f4; color:#493a93; }
.response-label { display:block; font-weight:600; margin:24px 0 10px; }
.foundation-lesson textarea { width:100%; box-sizing:border-box; font:inherit; line-height:1.5; padding:14px; background:#fffefa; border:1px solid #a6ad9b; border-radius:14px; resize:vertical; }
.oral-option { display:flex; gap:10px; align-items:flex-start; margin:16px 0; line-height:1.5; }
.oral-option input { width:20px; height:20px; flex-shrink:0; accent-color:var(--purple); }
#path-progress { display:block; width:100%; height:12px; margin:12px 0 24px; accent-color:#809368; }
.foundation-lesson [data-focus]:focus { outline:none; }
@media(max-width:600px) {
  .foundation-lesson { padding:20px 16px 110px; }
  .foundation-lesson .lesson-navigation { position:fixed; left:0; right:0; bottom:0; z-index:20; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:#fffefa; border-top:1px solid var(--line); margin:0; }
  .foundation-lesson .lesson-navigation button { font-size:14px; }
  .foundation-visual { padding:16px; }
  .foundation-panels { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .foundation-panels > div:last-child:nth-child(odd) { grid-column:1/-1; }
  .foundation-panels strong { font-size:18px; }
}
