:root {
  --navy: #0b1f33;
  --navy-2: #16344d;
  --teal: #12b5b0;
  --teal-dark: #078d89;
  --teal-soft: #e7f8f7;
  --coral: #ff8c72;
  --amber: #f4b953;
  --violet: #7167d9;
  --blue: #4a90d9;
  --ink: #142333;
  --muted: #667483;
  --line: #dce5e8;
  --surface: #ffffff;
  --surface-2: #f5f8f9;
  --surface-3: #edf3f4;
  --shadow: 0 18px 55px rgba(11, 31, 51, 0.11);
  --radius: 22px;
  color-scheme: light;
}

[data-theme="dark"] {
  --navy: #071522;
  --navy-2: #102b40;
  --ink: #edf7f8;
  --muted: #9eafb9;
  --line: #294150;
  --surface: #102432;
  --surface-2: #081923;
  --surface-3: #162d3b;
  --teal-soft: #113b3d;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a, label.import-button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; border-radius: 10px; background: var(--teal); color: #062727; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.brand-mark { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--teal); color: #062e30; font-size: 17px; font-weight: 900; letter-spacing: -1.5px; box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .08); }
.brand-mark span { font-size: 10px; margin-left: 1px; letter-spacing: -.5px; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.brand-mark.small span { font-size: 7px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--ink); font-size: 18px; letter-spacing: -.4px; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-button, .theme-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.icon-button:hover, .theme-button:hover { background: var(--surface-3); color: var(--ink); }
.theme-button { width: 42px; padding: 0; border: 1px solid var(--line); }
.theme-icon { font-size: 20px; }
.import-button { position: relative; }
.import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.view { display: none; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 72px; animation: rise .3s ease both; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); gap: clamp(36px, 6vw, 78px); align-items: center; min-height: 370px; padding: clamp(32px, 5vw, 66px); overflow: hidden; border-radius: 30px; background: var(--navy); color: #fff; box-shadow: var(--shadow); position: relative; }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; border: 75px solid rgba(18, 181, 176, .08); border-radius: 50%; right: -145px; top: -180px; }
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--teal-dark); font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #8be3df; }
.hero .eyebrow span { display: inline-block; width: 18px; height: 2px; margin: 0 8px 3px 0; background: var(--teal); }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.hero-intro { max-width: 650px; margin: 24px 0 0; color: #c8d5df; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); color: #dce9ed; font-size: 12px; font-weight: 700; }
.hero-panel { padding: 26px; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.panel-label { margin: 0 0 18px; color: #95aab7; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-panel ol { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; align-items: flex-start; gap: 13px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hero-panel li:first-child { border-top: 0; padding-top: 0; }
.hero-panel li:last-child { padding-bottom: 0; }
.hero-panel li > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--teal); color: #073032; font-size: 12px; font-weight: 900; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel strong { font-size: 14px; }
.hero-panel small { margin-top: 2px; color: #a9bbc5; font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 58px 0 24px; }
.section-heading h2 { max-width: 690px; margin: 0; font-size: clamp(27px, 4vw, 39px); line-height: 1.12; letter-spacing: -.04em; }
.section-heading > p { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.tool-filters { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(190px, .45fr) auto; gap: 12px; align-items: end; margin: -4px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.filter-field { display: grid; gap: 6px; }
.filter-field label { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.filter-field input, .filter-field select { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-2); color: var(--ink); }
.filter-field input:focus, .filter-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.module-count { align-self: center; min-width: 88px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: right; }
.module-category { margin-top: 18px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.module-card h3 { margin-top: 8px; }
.empty-modules { grid-column: 1 / -1; padding: 44px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }
.empty-modules strong { display: block; margin-bottom: 5px; color: var(--ink); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module-card { position: relative; display: flex; min-height: 258px; flex-direction: column; align-items: flex-start; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 18px rgba(11,31,51,.035); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 18px 38px rgba(11,31,51,.09); }
.module-icon, .large-icon { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent); font-weight: 900; }
.module-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
.module-number { position: absolute; top: 24px; right: 24px; color: var(--line); font-size: 30px; font-weight: 900; letter-spacing: -.06em; }
.module-card h3 { margin: 24px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.module-link { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.support-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--teal); color: #062f31; }
.support-copy { display: flex; align-items: center; gap: 16px; }
.support-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; }
.support-copy strong { font-size: 15px; }
.support-copy p { margin: 2px 0 0; font-size: 13px; opacity: .78; }
.secondary-button, .primary-button, .ghost-button, .back-button { border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.secondary-button { padding: 12px 16px; }
.secondary-button.light { background: #fff; color: #0b3436; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; background: var(--teal); color: #063032; box-shadow: 0 8px 20px rgba(18,181,176,.2); }
.primary-button:hover { background: #25c7c1; }
.primary-button.compact { min-height: 40px; padding: 0 14px; font-size: 12px; }
.ghost-button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.back-button { padding: 9px 0; background: none; color: var(--muted); }
.back-button:hover { color: var(--ink); }

.workspace-header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.progress-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { width: 130px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.workspace-grid { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 28px; align-items: start; }
.tool-context { position: sticky; top: 106px; padding: 34px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.large-icon { width: 58px; height: 58px; margin-bottom: 34px; border-radius: 18px; --accent: var(--teal); background: rgba(18,181,176,.16); color: #72d9d5; font-size: 25px; }
.tool-context h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.tool-context > p:not(.eyebrow):not(.autosave-note) { color: #b8c8d1; font-size: 14px; line-height: 1.7; }
.context-note { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.context-note strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.context-note ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.context-note li { color: #c7d5dc; font-size: 13px; }
.context-note li::before { content: "✓"; margin-right: 8px; color: var(--teal); font-weight: 900; }
.autosave-note { margin: 28px 0 0; color: #87a0ad; font-size: 11px; }
.autosave-note span { color: var(--teal); }
.question-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.question-intro { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.question-intro h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.035em; }
.question-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 25px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .field-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.field label small, .field .field-label small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface-2); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input, .field select { min-height: 48px; padding: 0 14px; }
.field textarea { min-height: 105px; padding: 13px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.field-error { margin: 6px 0 0; color: #cf4f47; font-size: 11px; font-weight: 700; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #cf4f47; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; min-height: 46px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: pointer; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--teal); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }

.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.report-paper { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.report-cover { padding: clamp(30px, 5vw, 56px); background: var(--navy); color: #fff; }
.report-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 44px; color: #c4d2da; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.report-cover h1 { max-width: 700px; margin: 0; font-size: clamp(36px, 5vw, 55px); line-height: 1.02; letter-spacing: -.05em; }
.report-summary { max-width: 700px; margin: 20px 0 0; color: #c5d2d9; font-size: 16px; line-height: 1.7; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.report-meta span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dce7ec; font-size: 10px; font-weight: 700; }
.report-section { padding: 34px clamp(26px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.report-section:last-child { border-bottom: 0; }
.report-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.report-section-heading span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.report-section h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.priority-list { display: grid; gap: 11px; }
.priority-item { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.priority-rank { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 900; }
.priority-item h3 { margin: 0 0 4px; font-size: 14px; }
.priority-item p { margin: 0; color: var(--muted); font-size: 12px; }
.deliverable { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.75; }
.checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 11px 13px 11px 42px; border-radius: 11px; background: var(--surface-2); font-size: 13px; }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 15px; height: 15px; border: 2px solid var(--teal); border-radius: 4px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.timeline article { padding: 15px; border-top: 3px solid var(--teal); border-radius: 7px 7px 13px 13px; background: var(--surface-2); }
.timeline strong { display: block; font-size: 12px; }
.timeline p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.report-footer { display: flex; align-items: center; gap: 12px; padding: 17px clamp(26px, 5vw, 52px); background: var(--surface-3); color: var(--muted); font-size: 10px; }
.report-footer strong { color: var(--ink); }
.report-footer span:last-child { margin-left: auto; }
.report-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.ai-card, .cta-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ai-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-orb { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; background: var(--teal-soft); color: var(--teal-dark); font-size: 18px; }
.ai-heading strong, .ai-heading small { display: block; }
.ai-heading strong { font-size: 14px; }
.ai-heading small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.chat-messages { display: grid; gap: 9px; max-height: 280px; overflow-y: auto; margin: 0 0 14px; }
.chat-message { padding: 11px 12px; border-radius: 12px; font-size: 12px; white-space: pre-wrap; }
.chat-message.assistant { background: var(--surface-2); color: var(--ink); }
.chat-message.user { margin-left: 24px; background: var(--teal-soft); color: var(--ink); }
#chat-form label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
#chat-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--ink); outline: 0; resize: vertical; }
#chat-form textarea:focus { border-color: var(--teal); }
#chat-form textarea:disabled { opacity: .55; cursor: not-allowed; }
.chat-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.chat-help > span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.cta-card { background: var(--teal); color: #062f31; border: 0; }
.cta-card .eyebrow { color: #075e5c; }
.cta-card h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.cta-card p:not(.eyebrow) { font-size: 12px; }
.cta-card a { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #092e31; text-decoration: none; font-size: 12px; font-weight: 900; }
.guidance-note { margin: 0; padding: 0 5px; color: var(--muted); font-size: 10px; }

.saved-header { max-width: 700px; margin: 28px auto 38px; text-align: center; }
.saved-header h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: -.055em; }
.saved-header > p:not(.eyebrow) { color: var(--muted); }
.saved-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.saved-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.saved-card .module-icon { width: 40px; height: 40px; }
.saved-card h2 { margin: 18px 0 5px; font-size: 17px; }
.saved-card p { margin: 0; color: var(--muted); font-size: 11px; }
.saved-card-actions { display: flex; gap: 7px; margin-top: 20px; }
.saved-card-actions button { flex: 1; }
.empty-state { grid-column: 1 / -1; padding: 70px 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state span { display: grid; width: 55px; height: 55px; margin: 0 auto 18px; place-items: center; border-radius: 18px; background: var(--teal-soft); color: var(--teal-dark); font-size: 24px; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.site-footer { display: flex; width: min(1180px, calc(100% - 36px)); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer div { display: flex; gap: 17px; }
.site-footer button, .site-footer a { padding: 0; border: 0; background: none; color: inherit; text-decoration: none; cursor: pointer; }
.site-footer button:hover, .site-footer a:hover { color: var(--ink); }

.app-dialog { width: min(600px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: transparent; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.app-dialog::backdrop { background: rgba(2, 16, 27, .72); backdrop-filter: blur(5px); }
.dialog-card { position: relative; margin: 0; padding: clamp(26px, 5vw, 42px); border: 0; border-radius: 24px; background: var(--surface); }
.dialog-card h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.045em; }
.dialog-card > p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; top: 17px; right: 18px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: 21px; cursor: pointer; }
.navigator-options { display: grid; gap: 9px; margin-top: 24px; }
.navigator-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; }
.navigator-option:hover { border-color: var(--teal); background: var(--teal-soft); }
.navigator-option strong { display: block; font-size: 13px; }
.navigator-option small { display: block; margin-top: 2px; color: var(--muted); }
.privacy-copy h3 { margin: 24px 0 5px; font-size: 14px; }
.privacy-copy .primary-button { margin-top: 18px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(430px, calc(100% - 30px)); padding: 11px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .module-grid, .saved-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workspace-grid, .report-layout { grid-template-columns: 1fr; }
  .tool-context, .report-side { position: static; }
  .tool-context { padding: 28px; }
  .report-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guidance-note { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .topbar { min-height: 66px; padding: 10px 15px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small, .desktop-label { display: none; }
  .icon-button, .theme-button { width: 38px; min-height: 38px; padding: 0; }
  .view { width: min(100% - 24px, 1180px); padding: 24px 0 50px; }
  .hero { min-height: 430px; padding: 31px 24px; border-radius: 22px; }
  .hero h1 { font-size: clamp(39px, 12vw, 57px); }
  .hero-intro { font-size: 15px; }
  .hero-points span { font-size: 10px; }
  .section-heading { display: block; margin-top: 38px; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .module-grid, .saved-list { grid-template-columns: 1fr; }
  .module-card { min-height: 225px; }
  .support-strip { align-items: stretch; flex-direction: column; padding: 22px; }
  .secondary-button { width: 100%; }
  .progress-meta { display: none; }
  .workspace-header { margin-bottom: 12px; }
  .question-card { padding: 23px 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .report-actions { justify-content: flex-end; }
  .report-actions .ghost-button { display: none; }
  .report-cover { padding: 30px 24px; }
  .report-brand { margin-bottom: 35px; }
  .report-section { padding: 27px 21px; }
  .timeline, .report-side { grid-template-columns: 1fr; }
  .report-footer { align-items: flex-start; flex-direction: column; }
  .report-footer span:last-child { margin-left: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer div { flex-direction: column; gap: 7px; }
}

@media (max-width: 700px) {
  .tool-filters { grid-template-columns: 1fr; }
  .module-count { text-align: left; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  :root, [data-theme="dark"] { --ink: #142333; --muted: #667483; --line: #dce5e8; --surface: #fff; --surface-2: #f5f8f9; --surface-3: #edf3f4; --navy: #0b1f33; --teal-soft: #e7f8f7; color-scheme: light; }
  body { background: #fff; }
  .topbar, .no-print, .site-footer, dialog, .toast, #home-view, #wizard-view, #saved-view { display: none !important; }
  #report-view { display: block !important; width: 100%; margin: 0; padding: 0; }
  .report-layout { display: block; }
  .report-paper { border: 0; border-radius: 0; box-shadow: none; }
  .report-cover { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-section { break-inside: avoid; }
  .priority-item, .deliverable, .checklist li, .timeline article { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

