:root {
  --ink: #252529;
  --ink-soft: #4a4a4d;
  --muted: #646469;
  --paper: #f7f5f1;
  --white: #fff;
  --line: #e5e3e0;
  --blue: #28638f;
  --purple: #5350a1;
  --orange: #ee7a31;
  --yellow: #f6d258;
  --pink: #da80b4;
  --lilac: #f0eff8;
  --radius: 20px;
  font-family: Manrope, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body { margin: 0; line-height: 1.6; }
button, input, textarea, a { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button, summary { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid #97600b; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: fixed; top: -8rem; left: 1rem; z-index: 30; padding: .75rem 1rem; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.shell { min-height: 100svh; display: flex; flex-direction: column; }
.site-header { background: var(--ink); color: white; position: relative; z-index: 10; }
.header-inner { width: min(1200px, calc(100% - 4rem)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brain-mark, .brain-spark { display: block; flex-shrink: 0; width: 58px; height: 54px; background: url('tgmc-logo.jpg') no-repeat -279px -29px / 367px 114px; mix-blend-mode: screen; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 1.45rem; font-weight: 700; letter-spacing: -.055em; }
.brand-copy small { margin-top: .15rem; font-size: .75rem; letter-spacing: .015em; color: #d0c8df; }
.nav-links { display: flex; gap: .25rem; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border-radius: 100px; font-size: .9rem; font-weight: 600; color: #e2ddeb; text-decoration: none; }
.nav-links a:hover { background: #443d53; }
.nav-links a[aria-current="page"] { background: white; color: var(--ink); }
.site-header :focus-visible { outline-color: var(--yellow); }
.menu-button { display: none; min-height: 44px; background: transparent; color: white; border: 1px solid #746a84; border-radius: 100px; padding: .5rem .9rem; }
main { flex: 1; width: min(1200px, calc(100% - 4rem)); margin: 0 auto; padding: 3rem 0 4rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.15; overflow-wrap: break-word; }
h1 { max-width: 850px; font-size: clamp(2.15rem, 4vw, 3.65rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
.eyebrow { margin-bottom: .85rem; color: var(--purple); font-size: .875rem; font-weight: 600; }
.lead { max-width: 650px; margin-top: 1rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr); gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.home-intro h1 { max-width: 720px; }
.home-intro .lead { max-width: 290px; margin: 0 0 .3rem; }
.home-intro .eyebrow { margin-bottom: .65rem; }
.situation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Home uses soft topic surfaces; stronger topic colours guide actions and practice. */
.situation-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 232px; padding: 1.75rem 2rem; color: var(--ink); text-decoration: none; border-radius: 8px; transition: transform 180ms ease; }
.situation-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--tile); border-radius: 20px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); transition: filter 180ms ease; }
.situation-card:nth-child(2)::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); }
.situation-card:nth-child(3)::before { clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.situation-card:nth-child(4)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.situation-card:nth-child(6)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.situation-card:focus-visible { outline-color: var(--ink); }
@media (hover:hover) { .situation-card:hover { transform: translateY(-3px); } .situation-card:hover::before { filter: brightness(1.04); } }
.situation-card h2 { max-width: 16ch; font-size: clamp(1.35rem, 2.05vw, 1.8rem); letter-spacing: -.035em; line-height: 1.2; }
.situation-card p { max-width: 29ch; font-size: 1rem; line-height: 1.5; margin-top: .7rem; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--tile-accent); font-size: .875rem; font-weight: 600; }
.card-arrow { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0; font-size: 1.25rem; line-height: 1; }
.home-footnote { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; color: var(--ink-soft); font-size: .875rem; }
.continue { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; background: #f0eff8; border-radius: 14px; padding: .85rem 1.2rem; font-size: .9375rem; }
.continue a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; color: var(--purple); }
.page-top { margin-bottom: 1.1rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 0; color: var(--ink-soft); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--purple); }
main[data-view="area"] { max-width: 1060px; padding-top: 1.5rem; }
.area-head { margin-bottom: 1.75rem; }
.area-head h1 { max-width: 840px; font-size: clamp(2rem, 3.8vw, 3rem); }
.area-head .eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.area-head .eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 65% 0, 100% 35%, 100% 100%, 0 100%); }
.area-head .lead { margin-top: .7rem; }
.step-map { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.step-map li { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: #eeecf2; border-radius: 12px; font-size: .875rem; color: var(--ink-soft); }
.step-map li[aria-current="step"] { background: var(--ink); color: white; }
.step-map span { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 600; }
.step-map small { display: block; font-size: .75rem; }
.step-map li { padding: 0; min-width: 0; }
.step-map a { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 52px; padding: .7rem .9rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.step-map a:hover { background: var(--session-tint); }
.step-map a span:last-child { font-weight: 600; }
.loop-status { margin: 1.2rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--session-tint); color: var(--ink); font-weight: 600; }
.loop-status:empty { display: none; }
.loop-panel { margin-top: 1.35rem; padding: 1.75rem 2rem; border: 1px solid var(--line); border-top: 4px solid var(--topic-color); border-radius: 22px; background: white; scroll-margin-top: 1.25rem; }
.loop-heading { display: flex; align-items: start; gap: .85rem; margin-bottom: 1.3rem; }
.loop-number { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; border-radius: 12px; background: var(--session-tint); color: var(--accent); font-size: .875rem; font-weight: 700; }
.loop-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); line-height: 1.3; }
.loop-heading p { max-width: 700px; margin-top: .45rem; color: var(--ink-soft); font-size: 1rem; }
.loop-empty { color: var(--ink-soft); max-width: 720px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.form-field { min-width: 0; margin: 0 0 1.2rem; }
.form-field label { display: block; margin-bottom: .5rem; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.form-field label span, .plan-detail summary span { font-weight: 400; color: var(--ink-soft); }
.form-field textarea { min-height: 98px; }
.form-field input, .form-field select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: .7rem .9rem; border: 1px solid #8b809d; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.form-field select { padding-right: 2rem; }
.form-field input::placeholder { color: #6b6178; }
.field-help { color: var(--ink-soft); font-size: .875rem; line-height: 1.6; margin: .45rem 0 .6rem; }
.draft-note { margin-bottom: 1rem; color: var(--accent); }
.date-field { max-width: 420px; }
.plan-detail { border-top: 1px solid var(--line); margin-top: .1rem; }
.plan-detail summary { min-height: 48px; padding: .6rem 0; margin-bottom: .65rem; color: var(--ink); font-weight: 600; }
.plan-detail summary::marker, .review-history summary::marker { color: var(--accent); }
.review-plan { padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; border-radius: 15px; background: var(--session-tint); overflow-wrap: anywhere; }
.review-plan > p:first-of-type { font-size: 1.1rem; font-weight: 600; white-space: pre-wrap; }
.review-plan .quiet-label { color: var(--accent); margin-bottom: .5rem; }
.plan-context { margin-top: .55rem; color: var(--ink-soft); font-size: .9375rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-context strong { color: var(--ink); font-weight: 600; }
.check-in { margin-top: .8rem; color: var(--ink-soft); font-size: .875rem; }
.review-experience { margin-bottom: 1.3rem; }
.review-experience legend { font-size: 1.1rem; margin-top: 0; }
.review-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.review-options label { display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 58px; padding: .75rem; border: 1px solid #8b809d; border-radius: 12px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.review-options input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.review-options label:has(input:checked) { background: var(--session-tint); color: var(--ink); border-color: var(--accent); }
.review-options label:focus-within { outline: 3px solid #97600b; outline-offset: 3px; }
.review-options input:focus { outline: none; }
.review-history { margin-top: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: white; scroll-margin-top: 1.25rem; }
.review-history > summary { padding: 1.1rem 1.4rem; min-height: 52px; color: var(--ink); font-weight: 600; }
.review-history ol { list-style: none; margin: 0; padding: 0 1.4rem 1.4rem; }
.review-history li { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.2rem; overflow-wrap: anywhere; }
.review-history li:first-child { margin-top: 0; }
.history-meta { color: var(--ink-soft); font-size: .875rem; margin-bottom: .55rem; }
.review-history h3 { font-size: 1.15rem; line-height: 1.5; letter-spacing: -.015em; }
.history-observation { margin-top: 1rem; white-space: pre-wrap; font-size: 1rem; }
.history-decision { margin-top: .9rem; color: var(--accent); font-weight: 600; font-size: .9375rem; }
.paused-note { padding: 1.2rem; border-radius: 14px; background: var(--session-tint); }
.paused-note p { margin-top: .4rem; color: var(--ink-soft); }
.paused-note a { margin-top: .65rem; }
.review-count { margin-top: .9rem; color: var(--ink-soft); font-size: .875rem; }
.quick-step { border-radius: 24px; background: white; border: 1px solid #e7e4ee; padding: 2rem; }
.practice-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2rem; align-items: start; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { float: left; width: 100%; margin: .3rem 0 .5rem; padding: 0; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
legend + * { clear: both; }
.hint { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin-bottom: 1.3rem; }
.choice-grid { display: grid; gap: .75rem; margin-top: 1.2rem; }
.choice { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 78px; padding: 1rem; border: 1.5px solid var(--line); background: #fbfafd; border-radius: 14px; cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.choice:hover { border-color: var(--purple); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--session-tint); }
.choice:focus-within { outline: 3px solid #97600b; outline-offset: 4px; }
.choice input { margin: 0; width: 21px; height: 21px; flex-shrink: 0; accent-color: var(--accent); }
.choice input:focus { outline: none; }
.choice-copy { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.safety { padding: 1rem 1.25rem; border-radius: 16px; background: #ffeddc; color: #603c23; margin-bottom: 1.5rem; font-size: .9375rem; }
.safety strong { font-weight: 700; }
.safety a { font-weight: 700; }
.result-slot { min-width: 0; }
.example-empty { min-height: 246px; padding: 1.6rem; border-radius: 18px; background: #f5f3f9; display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.example-empty h2 { font-size: 1.4rem; }
.example-empty p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; max-width: 32ch; }
.quiet-label { display: block; color: var(--purple); font-size: .875rem; font-weight: 600; margin-bottom: .8rem; }
.try-result { border-radius: 18px; background: var(--session-tint); padding: 1.6rem; }
.try-result h2 { color: var(--accent); font-size: .875rem; letter-spacing: 0; margin: 0 0 .8rem; line-height: 1.5; }
.example-text { font-size: 1.25rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.example-reason { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #d3cede; color: var(--ink-soft); font-size: .9375rem; line-height: 1.65; }
.example-reason strong { color: var(--ink); }
.example-context { margin-top: .8rem; color: var(--ink-soft); font-size: .875rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.journey-stage-title { margin-bottom: 1.4rem; }
.practice-guidance { margin: 1.2rem 0; padding: 1.2rem; border-radius: 14px; background: #f7f6fa; }
.practice-guidance h3 { font-size: 1.125rem; line-height: 1.4; }
.practice-guidance p { margin-top: .6rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.practice-guidance p:first-child { margin-top: 0; }
.stage-actions { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stage-actions .primary { margin-left: auto; max-width: 100%; white-space: normal; text-align: center; }
.primary:disabled { cursor: default; opacity: .6; }
.primary, .secondary, .text-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1.1rem; border-radius: 100px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.primary { background: var(--ink); color: white; border: 1px solid var(--ink); }
.primary:hover { background: #4b415d; }
.secondary { background: white; color: var(--ink); border: 1px solid #cfc7da; }
.secondary:hover { background: #f6f2fa; border-color: var(--purple); }
.text-button { background: transparent; border: 0; color: var(--purple); padding-left: .2rem; padding-right: .2rem; }
.text-button:hover { text-decoration: underline; }
.status { font-size: .875rem; color: #3e5d46; }
.status:empty { display: none; }
.privacy-note { margin-top: .9rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.note-detail { margin-top: 1.1rem; }
.note-detail summary { color: var(--ink-soft); font-weight: 600; min-height: 44px; padding: .55rem 0; font-size: .9375rem; }
.note-detail label { display: block; margin: .5rem 0; font-size: .9375rem; font-weight: 600; }
textarea { display: block; resize: vertical; min-height: 106px; width: 100%; border: 1px solid #8b809d; border-radius: 12px; background: white; color: var(--ink); padding: .85rem 1rem; font-size: 1rem; line-height: 1.6; }
textarea::placeholder { color: #6b6178; }
.optional-detail { margin-top: 1.35rem; border-radius: 16px; border: 1px solid var(--line); background: white; }
.optional-detail > summary { padding: 1.1rem 1.25rem; min-height: 56px; color: var(--ink); font-weight: 600; }
.optional-detail > summary::marker, .note-detail > summary::marker { color: var(--purple); }
.detail-inner { padding: .1rem 1.25rem 1.5rem; }
.detail-inner > p { max-width: 740px; color: var(--ink-soft); }
.keep-learning { margin-top: 1.5rem; border: 1px solid var(--line); border-left: 6px solid var(--topic-color, var(--purple)); border-radius: 18px; background: white; }
.keep-learning > summary { padding: 1.35rem 1.5rem; border-radius: 0 17px 17px 0; background: var(--session-tint, var(--lilac)); line-height: 1.5; }
.keep-learning > summary::marker { color: var(--accent); }
.keep-learning[open] > summary { border-bottom: 1px solid var(--line); border-bottom-right-radius: 0; }
.keep-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.optional-tag { display: inline-block; margin-left: .7rem; padding: .1rem .65rem; border-radius: 100px; background: white; color: var(--ink-soft); font-size: .8125rem; font-weight: 600; vertical-align: middle; }
.keep-subtitle { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .9375rem; }
.learning-inner { padding: 1.75rem 1.5rem; }
.learning-inner h2, .learning-approach h2 { font-size: 1.5rem; line-height: 1.3; }
.learning-goal { margin-top: .6rem; max-width: 720px; font-size: 1.0625rem; }
.learning-intro { margin-top: .6rem; color: var(--ink-soft); font-size: .9375rem; }
.practice-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 1.25rem 0 0; list-style: none; counter-reset: practice; }
.practice-prompts li { padding: 1.2rem; border-radius: 14px; background: #f7f6fa; counter-increment: practice; }
.practice-prompts li::before { content: counter(practice, decimal-leading-zero); display: block; margin-bottom: .65rem; color: var(--accent); font-size: .875rem; font-weight: 700; }
.practice-prompts h3 { font-size: 1.125rem; letter-spacing: -.025em; line-height: 1.4; }
.practice-prompts p { margin-top: .6rem; color: var(--ink-soft); line-height: 1.65; }
.resource-section { margin-top: 1.8rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.resource-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--topic-color, var(--purple)); border-radius: 14px; }
.resource-provider { color: var(--ink-soft); font-size: .875rem; }
.resource-card h3 { margin-top: .65rem; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.4; }
.resource-card h3 a { display: inline-block; min-height: 44px; color: var(--accent); text-decoration-thickness: 1px; }
.resource-card h3 a:hover { text-decoration-thickness: 2px; }
.resource-note { margin-top: .6rem; margin-bottom: 1rem; color: var(--ink-soft); }
.resource-format { margin-top: auto; color: var(--muted); font-size: .875rem; }
.evidence-list { display: grid; gap: .85rem; padding-left: 1.25rem; margin: 1.1rem 0; }
.evidence-list li > span { display: block; margin-top: .15rem; color: var(--muted); font-size: .875rem; }
.evidence-list a { color: var(--purple); font-weight: 600; }
.review-note { margin-top: 1rem; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.outcomes-heading { margin-top: 1.5rem; }
.learning-approach { margin-top: 1.6rem; padding: 1.75rem; border: 1px solid var(--line); border-top: 5px solid var(--purple); border-radius: 20px; background: white; scroll-margin-top: 2rem; }
.learning-approach .lead { max-width: 760px; }
.learning-principles { display: grid; gap: .9rem; max-width: 820px; margin: 1.3rem 0 0; padding-left: 1.25rem; color: var(--ink-soft); }
.learning-principles strong { color: var(--ink); }
.stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: stages; }
.stage-list li { position: relative; counter-increment: stages; padding: 1.1rem 1rem 1.1rem 3.25rem; border-radius: 12px; background: #f7f5fa; }
.stage-list li::before { content: counter(stages, decimal-leading-zero); position: absolute; top: 1.1rem; left: 1rem; color: var(--purple); font-size: .875rem; font-weight: 600; }
.stage-list strong { display: block; line-height: 1.4; font-size: 1rem; }
.stage-list span { display: block; margin-top: .4rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.outcome-list { display: grid; gap: .7rem; margin: 1rem 0 0; padding-left: 1.25rem; color: var(--ink-soft); }
.saved-empty { max-width: 740px; padding: 2rem; background: #e9e2f3; border-radius: 24px; margin-top: 1.8rem; }
.saved-empty p { margin-top: .8rem; color: var(--ink-soft); max-width: 550px; }
.saved-empty .primary { margin-top: 1.2rem; }
.saved-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; margin-top: 2rem; }
.saved-card { padding: 1.6rem; border-radius: 20px; background: white; border: 1px solid var(--line); min-width: 0; }
.saved-label { display: inline-flex; border-radius: 100px; background: var(--lilac); color: var(--purple); padding: .25rem .65rem; font-size: .875rem; }
.saved-card h2 { margin-top: .9rem; font-size: 1.5rem; }
.saved-example { margin-top: 1rem; background: #f6f3fa; padding: 1.1rem; border-radius: 12px; color: var(--ink); font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.saved-note { margin-top: .9rem; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.tools-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tool-card { padding: 1.7rem; border-radius: 20px; background: white; border: 1px solid var(--line); scroll-margin-top: 2rem; }
.tool-card h2 { font-size: 1.35rem; line-height: 1.3; }
.tool-card p { margin-top: .8rem; color: var(--ink-soft); }
.word-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.word-list li { padding: 1rem; background: #f6f4f9; border-radius: 12px; }
.word-list strong, .word-list span { display: block; }
.word-list span { margin-top: .4rem; color: var(--ink-soft); }
footer { background: #eeedf3; }
.footer-inner { width: min(1200px, calc(100% - 4rem)); margin: auto; display: flex; justify-content: space-between; align-items: start; gap: 3rem; padding: 2rem 0; }
.footer-brand { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.footer-inner p { margin-top: .5rem; color: var(--ink-soft); max-width: 630px; font-size: .875rem; }
.footer-inner > p { max-width: 320px; margin: 0; }
.not-found .primary { margin-top: 1.3rem; }
@media (max-width: 980px) {
  .header-inner, main, .footer-inner { width: calc(100% - 3rem); }
  .home-intro { grid-template-columns: 1.35fr .65fr; }
  .situation-card { padding: 1.4rem 1.5rem; min-height: 235px; }
  .nav-links a { padding: .6rem .8rem; }
  .practice-grid { gap: 1.4rem; }
  .quick-step { padding: 1.5rem; }
}
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; gap: 0; }
  .review-options { grid-template-columns: 1fr; }
  .loop-panel { padding: 1.4rem; }
  .home-intro { display: block; margin-bottom: 1.5rem; }
  .home-intro .lead { margin-top: .9rem; max-width: 580px; }
  .situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .situation-card { min-height: 222px; }
  .situation-card h2 { font-size: 1.4rem; }
  .header-inner { min-height: 78px; }
  .nav-links { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; padding: .7rem 1rem 1rem; background: var(--ink); flex-direction: column; align-items: stretch; box-shadow: 0 12px 24px #29253622; }
  .nav-links.is-open { display: flex; }
  .menu-button { display: inline-flex; }
  .practice-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .example-empty { min-height: auto; padding: 1.25rem; }
  .example-empty .quiet-label { display: none; }
  .example-empty h2 { font-size: 1.15rem; }
  .example-empty p { max-width: none; }
  .saved-list, .tools-grid { grid-template-columns: 1fr; }
  .practice-prompts { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-inner > p { max-width: 630px; }
}
@media (max-width: 500px) {
  .stage-actions .primary { width: 100%; }
  .loop-panel { padding: 1.2rem; }
  .loop-heading { gap: .65rem; }
  .loop-number { width: 32px; min-width: 32px; height: 32px; border-radius: 10px; }
  .step-map a { flex-direction: column; align-items: start; gap: .25rem; padding: .6rem; height: 100%; }
  .header-inner, main, .footer-inner { width: calc(100% - 2rem); }
  main { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .brand { gap: .6rem; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy small { font-size: .75rem; }
  .brain-mark { width: 44px; height: 43px; background-size: 287px 89px; background-position: -218px -22px; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .eyebrow { font-size: .875rem; }
  .situation-grid { gap: 8px; }
  .situation-card { padding: 1.2rem 1.1rem; min-height: 238px; gap: 1rem; }
  .situation-card::before { border-radius: 13px; }
  .situation-card h2 { font-size: 1.25rem; line-height: 1.22; }
  .situation-card p { font-size: 1rem; line-height: 1.5; margin-top: .65rem; }
  .card-bottom { gap: .35rem; font-size: .875rem; }
  .card-arrow { width: 29px; height: 29px; }
  .home-footnote { font-size: .875rem; }
  .step-map { gap: 6px; margin-bottom: 1.1rem; }
  .step-map li { flex-direction: column; align-items: start; gap: .25rem; padding: 0; font-size: .875rem; line-height: 1.4; }
  .quick-step { padding: 1.2rem; border-radius: 18px; }
  .try-result { padding: 1.25rem; }
  .example-text { font-size: 1.15rem; }
  .area-head h1 { font-size: 2rem; }
  .stage-list, .word-list { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .keep-learning > summary { padding: 1.15rem 1rem; }
  .learning-inner { padding: 1.4rem 1rem; }
  .learning-approach { padding: 1.4rem 1.2rem; }
  .saved-empty { padding: 1.5rem; }
}
@media (max-width: 359px) {
  .situation-grid { grid-template-columns: 1fr; }
  .situation-card { min-height: 192px; padding: 1.5rem; }
  .situation-card h2 { font-size: 1.5rem; max-width: 20ch; }
  .brand-copy small { max-width: 120px; }
  .header-inner { gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .situation-card:hover { transform: none; } }
@media (forced-colors: active) { .situation-card, .choice, .step-map li { border: 1px solid ButtonText; } .situation-card { color: LinkText; } .situation-card::before { background: Canvas; } .choice:has(input:checked) { outline: 2px solid Highlight; } }
