/* ============ Self-hosted fonts (no third-party requests) ============ */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --bg: #f7f6f2;
  --surface: #fffefb;
  --surface-alt: #f2f1ec;
  --border: #ddd9d0;
  --border-strong: #c6c1b6;
  --text: #26241d;
  --text-muted: #6f6d66;
  --text-faint: #9d9b94;

  --primary: #01696f;
  --primary-hover: #0c4e54;
  --primary-tint: #e6f0f0;
  --primary-tint-strong: #cfe3e4;

  --warning: #964219;
  --warning-tint: #fbf0e8;
  --error: #a12c7b;
  --success: #437a22;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(38, 36, 29, 0.04), 0 8px 24px rgba(38, 36, 29, 0.05);
  --shadow-raised: 0 2px 4px rgba(38, 36, 29, 0.06), 0 12px 32px rgba(38, 36, 29, 0.08);

  --font-display: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 780px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ Header ============ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.logo-mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.logo-mark svg { width: 22px; height: 22px; display: block; }
.header-text { min-width: 0; flex: 1; }
.header-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary-hover);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.header-sub {
  font-size: 0.795rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}

/* ============ Progress ============ */
.progress-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 40;
}
.progress-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem 0.8rem;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}
.progress-phase {
  font-weight: 600;
  color: var(--primary-hover);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.715rem;
}
.progress-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.progress-track {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Main / cards ============ */
main {
  flex: 1 0 auto;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1.9rem 1.25rem 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.9rem;
}

.screen { animation: rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress-bar { transition: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--primary-tint);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.screen-title {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}
.screen-title.compact { font-size: 1.35rem; }

.lede { color: var(--text-muted); font-size: 1.02rem; }

/* Section intro block (Utility Analysis / Cognitive Restructuring) */
.section-intro {
  background: var(--primary-tint);
  border: 1px solid var(--primary-tint-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.6rem;
  font-size: 0.955rem;
  color: #12484d;
}
.section-intro strong { color: var(--primary-hover); }

/* Instruction text for each step */
.instruction {
  font-size: 1.06rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.helper {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1.25rem;
}

/* ============ Forms ============ */
.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }

label.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.req { color: var(--error); margin-left: 0.15rem; font-weight: 700; }
.opt {
  color: var(--text-faint);
  font-weight: 500;
  margin-left: 0.3rem;
  font-size: 0.8rem;
}

textarea, input[type="text"], select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 122px; resize: vertical; }
textarea.tall { min-height: 150px; }
textarea.short { min-height: 78px; }

textarea::placeholder, input::placeholder { color: var(--text-faint); }

textarea:hover, input[type="text"]:hover, select:hover { border-color: #a9a49a; }
textarea:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
textarea.invalid, input.invalid { border-color: var(--error); }

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.83rem;
  font-weight: 500;
  margin-top: 0.4rem;
}
.field-error.show { display: block; }

/* ============ Buttons ============ */
.btn {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.72rem 1.3rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-hover);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn-quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 0.6rem 0.8rem;
  min-height: 42px;
  font-size: 0.875rem;
}
.btn-quiet:hover { color: var(--text); background: var(--surface-alt); }
.btn-danger-quiet {
  background: transparent;
  color: var(--error);
  border-color: transparent;
  padding: 0.6rem 0.8rem;
  min-height: 42px;
  font-size: 0.875rem;
}
.btn-danger-quiet:hover { background: #fbeef6; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-row .spacer { flex: 1 1 auto; }

.tools-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

/* ============ Welcome list ============ */
.flow-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.flow-chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.flow-arrow { color: var(--text-faint); font-size: 0.85rem; }

ul.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
ul.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  font-size: 0.985rem;
}
ul.check-list svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--primary);
  margin-top: 0.22rem;
}

.privacy-note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-size: 0.885rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.privacy-note svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--primary);
  margin-top: 0.18rem;
}

/* ============ Read-only recall card ============ */
.recall-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.recall-label {
  font-size: 0.705rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 0.4rem;
}
.recall-body {
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ============ Relabel: presets ============ */
.search-wrap { position: relative; margin-bottom: 1rem; }
.search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}
.search-wrap input[type="text"] { padding-left: 2.6rem; }

.option-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--primary-hover);
  margin: 1.5rem 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.option-heading .opt-tag {
  background: var(--primary);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex: 0 0 20px;
}

