/* Coaching Lab shares the Forward visual identity. */
:root {
  --ink: #292536;
  --muted: #555060;
  --purple: #773be0;
  --blue: #245ce8;
  --gold: #ffd126;
  --paper: #fff;
  --canvas: #f7f7fb;
  --line: #dfdce8;
  --soft: #eeebf6;
  --focus: #97600b;
  --danger: #a33a3a;
  --tool-colour: #773be0;
  --tool-tint: #eee7fa;
  --max: 1200px;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 100%;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 1rem; line-height: 1.6; }
#app { display: flex; flex-direction: column; min-height: 100svh; }
#app[data-view="prep"] { --tool-colour: #245ce8; --tool-tint: #e8eefc; }
#app[data-view="action"] { --tool-colour: #914019; --tool-tint: #ffeadb; }
#app[data-view="review"] { --tool-colour: #266087; --tool-tint: #ddf3f8; }
#app[data-view="team"] { --tool-colour: #a13376; --tool-tint: #fbe4f1; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--purple); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
button:disabled { cursor: default; opacity: .6; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: break-word; }
h1 { max-width: 850px; margin-bottom: 1.2rem; font-size: clamp(2.15rem, 4vw, 3.65rem); letter-spacing: -.045em; line-height: 1.15; }
h2 { margin-bottom: .8rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { margin-bottom: .5rem; font-size: 1.125rem; }
p { margin-bottom: 1rem; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); padding: .75rem 1rem; border-radius: 10px; color: #fff; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }

/* The same brand, navigation and spacing used by Forward Student. */
.site-header { position: relative; z-index: 20; color: #fff; background: var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; width: min(var(--max), calc(100% - 4rem)); min-height: 88px; margin: 0 auto; padding: .75rem 0; }
.site-header :focus-visible { outline-color: var(--gold); }
.brand-button { display: flex; align-items: center; flex-shrink: 0; gap: .8rem; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.brain-mark { flex-shrink: 0; display: block; width: 58px; height: 54px; background: url('tgmc-logo.jpg') no-repeat -279px -29px / 367px 114px; mix-blend-mode: screen; }
.brand-lockup { display: grid; min-width: 0; line-height: 1.25; }
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.055em; }
.brand-variant { margin-top: .15rem; color: #d0c8df; font-size: .75rem; }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .9rem; border: 0; border-radius: 100px; color: #e2ddeb; background: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: #fff; background: #443d53; }
.nav-link[aria-current="page"] { color: var(--ink); background: #fff; }
.save-state { max-width: 125px; margin-left: .6rem; padding-left: .9rem; border-left: 1px solid #645c72; color: #d0c8df; font-size: .8125rem; line-height: 1.5; }
.menu-button { display: none; align-items: center; min-height: 44px; padding: .5rem .9rem; border: 1px solid #746a84; border-radius: 100px; color: #fff; background: none; font-size: .875rem; }
.mobile-nav { display: none; }
.page-shell { flex: 1; min-width: 0; }
.page { width: min(var(--max), calc(100% - 4rem)); margin: 0 auto; padding: 3rem 0 4rem; }
.page-narrow { max-width: 800px; }
.eyebrow, .mini-label { display: block; margin-bottom: .75rem; color: var(--tool-colour); font-size: .875rem; font-weight: 650; line-height: 1.5; }
.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.section { padding-top: 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; max-width: 100%; padding: .65rem 1.1rem; border: 1px solid var(--ink); border-radius: 100px; color: #fff; background: var(--ink); text-align: center; text-decoration: none; font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.button:hover { background: #4b415d; border-color: #4b415d; }
.button-secondary { color: var(--ink); background: #fff; border-color: #b8b1c5; }
.button-secondary:hover { color: var(--ink); background: #f0ebf8; border-color: var(--purple); }
.button-small { min-height: 44px; font-size: .875rem; }
.button-danger { color: var(--danger); background: #fff; border-color: var(--danger); }
.button-danger:hover { color: var(--danger); background: #fff0ed; border-color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.text-button, .breadcrumb { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border: 0; color: var(--purple); background: none; text-align: left; font-size: .9375rem; font-weight: 600; text-underline-offset: .2em; }
.text-button { text-decoration: underline; }
.breadcrumb { margin-bottom: .75rem; color: var(--muted); }
.breadcrumb:hover, .text-button:hover { color: #5425a5; text-decoration: underline; }

/* Four requests to a coach, with an equally available unsure option. */
.quick-start-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr); column-gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.quick-start-head .eyebrow { grid-column: 1; margin-bottom: .65rem; }
.quick-start-head h1 { grid-column: 1; margin: 0; }
.quick-start-head > p { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: 320px; margin: 0 0 .25rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
#quick-workspace { min-width: 0; scroll-margin-top: 1.5rem; }
.quick-step { display: block; margin: 0 0 1rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.quick-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-choice { --choice-tint: #e8eefc; --choice-colour: #245ce8; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 1.5rem; min-width: 0; min-height: 250px; padding: 1.65rem; border: 0; border-radius: 8px; color: var(--ink); background: none; text-align: left; transition: transform 180ms ease; }
.quick-choice::before { position: absolute; z-index: -1; inset: 0; content: ""; border-radius: 20px; background: var(--choice-tint); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
.quick-choice-observe { --choice-tint: #eee7fa; --choice-colour: #773be0; }
.quick-choice-observe::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
.quick-choice-challenge { --choice-tint: #ffeadb; --choice-colour: #914019; }
.quick-choice-challenge::before { clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px); }
.quick-choice-support { --choice-tint: #fff2c9; --choice-colour: #806011; }
.quick-choice-support::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.quick-choice-copy { display: grid; gap: .8rem; min-width: 0; }
.quick-choice-copy strong { max-width: 17ch; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.25; }
.quick-choice-copy > span { font-size: 1rem; line-height: 1.55; }
.choice-arrow { align-self: flex-end; display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; color: var(--choice-colour); font-size: 1.25rem; line-height: 1; }
.quick-choice-unsure { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 88px; padding: 1.1rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.quick-choice-unsure::before { content: none; }
.quick-choice-unsure .quick-choice-copy { gap: .25rem; }
.quick-choice-unsure strong { max-width: none; font-size: 1.0625rem; }
.quick-choice-unsure .quick-choice-copy > span { color: var(--muted); }
.quick-choice-unsure .choice-arrow { align-self: center; color: var(--ink); }
.quick-footnote { margin: 1rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.quick-writing, .quick-summary { max-width: 900px; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: 20px; background: #fff; }
.quick-writing > .text-button { margin-bottom: .75rem; }
.quick-writing .field { margin-top: 1.25rem; }
.quick-writing label { font-size: 1.25rem; }
.quick-note-form textarea { min-height: 7rem; }
.quick-aim-preview { padding: 1rem 1.25rem; border-radius: 12px; background: #eee7fa; overflow-wrap: anywhere; }
.quick-note-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .75rem; }
.quick-summary h2 { margin: 1rem 0; }
.quick-note-body > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.quick-note-body h3 { margin-bottom: .4rem; color: var(--purple); font-size: .9375rem; letter-spacing: 0; }
.quick-note-body p { margin: 0; overflow-wrap: anywhere; }
.quick-summary > .text-button { margin-top: .75rem; }
.return-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.return-record > div:only-child { grid-column: 1 / -1; }
.return-record h2 { font-size: 1.5rem; }
.return-observation { padding: 1.25rem; border-left: 3px solid #266087; border-radius: 0 12px 12px 0; background: #ddf3f8; }
.return-observation .mini-label { color: #266087; }
.return-record p { overflow-wrap: anywhere; }

/* Every existing tool keeps its own accent throughout the workspace. */
.tool-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tool-card { grid-column: span 2; display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 1.6rem; border: 1px solid var(--line); border-top: 4px solid var(--tool-colour); border-radius: 20px; color: var(--ink); background: #fff; text-align: left; transition: transform 180ms ease, background 180ms ease; }
.tool-card:nth-child(4), .tool-card:nth-child(5) { grid-column: span 3; }
.tool-prompt { display: block; margin-bottom: .7rem; color: var(--tool-colour); font-size: .875rem; font-weight: 600; }
.tool-card h2 { margin-bottom: .7rem; font-size: 1.45rem; }
.tool-card > p { flex: 1; color: var(--muted); }
.tool-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .875rem; }
.tool-status { color: var(--muted); }
.tool-footer strong { color: var(--tool-colour); font-weight: 650; }
.toolkit-explainer { margin-top: 2rem; }
.toolkit-explainer, .optional-planning, .language-help { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
summary { min-height: 30px; padding: .2rem 0; color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
summary::marker { color: var(--tool-colour); }
details[open] > summary { margin-bottom: 1rem; }
.language-help { margin: 1.5rem 0; }
.language-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem 1.5rem; margin: 0; }
.language-grid dt { margin-bottom: .25rem; font-weight: 650; }
.language-grid dd { margin: 0; color: var(--muted); }
.cycle-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-top: .5rem; }
.cycle-stage { display: flex; gap: .75rem; }
.cycle-stage > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; color: var(--purple); background: #eee7fa; font-weight: 650; font-size: .875rem; }
.cycle-stage strong, .cycle-stage small { display: block; font-size: .9375rem; }
.cycle-stage small { margin-top: .35rem; color: var(--muted); }
.tool-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.tool-page-head > div { flex: 1; min-width: 0; }
.tool-page-head h1 { max-width: 800px; font-size: clamp(2rem, 3.8vw, 3rem); }
.tool-page-head > .button { flex-shrink: 0; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.tool-aside { display: grid; gap: 1rem; position: sticky; top: 1.5rem; }
.tool-aside .panel h2 { font-size: 1.25rem; }
.tool-aside .panel, .tool-aside .caution { margin: 0; padding: 1.25rem; }
.form-card { margin: 1.5rem 0 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--tool-colour); border-radius: 20px; background: #fff; }
.tool-layout .form-card { margin: 0; }
.form-section + .form-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form-section > h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field-full { grid-column: 1 / -1; }
.field { min-width: 0; margin-bottom: 1.25rem; }
.form-grid > .field { margin: 0; }
.field label, .choice-fieldset legend { display: block; margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; padding: .75rem .85rem; border: 1px solid #a9a2b6; border-radius: 12px; color: var(--ink); background: #fff; font-size: 1rem; line-height: 1.6; }
.field textarea { display: block; min-height: 8.5rem; resize: vertical; }
.field input, .field select { min-height: 48px; }
.field textarea::placeholder, .field input::placeholder { color: #6b6178; }
.field textarea:focus, .field input:focus, .field select:focus { border-color: var(--tool-colour); }
.field select { text-overflow: ellipsis; }
.field-hint { margin: .5rem 0 .75rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.writing-help { margin: 0 0 1.75rem; padding: .85rem 1rem; border-left: 3px solid var(--tool-colour); border-radius: 0 10px 10px 0; color: var(--muted); background: var(--tool-tint); font-size: .9375rem; }
.choice-fieldset { min-width: 0; margin: 1.5rem 0; padding: 0; border: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.check-option { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-option:last-child { grid-column: 1 / -1; }
.check-option:has(input:checked) { background: var(--tool-tint); border-color: var(--tool-colour); }
.check-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--tool-colour); }
.check-option strong { display: block; font-size: 1rem; line-height: 1.5; }
.check-option small { display: block; margin-top: .3rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.pdp-context, .focus-link { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--tool-colour); border-radius: 0 14px 14px 0; background: var(--tool-tint); }
.pdp-context strong, .pdp-context span, .focus-link > span:first-child, .focus-link > strong { display: block; }
.pdp-context span { margin-top: .35rem; }
.focus-link > span:first-child { margin-bottom: .35rem; color: var(--tool-colour); font-size: .875rem; font-weight: 650; }
.focus-link > button { min-height: 44px; margin-top: .5rem; padding: .5rem 0; border: 0; color: var(--tool-colour); background: none; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.focus-link .status-badge { margin-top: .75rem; }
.optional-planning { margin-bottom: 2rem; }
.ksva-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ksva-card { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: 14px; background: var(--ksva-tint); }
.ksva-k { --ksva-tint: #e8eefc; --ksva-colour: #245ce8; }
.ksva-s { --ksva-tint: #eee7fa; --ksva-colour: #773be0; }
.ksva-v { --ksva-tint: #ffeadb; --ksva-colour: #914019; }
.ksva-a { --ksva-tint: #fff2c9; --ksva-colour: #806011; }
.ksva-card > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid currentColor; border-radius: 9px; color: var(--ksva-colour); font-weight: 700; }
.ksva-card .field { flex: 1; margin: 0; }
.ksva-card textarea { min-height: 8rem; }
.review-starting-point { margin: 1.5rem 0; padding: 1.25rem; border-left: 3px solid #266087; border-radius: 0 12px 12px 0; background: #ddf3f8; }
.review-starting-point p { margin: .4rem 0 0; }

/* Saved notes read like clean, printable records. */
.summary-sheet { margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 4px solid var(--tool-colour); border-radius: 20px; background: #fff; }
.summary-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.summary-heading > div { min-width: 0; }
.summary-heading h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.status-badge { display: inline-flex; align-items: center; flex-shrink: 0; max-width: 100%; padding: .4rem .75rem; border-radius: 100px; color: #5425a5; background: #eee7fa; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.status-paused { color: #725014; background: #fff2c9; }
.status-closed { color: #555060; background: #eeedf3; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.ksva-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.ksva-summary .summary-block { padding: 1rem; border: 0; border-radius: 12px; background: var(--tool-tint); }
.summary-block { min-width: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.summary-block > span { color: var(--tool-colour); font-size: .9375rem; font-weight: 650; }
.summary-block p { margin: .5rem 0 0; }
.summary-list { padding-left: 1.25rem; margin-bottom: 0; }
.summary-list li + li { margin-top: .4rem; }
.not-added { color: #6b6178; }
.review-list { display: grid; gap: 1rem; }
.review-item { padding: 1.5rem; border: 1px solid var(--line); border-left: 4px solid #266087; border-radius: 0 16px 16px 0; background: #fff; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .875rem; }
.review-meta strong { padding: .35rem .65rem; border-radius: 100px; background: #ddf3f8; color: #266087; font-weight: 650; }
.outcome-mixed { border-left-color: #806011; }
.outcome-mixed .review-meta strong { color: #725014; background: #fff2c9; }
.outcome-harder { border-left-color: #a33a3a; }
.outcome-harder .review-meta strong { color: #903333; background: #fce6e3; }
.outcome-unclear, .outcome-not-tried { border-left-color: #766c84; }
.outcome-unclear .review-meta strong, .outcome-not-tried .review-meta strong { color: #555060; background: #eeedf3; }
.review-decisions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.review-decisions span { padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 100px; font-size: .875rem; }
.summary-block p, .review-item p, .review-starting-point, .focus-link, .pdp-context { overflow-wrap: anywhere; }

/* Supporting information and shared footer. */
.panel, .empty-card { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.panel p, .empty-card p { color: var(--muted); }
.panel p:last-child, .empty-card p:last-child { margin-bottom: 0; }
.guardrail, .caution { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: #eeedf3; }
.caution { border-color: #e7c3a7; background: #fff2e6; color: #653a20; }
.guardrail p, .caution p { margin: .45rem 0 0; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.privacy-point { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.privacy-point strong, .privacy-point span { display: block; }
.privacy-point span { margin-top: .6rem; color: var(--muted); }
.evidence-list { display: grid; gap: 1rem; margin-top: 2rem; }
.evidence-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.evidence-item h2 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.015em; }
.evidence-item h2 a { color: var(--ink); }
.evidence-item h2 a:hover { color: var(--purple); }
.evidence-item p { margin-bottom: 0; color: var(--muted); }
.plain-list { padding-left: 1.25rem; }
.plain-list li + li { margin-top: .75rem; }
.site-footer { background: #eeedf3; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; width: min(var(--max), calc(100% - 4rem)); margin: 0 auto; padding: 2rem 0; }
.footer-brand { margin: 0; font-size: .9375rem; font-weight: 650; }
.footer-note { margin: .5rem 0 0; max-width: 420px; color: var(--muted); font-size: .875rem; }
.footer-side { max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: -.6rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border: 0; color: var(--ink); background: none; text-decoration: none; font-size: .875rem; font-weight: 600; }
.footer-link:hover { color: var(--purple); text-decoration: underline; }
dialog { width: min(540px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #29253633; }
dialog::backdrop { background: #29253688; }
.dialog-body { padding: 1.75rem; }
.dialog-body h2 { font-size: 1.5rem; }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; width: fit-content; max-width: min(420px, calc(100% - 2.5rem)); padding: .85rem 1.1rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: .9375rem; box-shadow: 0 4px 16px #29253622; }
.noscript { max-width: 750px; margin: 2rem auto; padding: 1.5rem; }

@media (hover: hover) {
  .quick-choice:hover, .tool-card:hover { transform: translateY(-3px); }
  .tool-card:hover { background: var(--tool-tint); }
}
@media (max-width: 1200px) {
  .save-state { display: none; }
  .quick-choice { padding: 1.35rem; }
}
@media (max-width: 1050px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 3rem); }
  .desktop-nav { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .75rem 1.5rem 1rem; background: var(--ink); box-shadow: 0 12px 24px #29253622; }
  .desktop-nav.is-open { display: flex; }
  .nav-link { white-space: normal; }
  .save-state { display: block; max-width: none; margin: .5rem 0 0; padding: .75rem .9rem 0; border-left: 0; border-top: 1px solid #645c72; }
  .menu-button { display: inline-flex; }
  .quick-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-choice { min-height: 212px; padding: 1.5rem; }
  .quick-choice-unsure { min-height: 88px; }
  .quick-choice-copy strong { font-size: 1.5rem; max-width: 20ch; }
  .quick-choice-unsure strong { font-size: 1.0625rem; }
  .tool-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .check-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card, .tool-card:nth-child(4) { grid-column: span 1; }
  .tool-card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 78px; }
  .page { padding-top: 2rem; }
  .quick-start-head { display: block; margin-bottom: 1.5rem; }
  .quick-start-head > p { max-width: 600px; margin: 1rem 0 0; }
  .tool-layout, .return-record { grid-template-columns: 1fr; }
  .tool-aside { position: static; }
  .tool-page-head { flex-direction: column; align-items: flex-start; }
  .tool-page-head > .button { align-self: flex-start; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .75rem; }
  .cycle-ribbon, .ksva-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: 1fr; }
  .ksva-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .summary-heading { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .5rem .7rem; padding: .65rem 0; }
  .brand-button { gap: .6rem; flex-shrink: 1; min-width: 0; }
  .brand { font-size: 1.3rem; }
  .brand-variant { max-width: 165px; overflow-wrap: break-word; }
  .brain-mark { width: 44px; height: 43px; background-size: 287px 89px; background-position: -218px -22px; }
  .desktop-nav { padding-inline: 1rem; }
  .page { padding: 1.75rem 0 2.5rem; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .quick-choices { grid-template-columns: 1fr; gap: .65rem; }
  .quick-choice { flex-direction: row; align-items: flex-start; min-height: 0; gap: 1rem; padding: 1.25rem; }
  .quick-choice-copy { gap: .5rem; }
  .quick-choice-copy strong { font-size: 1.25rem; max-width: none; }
  .choice-arrow { align-self: flex-end; width: 30px; height: 30px; }
  .quick-choice-unsure strong { font-size: 1.0625rem; }
  .quick-choice-unsure .choice-arrow { align-self: center; }
  .tool-grid, .form-grid, .summary-grid, .cycle-ribbon { grid-template-columns: 1fr; }
  .tool-card, .tool-card:nth-child(4), .tool-card:nth-child(5) { grid-column: auto; }
  .tool-card, .return-record, .review-item, .panel, .evidence-item { padding: 1.25rem; }
  .section { padding-top: 2rem; }
  .quick-summary .form-actions .button, .quick-writing .form-actions .button { width: 100%; }
  .ksva-card { display: block; }
  .ksva-card > span { width: 32px; margin-bottom: .75rem; }
  .ksva-summary { grid-template-columns: 1fr; }
  .summary-heading { display: block; }
  .summary-heading .status-badge { margin: .4rem 0; }
  .status-badge { white-space: normal; }
  .field input[type="date"] { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .quick-choice:hover, .tool-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .quick-choice, .tool-card, .choice-arrow, .button { border: 1px solid ButtonText; }
  .quick-choice::before { background: Canvas; }
  .quick-choice, .tool-card { color: LinkText; }
  .nav-link[aria-current="page"], .check-option:has(input:checked) { outline: 2px solid Highlight; }
}
@media print {
  body { color: #000; background: #fff; }
  #app { min-height: 0; }
  .site-header, .site-footer, .mobile-nav, .menu-button, .skip-link, .breadcrumb, .form-actions, .toast, .language-help, .writing-help, .tool-page-head > .button, .tool-aside, .text-button { display: none !important; }
  .page { width: 100%; max-width: none; margin: 0; padding: 0; }
  .quick-start-head, .quick-choice-panel, .quick-writing, .tools-section, .return-record, .toolkit-explainer, .quick-start ~ .guardrail { display: none !important; }
  .tool-layout { display: block; }
  .page:has(.summary-sheet) .toolkit-form, .page:has(.summary-sheet) .tool-page-head, .page:has(.summary-sheet) > .pdp-context, .page:has(.summary-sheet) > .focus-link { display: none !important; }
  .summary-sheet, .quick-summary, .review-item, .form-card { max-width: none; color: #000; background: #fff; border-color: #bbb; box-shadow: none; }
  .summary-sheet, .quick-summary { margin: 0; padding: 0; border: 0; }
  .summary-block, .review-item, .field, .quick-note-body > div { break-inside: avoid; }
  .summary-grid, .ksva-summary { display: block; }
  .status-badge, .review-meta strong { border: 1px solid #bbb; color: #222; background: #fff; }
  .eyebrow, .summary-block > span, .quick-note-body h3, .not-added { color: #333; }
  h2, h3 { break-after: avoid; }
}
