:root {
  --ink: #1e1c1b;
  --ink-soft: #57514e;
  --ink-muted: #766e69;
  --canvas: #f7f4ef;
  --surface: #ffffff;
  --surface-warm: #fffaf7;
  --line: #ded8d2;
  --line-strong: #c9c0b9;
  --brand: #a9231a;
  --brand-dark: #781812;
  --brand-soft: #fbe7e3;
  --fact: #075a78;
  --fact-soft: #e7f5fa;
  --context: #715000;
  --context-soft: #fff2ce;
  --hypothesis: #574091;
  --hypothesis-soft: #f0ebff;
  --success: #176a50;
  --warning: #8d4309;
  --focus: #1468c5;
  --shadow-sm: 0 8px 24px rgba(47, 37, 31, 0.07);
  --shadow-lg: 0 24px 70px rgba(58, 38, 30, 0.13);
  color: var(--ink);
  background: var(--canvas);
  font-family: "Pretendard Variable", Pretendard, SUIT, "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 112px; }
html[data-text-scale="large"] { font-size: 19px; }
body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(169, 35, 26, 0.07), transparent 24rem),
    radial-gradient(circle at 92% 34%, rgba(7, 90, 120, 0.055), transparent 28rem),
    var(--canvas);
}

button,
input,
textarea { font: inherit; }