.category-list { display: flex; flex-direction: column; gap: 0.5rem; }
.category-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.category-header {
  width: 100%;
  background: var(--surface-alt);
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
}
.category-header:hover { background: var(--primary-tint); }
.category-header .cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.category-chevron {
  margin-left: auto;
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex: 0 0 18px;
}
.category-body { padding: 0.9rem 1rem 1rem; border-top: 1px solid var(--border); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.name-chip {
  font-family: var(--font-body);
  font-size: 0.885rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.name-chip:hover { border-color: var(--primary); background: var(--primary-tint); }
.name-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.no-results {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.9rem 0;
  font-style: italic;
}

.chosen-banner {
  display: none;
  background: var(--primary-tint);
  border: 1px solid var(--primary-tint-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: #12484d;
}
.chosen-banner.show { display: block; }
.chosen-banner strong { color: var(--primary-hover); }

/* ============ Redirect: action cards ============ */
.primary-block {
  background: var(--primary-tint);
  border: 1.5px solid var(--primary-tint-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1.6rem;
}
.primary-block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-hover);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.primary-block-title svg { width: 18px; height: 18px; flex: 0 0 18px; }
.primary-block-sub {
  font-size: 0.85rem;
  color: #3d6a6d;
  margin-bottom: 0.95rem;
}

.action-list { display: flex; flex-direction: column; gap: 0.6rem; }
.action-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}
.action-card:hover { border-color: var(--primary); }
.action-card.selected {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.action-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  flex: 0 0 22px;
  margin: 0.15rem 0 0;
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.14s, border-color 0.14s;
}
.action-card input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.action-card input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.action-card-text { min-width: 0; flex: 1; }
.action-card-tag {
  display: block;
  font-size: 0.685rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 0.22rem;
}
.action-card-body {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.divider-label {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.suggest-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.suggest-row .grow { flex: 1 1 240px; min-width: 0; }

/* ============ Review ============ */
.review-section { margin-bottom: 1.9rem; }
.review-section:last-of-type { margin-bottom: 0; }
.review-heading {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--primary-hover);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-tint-strong);
  margin-bottom: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.review-heading .edit-link {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
}
.review-heading .edit-link:hover { background: var(--primary-tint); text-decoration: underline; }

.review-item { margin-bottom: 1.05rem; }
.review-item:last-child { margin-bottom: 0; }
.review-q {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.28rem;
}
.review-a {
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-left: 0.85rem;
  border-left: 2px solid var(--border);
}
.review-a.empty { color: var(--text-faint); font-style: italic; }
.review-a ol, .review-a ul { margin: 0; padding-left: 1.25rem; }
.review-a li { margin-bottom: 0.28rem; }
.review-a li:last-child { margin-bottom: 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.plan-col {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.plan-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 0.7rem;
}
.plan-field { margin-bottom: 0.75rem; }
.plan-field:last-child { margin-bottom: 0; }
.plan-field-label {
  font-size: 0.735rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.plan-field-value {
  font-size: 0.925rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.plan-field-value ul { list-style: none; margin: 0; padding: 0; }
.plan-field-value li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
.plan-field-value li:last-child { margin-bottom: 0; }
.tick {
  color: var(--primary);
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1.5;
}
.tick.off { color: var(--text-faint); font-weight: 400; }

.practice-box {
  background: var(--primary-tint);
  border: 1.5px solid var(--primary-tint-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.practice-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}
.practice-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #12484d;
}

/* ============ Alerts / modal ============ */
.alert {
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 0.15rem; }
.alert-warn {
  background: var(--warning-tint);
  border: 1px solid #e8c9b4;
  color: #7a3612;
}
.alert-success {
  background: #eef5e9;
  border: 1px solid #cadfbc;
  color: #35611b;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(200%);
  opacity: 0;
  visibility: hidden;
  background: var(--text);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-raised);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease,
    visibility 0.25s;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 36, 29, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 300;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 1.6rem;
  max-width: 440px;
  width: 100%;
}
.modal h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.modal p { font-size: 0.95rem; color: var(--text-muted); }
.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #852366; }

/* ============ Footer ============ */
.site-footer {
  flex: 0 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.25rem 1.6rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 0.815rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.site-footer svg {
  width: 16px; height: 16px;
  flex: 0 0 16px;
  color: var(--warning);
  margin-top: 0.18rem;
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 1.25rem 0.9rem 2.25rem; }
  .card { padding: 1.25rem 1.1rem; border-radius: var(--radius-md); }
  .header-inner { padding: 0.7rem 0.9rem; gap: 0.7rem; }
  .logo-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .logo-mark svg { width: 19px; height: 19px; }
  .header-title { font-size: 0.93rem; }
  .header-sub { font-size: 0.735rem; }
  .progress-inner { padding: 0.6rem 0.9rem 0.7rem; }
  .screen-title { font-size: 1.32rem; }
  .screen-title.compact { font-size: 1.2rem; }
  .instruction { font-size: 1rem; }
  .plan-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .nav-row, .btn-row { gap: 0.6rem; }
  .nav-row .btn, .btn-row .btn { flex: 1 1 auto; }
  .nav-row .spacer { display: none; }
  .btn { padding: 0.72rem 1rem; }
  .review-heading .edit-link { margin-left: 0; }
  .footer-inner { font-size: 0.775rem; }
}

/* ============ Print ============ */
@media print {
  .site-header, .progress-wrap, .nav-row, .btn-row, .tools-row,
  .toast, .modal-backdrop, .review-heading .edit-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { padding: 0; max-width: none; }
  .card { border: none; box-shadow: none; padding: 0; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .review-section { page-break-inside: avoid; }
}
