@font-face {
  font-family: Switzer;
  src: url("/static/Switzer-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Switzer;
  src: url("/static/Switzer-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --paper: #faf7f0;
  --ink: #16140e;
  --text: #4b463a;
  --muted: #756f5f;
  --accent: #cf4f27;
  --accent-text: #a93c1a;
  --line: #d7cdb8;
  --wash: #efe8d8;
  --white: #fffdf8;
  --success: #386044;
  --danger: #972f24;
  --shadow: 0 10px 30px #46351708;
  font-family: Switzer, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(32px, 4.2vw, 51px);
  max-width: 850px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 17px;
}
p {
  margin: 0 0 16px;
}
small,
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.eyebrow:before {
  content: "";
  width: 23px;
  height: 2px;
  background: var(--accent);
}
.app-header {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 4.5%;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 150px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}
.app-header nav a {
  color: var(--text);
  text-decoration: none;
}
.app-header nav a.active {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.text-button {
  color: var(--accent-text);
  border: 0;
  background: none;
  padding: 4px;
}
.app-footer {
  max-width: 1280px;
  padding: 25px 38px;
  margin: 50px auto 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 56px 38px;
  min-height: calc(100vh - 240px);
}
.intro {
  margin-bottom: 34px;
}
.intro p {
  max-width: 700px;
  font-size: 17px;
}
.intro h1 span {
  color: var(--accent);
}
.input-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}
.side-note {
  position: sticky;
  top: 30px;
  padding-top: 7px;
}
.side-note h2 {
  font-size: 19px;
}
.side-note p {
  font-size: 14px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 34px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps b {
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.steps .current {
  color: var(--accent-text);
  font-weight: 600;
}
.side-foot {
  font-size: 12px !important;
  color: var(--muted);
}
.surface {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  margin-bottom: 28px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 1px 13px;
  color: var(--muted);
}
.tabs button.selected {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.form-section {
  padding: 0 0 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  margin-bottom: 0;
}
.form-section h2 {
  font-size: 19px;
  margin-bottom: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 18px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 13px;
  color: var(--ink);
  border-radius: 3px;
  min-width: 0;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #9e9279;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex: none;
  margin: 3px 0;
}
.field small {
  color: var(--muted);
  line-height: 1.45;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  margin: 14px 0 22px;
  cursor: pointer;
}
.clarification-control .check {
  min-height: 44px;
  align-items: center;
}
.person-editor {
  border-left: 2px solid var(--line);
  padding: 2px 0 0 19px;
  margin-bottom: 22px;
}
.person-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.person-heading h3 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
}
.person-heading button {
  font-size: 12px;
}
.person-editor .check {
  margin: 0 0 12px;
}
/* The preparation flow has one reading column; report/history layouts stay separate. */
.preparation {
  max-width: 920px;
  margin-inline: auto;
}
.preparation .intro {
  margin-bottom: 24px;
}
.preparation .intro h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  margin-bottom: 12px;
}
.preparation .eyebrow {
  margin-bottom: 12px;
}
.preparation .intro p {
  margin-bottom: 0;
}
.preparation .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.preparation .steps li,
.preparation .steps li:last-child {
  border-top: 2px solid var(--line);
  border-bottom: 0;
  padding: 10px 0 0;
  gap: 10px;
}
.preparation .steps .current {
  border-top-color: var(--accent);
}
.preparation .form-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.preparation .form-section h2 {
  margin-bottom: 16px;
}
.preparation .form-section .field:last-child {
  margin-bottom: 0;
}
.preparation .form-section .field-grid .field {
  margin-bottom: 0;
}
.preparation .form-section .button.small {
  min-height: 44px;
}
.preparation .person-editor {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border: 0;
  padding: 0;
  margin-bottom: 12px;
}
.preparation .person-editor .field {
  flex: 1;
  margin: 0;
}
.preparation .person-editor .text-button {
  min-height: 48px;
  padding-inline: 8px;
  font-size: 13px;
}
.preparation .form-section > .small {
  margin: 8px 0 0;
}
.preparation .optional-sections {
  margin-top: 28px;
}
.preparation .optional-sections > h2 {
  font-size: 19px;
  margin-bottom: 6px;
}
.preparation .optional-section {
  border-top: 1px solid var(--line);
}
.preparation .optional-section:last-child {
  border-bottom: 1px solid var(--line);
}
.preparation .optional-section > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  min-height: 60px;
  cursor: pointer;
  list-style: none;
}
.preparation .optional-section > summary::-webkit-details-marker {
  display: none;
}
.preparation .optional-section > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
  flex: none;
  margin-right: 5px;
}
.preparation .optional-section[open] > summary::before {
  transform: rotate(45deg);
}
.preparation .optional-label {
  flex: 1;
  min-width: 0;
}
.preparation .optional-title,
.preparation .optional-description {
  display: block;
}
.preparation .optional-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.preparation .optional-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.preparation .optional-status {
  font-size: 12px;
  color: var(--success);
}
.preparation .optional-content {
  padding: 8px 24px 24px;
}
.preparation .person-details + .person-details {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.preparation .person-details h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.preparation .actions {
  margin-top: 28px;
  align-items: center;
  justify-content: flex-end;
}
.preparation .actions .hint {
  order: -1;
  margin-left: 0;
  margin-right: auto;
}
.preparation .optional-content > .memory-card {
  border: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  margin: 0;
}
.preparation .optional-content > .memory-card > h2 {
  display: none;
}
@media (max-width: 740px) {
  .preparation .steps {
    gap: 10px;
  }
  .preparation .steps li {
    font-size: 12px;
  }
  .preparation .optional-section > summary {
    flex-wrap: wrap;
  }
  .preparation .optional-status {
    margin-left: 24px;
  }
  .preparation .optional-content {
    padding-inline: 0;
  }
  .preparation .form-section .field-grid {
    gap: 18px;
  }
  .preparation .actions > .button {
    width: 100%;
  }
  .preparation .actions .hint {
    order: 0;
  }
}
.button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 12px 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  min-height: 45px;
}
.button:hover {
  background: #b4401c;
  border-color: #b4401c;
}
.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--wash);
}
.button.danger {
  color: var(--danger);
  background: transparent;
  border-color: #bf8f83;
}
.button.small {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.actions .hint {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.notice {
  padding: 17px 22px;
  border-left: 3px solid var(--accent);
  background: var(--wash);
  margin: 18px 0;
  font-size: 14px;
}
.notice p:last-child {
  margin: 0;
}
.notice.error {
  border-color: var(--danger);
  color: var(--danger);
}
.notice.success {
  border-color: var(--success);
}
.environment {
  padding: 10px 4.5%;
  background: var(--wash);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.environment strong {
  color: var(--accent-text);
}
.notification {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 20;
  max-width: 470px;
  background: var(--ink);
  color: var(--paper);
  padding: 17px 23px;
  box-shadow: 0 8px 30px #0002;
  border-left: 4px solid var(--accent);
}
.notification.error {
  background: var(--danger);
}
.preview-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.preview-row dt {
  color: var(--muted);
}
.preview-row dd {
  margin: 0;
  white-space: pre-wrap;
}
.status-layout {
  max-width: 870px;
  margin: auto;
}
.status-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}
.status-orb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--wash);
  flex: none;
}
.status-orb.pulse {
  animation: pulse 2s infinite;
}
.status-head h2 {
  margin: 0;
}
.status-head p {
  margin: 4px 0 0;
  font-size: 14px;
}
.phase-list {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 34px 0 25px;
  padding: 0;
  list-style: none;
}
.phase-list li {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.phase-list li.current {
  border-color: var(--accent);
  color: var(--accent-text);
}
.phase-list li.done {
  border-color: var(--ink);
  color: var(--ink);
}
.metrics {
  display: flex;
  gap: 30px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.clarification {
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  margin: 22px 0;
}
.clarification h3 {
  font-size: 18px;
  margin: 8px 0 12px;
}
.clarification p {
  font-size: 14px;
}
.clarification-control {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.clarification-control label {
  font-size: 13px;
  font-weight: 600;
}
.clarification-control select,
.clarification-control textarea {
  min-height: 44px;
}
.clarification-control [hidden] {
  display: none;
}
.clarification,
.quality-panel {
  overflow-wrap: anywhere;
}
.quality-panel {
  padding: 20px 24px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.quality-panel h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 36px;
}
.overview-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.overview-card:first-child { grid-column: 1 / -1; }
.overview-card[data-category="next_step"] { border-left: 3px solid var(--accent); }
.briefing-purpose { border-left: 3px solid var(--accent); padding: 8px 20px; margin: 24px 0; }
.briefing-purpose p { margin: 4px 0; font-size: 18px; }
.briefing-toolbar { display: flex; flex-wrap: wrap; align-items: start; gap: 12px 20px; margin-top: 16px; }
.briefing-tools { min-width: 0; max-width: 100%; }
.briefing-tools > summary { min-height: 45px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.briefing-tools[open] { flex: 1 1 100%; }
.source-peek { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.source-peek summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; }
.source-peek a { display: block; padding: 7px 0; min-height: 44px; }
.report-fold { border-top: 1px solid var(--line); padding: 0; margin: 0; background: transparent; }
.report-fold > summary { cursor: pointer; padding: 18px 4px; min-height: 56px; font-weight: 600; overflow-wrap: anywhere; }
.report-fold[open] { padding-bottom: 20px; }
.report-fold > .report-section { border-top: 0; padding-top: 12px; }
.quality-panel.report-fold { border: 0; border-top: 1px solid var(--line); }
.quality-panel.report-fold ul { font-size: 13px; color: var(--muted); }
.question-context { font-size: 12px; color: var(--muted); }
.question-context summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.source-excerpt summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 13px; }
.research-diagnostics { font-size: 13px; color: var(--muted); }
.report-layout.report-focus { display: block; }
.report-layout .report-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; }
.report-layout .report-nav a { border: 0; min-height: 44px; padding: 10px 0; }
.report-layout .report-nav b { display: none; }
.overview-card h2 { font-size: 21px; margin: 0 0 12px; }
.priority-question { border-left: 3px solid var(--accent); padding-left: 16px; }
@media (max-width: 600px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-card { padding: 20px; }
}
.tag {
  font-size: 11px;
  letter-spacing: 0.03em;
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  line-height: 1.4;
}
.tag.matching,
.tag.confirmed,
.tag.completed {
  color: var(--success);
  border-color: #9eaf9c;
  background: #f1f4ec;
}
.tag.deviating,
.tag.failed {
  color: var(--danger);
  border-color: #bf8f83;
}
.tag.unclear,
.tag.partial,
.tag.ambiguous,
.tag.unresolved {
  color: var(--accent-text);
  border-color: #d5aa91;
  background: #fbefe1;
}
.tag.hypothesis {
  color: var(--accent-text);
}
.tags {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 17px 0;
}
.briefing-intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.briefing-intro h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin: 12px 0;
  max-width: 1000px;
  overflow-wrap: anywhere;
}
.briefing-intro .actions {
  margin-top: 12px;
}
.report-meta {
  font-size: 13px;
  color: var(--muted);
}
.report-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  margin: 26px 0 35px;
}
.report-top .surface {
  padding: 27px;
}
.report-top h2 {
  font-size: 22px;
}
.recommendation {
  border-top: 3px solid var(--accent);
}
.recommendation .eyebrow {
  margin-bottom: 14px;
}
.recommendation h2 {
  font-size: 27px;
  margin: 0 0 15px;
}
.keypoints {
  padding-left: 18px;
  margin: 0;
}
.keypoints li {
  padding: 0 0 12px 5px;
}
.keypoints li:last-child {
  padding-bottom: 0;
}
.open-points {
  margin: 0 0 30px;
}
.report-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 40px;
}
.report-nav {
  position: sticky;
  top: 25px;
  align-self: start;
}
.report-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.report-nav a:hover {
  color: var(--accent-text);
}
.report-nav b {
  font-size: 10px;
  color: var(--accent-text);
  padding-right: 7px;
}
.report-section {
  padding: 0 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 25px;
  overflow-wrap: anywhere;
}
.report-section .eyebrow {
  margin-bottom: 13px;
}
.report-section h2 {
  font-size: 29px;
}
.claim {
  margin: 0 0 17px;
}
.claim p {
  display: inline;
  margin: 0;
}
.claim .tag {
  margin-right: 8px;
  vertical-align: middle;
}
.citations {
  display: inline-flex;
  gap: 6px;
  margin-left: 7px;
  flex-wrap: wrap;
  font-size: 12px;
}
.citations a {
  white-space: nowrap;
}
.citations.source-peek { display: block; margin-left: 0; }
.citations.source-peek a { white-space: normal; overflow-wrap: anywhere; }
.person-profile {
  padding: 24px;
  background: var(--wash);
  margin: 22px 0;
}
.person-profile h3 {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.person-profile h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 23px 0 12px;
}
.person-profile .tag {
  background: var(--paper);
}
.plain-list {
  margin: 0;
  padding-left: 20px;
}
.plain-list li {
  margin-bottom: 9px;
}
.opportunity {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.opportunity:first-of-type {
  padding-top: 4px;
  border-top: 0;
}
.opportunity h3 {
  font-size: 20px;
}
.opportunity .mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.opportunity .hypothesis-text {
  border-left: 2px solid var(--accent);
  padding-left: 15px;
  margin: 18px 0;
}
.question-list {
  list-style: none;
  padding: 0;
  counter-reset: question;
}
.question-list li {
  padding: 20px 0 20px 44px;
  border-top: 1px solid var(--line);
  counter-increment: question;
  position: relative;
}
.question-list li:before {
  content: counter(question, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--accent-text);
  font-size: 12px;
}
.question-list h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.question-list p {
  font-size: 13px;
  margin-bottom: 5px;
}
.story-phase {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.story-phase h3 {
  font-size: 17px;
}
.story-phase p:last-child {
  margin-bottom: 0;
}
.story-phase .impulse {
  font-size: 14px;
  color: var(--accent-text);
}
.icp-criteria {
  margin: 20px 0;
}
.criterion {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.criterion-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 10px;
}
.criterion-heading h3 {
  font-size: 16px;
  margin: 0;
}
.criterion p {
  font-size: 14px;
  margin-bottom: 6px;
}
.source {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
  overflow-wrap: anywhere;
}
.source h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.source .url {
  font-size: 13px;
  display: block;
  margin-bottom: 9px;
  word-break: break-word;
}
.source .source-meta {
  font-size: 12px;
  color: var(--muted);
}
.source blockquote {
  border-left: 2px solid var(--line);
  padding-left: 15px;
  margin: 14px 0 0;
  font-size: 13px;
  white-space: pre-wrap;
}
.version-details {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.version-details summary {
  cursor: pointer;
  color: var(--muted);
}
.version-details dl {
  margin-top: 20px;
}
.decision-panel {
  margin: 35px 0;
}
.decision-panel .surface {
  padding: 27px;
}
.decision-panel h2 {
  font-size: 24px;
}
.decision-panel .field-grid {
  align-items: start;
}
.search-row {
  display: flex;
  gap: 10px;
  max-width: 650px;
  margin-bottom: 32px;
}
.history-card {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
.history-card h2 {
  font-size: 23px;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.history-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 11px;
}
.history-card details {
  font-size: 13px;
}
.history-card summary {
  cursor: pointer;
  color: var(--accent-text);
}
.version-list {
  list-style: none;
  padding: 10px 0 0;
}
.version-list li {
  padding: 8px 0;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.history-card .actions {
  margin: 0;
  align-items: start;
}
.empty {
  padding: 50px 30px;
  text-align: center;
  border: 1px dashed var(--line);
}
.empty h2 {
  font-size: 24px;
}
.empty p {
  max-width: 500px;
  margin: 0 auto 22px;
}
.login-layout {
  max-width: 490px;
  margin: 25px auto;
}
.login-layout .intro h1 {
  font-size: 39px;
}
.login-layout .surface {
  padding: 32px;
}
.login-layout .button {
  width: 100%;
  margin-top: 8px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.noscript {
  padding: 30px;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 15px;
  white-space: pre-wrap;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  max-width: 530px;
  width: calc(100% - 30px);
  color: var(--text);
}
dialog::backdrop {
  background: #16140e77;
}
dialog h2 {
  font-size: 25px;
}
dialog p {
  font-size: 14px;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px #cf4f2712;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1000px) {
  html {
    scroll-behavior: smooth;
  }
}
@media (max-width: 1000px) {
  .brand span {
    display: none;
  }
  .input-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
  }
  .report-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 25px;
  }
  .app-header nav {
    gap: 18px;
  }
  .surface {
    padding: 25px;
  }
  .report-top {
    gap: 18px;
  }
}
@media (max-width: 740px) {
  .app-header {
    align-items: flex-start;
    padding: 21px 22px;
    gap: 20px;
    flex-direction: column;
  }
  .brand img {
    width: 135px;
  }
  .app-header nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 12px;
    gap: 12px;
  }
  main {
    padding: 34px 20px;
  }
  .intro {
    margin-bottom: 26px;
  }
  .intro p {
    font-size: 15px;
  }
  .input-layout {
    display: block;
  }
  .side-note {
    position: static;
    margin-bottom: 25px;
  }
  .side-note > h2,
  .side-note > p {
    display: none;
  }
  .steps {
    display: flex;
    margin: 5px 0 25px;
    gap: 14px;
  }
  .steps li,
  .steps li:last-child {
    flex: 1;
    font-size: 11px;
    display: block;
    border-bottom: 0;
    padding: 10px 0;
    line-height: 1.4;
  }
  .steps b {
    display: block;
    margin-bottom: 5px;
  }
  .surface {
    padding: 22px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin-bottom: 20px;
  }
  .tabs {
    gap: 23px;
  }
  .preview-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .report-top {
    grid-template-columns: 1fr;
  }
  .report-layout {
    display: block;
  }
  .report-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 17px;
    margin-bottom: 28px;
  }
  .report-nav a {
    padding: 7px 0;
    font-size: 11px;
  }
  .story-phase {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .phase-list {
    gap: 8px;
  }
  .phase-list li {
    font-size: 10px;
  }
  .history-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .history-card .actions {
    justify-content: start;
  }
  .app-footer {
    margin-top: 25px;
    padding: 22px 20px;
    gap: 18px;
    font-size: 9px;
  }
  .actions .hint {
    margin-left: 0;
    width: 100%;
  }
  .notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .person-profile {
    padding: 20px;
  }
  .criterion-heading {
    display: block;
  }
  .criterion-heading .tag {
    margin-top: 8px;
  }
  .report-section h2 {
    font-size: 25px;
  }
}
[hidden] {
  display: none !important;
}
/* Memory stays within ATP's existing type, colour and surface system. */
.memory-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.memory-card { padding: clamp(20px, 3vw, 36px); margin: 24px 0; min-width: 0; }
.memory-grid > .memory-card { margin: 0 0 24px; }
.memory-entry { padding: 20px 0; border-top: 1px solid #e3e0db; overflow-wrap: anywhere; }
.memory-entry .tag { margin: 0 8px 8px 0; }
.memory-entry small { display: block; color: #645e57; }
.memory-context-link { display: block; font-size: 1.25rem; font-weight: 600; margin: 8px 0; }
.memory-card fieldset { border: 1px solid #e3e0db; padding: 16px; margin-bottom: 20px; min-width: 0; }
.memory-card legend { padding: 0 6px; font-size: .85rem; }
.memory-card details { margin-top: 18px; }
.memory-card summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.memory-card > .button { margin: 8px 8px 8px 0; }
.memory-form { margin-top: 18px; }
.briefing-feedback { padding: clamp(20px, 3vw, 32px); margin: 28px 0; min-width: 0; scroll-margin-top: 24px; }
.briefing-feedback h2 { font-size: 24px; margin-top: 0; }
.briefing-feedback-form { max-width: 780px; margin-top: 24px; }
.briefing-feedback-form textarea { min-height: 116px; }
.feedback-reference-details summary { cursor: pointer; padding: 10px 0; }
.feedback-reference-details .field { margin-top: 12px; }
.feedback-actions { margin-top: 18px; }
.feedback-actions .button { min-height: 44px; white-space: normal; }
.feedback-history:not(:empty) { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.feedback-history h3 { font-size: 18px; margin-top: 0; }
.feedback-entry { padding: 18px 0; overflow-wrap: anywhere; }
.feedback-entry + .feedback-entry { border-top: 1px solid var(--line); }
.feedback-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.feedback-meta small { color: var(--muted); }
.feedback-text { white-space: pre-wrap; }
.feedback-reference { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--line); color: var(--muted); }
.feedback-effect { font-size: 14px; font-weight: 600; }
.feedback-correction { min-height: 44px; margin-top: 6px; }
.feedback-correction-note { border-left: 2px solid var(--accent); padding: 10px 0 0 12px; margin-top: 14px; overflow-wrap: anywhere; }
.feedback-correction-note strong { color: var(--accent-text); font-size: 13px; }
.feedback-correction-note p { font-size: 14px; margin: 6px 0 0; }
.decision-recommendation { font-weight: 600; margin-bottom: 4px; }
@media (max-width: 760px) {
  .feedback-actions { align-items: stretch; flex-direction: column; }
  .feedback-actions .button { width: 100%; }
  .app-header nav { flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
  .app-header nav a, .app-header nav button { display: inline-flex; align-items: center; min-height: 44px; }
  .memory-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .memory-card .button { max-width: 100%; white-space: normal; min-height: 44px; }
  .memory-card { margin: 18px 0; }
}

.handbook { max-width: 1000px; margin: 0 auto; padding: 28px 20px; overflow-wrap: anywhere; }
.handbook pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--paper); border: 1px solid var(--line); }
.handbook code { font-size: 0.9em; }

/* Separate from main so loading/error renders cannot remove the return path. */
.back-navigation { max-width:1280px; margin:0 auto; padding:16px 38px 0; }
.back-navigation[hidden] { display:none; }
.back-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; font-weight:600; }
.back-navigation:not([hidden]) + main { padding-top:24px; }
@media(max-width:600px) { .back-navigation { padding:12px 20px 0; } }

/* A reading surface for the saved briefing. The rest of the app keeps its form layout. */
.reader-sheet { max-width: 960px; margin: 0 auto; color: #383630; }
.reader-sheet .briefing-intro { position: relative; margin-bottom: 24px; padding-bottom: 24px; }
.reader-sheet .briefing-intro > .eyebrow { margin-bottom: 6px; }
.reader-sheet .briefing-intro h1 { max-width: 820px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.12; letter-spacing: -.04em; }
.reader-sheet .briefing-intro > p { margin-bottom: 0; font-size: 14px; }
.reader-sheet .tags { margin: 12px 0; }
.reader-sheet .reader-date { color: var(--ink); margin-top: 10px; }
.reader-sheet .briefing-toolbar { align-items: center; gap: 4px 22px; margin-top: 18px; }
.reader-sheet .briefing-toolbar > .button { background: var(--ink); border-color: var(--ink); color: var(--white); }
.reader-sheet .briefing-tools > summary { color: var(--muted); }
@media (min-width: 900px) {
  .reader-sheet .briefing-intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 36px; align-items: start; }
  .reader-sheet .briefing-intro > :not(.briefing-toolbar) { grid-column: 1; }
  .reader-sheet .briefing-toolbar { grid-column: 2; grid-row: 2 / span 4; margin-top: 12px; }
}
.reader-sheet .reader-edit-toggle { color: var(--muted); font-size: 13px; }
.reader-sheet .briefing-purpose { border: 0; margin: 0 0 32px; padding: 0; max-width: 780px; }
.reader-sheet .briefing-purpose .mini-label { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.reader-sheet .briefing-purpose p { font-size: 16px; line-height: 1.6; margin: 5px 0 0; }
.reader-sheet .reader-section-title { font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.reader-sheet .overview-grid { display: block; margin: 0; }
.reader-sheet .reader-context { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px 44px; margin-bottom: 28px; }
.reader-sheet .overview-card { padding: 0; border: 0; background: transparent; min-width: 0; }
.reader-sheet .reader-context > .overview-card:first-child { grid-column: auto; }
.reader-sheet .overview-card h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 9px; }
.reader-sheet .overview-card p { font-size: 15px; line-height: 1.65; margin-bottom: 0; }
.reader-sheet .overview-card[data-category="development"] { grid-column: 1 / -1; max-width: 780px; }
.reader-sheet .source-peek { margin-top: 4px; }
.reader-sheet .source-peek > summary { color: var(--muted); font-size: 12px; padding: 8px 0; }
.reader-sheet .reader-opener { background: #f2ece0; border-left: 3px solid var(--accent); padding: 24px 28px; margin: 0 0 34px; }
.reader-sheet .reader-opener h2 { font-size: 12px; color: var(--accent-text); letter-spacing: .03em; margin-bottom: 12px; }
.reader-sheet .reader-opener p { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; letter-spacing: -.025em; color: var(--ink); max-width: 780px; }
.reader-sheet #A04 { padding-bottom: 24px; margin-bottom: 24px; }
.reader-sheet #A04 > .eyebrow { display: none; }
.reader-sheet #A04 > h2 { font-size: 23px; margin-bottom: 8px; }
.reader-sheet .question-list { margin: 0; }
.reader-sheet .question-list > li { border-left: 0; padding: 18px 0 10px 40px; }
.reader-sheet .question-list > li::before { left: 0; top: 20px; color: var(--muted); }
.reader-sheet .question-list h3 { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 0; }
.reader-sheet .question-context { margin-top: 0; }
.reader-sheet .question-context > summary { font-weight: 400; font-size: 12px; padding: 8px 0; color: var(--muted); min-height: 44px; }
.reader-sheet .question-context p { font-size: 14px; }
.reader-sheet .reader-next-step { margin-bottom: 36px; padding-left: 0; border: 0; max-width: 800px; }
.reader-sheet .reader-next-step h2 { font-size: 16px; }
.reader-sheet .reader-next-step p { font-size: 15px; }
.reader-supporting { position: relative; margin-top: 12px; }
.reader-back-to-questions { display: none; font-size: 12px; min-height: 44px; padding: 10px 0; margin: -12px 0 8px; color: var(--muted); }
.reader-supporting:has(details[open]) .reader-back-to-questions { display: inline-block; }
.reader-sheet .report-fold > summary { font-weight: 400; padding: 17px 0; font-size: 15px; }
.reader-sheet .report-fold[open] > summary { font-weight: 600; color: var(--ink); }
.reader-sheet .report-fold > div { padding: 12px 0 0; }
.reader-sheet .report-fold .report-section { margin: 0 0 24px; padding-bottom: 24px; }
.reader-sheet .report-fold .report-section h2 { font-size: 23px; }
.reader-follow-up { margin-top: 32px; }
.reader-sheet .decision-panel { margin: 0; }
.reader-sheet .decision-panel .surface { border: 0; box-shadow: none; padding: 12px 0 24px; }
.reader-sheet .decision-panel .eyebrow { display: none; }
.reader-sheet .briefing-feedback { padding: 12px 0 24px; margin: 0; }
.reader-sheet .briefing-feedback-form { margin-top: 20px; }
.reader-sheet .feedback-correction { display: none; font-size: 12px; min-height: 44px; }
.reader-sheet.reader-editing .feedback-correction { display: inline-flex; }
.reader-sheet .feedback-correction-note { margin-top: 12px; }
@media (max-width: 600px) {
  .reader-sheet .reader-context { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reader-sheet .reader-opener { padding: 20px; margin-bottom: 28px; }
  .reader-sheet .briefing-intro { margin-bottom: 22px; }
  .reader-sheet .briefing-toolbar { gap: 4px 18px; }
  .reader-sheet .briefing-toolbar > .button { width: 100%; justify-content: center; }
  .reader-sheet .question-list > li { padding-left: 30px; }
  .reader-sheet #A04 > h2 { font-size: 22px; }
}
@media print {
  .reader-sheet .reader-follow-up, .reader-sheet .reader-edit-toggle, .reader-sheet .feedback-correction { display: none; }
}