button { min-height: 52px; }
p,
li,
dd {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
button,
summary,
.creator,
.impact-cta a {
  word-break: keep-all;
  text-wrap: balance;
}
a { color: var(--brand-dark); text-underline-offset: 0.18em; }
svg { display: block; }
mark { padding: 0; background: none; color: var(--brand); }
.keep-together { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(201, 192, 185, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 24px rgba(46, 32, 26, 0.06);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.utility-inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: block; line-height: 1.15; }
.brand-copy strong { display: block; color: #8f0825; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.055em; }
.brand-copy small { display: block; margin-top: 5px; color: #76575e; font-size: 0.78rem; font-weight: 750; }
.brand-promise { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 18px; padding: 10px 14px; background: #fff8fa; text-align: center; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.brand-promise strong { color: #8e0c27; font-size: 1rem; }
.brand-promise span { color: #76575e; font-size: 0.875rem; }
footer .footer-promise { color: #fff; font-weight: 700; }

.creator {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid #e9c3bd;
  border-radius: 999px;
  background: #fff4f1;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.creator:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }

.official-status {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 20px;
  background: #292624;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.official-status svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: #ffd982; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.official-status strong { color: #ffe299; }

.utility-bar { border-bottom: 1px solid var(--line); background: rgba(247, 244, 239, 0.92); }
.utility-inner { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 16px; }
.utility-inner > p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-size: 0.95rem; font-weight: 850; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f8b68; box-shadow: 0 0 0 4px rgba(31, 139, 104, 0.12); }
.view-tools { display: flex; gap: 7px; }
.tool-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 850;
}
.tool-button span { color: var(--brand); font-weight: 950; }
.tool-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tool-button[aria-pressed="true"] span { color: #fff; }

.hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 28px;
}

.kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker span {
  display: inline-flex;
  margin-right: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4.4vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 1.04;
}
.hero-title-line,
.hero-action-line { display: block; white-space: nowrap; }
.hero-action-line { margin-top: 0.08em; }

.hero-summary { display: grid; gap: 5px; margin-top: 16px; }
.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.16rem, 1.9vw, 1.34rem);
  font-weight: 900;
  line-height: 1.5;
}
.hero-detail { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

.trust-list { display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 10px; color: #393532; }
.trust-list li span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; background: #dff2e9; color: var(--success); font-size: 0.82rem; font-weight: 950; }
.trust-list strong { font-size: 0.98rem; line-height: 1.45; white-space: nowrap; }

.briefing-panel { position: relative; }
.briefing-panel::before {
  position: absolute;
  inset: -15px 22px 15px -15px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(169, 35, 26, 0.14), rgba(7, 90, 120, 0.1));
  content: "";
  transform: rotate(-1.5deg);
}

.brief-form {
  display: grid;
  gap: 13px;
  padding: clamp(20px, 3vw, 24px);
  border: 1px solid rgba(205, 193, 184, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.form-heading { display: flex; align-items: center; gap: 13px; }
.step-number { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 950; letter-spacing: 0.08em; }
.form-heading p { margin: 0; color: var(--brand); font-size: 0.9rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.form-heading h2 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -0.04em; line-height: 1.25; }
.field { display: grid; gap: 8px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
label { color: #36302d; font-size: 1.05rem; font-weight: 900; line-height: 1.45; }
.label-row label > span { display: inline-flex; min-height: 28px; align-items: center; margin-left: 5px; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.82rem; font-weight: 950; vertical-align: middle; }
.label-row output { color: var(--ink-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; font-weight: 750; }

textarea,
input:not([type="checkbox"]) {
  width: 100%;
  min-height: 60px;
  padding: 15px 16px;
  border: 2px solid #cfc5bd;
  border-radius: 13px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 1.05rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

textarea { min-height: 96px; resize: vertical; line-height: 1.62; }
textarea::placeholder,
input::placeholder { color: #8a827c; opacity: 1; }
textarea:hover,
input:not([type="checkbox"]):hover { border-color: #aa9c93; }
textarea:focus,
input:not([type="checkbox"]):focus { border-color: var(--focus); background: #fff; box-shadow: 0 0 0 4px rgba(20, 104, 197, 0.12); outline: none; }
.field-help { margin: 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6; }

.quick-entry { padding: 13px; border: 1px solid #ddd4cc; border-radius: 16px; background: #fcfaf7; }
.quick-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.quick-entry-heading p { margin: 0; color: var(--ink); font-size: 1.08rem; font-weight: 950; line-height: 1.4; white-space: nowrap; }
.quick-entry-heading small { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 0.88rem; font-weight: 700; line-height: 1.45; }
.quick-entry-heading > span { display: inline-flex; min-height: 32px; flex: 0 0 auto; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--context-soft); color: var(--context); font-size: 0.82rem; font-weight: 950; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-chip {
  min-height: 52px;
  padding: 10px 15px;
  border: 1px solid #dbd2cb;
  border-radius: 999px;
  background: #f8f5f1;
  color: #443e3a;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}
.prompt-chip:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); transform: translateY(-1px); }
.prompt-chip.selected { border-color: var(--brand); background: var(--brand); color: #fff; }

.advanced-fields {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf9f6;
}
.advanced-fields summary { display: grid; min-height: 60px; grid-template-columns: 1fr auto 28px; align-items: center; gap: 12px; padding: 10px 15px; cursor: pointer; font-size: 1.03rem; font-weight: 900; list-style: none; }
.advanced-fields summary::-webkit-details-marker { display: none; }
.advanced-fields summary::after { color: var(--brand); content: "+"; font-size: 1.65rem; font-weight: 500; text-align: center; }
.advanced-fields[open] summary::after { content: "−"; }
.advanced-fields[open] summary { border-bottom: 1px solid var(--line); }
.summary-title { color: var(--ink); }
.choice-badge { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.84rem; font-weight: 950; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 17px; }
.full-field { grid-column: 1 / -1; }

.ai-option {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #d8cfed;
  border-radius: 14px;
  background: #faf8ff;
  cursor: pointer;
}
.ai-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.switch { display: flex; width: 48px; height: 28px; flex: 0 0 48px; align-items: center; padding: 3px; border-radius: 999px; background: #aaa3b9; transition: background 160ms ease; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24); transition: transform 160ms ease; }
.ai-option input:checked + .switch { background: var(--hypothesis); }
.ai-option input:checked + .switch span { transform: translateX(20px); }
.ai-option input:focus-visible + .switch { outline: 4px solid var(--focus); outline-offset: 3px; }
.ai-option-copy { display: grid; }
.ai-option-copy strong { color: #403263; font-size: 1.05rem; }
.ai-option-copy small { color: #756a89; font-size: 0.88rem; font-weight: 700; line-height: 1.5; }

.submit-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border: 0;
  border-radius: 15px;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(169, 35, 26, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 950;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.submit-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.submit-button:hover { background: var(--brand-dark); box-shadow: 0 14px 28px rgba(120, 24, 18, 0.26); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 0; color: var(--ink-muted); font-size: 0.86rem; line-height: 1.6; }
.privacy-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.privacy-note strong { color: var(--ink-soft); }

.process-strip {
  display: grid;
  width: min(1040px, calc(100% - 40px));
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  gap: 10px;
  margin: 4px auto 42px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}
.process-strip div { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; }
.process-strip span { display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 950; }
.process-strip strong { font-size: 1rem; }
.process-strip small { color: var(--ink-muted); font-size: 0.84rem; }
.process-strip i { height: 1px; background: repeating-linear-gradient(to right, var(--line-strong) 0 5px, transparent 5px 9px); }

.field-tools {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  overflow: hidden;
  margin: 0 auto 34px;
  padding: clamp(20px, 3vw, 24px);
  border: 1px solid #d6cec7;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 0%, #fff9f5 68%, #f7eee9 100%);
  box-shadow: var(--shadow-sm);
}
.field-tools::after {
  position: absolute;
  top: -92px;
  right: -72px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(169, 35, 26, 0.065);
  content: "";
  pointer-events: none;
}
.field-tools-heading { position: relative; z-index: 1; max-width: 760px; }
.field-tools-heading .section-kicker { margin-bottom: 7px; }
.field-tools-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.055em; line-height: 1.16; }
.field-tools-heading > p:last-child { margin: 7px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.field-tool-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.field-tool-button {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.field-tool-button:hover { border-color: var(--brand); background: #fff; box-shadow: 0 12px 28px rgba(64, 45, 36, 0.1); transform: translateY(-2px); }
.field-tool-button:active { box-shadow: none; transform: translateY(1px) scale(0.99); }
.field-tool-button.featured { border-color: #302b28; background: #2c2826; color: #fff; }
.field-tool-button.featured:hover { border-color: var(--brand); background: #211e1c; }
.field-tool-button.install-ready { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(169, 35, 26, 0.1); }
.field-tool-button.installed { border-color: var(--success); background: #eaf7f1; color: #114b39; }
.field-tool-button.is-working { cursor: progress; opacity: 0.76; }
.field-tool-button.is-success { border-color: var(--success); background: #eaf7f1; color: #114b39; box-shadow: 0 0 0 4px rgba(23, 106, 80, 0.1); }
.field-tool-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.field-tool-button.featured .field-tool-icon { background: rgba(255, 255, 255, 0.12); color: #ffcf9d; }
.field-tool-button.installed .field-tool-icon { background: #cdebdc; color: var(--success); }
.field-tool-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.field-tool-copy { display: grid; gap: 3px; }
.field-tool-copy strong { font-size: 1.08rem; line-height: 1.38; }
.field-tool-copy small { color: var(--ink-muted); font-size: 0.9rem; font-weight: 750; line-height: 1.55; }
.field-tool-button.featured .field-tool-copy small { color: #d8d0cb; }
.field-tool-button.is-success .field-tool-copy small { color: #3c715f; }
.field-tools-status { display: flex; position: relative; z-index: 1; min-height: 44px; align-items: center; gap: 9px; margin: 9px 0 0; padding: 8px 12px; border: 1px solid #ded8d2; border-radius: 10px; background: #fff; color: var(--ink-soft); font-size: 0.9rem; font-weight: 800; line-height: 1.4; }
.field-tools-status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #8d8580; box-shadow: 0 0 0 4px rgba(118, 110, 105, 0.1); }
.field-tools-status[data-state="working"] .field-tools-status-dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(141, 67, 9, 0.12); }
.field-tools-status[data-state="success"] { border-color: #b6d9cb; background: #f2fbf7; color: #174f3e; }
.field-tools-status[data-state="success"] .field-tools-status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(23, 106, 80, 0.12); }
.field-tools-status > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.audience-guide { position: relative; z-index: 1; margin-top: 8px; border: 1px solid #d7cfc8; border-radius: 12px; background: rgba(255, 255, 255, 0.82); }
.audience-guide summary { display: grid; min-height: 50px; grid-template-columns: auto 1fr 28px; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
.audience-guide summary::-webkit-details-marker { display: none; }
.audience-guide summary > span { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.8rem; font-weight: 950; white-space: nowrap; }
.audience-guide summary strong { font-size: 0.98rem; line-height: 1.4; }
.audience-guide summary::after { color: var(--brand); content: "+"; font-size: 1.55rem; font-weight: 600; text-align: center; }
.audience-guide[open] summary { border-bottom: 1px solid var(--line); }
.audience-guide[open] summary::after { content: "−"; }
.audience-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.audience-guide-grid section { padding: 12px; border: 1px solid #e5ded8; border-radius: 11px; background: #fff; }
.guide-index { color: var(--brand); font-size: 0.78rem; font-weight: 950; letter-spacing: 0.03em; }
.audience-guide-grid h3 { margin: 7px 0 5px; font-size: 1.02rem; line-height: 1.4; }
.audience-guide-grid p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.58; }
.audience-guide-grid ol { display: grid; gap: 4px; margin: 0; padding-left: 1.25rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.audience-guide-note { margin: 0 10px 10px; padding: 9px 11px; border-radius: 9px; background: var(--context-soft); color: #634b10; font-size: 0.88rem; line-height: 1.5; }
.field-tools-note { position: relative; z-index: 1; margin: 8px 0 0; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.72); color: var(--ink-muted); font-size: 0.86rem; line-height: 1.45; }
.field-tools-note strong { color: var(--ink-soft); }

.hidden { display: none !important; }
.result {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 44px;
  outline: none;
}

.result-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.result-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(135deg, #2a2624 0%, #3b302d 100%);
  color: #fff;
}
.result-kicker { margin: 0 0 8px; color: #ffcf9d; font-size: 0.88rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.result-hero h2 { max-width: 680px; margin: 0; font-size: clamp(1.75rem, 4.6vw, 2.85rem); letter-spacing: -0.055em; line-height: 1.18; }
.result-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.result-meta span { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #f7ede8; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }

.brief-layer { padding: clamp(22px, 4vw, 32px); }
.brief-layer + .brief-layer { border-top: 1px solid var(--line); }
.layer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.layer-heading-copy p { max-width: 680px; margin: 9px 0 0; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; }
.layer-heading h3 { margin: 10px 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.035em; line-height: 1.3; }
.layer-badge { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 10px; border-radius: 9px; font-size: 0.82rem; font-weight: 950; letter-spacing: 0.02em; }
.layer-badge.fact { background: var(--fact-soft); color: var(--fact); }
.layer-badge.context { background: var(--context-soft); color: var(--context); }
.layer-badge.hypothesis { background: var(--hypothesis-soft); color: var(--hypothesis); }
.layer-sequence { color: #b1aaa5; font-size: 2rem; font-weight: 950; letter-spacing: -0.08em; line-height: 1; }

.supervisor-banner {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  margin: 0 0 20px;
  padding: 14px;
  border: 2px solid #a14a0c;
  border-radius: 14px;
  background: #fff2db;
  color: #612b05;
}
.supervisor-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #a14a0c; color: #fff; font-size: 1.25rem; font-weight: 950; }
.supervisor-banner strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.supervisor-banner p { margin: 4px 0 0; font-size: 1rem; line-height: 1.65; }

.risk-block h4,
.check-block h4 { margin: 0 0 12px; color: var(--ink-soft); font-size: 1rem; letter-spacing: 0.01em; }
.risk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.risk-chip { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #e4b9b3; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.08rem; font-weight: 950; }
.risk-chip::before { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); content: ""; }
.check-block { margin-top: 22px; }
.action-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: action; }
.action-checklist li { display: grid; min-height: 68px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf8; font-size: 1.08rem; font-weight: 780; line-height: 1.58; }
.action-checklist label { display: flex; align-items: center; gap: 14px; min-height: 68px; margin: 0; padding: 13px 15px; cursor: pointer; font-size: inherit; }
.action-review { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--brand); }
.action-review:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.action-checklist label > span { min-width: 0; overflow-wrap: anywhere; }
.action-checklist small { display: block; font-size: .85rem; color: var(--ink-muted); font-weight: 600; }
.action-checklist li:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.review-help { margin: 0 0 12px; color: var(--ink-soft); font-size: .93rem; }
.review-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--brand-dark); font-size: .95rem; font-weight: 800; }
.review-progress progress { width: 160px; max-width: 100%; height: 10px; accent-color: var(--brand); }
.field-error { margin: 6px 0 0; color: #a21717; font-weight: 700; }
[aria-invalid="true"] { border-color: #a21717; }

.comprehension-card { margin-top: 20px; padding: 16px; border: 1px solid #e7c869; border-radius: 16px; background: #fff8df; }
.comprehension-card > p { margin: 0 0 6px; color: #795700; font-size: 0.88rem; font-weight: 950; letter-spacing: 0.06em; text-transform: uppercase; }
.comprehension-card h4 { margin: 0; font-size: 1.16rem; line-height: 1.55; }
.comprehension-details { margin: 12px 0 0; }
.comprehension-details summary { display: inline-flex; min-height: 52px; align-items: center; padding: 10px 15px; border: 1px solid #c39927; border-radius: 10px; background: #fffdf5; color: #684a00; cursor: pointer; font-size: 1rem; font-weight: 900; }
.comprehension-answer { margin: 11px 0 0; padding: 11px 13px; border-radius: 10px; background: #fff; }
.completion-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.completion-row small { color: #766536; }
.complete-button { min-height: 52px; padding: 10px 15px; border: 0; border-radius: 11px; background: var(--success); color: #fff; cursor: pointer; font-weight: 950; }
.complete-button:disabled { cursor: not-allowed; opacity: 0.5; }
.complete-button[aria-pressed="true"] { background: #134c3b; }

.evidence-layer { background: linear-gradient(180deg, #fff 0%, #f7fcfe 100%); }
.evidence-card { overflow: hidden; border: 1px solid #a9d1df; border-radius: 17px; background: #fff; }
.evidence-proof { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #cfe4eb; background: var(--fact-soft); }
.evidence-proof span { display: inline-flex; min-height: 34px; align-items: center; padding: 5px 9px; border-radius: 7px; background: #fff; color: var(--fact); font-size: 0.82rem; font-weight: 900; }
.evidence-body { padding: 16px; }
.source-id { margin: 0 0 14px; color: var(--fact); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86rem; font-weight: 850; line-height: 1.55; overflow-wrap: anywhere; }
.evidence-meta { margin: 0 0 12px; color: #48616b; font-size: 0.95rem; line-height: 1.6; }
.official-quote { margin: 0; padding: 2px 0 2px 17px; border-left: 4px solid var(--fact); color: #22343b; font-size: 1.08rem; line-height: 1.82; }
.official-quote strong { display: block; margin-bottom: 7px; color: var(--fact); font-size: 0.86rem; letter-spacing: 0.03em; }
.evidence-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.evidence-detail-grid div { padding: 12px; border-radius: 11px; background: #f6f8f8; }
.evidence-detail-grid dt { color: var(--ink-muted); font-size: 0.84rem; font-weight: 900; }
.evidence-detail-grid dd { margin: 5px 0 0; color: #343b3d; font-size: 1rem; line-height: 1.55; }
.source-details { margin-top: 14px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #faf9f7; }
.source-details summary { min-height: 52px; padding: 12px 14px; cursor: pointer; font-size: 1rem; font-weight: 900; }
.source-details p { margin: 0; padding: 1px 14px 15px; color: var(--ink-soft); font-size: 1rem; line-height: 1.78; white-space: pre-line; }
.source-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; }
.source-row { margin: 0; color: var(--ink-muted); font-size: 0.86rem; line-height: 1.55; }
.source-link { display: inline-flex; min-height: 52px; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 10px; background: var(--fact); color: #fff; font-size: 0.95rem; font-weight: 900; text-decoration: none; }
.source-link:hover { background: #06465e; }
.evidence-feedback { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; margin-top: 17px; padding: 14px; border: 1px solid #cfe4eb; border-radius: 12px; background: #f7fcfe; }
.evidence-feedback p { margin: 0; color: #254752; font-weight: 900; line-height: 1.5; }
.evidence-feedback small { display: block; margin-top: 3px; color: var(--ink-muted); line-height: 1.55; }
.evidence-feedback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.evidence-feedback-button { min-height: 48px; padding: 9px 12px; border: 1px solid #7aa8b7; border-radius: 10px; background: #fff; color: #164b5d; cursor: pointer; font-size: 0.94rem; font-weight: 900; white-space: nowrap; }
.evidence-feedback-button:hover { border-color: var(--fact); background: var(--fact-soft); }
.evidence-feedback-button.selected { border-color: var(--success); background: #e8f5ee; color: #15543f; }
.evidence-feedback-button:disabled { cursor: not-allowed; opacity: 0.65; }
.evidence-feedback-status { min-height: 1.5em; grid-column: 1 / -1; color: #365d69 !important; font-size: 0.88rem; font-weight: 750 !important; }
.empty-evidence { padding: 18px; border: 1px dashed #80adbc; border-radius: 14px; background: var(--fact-soft); color: #2f515d; }
.empty-evidence strong { color: var(--fact); }

.ai-layer { background: #fcfbff; }
.ai-callout { display: grid; grid-template-columns: 44px 1fr; gap: 13px; padding: 17px; border: 1px solid #d7ccee; border-radius: 14px; background: var(--hypothesis-soft); }
.ai-callout-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--hypothesis); color: #fff; font-weight: 950; }
.ai-callout strong { display: block; color: #41306f; font-size: 1.05rem; }
.ai-callout p { margin: 5px 0 0; color: #5f5476; font-size: 1rem; line-height: 1.7; }
.ai-question { margin-top: 13px; padding: 13px; border-radius: 11px; background: #fff; }
.ai-status { margin: 0; padding: 16px; border: 1px dashed #b9add3; border-radius: 13px; background: #f7f4fd; color: #5e5570; font-size: 1rem; line-height: 1.65; }
.layer-disclaimer { margin: 14px 0 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.65; }

.result-footer { padding: 20px clamp(22px, 4vw, 32px) 24px; border-top: 1px solid var(--line); background: #f7f4f0; }
.result-actions { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 10px; }
.result-action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.result-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.result-action.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.result-action.share { border-color: #9bcab7; background: #eaf7f1; color: #135a44; }
.result-action:hover { border-color: var(--brand); color: var(--brand-dark); }
.result-action.primary:hover { background: var(--brand-dark); color: #fff; }
.result-action.share:hover { border-color: var(--success); background: #dff2e9; color: #0e4a38; }
.result-share-note { margin: 17px 0 0; padding: 11px 13px; border-radius: 10px; background: #fff; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.62; }
.result-share-note strong { color: var(--success); }
.result-disclaimer { margin: 17px 0 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.65; }

.loading-shell { padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.loading-mark { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 18px; border-radius: 17px; background: var(--brand-soft); color: var(--brand); }
.loading-mark::after { width: 22px; height: 22px; border: 3px solid rgba(169, 35, 26, 0.22); border-top-color: var(--brand); border-radius: 50%; content: ""; animation: spin 850ms linear infinite; }
.loading-shell h2 { margin: 0; font-size: 1.55rem; }
.loading-shell > p { margin: 7px 0 22px; color: var(--ink-muted); }
.loading-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.loading-steps li { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; background: #f7f5f2; color: var(--ink-soft); font-size: 1rem; font-weight: 800; }
.loading-steps li::before { width: 8px; height: 8px; border-radius: 50%; background: #c6beb8; content: ""; }
.loading-steps li.active::before { background: var(--success); box-shadow: 0 0 0 4px rgba(23, 106, 80, 0.12); }

.error-shell { padding: 32px; border: 1px solid #e2b2ac; border-radius: 20px; background: #fff8f6; }
.error-shell h2 { margin-top: 0; color: var(--brand-dark); }
.error-shell p { color: var(--ink-soft); }
.retry-button { min-height: 54px; padding: 11px 17px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; font-weight: 900; }

.section-intro { max-width: 690px; margin-bottom: 22px; }
.section-intro h2 { margin: 0; font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: -0.06em; line-height: 1.15; }
.section-intro > p:last-child { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.04rem; }

.impact-summary {
  display: grid;
  width: min(1040px, calc(100% - 40px));
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 auto 34px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #292624;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.section-kicker.light { color: #ffca96; }
.impact-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
.impact-copy .section-kicker,
.impact-copy h2,
.impact-copy > p:not(.section-kicker) { grid-column: 1; }
.impact-copy h2 { margin: 0; font-size: clamp(1.05rem, 5.2vw, 2.55rem); letter-spacing: -0.07em; line-height: 1.08; white-space: nowrap; }
.impact-copy > p:not(.section-kicker) { margin: 6px 0 0; color: #d5cfcb; line-height: 1.5; }
.impact-copy a { display: inline-flex; min-height: 48px; grid-column: 2; grid-row: 1 / 4; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 900; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metrics div { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.metrics strong { display: block; flex: 0 0 auto; color: #fff; font-size: clamp(1.75rem, 3vw, 2.35rem); font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.metrics span { color: #d9d2ce; font-size: 0.82rem; line-height: 1.35; text-align: right; white-space: nowrap; }

html[data-text-scale="large"] .trust-list strong,
html[data-text-scale="large"] .quick-entry-heading p,
html[data-text-scale="large"] .field-tools-status > span:last-child,
html[data-text-scale="large"] .impact-copy h2,
html[data-text-scale="large"] .metrics span { white-space: normal; }

footer { padding: 24px 0; background: #1f1d1b; color: #eee7e2; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.footer-inner strong { font-size: 1.2rem; }
.footer-inner p { margin: 6px 0 0; color: #bfb7b2; font-size: 0.82rem; }
.footer-credit { max-width: 510px; font-size: 0.9rem; font-weight: 800; text-align: right; }
.footer-credit a { color: #fff; }
.footer-credit small { display: block; margin-top: 6px; color: #aaa29d; font-weight: 600; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 12px;
  background: #1f1d1b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

.app-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(31, 25, 22, 0.28);
  color: var(--ink);
}
.app-dialog::backdrop { background: rgba(24, 20, 18, 0.68); backdrop-filter: blur(4px); }
.dialog-shell { padding: clamp(25px, 6vw, 38px); }
.dialog-eyebrow { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.82rem; font-weight: 950; }
.dialog-shell h2 { margin: 17px 0 0; font-size: clamp(1.7rem, 6vw, 2.35rem); letter-spacing: -0.05em; line-height: 1.2; }
.dialog-shell > p:not(.dialog-privacy) { margin: 12px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.install-steps { display: grid; gap: 10px; margin: 21px 0 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-steps li { display: grid; min-height: 76px; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf8; counter-increment: install-step; }
.install-steps li::before { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; content: counter(install-step); font-size: 0.84rem; font-weight: 950; }
.install-steps strong { font-size: 1rem; }
.install-steps span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.dialog-privacy { margin: 16px 0 0; padding: 12px 13px; border-radius: 11px; background: var(--fact-soft); color: #315560; font-size: 0.9rem; line-height: 1.65; }
.dialog-button { width: 100%; min-height: 58px; margin-top: 19px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; font-size: 1.04rem; font-weight: 950; }
.dialog-button:hover { background: var(--brand-dark); }

/* Impact page */
.impact-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 55px; }
.impact-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -0.075em; line-height: 1.02; }
.impact-hero > p { max-width: 760px; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.16rem; }
.proof-grid { display: grid; width: min(1180px, calc(100% - 40px)); grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0 auto 90px; }
.proof-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.proof-card strong { display: block; color: var(--brand); font-size: 2.45rem; letter-spacing: -0.05em; }
.proof-card span { color: var(--ink-soft); }
.institution-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto 100px; }
.institution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.institution-card { padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.institution-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.institution-card p { margin: 0; color: var(--ink-soft); }
.institution-card.plan { border-style: dashed; background: #fbfaf8; }
.api-preview { overflow: auto; margin: 17px 0 0; padding: 17px; border-radius: 13px; background: #262321; color: #f8eee8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.78rem; line-height: 1.7; white-space: pre; }
.impact-cta { display: flex; width: min(1180px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 22px; margin: 0 auto 100px; padding: 34px; border-radius: 22px; background: var(--brand); color: #fff; }
.impact-cta h2 { margin: 0; font-size: 1.7rem; }
.impact-cta p { margin: 6px 0 0; color: #f7d4cf; }
.impact-cta a { display: inline-flex; min-height: 54px; align-items: center; padding: 11px 17px; border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 950; text-decoration: none; white-space: nowrap; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

html[data-contrast="high"] {
  --ink: #000;
  --ink-soft: #111;
  --ink-muted: #252525;
  --canvas: #fff;
  --surface: #fff;
  --surface-warm: #fff;
  --line: #000;
  --line-strong: #000;
  --brand: #850000;
  --brand-dark: #610000;
  --brand-soft: #fff0f0;
  --fact: #003f5c;
  --fact-soft: #e9f7ff;
  --context: #563b00;
  --context-soft: #fff2b9;
  --hypothesis: #34216f;
  --hypothesis-soft: #f0ecff;
}
html[data-contrast="high"] body { background: #fff; }
html[data-contrast="high"] .topbar,
html[data-contrast="high"] .brief-form,
html[data-contrast="high"] .field-tools,
html[data-contrast="high"] .field-tool-button,
html[data-contrast="high"] .field-tools-status,
html[data-contrast="high"] .audience-guide,
html[data-contrast="high"] .app-dialog,
html[data-contrast="high"] .result-shell { border-width: 2px; box-shadow: none; }
html[data-contrast="high"] .official-status,
html[data-contrast="high"] .result-hero,
html[data-contrast="high"] footer { background: #000; }

/* Keep the safety disclaimer readable inside the briefing's semantic footer. */
@media screen {
  html[data-contrast="high"] .result-footer { background: #fff; color: var(--ink); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .hero-copy { max-width: 760px; }
  .briefing-panel { width: min(680px, 100%); }
  .process-strip { grid-template-columns: repeat(3, 1fr); }
  .process-strip i { display: none; }
  .impact-summary { gap: 14px; }
  .result-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 154px; }
  .topbar-inner,
  .utility-inner,
  .footer-inner,
  .hero,
  .process-strip,
  .result,
  .field-tools,
  .impact-summary,
  .impact-hero,
  .proof-grid,
  .institution-section,
  .impact-cta { width: min(100% - 28px, 1180px); }
  .topbar-inner { min-height: 68px; gap: 12px; }
  .brand-copy small { display: block; }
  .brand-mark { width: 64px; height: 64px; flex-basis: 64px; }
  .brand-copy strong { font-size: 1.3rem; }
  .creator { max-width: 54%; padding: 8px 10px; border-radius: 12px; font-size: 15px; }
  .official-status { align-items: flex-start; padding: 7px 14px; font-size: 0.92rem; }
  .official-status svg { margin-top: 2px; }
  .utility-inner { align-items: stretch; flex-direction: column; gap: 4px; padding: 6px 0; }
  .utility-inner > p { justify-content: center; }
  .view-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-button { justify-content: center; }
  .hero { padding: 22px 0 20px; }
  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 3.7rem); }
  .hero-summary { margin-top: 16px; }
  .trust-list { margin-top: 16px; }
  .briefing-panel::before { inset: -8px 12px 10px -8px; border-radius: 22px; }
  .brief-form { gap: 13px; padding: 17px 16px; border-radius: 20px; }
  .advanced-grid { grid-template-columns: 1fr; padding: 14px; }
  .full-field { grid-column: auto; }
  .prompt-chips { display: grid; grid-template-columns: 1fr 1fr; }
  .prompt-chip { min-height: 54px; padding-inline: 6px; border-radius: 11px; font-size: 1rem; }
  .process-strip { gap: 7px; margin-bottom: 28px; padding: 11px 9px; }
  .process-strip div { display: flex; min-width: 0; flex-direction: column; gap: 5px; text-align: center; }
  .process-strip span { width: 34px; height: 34px; }
  .process-strip small { display: none; }
  .process-strip strong { font-size: 0.88rem; line-height: 1.35; }
  .field-tools { margin-bottom: 28px; padding: 18px 15px; border-radius: 20px; }
  .field-tool-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
  .field-tool-button { min-height: 76px; align-items: center; padding: 12px; }
  .audience-guide summary { grid-template-columns: 1fr 28px; }
  .audience-guide summary > span { display: none; }
  .audience-guide-grid { grid-template-columns: 1fr; }
  .result { margin-bottom: 40px; }
  .result-shell { border-radius: 19px; }
  .result-hero { align-items: flex-start; flex-direction: column; padding: 22px 17px; }
  .result-meta { justify-content: flex-start; }
  .brief-layer { padding: 22px 17px; }
  .layer-heading { gap: 10px; }
  .layer-sequence { font-size: 1.45rem; }
  .action-checklist li { min-height: 72px; font-size: 1.05rem; }
  .completion-row { align-items: stretch; flex-direction: column; }
  .evidence-detail-grid { grid-template-columns: 1fr; }
  .source-footer { align-items: stretch; flex-direction: column; }
  .source-link { justify-content: center; }
  .evidence-feedback { grid-template-columns: 1fr; }
  .evidence-feedback-actions { width: 100%; }
  .result-actions { grid-template-columns: 1fr; }
  .result-footer { padding: 18px 17px 21px; }
  .loading-shell { padding: 28px 20px; }
  .impact-summary { margin-bottom: 28px; padding: 16px; border-radius: 18px; }
  .impact-copy { grid-template-columns: 1fr; row-gap: 0; }
  .impact-copy a { min-height: 44px; grid-column: 1; grid-row: auto; margin-top: 2px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { min-height: 56px; padding: 9px 12px; border-radius: 11px; }
  .metrics strong { font-size: 1.65rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-credit { text-align: left; }
  .proof-grid,
  .institution-grid { grid-template-columns: 1fr; }
  .impact-hero { padding-top: 55px; }
  .impact-hero h1 { font-size: clamp(2.35rem, 11.5vw, 4rem); }
  .impact-cta { align-items: stretch; flex-direction: column; padding: 25px 20px; }
  .impact-cta a { justify-content: center; }
}

@media (max-width: 480px) {
  .topbar-inner { align-items: stretch; flex-direction: column; gap: 5px; padding: 7px 0 8px; }
  .brand { min-height: 48px; justify-content: center; }
  .brand-copy small { display: block; }
  .creator { width: 100%; max-width: none; min-height: 48px; }
  .hero h1 { font-size: clamp(2.15rem, 11.3vw, 3.4rem); }
  .kicker { flex-wrap: wrap; min-width: 0; line-height: 1.6; white-space: normal; }
  .quick-entry-heading > span { display: none; }
  .prompt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-option { align-items: flex-start; }
  .switch { margin-top: 3px; }
  .submit-button { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .status-dot,
  .risk-chip::before { forced-color-adjust: none; background: CanvasText; }
  .layer-badge,
  .prompt-chip,
  .evidence-feedback-button,
  .result-action { border: 1px solid ButtonText; }
}

@media print {
  body { background: #fff; }
  .topbar { position: static; }
  .skip-link,
  .utility-bar,
  .hero,
  .process-strip,
  .field-tools,
  .impact-summary,
  footer,
  .result-actions,
  .evidence-feedback,
  .app-dialog,
  .toast { display: none !important; }
  .official-status,
  html[data-contrast="high"] .official-status { background: #fff; color: #000; border: 1px solid #000; }
  .official-status svg { stroke: #000; }
  .official-status strong { color: #000; }
  .result { width: 100%; margin: 20px 0; }
  .result-shell { border: 1px solid #000; box-shadow: none; }
  .result-hero,
  html[data-contrast="high"] .result-hero { background: #fff; color: #000; break-inside: avoid; }
  .result-kicker { color: #000; }
  .result-meta span { background: #fff; color: #000; border-color: #777; }
  .brief-layer { break-inside: avoid; }
}
