:root {
  color-scheme: light dark;
  --paper: #f4f5f2;
  --surface: #fbfcfa;
  --ink: #19211f;
  --muted: #61706a;
  --line: #cbd4ce;
  --accent: #0d756d;
  --accent-strong: #064f4a;
  --accent-soft: #d9ebe6;
  --danger: #9a3d3d;
  --danger-soft: #f5e2e2;
  --success: #246748;
  --success-soft: #dfefe5;
  --shadow: 0 18px 42px rgba(16, 36, 32, 0.07);
  --radius: 8px;
  --mono: "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.app-shell { min-height: 100dvh; }
.view[hidden] { display: none !important; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.wordmark-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent-strong); font-family: var(--mono); font-size: 10px; letter-spacing: -.08em; }
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.topbar-note { color: var(--muted); font-size: 12px; }
.product-shell { width: min(1220px, 100%); margin: 0 auto; padding: 28px 34px 70px; }
.stepper { display: flex; gap: 0; margin: 0 0 60px; border-bottom: 1px solid var(--line); }
.step { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px 15px 0; margin-right: 28px; border-bottom: 2px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.step { border-top: 0; border-right: 0; border-left: 0; background: transparent; }
.step b { color: inherit; font-size: 10px; }
.step.active { border-color: var(--accent); color: var(--accent-strong); }
.intro-block { max-width: 760px; margin-bottom: 46px; }
.hero-block { margin-bottom: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-strong); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 13ch; margin-bottom: 18px; font-size: clamp(34px, 5vw, 64px); }
h2 { margin-bottom: 9px; font-size: clamp(22px, 3vw, 34px); }
h3 { margin-bottom: 8px; font-size: 18px; }
.lede { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.intake-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
.form-section { display: grid; align-content: start; gap: 9px; }
.form-section + .form-section { padding-left: 42px; border-left: 1px solid var(--line); }
.section-heading { margin-bottom: 20px; }
label { color: var(--ink); font-size: 12px; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
input, select { min-height: 42px; padding: 0 12px; }
textarea { min-height: 130px; padding: 13px 14px; resize: vertical; line-height: 1.65; }
input[type="file"] { min-height: 44px; padding: 10px; font-size: 12px; }
textarea::placeholder, input::placeholder { color: #7b8782; }
.field-note, .form-hint { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-actions { display: flex; align-items: center; gap: 18px; grid-column: 1 / -1; padding-top: 8px; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-option { min-height: 270px; padding: 28px 34px 32px 0; }
.entry-option + .entry-option { padding-left: 34px; border-left: 1px solid var(--line); }
.entry-option h2 { max-width: 13ch; }
.entry-option p:not(.eyebrow) { max-width: 38ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.entry-option .button { margin-top: 16px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.library-section { min-width: 0; padding-top: 28px; border-top: 2px solid var(--ink); }
.compact-form { display: grid; gap: 12px; max-width: 620px; }
.compact-form label { display: grid; gap: 7px; }
.saved-note { margin: 15px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.project-list { display: grid; gap: 0; margin-bottom: 24px; }
.project-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.project-row > div { display: grid; gap: 3px; }
.project-row span:not(.status-badge) { color: var(--muted); font-size: 12px; }
.library-add-form { padding-top: 18px; border-top: 1px solid var(--line); }
.notice-demo { border: 1px solid #d4c69b; background: #f6f0d8; color: #665522; }
.discover-toolbar { display: flex; flex-wrap: wrap; gap: 18px; max-width: 680px; margin: 30px 0 25px; }
.discover-toolbar label { display: grid; gap: 7px; min-width: 230px; }
.recommendation-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.recommendation-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.recommendation-main { max-width: 720px; }
.recommendation-main h2 { margin-bottom: 9px; font-size: 24px; }
.recommendation-main p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.recommendation-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.plan-section { margin-top: 42px; padding-top: 30px; border-top: 2px solid var(--ink); }
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.warning-list { display: grid; gap: 0; margin: 18px 0 24px; border-top: 1px solid #d4c69b; }
.warning-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid #d4c69b; color: #665522; font-size: 12px; }
.quiet-confirmation { color: var(--success); font-size: 12px; }
.requirements-summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .5fr); gap: 1px; margin-bottom: 25px; border: 1px solid var(--line); background: var(--line); }
.requirements-summary > div { display: grid; gap: 4px; padding: 16px; background: var(--surface); }
.requirements-summary span:not(.summary-label) { color: var(--muted); font-size: 12px; }
.answer-plan-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.answer-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.answer-plan-row > div { display: grid; gap: 4px; }
.answer-plan-row span:not(.summary-label) { color: var(--muted); font-size: 12px; }
.plan-actions { display: flex; align-items: center; gap: 18px; margin-top: 25px; }
.final-package-panel, .export-panel { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--accent); }
.package-checklist { display: grid; gap: 8px; margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.package-output { max-height: 420px; overflow: auto; margin: 18px 0; padding: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); white-space: pre-wrap; font: 13px/1.65 var(--sans); }
.lifecycle-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lifecycle-row > div { flex: 1 1 260px; }
.outcome-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 20px; }
.outcome-form label { display: grid; gap: 7px; min-width: 180px; }
.outcome-form label:nth-child(2) { flex: 1 1 300px; }
.history-details, .feedback-list { padding-top: 20px; border-top: 1px solid var(--line); }
.history-details summary, .feedback-list summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; }
.feedback-list { margin-top: 28px; }
.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.button-accept { background: var(--accent-strong); color: #fff; }
.button-accept:hover { background: #043f3b; }
.notice { margin: 0 0 22px; padding: 12px 14px; border-radius: var(--radius); font-size: 12px; }
.notice-error { border: 1px solid #e0b5b5; background: var(--danger-soft); color: var(--danger); }
.notice-success { border: 1px solid #abd1ba; background: var(--success-soft); color: var(--success); }
.status-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-pending { border-color: #a9d0c5; background: var(--accent-soft); color: var(--accent-strong); }
.status-blocked { border-color: #e1b9b9; background: var(--danger-soft); color: var(--danger); }
.status-accepted { border-color: #add3be; background: var(--success-soft); color: var(--success); }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.view-heading.compact { align-items: center; margin-bottom: 16px; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr); gap: 42px; }
.extracted-form { display: grid; gap: 28px; }
.review-section { display: grid; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid label { display: grid; gap: 7px; }
.found-aside { padding-left: 28px; border-left: 1px solid var(--line); }
.found-panel { padding: 18px 0; border-bottom: 1px solid var(--line); }
.missing-item, .material-item { display: grid; gap: 3px; padding: 10px 0; margin: 0; border-top: 1px solid var(--line); font-size: 12px; }
.missing-item span, .material-item span, .muted, .boundary-copy { color: var(--muted); font-size: 11px; line-height: 1.55; }
.boundary-copy { margin-top: 25px; }
.draft-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .6fr); gap: 42px; }
.draft-main { min-width: 0; padding-right: 42px; border-right: 1px solid var(--line); }
.history-column { min-width: 0; }
.review-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 30px; border: 1px solid var(--line); background: var(--line); }
.submission-checklist-panel { margin-bottom: 30px; }
.submission-checklist-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.submission-checklist-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.submission-checklist-item-main { display: grid; gap: 5px; min-width: 0; }
.submission-checklist-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.submission-checklist-item-meta, .submission-checklist-warning { color: var(--muted); font-size: 11px; line-height: 1.45; }
.submission-checklist-warning { color: #665522; }
.submission-checklist-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.submission-checklist-actions .button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.checklist-review-panel { margin-top: 30px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.checklist-review-content { display: grid; gap: 22px; }
.checklist-review-section { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.checklist-review-section:first-child { padding-top: 0; border-top: 0; }
.checklist-review-text { white-space: pre-wrap; color: var(--ink); font-size: 14px; line-height: 1.7; }
.checklist-system-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist-system-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.checklist-review-warnings { display: grid; gap: 8px; padding: 14px; border: 1px solid #e1c98d; border-radius: var(--radius); background: #fffaf0; }
.checklist-review-warnings .eyebrow { margin: 0; color: #665522; }
.checklist-review-warnings .warning-item { margin: 0; }
.checklist-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.checklist-review-footer { justify-content: flex-end; padding-top: 4px; }
.checklist-editor-label { color: var(--muted); font-size: 12px; }
.checklist-review-content textarea { min-height: 120px; }
.checklist-budget-summary, .checklist-material-list { display: grid; gap: 10px; }
.checklist-budget-total { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.checklist-budget-total strong { font-size: 19px; }
.checklist-budget-total small, .checklist-budget-row small, .checklist-material-row span { color: var(--muted); font-size: 11px; }
.checklist-budget-row, .checklist-material-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist-budget-row small, .checklist-material-row span { grid-column: 1 / -1; }
.checklist-version-history { padding-top: 14px; border-top: 1px solid var(--line); }
.checklist-version-history summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.checklist-version-history ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.checklist-version-history li { display: grid; gap: 2px; }
.summary-item { min-height: 76px; padding: 14px; background: var(--surface); }
.summary-label { margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.summary-value { font-size: 13px; font-weight: 700; }
.draft-form { margin-top: 25px; }
.draft-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.toolbar-copy { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.answers-container { display: grid; gap: 26px; margin-top: 25px; }
.answer-block { display: grid; gap: 9px; }
.answer-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.answer-id { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.answer-block textarea { min-height: 220px; }
.answer-block textarea[readonly] { background: var(--paper); color: #687570; }
.revision-panel, .accept-panel { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.4fr); gap: 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.panel-copy { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.revision-form { display: grid; gap: 12px; }
.revision-form textarea { min-height: 112px; }
.revision-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.scope-control { display: grid; gap: 5px; min-width: 180px; }
.scope-control select { min-height: 36px; font-size: 11px; }
.accept-panel { align-items: center; }
.accepted-panel { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--accent); }
.accepted-content { display: grid; gap: 20px; }
.accepted-answer { padding: 16px 0; border-top: 1px solid var(--line); }
.accepted-answer h3 { margin-bottom: 8px; font-size: 14px; }
.accepted-answer p { margin: 0; white-space: pre-wrap; }
.history-list { display: grid; gap: 10px; margin-top: 26px; }
.history-empty { color: var(--muted); font-size: 12px; }
.history-item { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; }
.history-item:hover { border-color: var(--accent); }
.history-item.current { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.history-item-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.history-item-meta { display: grid; gap: 3px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.feedback-list { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.feedback-item { padding: 11px 0; border-top: 1px solid var(--line); }
.feedback-item p { margin: 0 0 5px; font-size: 12px; }
.feedback-item small { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #111817; --surface: #18211f; --ink: #e8efec; --muted: #9fb0aa; --line: #364641; --accent: #69c4b6; --accent-strong: #9bd8cc; --accent-soft: #1d403b; --danger: #ed9b9b; --danger-soft: #442626; --success: #9fdbb9; --success-soft: #1d3b2c; --shadow: 0 18px 42px rgba(0, 0, 0, .2); }
  .button-primary, .button-accept { color: #092a26; }
  .wordmark-mark { color: var(--accent-strong); }
  textarea::placeholder, input::placeholder { color: #849590; }
}
@media (max-width: 850px) {
  .product-shell { padding: 24px 22px 52px; }
  .topbar { padding: 0 22px; }
  .step { margin-right: 16px; padding-right: 12px; font-size: 9px; }
  .intake-form, .review-grid, .draft-layout, .library-layout, .entry-grid { grid-template-columns: 1fr; }
  .entry-option { min-height: 0; padding: 26px 0; }
  .entry-option + .entry-option { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .plan-heading, .recommendation-row { align-items: stretch; flex-direction: column; }
  .answer-plan-row, .requirements-summary { grid-template-columns: 1fr; }
  .form-section + .form-section, .found-aside, .draft-main { padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; }
  .found-aside { border-top: 1px solid var(--line); }
  .draft-main { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
  .topbar-meta { width: 100%; justify-content: space-between; }
  .stepper { overflow-x: auto; margin-bottom: 40px; }
  .step { flex: 0 0 auto; }
  .view-heading { display: grid; gap: 14px; }
  .field-grid, .review-summary { grid-template-columns: 1fr; }
  .form-actions, .revision-actions { align-items: stretch; flex-direction: column; }
  .plan-actions, .lifecycle-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .scope-control { width: 100%; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Editorial workspace refinement: one calm surface for the artist's next decision. */
:root {
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #18221f;
  --muted: #65736d;
  --line: #d6dfda;
  --line-strong: #aebcb5;
  --accent: #08766e;
  --accent-strong: #07534e;
  --accent-soft: #e2f0ec;
  --warning: #9b5b22;
  --danger: #a33d3d;
  --shadow: 0 12px 36px rgba(19, 41, 35, 0.06);
  --radius: 7px;
}

html { overflow-x: hidden; }
[hidden] { display: none !important; }
body { overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 15px; }
button, input, select, textarea { font: inherit; }
.topbar { min-height: 72px; padding: 0 max(22px, calc((100vw - 1160px) / 2)); border-bottom-color: var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.topbar-link:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; }
.product-shell { width: min(1160px, calc(100% - 56px)); padding: 42px 0 104px; }
.notice { border-radius: var(--radius); }
.workspace-context { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 0 18px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.workspace-context-title { margin: 5px 0 0; font-size: 21px; letter-spacing: -0.02em; }
.workspace-context-meta { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 72px; padding: 34px 0 58px; border-bottom: 1px solid var(--line); }
.hero-copy h1 { max-width: 14ch; margin: 14px 0 22px; font-size: clamp(48px, 6.3vw, 78px); line-height: .96; letter-spacing: -0.065em; }
.hero-copy .lede { max-width: 620px; margin: 0; font-size: 18px; line-height: 1.55; }
.workspace-summary { align-self: end; max-width: 360px; padding: 5px 0 5px 22px; border-left: 2px solid var(--accent); }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.summary-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.text-link { display: inline-block; margin-top: 22px; color: var(--accent-strong); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.entry-section { padding: 62px 0 78px; }
.entry-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.entry-heading h2 { margin-top: 9px; }
.entry-heading .field-note { max-width: 300px; margin: 0; text-align: right; }
.entry-list { border-top: 1px solid var(--ink); }
.entry-option { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 154px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry-option + .entry-option { padding-left: 0; border-left: 0; }
.entry-option:hover { background: rgba(226, 240, 236, .42); }
.entry-index { align-self: start; padding-top: 4px; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.entry-copy h3 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 38px); line-height: 1.04; letter-spacing: -0.04em; }
.entry-copy p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.55; }
.entry-option .button { width: auto; white-space: nowrap; }
.prototype-note { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.prototype-note-label { color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.persistent-library { padding-top: 36px; border-top: 2px solid var(--ink); }
.library-overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 64px; padding-bottom: 30px; }
.library-overview h2 { max-width: 14ch; margin: 12px 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -0.055em; }
.library-overview-intro .field-note { max-width: 490px; margin: 0; line-height: 1.55; }
.library-overview-block { align-self: end; }
.library-stat { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.library-stat strong { color: var(--ink); font-weight: 600; text-align: right; }
.library-stat-action { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.library-stat-action:hover, .library-stat-action:focus-visible { color: var(--ink); background: var(--surface-raised); }
.library-editor { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.library-editor summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.library-editor summary::-webkit-details-marker { display: none; }
.library-editor summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
.library-editor[open] summary::after { content: '−'; }
.library-editor summary span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.library-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 26px 0 34px; }
.library-section { min-width: 0; }
.library-section h3 { margin-top: 8px; font-size: 28px; letter-spacing: -0.035em; }
.view-heading { margin-bottom: 42px; }
.view-heading h1 { max-width: 16ch; margin-top: 12px; }
.view-heading .lede { max-width: 660px; }
.view-heading > .button, .view-heading > .status-badge { align-self: start; }
.selection-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 24px; margin: 28px 0 38px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection-strip label { margin: 0; }
.discover-toolbar { display: none; }
.intake-form { gap: 24px; }
.intake-panel { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.intake-panel .section-heading { margin-bottom: 26px; }
.intake-panel h2 { margin-top: 9px; font-size: 30px; letter-spacing: -0.04em; }
.intake-panel label + label { margin-top: 17px; }
.review-section { padding: 30px 0; }
.found-panel { border-radius: var(--radius); }
.plan-section { margin-top: 52px; padding-top: 38px; border-top: 2px solid var(--ink); }
.plan-heading { margin-bottom: 34px; }
.draft-layout { gap: 58px; }
.draft-main > form, .revision-panel, .accept-panel, .accepted-panel, .final-package-panel, .export-panel { border-radius: var(--radius); }
.draft-toolbar { padding-bottom: 20px; }
.answer-block textarea { min-height: 210px; }
.revision-panel { margin-top: 36px; }
.accept-panel { margin-top: 28px; border-color: var(--accent); background: var(--accent-soft); }
.final-package-panel { border-top: 2px solid var(--ink); }
.history-column { padding-top: 0; }
.history-details, .feedback-list { border-top-color: var(--line-strong); }

@media (max-width: 850px) {
  .product-shell { width: min(100% - 40px, 1160px); }
  .home-intro { grid-template-columns: 1fr; gap: 38px; }
  .workspace-summary { max-width: 440px; }
  .entry-heading { align-items: start; flex-direction: column; gap: 8px; }
  .entry-heading .field-note { max-width: 480px; text-align: left; }
  .entry-option { grid-template-columns: 38px minmax(0, 1fr); gap: 17px; }
  .entry-option .button { grid-column: 2; justify-self: start; }
  .library-overview { grid-template-columns: 1fr; gap: 20px; }
  .library-overview h2 { max-width: 18ch; }
  .library-editor-grid { grid-template-columns: 1fr; gap: 42px; }
  .intake-form { grid-template-columns: 1fr; }
  .selection-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  html, body, .app-shell, .product-shell, .home-intro, .hero-copy, .workspace-summary { width: 100%; max-width: 100%; min-width: 0; }
  .topbar { min-height: 64px; align-items: center; flex-direction: row; gap: 0; padding: 0 18px; }
  .topbar-link { display: none; }
  .product-shell { width: calc(100% - 36px); padding: 27px 0 68px; }
  .workspace-context { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .workspace-context-meta { text-align: left; }
  .home-intro { gap: 31px; padding-top: 16px; padding-bottom: 42px; }
  .home-intro > *, .hero-copy { min-width: 0; }
  .hero-copy h1 { display: block; width: 100%; max-width: 100%; margin-top: 11px; font-size: 38px; white-space: normal; overflow-wrap: anywhere; }
  .hero-copy .lede { width: 100%; max-width: 100%; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
  .entry-option, .entry-copy, .entry-copy h3, .entry-copy p { min-width: 0; max-width: 100%; }
  .entry-copy h3, .entry-copy p { overflow-wrap: anywhere; }
  .workspace-summary { padding-left: 16px; }
  .summary-row { min-width: 0; }
  .summary-row span, .summary-row strong { min-width: 0; overflow-wrap: anywhere; }
  .entry-section { padding: 44px 0 58px; }
  .entry-option { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 22px 0 25px; }
  .entry-copy h3 { font-size: 27px; }
  .entry-option .button { width: 100%; }
  .prototype-note { display: block; }
  .prototype-note-label { display: block; margin-bottom: 6px; }
  .persistent-library { padding-top: 28px; }
  .library-overview h2 { font-size: 36px; }
  .library-editor summary { align-items: start; }
  .library-editor summary span { display: none; }
  .selection-strip { grid-template-columns: 1fr; gap: 17px; }
  .intake-panel { padding: 22px 18px; }
  .view-heading { margin-bottom: 30px; }
  .view-heading h1 { font-size: 42px; }
  .form-actions { align-items: stretch; }
  .form-actions .button { width: 100%; }
  .draft-layout { grid-template-columns: 1fr; }
  .history-column { order: 2; }
  .revision-actions, .export-actions, .lifecycle-row, .outcome-form { align-items: stretch; flex-direction: column; }
  .revision-actions .button, .export-actions .button, .lifecycle-row .button, .outcome-form .button { width: 100%; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101715;
    --surface: #18211f;
    --surface-raised: #1d2926;
    --ink: #edf3ef;
    --muted: #aabbb3;
    --line: #34453f;
    --line-strong: #51645c;
    --accent: #5fc2b2;
    --accent-strong: #8be0d0;
    --accent-soft: #1c3934;
    --shadow: 0 12px 36px rgba(0, 0, 0, .24);
  }
}

/* Public / authenticated state model: a quiet publication-like shell, not a dashboard. */
:root {
  --paper: #f4f5f2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #17211e;
  --muted: #66746e;
  --line: #d8dfda;
  --line-strong: #aebbb4;
  --accent: #08766e;
  --accent-strong: #07534e;
  --accent-soft: #e4f0ed;
  --warning: #925e2d;
  --danger: #9c3e3e;
  --shadow: 0 15px 42px rgba(22, 42, 35, .07);
  --radius: 9px;
}

.topbar { background: rgba(244, 245, 242, .96); }
.wordmark { gap: 10px; letter-spacing: -.025em; }
.wordmark-mark { width: 25px; height: 25px; border-radius: 6px; background: var(--ink); color: #f4f5f2; font-size: 10px; }
.public-nav, .auth-nav { align-items: center; gap: 16px; }
.public-nav[hidden], .auth-nav[hidden] { display: none !important; }
.button-quiet { min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--muted); }
.button-quiet:hover { color: var(--ink); }
.topbar-cta { min-height: 36px; padding: 0 14px; }
.nav-link { min-height: 36px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--accent); color: var(--ink); }
.nav-sign-out { margin-left: 4px; color: var(--muted); font-weight: 500; }
.workspace-context { min-height: 49px; }

.public-landing { padding-top: 28px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(310px, .86fr); gap: clamp(44px, 8vw, 116px); align-items: end; padding: 42px 0 78px; border-bottom: 1px solid var(--line); }
.public-hero-copy h1 { max-width: 10ch; margin: 15px 0 23px; font-size: clamp(54px, 7.1vw, 92px); line-height: .91; letter-spacing: -.075em; }
.public-lede { max-width: 580px; margin: 0; color: #43514b; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.42; letter-spacing: -.02em; }
.public-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 31px; }
.public-actions .button { width: auto; }
.prototype-footnote { max-width: 430px; margin: 24px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; }
.product-preview { align-self: end; min-width: 0; padding: 23px 24px 10px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.preview-topline { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 15px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.preview-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.preview-row span:last-child { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.35; }
.preview-row strong { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.preview-number { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.preview-row-active { margin: 0 -24px; padding: 18px 24px; background: var(--accent-soft); }
.mechanism-section { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 70px; padding: 45px 0 12px; }
.mechanism-section h2 { max-width: 14ch; margin-top: 11px; font-size: clamp(27px, 3.5vw, 45px); line-height: 1.03; letter-spacing: -.055em; }
.mechanism-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.mechanism-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.mechanism-list li span { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.mechanism-list strong { display: block; margin-bottom: 5px; font-size: 14px; }
.mechanism-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.onboarding-view { max-width: 900px; padding-top: 33px; }
.onboarding-heading { align-items: end; margin-bottom: 35px; }
.onboarding-heading h1 { max-width: 12ch; }
.onboarding-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 38px; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.onboarding-step { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.onboarding-step + .onboarding-step { padding-left: 24px; border-left: 1px solid var(--line); }
.onboarding-step span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.onboarding-step.active { color: var(--ink); }
.onboarding-step.active span, .onboarding-step.complete span { color: var(--accent); }
.onboarding-stage { max-width: 780px; padding: 30px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.onboarding-stage h2 { margin-top: 9px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.055em; }
.onboarding-form { display: grid; gap: 17px; margin-top: 30px; }
.onboarding-form .form-actions { margin-top: 6px; }

.workspace-home { padding-top: 35px; }
.workspace-home-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 34px 0 50px; border-bottom: 1px solid var(--line); }
.workspace-home-heading h1 { max-width: 12ch; margin: 14px 0 18px; font-size: clamp(48px, 6.1vw, 74px); line-height: .95; letter-spacing: -.07em; }
.workspace-home-heading .lede { max-width: 540px; margin: 0; font-size: 17px; line-height: 1.5; }
.workspace-readiness { display: flex; align-items: center; gap: 9px; padding-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.readiness-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.next-actions, .application-overview { padding: 48px 0 0; }
.next-actions .section-heading, .application-overview .section-heading { margin-bottom: 20px; }
.next-actions h2, .application-overview h2 { margin-top: 8px; font-size: 27px; letter-spacing: -.045em; }
.action-list { border-top: 1px solid var(--ink); }
.action-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.action-index { align-self: start; padding-top: 4px; color: var(--accent); font-family: var(--mono); font-size: 11px; }
.action-row h3 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.025em; }
.action-row p { max-width: 550px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.action-row .button { width: auto; }
.application-overview { margin-top: 42px; padding-bottom: 12px; border-top: 1px solid var(--line); }
.empty-state { margin: 0; padding: 26px 0; color: var(--muted); font-size: 13px; }
.workspace-note { margin-top: 40px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; }

.library-view { padding-top: 33px; }
.library-view .view-heading { margin-bottom: 39px; }
.library-overview { padding-bottom: 25px; }
.library-editor-grid-open { display: grid; }
.library-section { padding-top: 5px; }
.library-section + .library-section { padding-left: 48px; border-left: 1px solid var(--line); }
.library-section h2 { font-size: 29px; }

@media (max-width: 850px) {
  .public-hero { grid-template-columns: 1fr; gap: 44px; }
  .public-hero-copy h1 { max-width: 11ch; }
  .mechanism-section { grid-template-columns: 1fr; gap: 22px; }
  .mechanism-section h2 { max-width: 17ch; }
  .action-row { grid-template-columns: 34px minmax(0, 1fr); }
  .action-row .button { grid-column: 2; justify-self: start; }
  .library-section + .library-section { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  .public-nav, .auth-nav { gap: 10px; }
  .public-nav .button-quiet { display: none; }
  .auth-nav { flex-wrap: wrap; justify-content: flex-end; }
  .auth-nav .nav-link { font-size: 11px; }
  .auth-nav .status-badge { display: none; }
  .public-hero { padding-top: 22px; padding-bottom: 53px; }
  .public-hero-copy h1 { font-size: 48px; }
  .public-lede { font-size: 17px; }
  .public-actions { gap: 14px; }
  .public-actions .button-primary { width: auto; }
  .product-preview { padding: 18px 17px 8px; }
  .preview-row-active { margin: 0 -17px; padding-left: 17px; padding-right: 17px; }
  .mechanism-list { grid-template-columns: 1fr; }
  .onboarding-heading { gap: 14px; }
  .onboarding-stage { padding: 22px 18px; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-step + .onboarding-step { padding-left: 0; border-left: 0; }
  .workspace-home-heading { align-items: start; flex-direction: column; gap: 22px; padding-top: 20px; }
  .workspace-home-heading h1 { font-size: 48px; }
  .action-row .button { width: 100%; }
}
/* 2026-09-20 editorial catalogue pass: type, rules, and rhythm carry the interface. */
:root {
  color-scheme: light;
  --paper: #f1efe9;
  --surface: #f7f5f0;
  --surface-raised: #fbfaf6;
  --ink: #1a1b1b;
  --muted: #686a66;
  --line: #cbc9c1;
  --line-strong: #1a1b1b;
  --accent: #2949a7;
  --accent-strong: #1d3784;
  --accent-soft: #e7eaf6;
  --warning: #8b5e2a;
  --danger: #963e3e;
  --success: #315e49;
  --success-soft: #e5ece6;
  --shadow: none;
  --radius: 4px;
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Mono', Consolas, monospace;
}

html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
h3 { font-weight: 650; }
.topbar { min-height: 74px; padding: 0 max(28px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.wordmark { gap: 11px; font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.wordmark-mark { width: 27px; height: 27px; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 10px; }
.public-nav, .auth-nav { gap: 19px; }
.topbar-link, .nav-link { color: var(--muted); }
.topbar-link:hover, .nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--accent); }
.nav-sign-out { margin-left: 2px; }
.status-badge { min-height: 23px; padding: 0 7px; border-radius: 2px; background: transparent; font-size: 9px; }
.status-pending { border-color: #9eaee0; background: var(--accent-soft); color: var(--accent-strong); }
.status-accepted { border-color: #9db6a3; background: var(--success-soft); color: var(--success); }
.status-blocked { border-color: #cfa4a4; background: transparent; color: var(--danger); }
.product-shell { width: min(1240px, calc(100% - 72px)); padding: 42px 0 110px; }
.workspace-context { margin-bottom: 35px; padding-bottom: 16px; border-bottom-color: var(--line); }
.workspace-context-title { font-family: var(--display); font-size: 22px; font-weight: 400; }
.workspace-context-meta { font-size: 12px; }
.eyebrow { color: var(--accent-strong); font-size: 9px; letter-spacing: .17em; }
.lede { color: var(--muted); line-height: 1.62; }
.button { min-height: 38px; padding: 0 14px; border-radius: 3px; transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button-primary, .button-accept { background: var(--accent); color: #fff; }
.button-primary:hover, .button-accept:hover { background: var(--accent-strong); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.button-quiet { color: var(--ink); }
.button.back-control { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.button.back-control::before { content: '←'; color: var(--accent-strong); font-size: 17px; font-weight: 400; line-height: 1; transition: transform 160ms ease; }
.button.back-control:hover { border-color: transparent; background: transparent; color: var(--ink); }
.button.back-control:hover::before { transform: translateX(-3px); }
.button.back-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notice { border-radius: 0; border-width: 0 0 0 3px; background: transparent; padding: 11px 13px; }
.notice-success { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.notice-error { border-color: var(--danger); background: #f4e9e7; color: var(--danger); }

input, select, textarea { border-color: var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }
input, select { min-height: 42px; padding: 0 10px; }
textarea { padding: 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-color: var(--accent); }

.public-landing { padding-top: 21px; }
.public-hero { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(48px, 9vw, 128px); padding: 43px 0 78px; border-bottom: 1px solid var(--line); }
.public-hero-copy h1 { max-width: 9.5ch; margin: 16px 0 24px; font-size: clamp(54px, 7.2vw, 96px); line-height: .91; letter-spacing: -.07em; }
.public-lede { max-width: 570px; color: #454742; font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.public-actions { gap: 18px; margin-top: 29px; }
.prototype-footnote { color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.product-preview { align-self: end; padding: 21px 0 5px; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: transparent; box-shadow: none; }
.preview-topline { padding-bottom: 14px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.preview-row { grid-template-columns: 30px 1fr; padding: 19px 0; border-top-color: var(--line); }
.preview-row strong { font-family: var(--display); font-size: 19px; font-weight: 400; }
.preview-row-active { margin: 0; padding: 19px 0 19px 14px; border-left: 3px solid var(--accent); background: transparent; }
.mechanism-section { grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); gap: 72px; padding: 47px 0 0; }
.mechanism-section h2 { max-width: 12ch; font-size: clamp(29px, 3.8vw, 50px); }
.mechanism-list { gap: 0 40px; }
.mechanism-list li { padding: 18px 0; }
.mechanism-list li span, .preview-number { color: var(--accent); }
.mechanism-list strong { font-family: var(--display); font-size: 17px; font-weight: 400; }

.onboarding-view { max-width: 940px; padding-top: 25px; }
.onboarding-heading { margin-bottom: 33px; }
.onboarding-heading h1 { max-width: 13ch; font-size: clamp(42px, 5.5vw, 70px); }
.onboarding-steps { margin-bottom: 39px; border-top: 1px solid var(--line-strong); }
.onboarding-stage { max-width: 850px; padding: 30px 0 0; border: 0; border-top: 2px solid var(--line-strong); background: transparent; box-shadow: none; }
.onboarding-stage h2 { max-width: 15ch; font-size: clamp(31px, 4vw, 47px); }
.onboarding-form { max-width: 790px; }

.workspace-home { padding-top: 9px; }
.workspace-home-heading { align-items: end; padding: 20px 0 25px; border-bottom: 2px solid var(--line-strong); }
.workspace-home-heading h1 { max-width: none; margin: 10px 0 8px; font-size: clamp(40px, 5vw, 58px); line-height: .98; }
.workspace-home-heading .lede { font-size: 15px; }
.workspace-readiness { padding-bottom: 3px; }
.readiness-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.next-actions, .application-overview { padding-top: 38px; }
.next-actions h2, .application-overview h2 { font-family: var(--display); font-size: 31px; font-weight: 400; }
.action-list, .application-list, .application-index { border-top: 1px solid var(--line-strong); }
.action-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 22px 0; }
.action-row h3 { font-family: var(--display); font-size: 20px; font-weight: 400; }
.action-row:hover, .application-row:hover, .recommendation-row:hover { background: rgba(231, 234, 246, .42); }
.application-overview { margin-top: 42px; padding-bottom: 0; border-top: 1px solid var(--line); }
.workspace-note { margin-top: 34px; font-size: 9px; }
.application-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(190px, .45fr) auto; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.application-row-index { align-self: start; padding-top: 3px; color: var(--accent); font-family: var(--mono); font-size: 10px; }
.application-row-main h3 { margin: 3px 0 5px; font-family: var(--display); font-size: 21px; font-weight: 400; }
.application-row-main p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.application-row-meta { display: grid; gap: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.application-row-meta strong { color: var(--ink); font-size: 10px; font-weight: 600; }
.application-open-button { justify-self: end; }

.applications-view { padding-top: 13px; }
.applications-view .view-heading { margin-bottom: 38px; }
.applications-view .view-heading h1 { max-width: 14ch; font-size: clamp(42px, 5vw, 66px); }

.view-heading { margin-bottom: 38px; }
.view-heading h1 { max-width: 15ch; margin-top: 10px; font-size: clamp(43px, 5.5vw, 72px); line-height: .94; }
.heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.heading-actions .status-badge { align-self: flex-end; }
.selection-strip { grid-template-columns: repeat(2, minmax(0, 270px)); margin: 26px 0 35px; padding: 17px 0; border-color: var(--line-strong); }
.selection-strip label, .scope-control { display: grid; gap: 7px; }
.notice-demo { border-color: var(--warning); background: #f4efe1; color: #73501f; }
.recommendation-list { border-top: 1px solid var(--line-strong); }
.recommendation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 27px 0; }
.recommendation-main h2 { margin: 4px 0 9px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.recommendation-main p:not(.eyebrow) { max-width: 700px; }
.recommendation-meta { gap: 18px; font-size: 9px; }

.intake-form { gap: 48px; }
.intake-panel { padding: 29px 0 22px; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.intake-panel + .intake-panel { border-left: 0; }
.intake-panel h2 { font-family: var(--display); font-size: 36px; font-weight: 400; }
.intake-panel label + label { margin-top: 17px; }
.review-section { padding: 29px 0; }
.found-panel { padding: 17px 0; border-radius: 0; }
.plan-section { margin-top: 50px; padding-top: 36px; border-top: 2px solid var(--line-strong); }
.plan-heading h2 { font-family: var(--display); font-size: 39px; font-weight: 400; }
.requirements-summary { border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: transparent; }
.requirements-summary > div { padding: 16px 0; background: transparent; }
.answer-plan-row { padding: 18px 0; }

.draft-layout { grid-template-columns: minmax(0, 1.72fr) minmax(220px, .5fr); gap: 54px; }
.draft-main { padding-right: 54px; border-right: 1px solid var(--line); }
.review-summary { margin-bottom: 27px; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: transparent; }
.summary-item { min-height: 70px; padding: 13px 0; background: transparent; }
.draft-toolbar { padding-bottom: 17px; }
.answer-block textarea { min-height: 206px; border: 0; border-bottom: 1px solid var(--line-strong); background: var(--surface); border-radius: 0; }
.revision-panel, .accept-panel { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.revision-panel h2, .accept-panel h2 { font-family: var(--display); font-size: 36px; font-weight: 400; }
.accept-panel { border-top: 2px solid var(--accent); background: transparent; }
.accepted-panel, .final-package-panel, .export-panel { border-radius: 0; background: transparent; }
.accepted-panel { border-top: 2px solid var(--accent); }
.final-package-panel { border-top: 2px solid var(--line-strong); }
.history-column { padding-left: 21px; border-left: 0; }
.history-details, .feedback-list { border-top: 1px solid var(--line-strong); }
.history-item { padding: 13px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.history-item.current { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.package-output { border: 1px solid var(--line); border-radius: 0; background: var(--surface); }

@media (max-width: 850px) {
  .product-shell { width: min(calc(100% - 44px), 1240px); }
  .application-row { grid-template-columns: 34px minmax(0, 1fr); }
  .application-row-meta { grid-column: 2; }
  .application-open-button { grid-column: 2; justify-self: start; }
  .recommendation-row { grid-template-columns: 1fr; align-items: start; }
  .recommendation-row .button { justify-self: start; }
  .heading-actions { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .heading-actions .status-badge { align-self: center; }
  .draft-main { padding-right: 0; border-right: 0; }
  .history-column { padding-left: 0; }
}

@media (max-width: 560px) {
  .topbar { min-height: 0; align-items: center; flex-wrap: wrap; gap: 0; padding: 14px 18px 0; }
  .wordmark { min-height: 30px; }
  .public-nav { gap: 11px; }
  .public-nav .button-quiet { display: none; }
  .auth-nav { width: 100%; max-width: 100%; justify-content: flex-start; gap: 15px; overflow-x: auto; padding: 10px 0 11px; border-top: 1px solid var(--line); }
  .auth-nav .nav-link { flex: 0 0 auto; font-size: 11px; }
  .auth-nav .status-badge { display: none; }
  .product-shell { width: calc(100% - 36px); padding: 30px 0 72px; }
  .public-hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 54px; }
  .public-hero-copy h1 { max-width: 9ch; font-size: 51px; }
  .public-lede { font-size: 17px; }
  .product-preview { padding-top: 18px; }
  .mechanism-section { grid-template-columns: 1fr; gap: 23px; padding-top: 36px; }
  .mechanism-section h2 { max-width: 14ch; font-size: 38px; }
  .mechanism-list { grid-template-columns: 1fr; }
  .onboarding-heading h1, .view-heading h1 { font-size: 45px; }
  .heading-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .heading-actions .status-badge { align-self: flex-start; }
  .workspace-home-heading { align-items: start; flex-direction: column; gap: 20px; padding-top: 13px; }
  .workspace-home-heading h1 { font-size: 49px; }
  .action-row { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 21px 0; }
  .action-row .button { grid-column: 2; width: 100%; }
  .application-row { padding: 18px 0; }
  .selection-strip { grid-template-columns: 1fr; gap: 16px; }
  .intake-panel { padding-top: 25px; }
  .intake-panel h2 { font-size: 32px; }
  .plan-heading { display: grid; gap: 14px; }
  .plan-heading h2 { font-size: 34px; }
  .answer-block textarea { min-height: 190px; }
  .form-actions, .plan-actions, .revision-actions, .export-actions, .lifecycle-row, .outcome-form { align-items: stretch; flex-direction: column; }
  .form-actions .button, .plan-actions .button, .revision-actions .button, .export-actions .button, .lifecycle-row .button, .outcome-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Public landing: an atmospheric editorial cover, kept separate from the working app. */
.public-landing { position: relative; isolation: isolate; overflow: hidden; padding-top: 0; }
.public-landing::before { content: ''; position: absolute; z-index: -2; inset: -8% -4% 24%; pointer-events: none; background: linear-gradient(126deg, rgba(246, 242, 236, .96), rgba(241, 237, 229, .84) 52%, rgba(234, 227, 218, .78)); }
.public-landing::after { content: ''; position: absolute; z-index: -1; left: -15%; right: -15%; top: 0; height: 88%; pointer-events: none; opacity: .2; background-image: repeating-linear-gradient(107deg, rgba(31, 27, 24, .08) 0, rgba(31, 27, 24, .08) 1px, transparent 1px, transparent 7px); mix-blend-mode: multiply; }
.public-hero { position: relative; min-height: 570px; align-items: center; padding: clamp(52px, 8vw, 106px) 0 clamp(66px, 8vw, 112px); border-bottom: 0; }
.public-hero::before { display: none; }
.public-hero::after { display: none; }
.public-hero-copy { position: relative; z-index: 1; min-width: 0; }
.public-hero-copy h1 { max-width: 8.7ch; color: #211d1a; text-wrap: balance; }
.public-lede { max-width: 500px; min-width: 0; color: #403a35; }
.public-actions { margin-top: 32px; }
.public-actions .button-primary { min-width: 132px; }
.landing-atmosphere { position: relative; min-height: 360px; overflow: visible; }
.hero-highlight { overflow: visible; }
.kinetic-highlight { width: min(100%, 420px); justify-self: end; }
.kinetic-stage { position: relative; z-index: 1; width: 100%; min-height: 360px; overflow: visible; isolation: isolate; background: transparent; }
.kinetic-state { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; animation-duration: 6s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: both; }
.kinetic-state-find { animation-name: kinetic-state-find; }
.kinetic-state-match { animation-name: kinetic-state-match; }
.kinetic-state-build { animation-name: kinetic-state-build; }
.kinetic-state-find::before, .kinetic-state-build::before, .kinetic-state-match::before, .kinetic-state-match::after { content: ''; position: absolute; z-index: 0; top: -140%; height: 380%; width: 320%; pointer-events: none; filter: blur(22px); transform-origin: center; }
.kinetic-state-find::before { left: -110%; background: radial-gradient(ellipse 30% 32% at 50% 49%, rgba(233, 164, 134, .67) 0, rgba(239, 182, 156, .42) 44%, rgba(239, 182, 156, .07) 72%, transparent 92%), radial-gradient(ellipse 19% 20% at 30% 66%, rgba(217, 130, 109, .27) 0, rgba(217, 130, 109, .08) 48%, transparent 80%); opacity: .94; transform: rotate(-7deg) scale(1.02); }
.kinetic-type { position: relative; display: block; width: fit-content; max-width: 88%; color: #28231f; font-family: var(--sans); font-size: clamp(18px, 2.05vw, 27px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.kinetic-sentence { position: relative; z-index: 1; display: inline-block; white-space: normal; }
.kinetic-state-find .kinetic-type { transform: translateX(-7px); }
.kinetic-state-find .kinetic-sentence { clip-path: inset(0 100% 0 0); animation: kinetic-find-text 6s infinite ease-in-out both; }
.kinetic-sweep { position: absolute; z-index: 2; top: -105%; bottom: -105%; left: -75%; width: 150%; pointer-events: none; background: radial-gradient(ellipse 22% 46% at 50% 50%, rgba(217, 130, 109, .68) 0, rgba(232, 162, 136, .38) 48%, transparent 88%); filter: blur(15px); mix-blend-mode: multiply; transform: rotate(-7deg); animation: kinetic-find-sweep 6s infinite ease-in-out both; }
.kinetic-state-match .kinetic-type { padding: 28px 19px; }
.kinetic-state-match::before, .kinetic-state-match::after { top: -140%; height: 380%; width: 320%; opacity: 0; filter: blur(22px); }
.kinetic-state-match::before { left: -110%; background: radial-gradient(ellipse 24% 32% at 41% 50%, rgba(226, 151, 124, .74) 0, rgba(238, 181, 153, .45) 44%, rgba(238, 181, 153, .075) 72%, transparent 92%), radial-gradient(ellipse 15% 20% at 61% 54%, rgba(222, 139, 116, .27) 0, rgba(222, 139, 116, .08) 48%, transparent 80%); transform: translateX(-38%) rotate(-8deg); animation: kinetic-match-left 6s infinite ease-in-out both; }
.kinetic-state-match::after { right: -110%; background: radial-gradient(ellipse 24% 32% at 59% 50%, rgba(151, 178, 128, .76) 0, rgba(177, 196, 154, .45) 44%, rgba(177, 196, 154, .075) 72%, transparent 92%), radial-gradient(ellipse 15% 20% at 39% 45%, rgba(193, 198, 159, .29) 0, rgba(193, 198, 159, .08) 48%, transparent 80%); transform: translateX(38%) rotate(8deg); animation: kinetic-match-right 6s infinite ease-in-out both; }
.kinetic-state-match .kinetic-sentence { opacity: .56; filter: blur(.3px); animation: kinetic-match-sharpen 6s infinite ease-in-out both; }
.kinetic-state-build .kinetic-type { transform: translateX(8px); }
.kinetic-state-build::before { left: -110%; background: radial-gradient(ellipse 31% 33% at 50% 51%, rgba(151, 178, 128, .57) 0, rgba(177, 196, 154, .36) 44%, rgba(177, 196, 154, .06) 72%, transparent 90%), radial-gradient(ellipse 23% 25% at 72% 39%, rgba(210, 205, 174, .49) 0, rgba(210, 205, 174, .25) 46%, rgba(210, 205, 174, .05) 72%, transparent 88%), radial-gradient(ellipse 17% 18% at 37% 68%, rgba(222, 142, 117, .31) 0, rgba(222, 142, 117, .09) 48%, transparent 82%); opacity: .82; filter: blur(22px); transform: rotate(5deg); }
.kinetic-state-build .kinetic-sentence { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: .28em; }
.kinetic-fragment { display: inline-block; opacity: .28; }
.kinetic-fragment-lead { transform: translate(-11px, -7px); animation: kinetic-build-lead 6s infinite ease-in-out both; }
.kinetic-fragment-middle { transform: translate(6px, 5px); animation: kinetic-build-middle 6s infinite ease-in-out both; }
.kinetic-fragment-tail { transform: translate(13px, -4px); animation: kinetic-build-tail 6s infinite ease-in-out both; }
@keyframes kinetic-state-find { 0%, 5% { opacity: 0; transform: translateY(5px); } 10%, 27% { opacity: 1; transform: translateY(0); } 34%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes kinetic-state-match { 0%, 34% { opacity: 0; transform: translateY(5px); } 40%, 61% { opacity: 1; transform: translateY(0); } 68%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes kinetic-state-build { 0%, 68% { opacity: 0; transform: translateY(5px); } 74%, 94% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes kinetic-find-text { 0%, 5% { clip-path: inset(0 100% 0 0); } 12%, 28% { clip-path: inset(0 0 0 0); } 35%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes kinetic-find-sweep { 0%, 5% { transform: translateX(0); opacity: 0; } 10% { transform: translateX(190%); opacity: .92; } 22% { transform: translateX(415%); opacity: .18; } 32%, 100% { transform: translateX(415%); opacity: 0; } }
@keyframes kinetic-match-left { 0%, 34% { transform: translateX(-38%); opacity: 0; } 42% { transform: translateX(-8%); opacity: .72; } 53%, 61% { transform: translateX(17%); opacity: .62; } 68%, 100% { transform: translateX(28%); opacity: 0; } }
@keyframes kinetic-match-right { 0%, 34% { transform: translateX(38%); opacity: 0; } 42% { transform: translateX(8%); opacity: .72; } 53%, 61% { transform: translateX(-17%); opacity: .62; } 68%, 100% { transform: translateX(-28%); opacity: 0; } }
@keyframes kinetic-match-sharpen { 0%, 38% { opacity: .28; filter: blur(2px); } 47%, 63% { opacity: 1; filter: blur(0); } 68%, 100% { opacity: .28; filter: blur(2px); } }
@keyframes kinetic-build-lead { 0%, 68% { transform: translate(-11px, -7px); opacity: .28; } 79%, 95% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes kinetic-build-middle { 0%, 68% { transform: translate(6px, 5px); opacity: .28; } 79%, 95% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes kinetic-build-tail { 0%, 68% { transform: translate(13px, -4px); opacity: .28; } 79%, 95% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
.landing-prototype-note { margin: 25px 0 0; text-align: right; }
.landing-prototype-note { margin: 25px 0 0; text-align: right; }
.mechanism-section { position: relative; padding-top: 64px; background: transparent; }
.mechanism-section h2 { max-width: 11ch; }
.mechanism-list { border-top: 1px solid var(--line-strong); }
.mechanism-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 17px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.mechanism-list li span { font-family: var(--mono); font-size: 10px; }
.mechanism-list strong { font-family: var(--display); font-size: 20px; font-weight: 400; }
.mechanism-list p { margin-top: 5px; }
.landing-prototype-note { margin: 25px 0 0; text-align: right; }

.auth-view { max-width: 820px; padding-top: 45px; }
.auth-panel { padding: 42px 0 50px; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.auth-panel h1 { max-width: 12ch; margin: 12px 0 17px; font-size: clamp(46px, 7vw, 78px); line-height: .94; }
.auth-panel .lede { max-width: 560px; }
.auth-choice-list { margin: 42px 0 28px; border-top: 1px solid var(--line-strong); }
.auth-choice-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 16px; width: 100%; padding: 21px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.auth-choice-row:hover { padding-left: 10px; background: rgba(231, 234, 246, .4); }
.auth-choice-row > span:first-child { color: var(--accent-strong); font-family: var(--mono); font-size: 10px; }
.auth-choice-row strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 400; }
.auth-choice-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-choice-row > span:last-child { color: var(--accent-strong); font-size: 23px; transition: transform 160ms ease; }
.auth-choice-row:hover > span:last-child { transform: translateX(3px); }
.auth-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.auth-form { max-width: 520px; margin-top: 34px; }
.auth-form label { display: grid; gap: 7px; margin-top: 18px; color: var(--ink); }
.auth-form .field-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-form .button-primary { margin-top: 28px; }
.auth-form-panel > .prototype-footnote { margin-top: 27px; }

@media (max-width: 850px) {
  .public-hero { min-height: 0; grid-template-columns: 1fr; gap: 36px; }
  .landing-atmosphere, .kinetic-stage { min-height: 360px; }
}

@media (max-width: 560px) {
  .public-landing::before { inset: -3% -22% 32%; }
  .public-hero { grid-template-columns: 1fr; min-height: 0; padding: 42px 0 35px; }
  .public-hero::after { display: none; }
  .public-hero-copy h1 { max-width: 9ch; font-size: 53px; }
  .public-lede { width: 100%; max-width: 100%; overflow-wrap: break-word; }
  .landing-atmosphere { min-height: 300px; margin-top: 5px; }
  .kinetic-highlight { width: 100%; }
  .kinetic-stage { min-height: 300px; }
  .kinetic-state-find::before, .kinetic-state-build::before { top: -120%; left: -100%; width: 300%; height: 340%; filter: blur(17px); }
  .kinetic-type { max-width: 92%; font-size: 21px; }
  .kinetic-state-match .kinetic-type { padding: 25px 11px; }
  .kinetic-sweep { top: -90%; bottom: -90%; left: -88%; width: 176%; filter: blur(10px); }
  .kinetic-state-match::before, .kinetic-state-match::after { top: -120%; width: 300%; height: 340%; filter: blur(17px); }
  .kinetic-state-match::before { left: -100%; }
  .kinetic-state-match::after { right: -100%; }
  .mechanism-section { padding-top: 44px; }
  .landing-prototype-note { text-align: left; }
  .auth-view { padding-top: 25px; }
  .auth-panel { padding-top: 28px; }
  .auth-form-heading { flex-direction: column; gap: 11px; }
  .auth-form-heading .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-state { animation: none !important; opacity: 0; transform: none !important; }
  .kinetic-state-match { opacity: 1; }
  .kinetic-state-find .kinetic-sentence { animation: none !important; clip-path: none; }
  .kinetic-sweep { animation: none !important; opacity: 0 !important; }
  .kinetic-state-match::before, .kinetic-state-match::after { animation: none !important; opacity: .52; transform: none; }
  .kinetic-state-match .kinetic-sentence { animation: none !important; opacity: 1; filter: none; }
  .kinetic-fragment { animation: none !important; opacity: 1; transform: none; }
}

/* Application-scoped data sharing; never a global service dashboard. */
.ai-sharing-panel { margin: 0 0 28px; padding: 24px; border: 1px solid var(--line); background: var(--surface, #fff); }
.ai-sharing-panel .view-heading h2 { margin: 0; }
.ai-sharing-panel details > summary { cursor: pointer; }
.ai-sharing-panel .ai-source-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-sharing-panel #ai-permission-preview { max-height: 320px; overflow: auto; padding: 12px 0; }

/* Optional first-party feedback and operator insights. */
.feedback-panel{margin:2rem 0;padding:clamp(1rem,3vw,2rem);border:1px solid var(--line,#d4d0c7);border-radius:12px;background:var(--paper,#fffdf9);max-width:820px}.feedback-panel fieldset{border:0;padding:0;margin:1rem 0}.feedback-panel label:not(.nps-scores label){display:block;margin-top:1rem}.feedback-panel textarea,.feedback-panel select{width:100%}.nps-scores{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.75rem}.nps-scores label{position:relative;cursor:pointer}.nps-scores input{position:absolute;opacity:0}.nps-scores span{display:grid;place-items:center;min-width:2.75rem;min-height:2.75rem;border:1px solid #777;border-radius:6px}.nps-scores input:checked+span{background:#223e38;color:white}.nps-scores input:focus-visible+span{outline:3px solid #177a66;outline-offset:3px}#insights-content{overflow-x:auto}#insights-content table{width:100%;border-collapse:collapse;margin:1rem 0 2rem}#insights-content th,#insights-content td{text-align:left;padding:.65rem;border-bottom:1px solid #d4d0c7}#insights-content blockquote{margin:1rem 0;padding:1rem;border-left:3px solid #aaa;white-space:pre-wrap;overflow-wrap:anywhere}#insights-content .stats-cards{display:flex;flex-wrap:wrap;gap:1rem}.stats-cards>div{padding:1.2rem;border:1px solid #d4d0c7;border-radius:8px;min-width:12rem}.stats-cards strong{display:block;font-size:2rem}
