html { scrollbar-gutter: stable; }

:root {
  color-scheme: dark;
  --near-black: #111111;
  --near-white: #F3F3F3;
  --bg: #111111;
  --panel: #181818;
  --panel-2: #202020;
  --panel-3: #2A2A2A;
  --line: #363636;
  --line-strong: #4A4A4A;
  --text: #F3F3F3;
  --text-2: #C8C8C8;
  --text-3: #8C8C8C;
  --accent: #9A9A9A;
  --accent-2: #B8B8B8;
  --accent-ink: #F3F3F3;
  --required: #10B981;
  --proposed: #F59E0B;
  --unanswered: #F43F5E;
  --scope: #747474;
  --observed: #9A9A9A;
  --input: #141414;
  --code: #141414;
  --code-text: #C8C8C8;
  --mock-shell: #181818;
  --mock-stage: #111111;
  --mock-surface: #181818;
  --mock-surface-alt: #202020;
  --mock-text: #F3F3F3;
  --mock-muted: #C8C8C8;
  --mock-border: #4A4A4A;
  --mock-control: #292929;
  --mock-placeholder: #343434;
  --mock-notice: color-mix(in srgb, var(--text-2) 8%, var(--mock-surface));
  --radius: 10px;
  --menu-width: 248px;
  --inspector-width: 350px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --near-black: #151515;
  --near-white: #F5F5F5;
  --bg: #F0F0F0;
  --panel: #E8E8E8;
  --panel-2: #DDDDDD;
  --panel-3: #D2D2D2;
  --line: #C4C4C4;
  --line-strong: #A8A8A8;
  --text: #151515;
  --text-2: #404040;
  --text-3: #767676;
  --accent: #5E5E5E;
  --accent-2: #777777;
  --accent-ink: #F5F5F5;
  --required: #059669;
  --proposed: #B45309;
  --unanswered: #E11D48;
  --scope: #777777;
  --observed: #5E5E5E;
  --input: #F5F5F5;
  --code: #151515;
  --code-text: #D8D8D8;
  --mock-shell: #DDDDDD;
  --mock-stage: #F0F0F0;
  --mock-surface: #E8E8E8;
  --mock-surface-alt: #DDDDDD;
  --mock-text: #151515;
  --mock-muted: #404040;
  --mock-border: #A8A8A8;
  --mock-control: #D2D2D2;
  --mock-placeholder: #C4C4C4;
  --mock-notice: color-mix(in srgb, var(--text-3) 8%, var(--mock-surface));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--menu-width) minmax(600px, 1fr) var(--inspector-width);
}

.menu-column, .inspector-column {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--panel);
  overflow: auto;
  z-index: 220;
}
.menu-column { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.inspector-column { border-left: 1px solid var(--line); }
.document-column { --document-top-pad: 38px; --document-top-offset: -38px; --document-x-pad: clamp(28px, 4vw, 72px); position: relative; z-index: 0; min-width: 0; padding: var(--document-top-pad) var(--document-x-pad) 100px; }

.brand { padding: 20px 18px; display: flex; gap: 11px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.brand-button { width: 100%; cursor: pointer; }
.brand-button:hover, .brand-button.is-active { background: var(--panel-2); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 13px; }
.brand span { color: var(--text-3); font-size: 11px; margin-top: 1px; }
.menu-actions { display: grid; grid-template-columns: 1fr auto; gap: 4px 7px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-action-link {
  grid-column: 1;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.menu-action-link:hover { background: var(--panel-2); color: var(--text); }
.menu-actions .theme-button { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
.theme-button { width: 32px; padding: 6px 0; font-size: 14px; }
.button, .icon-button {
  border: 1px solid var(--line-strong); background: var(--panel-2); border-radius: 7px; padding: 8px 11px; cursor: pointer;
}
.button:hover, .icon-button:hover { border-color: var(--text-3); background: var(--panel-3); }
.button--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.button--small { padding: 5px 8px; font-size: 12px; }
.button--danger { color: var(--text-2); }

.app-menu { padding: 10px 10px 22px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.menu-section-title { padding: 8px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 10px; }
.menu-disclosure { margin: 10px 0 2px; }
.menu-disclosure > summary { list-style: none; }
.menu-disclosure > summary::-webkit-details-marker { display: none; }
.menu-disclosure .menu-caret { transition: transform .15s ease; }
.menu-disclosure:not([open]) .menu-caret { transform: rotate(-90deg); }
.menu-item-wrap { margin: 2px 0; }
.menu-link { width: 100%; border: 0; background: transparent; padding: 9px 9px; text-align: left; border-radius: 7px; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text-2); }
.menu-link:hover { background: var(--panel-2); color: var(--text); }
.menu-link.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); box-shadow: inset 2px 0 var(--accent); }
.menu-icon { width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 6px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.menu-copy { min-width: 0; flex: 1; }
.menu-copy strong, .menu-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-copy strong { font-size: 12px; }
.menu-copy small { font-size: 10px; color: var(--text-3); }
.menu-caret { color: var(--text-3); font-size: 10px; }
.submenu { margin-left: 19px; padding-left: 10px; border-left: 1px solid var(--line); }
.submenu .menu-link { padding-top: 7px; padding-bottom: 7px; }
.menu-spacer { flex: 1 1 auto; min-height: 28px; }
.menu-footer { position: sticky; bottom: 0; padding: 10px; border-top: 1px solid var(--line); background: var(--panel); }
.menu-link--template { border: 1px dashed var(--line-strong); }
.menu-link--template small { color: var(--text-3); display: block; font-size: 10px; }

.block-status-nav { position: sticky; top: 0; z-index: 180; max-width: none; margin: var(--document-top-offset) calc(var(--document-x-pad) * -1) 22px; padding: 8px var(--document-x-pad) 10px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px color-mix(in srgb, var(--bg) 78%, transparent); isolation: isolate; }
.block-header-grid, .block-status-grid { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px; align-items: start; }
.block-header-grid { margin-bottom: 5px; }
.block-row-label { align-self: end; padding: 0 5px 5px 0; color: var(--text-3); font-size: 8px; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.status-matrix + .status-matrix { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.readiness-side-labels { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 3px; min-width: 0; }
.stage-axis-label { align-self: stretch; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.stage-gate-labels { display: grid; grid-template-rows: repeat(4, 10px); gap: 2px; }
.readiness-side-labels button { min-width: 0; border: 0; border-right: 2px solid var(--line-strong); background: transparent; color: var(--text-3); padding: 0 6px 0 0; cursor: pointer; font-size: 9px; line-height: 10px; text-align: right; white-space: nowrap; }
.readiness-side-labels button:hover, .readiness-side-labels button.is-active { color: var(--accent); border-right-color: var(--accent); }
.block-jump { display: grid; grid-template-columns: repeat(13, minmax(40px, 1fr)); gap: 3px; overflow-x: auto; padding-right: 1px; }
.block-jump > button { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text-3); padding: 6px 2px 5px; cursor: pointer; text-align: center; }
.block-jump--statuses > button { padding: 0 2px 4px; border-color: transparent; background: transparent; }
.block-jump--statuses > button:hover { background: var(--panel); }
.block-jump--statuses > button.is-active { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.block-jump > button:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.block-jump > button.is-active { border-color: var(--accent); color: var(--accent); }
.block-jump strong, .block-jump > button > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-jump strong { font: 800 9px/1.2 ui-monospace, monospace; letter-spacing: .02em; }
.block-jump > button > span:not(.block-gate-lines) { margin-top: 3px; font-size: 6.5px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.block-jump--statuses .block-gate-lines { display: grid !important; grid-template-rows: repeat(4, 10px); gap: 2px; margin: 0 2px; overflow: visible !important; }
.gate-line { display: block; height: 4px; align-self: center; border-radius: 2px; background: var(--line-strong); transition: opacity .15s ease; }
.gate-line--ready { background: var(--required); }
.gate-line--warning { background: var(--proposed); }
.gate-line--missing { background: var(--unanswered); }
.gate-line--na { background: var(--line-strong); }
.block-status-nav[data-filter="walk"] .gate-line:not([data-gate="walk"]),
.block-status-nav[data-filter="mockQa"] .gate-line:not([data-gate="mockQa"]),
.block-status-nav[data-filter="build"] .gate-line:not([data-gate="build"]),
.block-status-nav[data-filter="devQa"] .gate-line:not([data-gate="devQa"]) { opacity: .12; }

.application-settings { max-width: 1080px; margin: 0 auto 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 24px; align-items: end; }
.app-overview, .data-section, .data-method-card { max-width: 1080px; margin: 0 auto 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 18px; display: grid; gap: 14px; }
.overview-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.overview-head h2 { margin: 4px 0 5px; }
.overview-head p { margin: 0; color: var(--text-3); }
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.data-cards { max-width: 1080px; margin: 0 auto 22px; }
.overview-cards > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--panel-2); }
.overview-cards strong { display: block; font-size: 20px; }
.overview-cards span { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.overview-registers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.overview-registers > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--panel-2); }
.overview-registers h3 { margin: 0 0 8px; font-size: 12px; }
.overview-registers ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 11px; }
.overview-registers li + li { margin-top: 6px; }
.overview-registers span { color: var(--text-3); }
.table-link { border: 0; padding: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.data-document-head { margin-top: 22px; }
.data-method-card { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.data-method-card strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.data-method-card p { margin: 0; color: var(--text-2); }
.data-section { scroll-margin-top: 18px; }
.data-section-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.data-section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.data-view-toggle button { white-space: nowrap; }
.data-section-head h2 { margin: 4px 0; font-size: 20px; }
.data-section-head p { margin: 0; color: var(--text-3); font-size: 11px; max-width: 760px; }
.data-records { display: grid; gap: 7px; }
.data-record { border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); overflow: hidden; }
.data-record summary { display: grid; grid-template-columns: auto minmax(130px, .7fr) minmax(160px, 1.3fr) auto; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.data-record summary:hover { background: var(--panel-3); }
.data-record summary strong { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-record summary small { color: var(--text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-record-body { padding: 12px; border-top: 1px solid var(--line); background: var(--panel); }
.data-honesty-bar { padding-bottom: 12px; margin-bottom: 12px; }
.data-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); max-height: 70vh; }
.data-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 5px; vertical-align: top; min-width: 150px; }
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--panel-2); color: var(--text-2); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.data-table td:first-child, .data-table th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel-2); min-width: 104px; }
.data-table th:first-child { z-index: 3; }
.data-table input, .data-table select { min-width: 140px; padding: 6px 7px; font-size: 11px; border-radius: 5px; }
.data-table .remove-row { white-space: nowrap; }
.application-settings h2 { margin: 3px 0 4px; font-size: 18px; }
.application-settings p { margin: 0; color: var(--text-3); font-size: 11px; max-width: 580px; }
.reviewer-settings { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.reviewer-settings-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reviewer-settings-head strong, .reviewer-settings-head span { display: block; }
.reviewer-settings-head strong { font-size: 12px; }
.reviewer-settings-head span { color: var(--text-3); font-size: 10px; }
.workflow-settings { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.workflow-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 10px; }
.workflow-card-head, .workflow-step-head, .workflow-transition-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.workflow-card-head input, .workflow-step-head input { flex: 1; }
.workflow-issues, .workflow-valid { display: grid; gap: 3px; padding: 8px 10px; border-radius: 6px; font-size: 10px; }
.workflow-issues { background: var(--panel-3); color: var(--proposed); }
.workflow-valid { background: var(--panel-3); color: var(--text-2); }
.workflow-steps, .workflow-transitions { display: grid; gap: 8px; }
.workflow-step { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 10px; display: grid; gap: 10px; }
.workflow-step-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workflow-transition { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.workflow-participation { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.workflow-participation article { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.participation-step { display: grid; gap: 3px; padding: 8px; background: var(--panel-2); font-size: 10px; }
.reviewer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.reviewer-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.reviewer-row input { padding: 7px 8px; }

.document-head { max-width: 1080px; margin: 0 auto 26px; }
.document-head--with-readiness { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.document-head-readiness .readiness { max-width: none; margin: 0; grid-template-columns: 1fr; gap: 6px; }
.document-head-readiness .gate { padding: 8px 10px; border-radius: 8px; }
.document-head-readiness .gate strong { font-size: 9px; }
.document-head-readiness .gate span { font-size: 9px; margin-top: 2px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
h1 { margin: 7px 0 6px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.04; }
h2 { margin: 0; }
.document-lede { color: var(--text-2); max-width: 760px; font-size: 15px; }
.document-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.meta-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 9px; font-size: 11px; color: var(--text-2); }

.readiness { max-width: 1080px; margin: 0 auto 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.gate { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: var(--radius); padding: 12px; text-align: left; cursor: pointer; }
.gate:hover, .gate.is-active { border-color: var(--accent); background: var(--panel-2); }
.gate strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gate span { display: block; color: var(--text-3); font-size: 11px; margin-top: 4px; }
.gate--pass { border-color: color-mix(in srgb, var(--required) 45%, transparent); }
.gate--fail { border-color: color-mix(in srgb, var(--unanswered) 35%, transparent); }

.block-list { max-width: 1080px; margin: 0 auto; }
.block-pager { max-width: 1080px; margin: 0 auto 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.block-pager > span { text-align: center; color: var(--text-2); font-size: 11px; }
.block-view-link { display: block; margin: 3px auto 0; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
.block-view-link:hover { text-decoration: underline; }
.block-pager > button:first-child { justify-self: start; }
.block-pager > button:last-child { justify-self: end; }
.block-view-note { max-width: 1080px; margin: 0 auto 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-3); font-size: 10px; text-align: center; }
.block-reminders { max-width: 1080px; margin: 24px auto 0; display: grid; gap: 10px; }
.block-reminder-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.block-reminder-card header { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.block-reminder-card h2, .block-reminder-card h3, .block-reminder-card p { margin: 0; }
.block-reminder-card h2 { font-size: 14px; }
.block-reminder-card h3 { margin-bottom: 5px; color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.block-reminder-card p { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.block { border: 0; border-radius: 0; background: transparent; margin: 0 0 18px; overflow: visible; scroll-margin-top: 190px; }
.block.is-selected { border-color: transparent; box-shadow: none; }
.block-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); cursor: pointer; }
.block-number { height: 100%; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.block-title { padding: 0 14px; font-weight: 700; }
.block-owner { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding-right: 14px; text-align: right; }
.block-form { padding: 18px; }
.human-review-footer { border-top: 1px solid var(--line); background: var(--panel-2); padding: 13px 16px 15px; }
.human-review-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.human-review-heading strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.human-review-heading span { color: var(--text-3); font-size: 9px; }
.human-review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.human-review-stage { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 9px; min-width: 0; }
.human-review-stage-title { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.human-review-stage-title strong { font-size: 10px; }
.human-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--line-strong); }
.human-review-stage--ready .human-status-dot { background: var(--required); }
.human-review-stage--warning .human-status-dot { background: var(--proposed); }
.human-review-stage--missing .human-status-dot { background: var(--unanswered); }
.human-review-stage select { padding: 6px 7px; font-size: 10px; }
.review-evidence { display: block; margin-top: 7px; }
.review-evidence span { display: block; margin-bottom: 3px; color: var(--text-3); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.review-evidence input { padding: 6px 7px; font-size: 9px; }
.human-review-confirm { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--text-3); font-size: 9px; }
.human-review-date { display: grid; gap: 2px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.human-review-date span { color: var(--text-3); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.human-review-date strong { color: var(--text-2); font-size: 10px; font-weight: 600; }
.review-toggle { width: 31px; height: 17px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--line-strong); padding: 2px; cursor: pointer; transition: background .15s ease; }
.review-toggle i { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--near-white); transition: transform .15s ease; }
.review-toggle.is-on { background: var(--required); }
.review-toggle.is-on i { transform: translateX(14px); }
.review-toggle:disabled { cursor: default; opacity: .38; }

.honesty-bar { display: grid; grid-template-columns: minmax(130px, 190px) minmax(180px, 1fr) minmax(180px, 1fr); gap: 10px; padding-bottom: 16px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.field, .honesty-field { display: grid; gap: 6px; min-width: 0; }
.field > span, .honesty-field > span { color: var(--text-2); font-size: 11px; font-weight: 600; }
.field-question { color: var(--text-3); font-size: 10px; font-weight: 400; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--input); color: var(--text); padding: 9px 10px; outline: none;
}
textarea { resize: vertical; min-height: 82px; overflow-y: hidden; overflow-anchor: none; }
textarea.rich-markdown-source { display: none !important; }
.rich-markdown-editor { position: relative; grid-column: 1 / -1; width: 100%; min-width: 0; }
.rich-editor-host { height: 100%; min-height: 0; }
.rich-markdown-editor.is-plain-source {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--input);
}
.rich-markdown-editor.is-plain-source .rich-editor-host { display: none !important; }
.rich-markdown-editor.is-plain-source > textarea.rich-markdown-source {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 160px;
  box-sizing: border-box;
  margin: 0;
  padding: 56px 16px 18px;
  border: 0;
  border-radius: 0;
  background: var(--input) !important;
  color: var(--text) !important;
  caret-color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  resize: vertical;
  overflow: auto !important;
  white-space: pre-wrap;
}
.rich-markdown-editor:not(.is-fullscreen) { z-index: 0; isolation: isolate; }
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-defaultUI { position: relative; z-index: 0; overflow: hidden; }
.rich-markdown-editor.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg);
}
body.is-rich-editor-fullscreen { overflow: hidden; }
body.is-rich-editor-fullscreen .menu-column,
body.is-rich-editor-fullscreen .inspector-column,
body.is-rich-editor-fullscreen .block-status-nav { display: none !important; }
body.is-rich-editor-fullscreen .app-shell { display: block; }
body.is-rich-editor-fullscreen .document-column { padding: 0 !important; }
.rich-markdown-editor.is-fullscreen .rich-editor-host,
.rich-markdown-editor.is-fullscreen .toastui-editor-defaultUI {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.rich-markdown-editor.is-fullscreen .toastui-editor-main,
.rich-markdown-editor.is-fullscreen .toastui-editor-ww-container,
.rich-markdown-editor.is-fullscreen .toastui-editor-md-container,
.rich-markdown-editor.is-fullscreen .toastui-editor-ww-container .toastui-editor,
.rich-markdown-editor.is-fullscreen .toastui-editor-md-container .toastui-editor,
.rich-markdown-editor.is-fullscreen .toastui-editor-contents,
.rich-markdown-editor.is-fullscreen .ProseMirror,
.rich-markdown-editor.is-fullscreen .CodeMirror,
.rich-markdown-editor.is-fullscreen .CodeMirror-scroll {
  min-height: 0 !important;
}
.rich-markdown-editor.is-fullscreen .toastui-editor-main,
.rich-markdown-editor.is-fullscreen .toastui-editor-ww-container .toastui-editor,
.rich-markdown-editor.is-fullscreen .toastui-editor-md-container .toastui-editor,
.rich-markdown-editor.is-fullscreen .toastui-editor-contents,
.rich-markdown-editor.is-fullscreen .ProseMirror,
.rich-markdown-editor.is-fullscreen .CodeMirror-scroll {
  overflow: auto !important;
}
.rich-markdown-editor.is-fullscreen.is-plain-source > textarea.rich-markdown-source {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
  resize: none;
  overflow: auto !important;
}
.rich-editor-skip-controls {
  position: absolute;
  top: -36px;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 4px;
}
.rich-editor-skip-controls[hidden] { display: none !important; }
.rich-editor-skip-controls.is-terminal { top: auto; bottom: 8px; }
.rich-editor-skip-button {
  width: 30px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text-2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.rich-editor-skip-button:hover { border-color: var(--accent); background: var(--panel-3); color: var(--text); }
.rich-editor-skip-button[hidden] { display: none !important; }
.rich-markdown-editor.is-fullscreen .rich-editor-skip-controls { display: none !important; }
.rich-editor-mode-toggle {
  position: absolute;
  top: 8px;
  right: 52px;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}
.rich-editor-mode-button {
  width: 38px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.rich-editor-mode-button:hover { background: var(--panel-2); color: var(--text); }
.rich-editor-mode-button.is-active { background: var(--accent); color: var(--accent-ink); }
.mode-icon { width: 22px; height: 18px; display: grid; align-content: center; gap: 3px; }
.mode-icon--markdown i { display: block; height: 2px; border-radius: 2px; background: currentColor; opacity: .95; }
.mode-icon--markdown i:nth-child(1) { width: 18px; }
.mode-icon--markdown i:nth-child(2) { width: 22px; }
.mode-icon--markdown i:nth-child(3) { width: 14px; }
.mode-icon--wysiwyg { gap: 2px; justify-items: center; }
.mode-icon--wysiwyg b { display: block; font-size: 15px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.mode-icon--wysiwyg i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; opacity: .75; }
.rich-editor-fullscreen-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-3);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.rich-editor-fullscreen-toggle:hover { border-color: var(--accent); background: var(--panel); }
.rich-markdown-editor.is-fullscreen .rich-editor-mode-toggle {
  position: fixed;
  top: 24px;
  right: 70px;
}
.rich-markdown-editor.is-fullscreen .rich-editor-fullscreen-toggle {
  position: fixed;
  top: 24px;
  right: 28px;
}
.rich-markdown-editor .toastui-editor-defaultUI {
  border: 0 !important;
  border-radius: 0;
  overflow: hidden;
  background: var(--input) !important;
  color: var(--text) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.rich-markdown-editor .toastui-editor-toolbar,
.rich-markdown-editor .toastui-editor-defaultUI-toolbar,
.rich-markdown-editor .toastui-editor-mode-switch,
.rich-markdown-editor .toastui-editor-popup,
.rich-markdown-editor .toastui-editor-md-tab-container {
  background: var(--panel-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.rich-markdown-editor .toastui-editor-mode-switch { display: none !important; }
.rich-markdown-editor .toastui-editor-defaultUI-toolbar {
  padding-right: 142px !important;
  border-bottom: 0 !important;
}
.rich-markdown-editor .toastui-editor-toolbar button,
.rich-markdown-editor .toastui-editor-toolbar-icons,
.rich-markdown-editor .toastui-editor-toolbar-divider {
  border-color: var(--line-strong) !important;
  color: var(--text) !important;
}
.rich-markdown-editor .toastui-editor-toolbar button:hover { background-color: var(--panel-3) !important; }
.rich-markdown-editor .toastui-editor-mode-switch .tab-item {
  background: var(--panel) !important;
  border-color: var(--line-strong) !important;
  color: var(--text-2) !important;
}
.rich-markdown-editor .toastui-editor-mode-switch .tab-item.active {
  background: var(--input) !important;
  color: var(--text) !important;
}
.rich-markdown-editor .toastui-editor-main,
.rich-markdown-editor .toastui-editor-md-container,
.rich-markdown-editor .toastui-editor-ww-container,
.rich-markdown-editor .toastui-editor-md-preview,
.rich-markdown-editor .toastui-editor-ww-code-block,
.rich-markdown-editor .toastui-editor-md-splitter {
  background: var(--input) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-main { overflow: hidden !important; min-height: 0 !important; }
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-ww-container,
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-md-container,
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-ww-container .toastui-editor,
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-md-container .toastui-editor,
.rich-markdown-editor:not(.is-fullscreen) .CodeMirror { overflow: hidden !important; min-height: 0 !important; }
.rich-markdown-editor:not(.is-fullscreen) .CodeMirror-scroll { overflow: hidden !important; min-height: 0 !important; }
.rich-markdown-editor .toastui-editor-md-preview,
.rich-markdown-editor .toastui-editor-md-splitter,
.rich-markdown-editor .toastui-editor-md-tab-container { display: none !important; }
.rich-markdown-editor .toastui-editor-md-container .toastui-editor { width: 100% !important; }
.rich-markdown-editor .CodeMirror {
  background: var(--input) !important;
  color: var(--text) !important;
  border: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.rich-markdown-editor .CodeMirror-lines,
.rich-markdown-editor .CodeMirror-line,
.rich-markdown-editor .CodeMirror pre,
.rich-markdown-editor .CodeMirror-code,
.rich-markdown-editor .cm-s-default,
.rich-markdown-editor .cm-s-default * {
  background: transparent !important;
  color: var(--text) !important;
  text-shadow: none !important;
}
.rich-markdown-editor .toastui-editor-md-container .CodeMirror,
.rich-markdown-editor .toastui-editor-md-container .CodeMirror-lines,
.rich-markdown-editor .toastui-editor-md-container .CodeMirror-line,
.rich-markdown-editor .toastui-editor-md-container .CodeMirror pre,
.rich-markdown-editor .toastui-editor-md-container .CodeMirror-code,
.rich-markdown-editor .toastui-editor-md-container .CodeMirror-code *,
.rich-markdown-editor .toastui-editor-md-container .cm-header,
.rich-markdown-editor .toastui-editor-md-container .cm-header-1,
.rich-markdown-editor .toastui-editor-md-container .cm-header-2,
.rich-markdown-editor .toastui-editor-md-container .cm-header-3,
.rich-markdown-editor .toastui-editor-md-container .cm-header-4,
.rich-markdown-editor .toastui-editor-md-container .cm-header-5,
.rich-markdown-editor .toastui-editor-md-container .cm-header-6,
.rich-markdown-editor .toastui-editor-md-container .cm-strong,
.rich-markdown-editor .toastui-editor-md-container .cm-em,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading1,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading2,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading3,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading4,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading5,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-heading6,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-strong,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-emph,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-strike,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-delimiter,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-block-quote,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-list-item-style,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-list-item,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-meta,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-table,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-link,
.rich-markdown-editor .toastui-editor-md-container .toastui-editor-md-code,
.rich-markdown-editor .toastui-editor-md-container [class*="toastui-editor-md-"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-decoration: none !important;
}
.rich-markdown-editor .CodeMirror-cursor { border-left-color: var(--text) !important; }
.rich-markdown-editor .CodeMirror-selected { background: color-mix(in srgb, var(--accent) 25%, transparent) !important; }
.rich-markdown-editor .CodeMirror-gutters,
.rich-markdown-editor .CodeMirror-gutter,
.rich-markdown-editor .CodeMirror-gutter-wrapper,
.rich-markdown-editor .CodeMirror-linenumber,
.rich-markdown-editor .CodeMirror-scrollbar-filler,
.rich-markdown-editor .CodeMirror-gutter-filler,
.rich-markdown-editor .toastui-editor-md-line-number { display: none !important; }
.rich-markdown-editor .toastui-editor-contents,
.rich-markdown-editor .toastui-editor-contents *,
.rich-markdown-editor .toastui-editor-md-preview,
.rich-markdown-editor .toastui-editor-md-preview *,
.rich-markdown-editor .ProseMirror,
.rich-markdown-editor .ProseMirror * {
  color: var(--text-2) !important;
  caret-color: var(--text) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.rich-markdown-editor .toastui-editor-contents,
.rich-markdown-editor .ProseMirror,
.rich-markdown-editor .toastui-editor-md-preview,
.rich-markdown-measure {
  font-size: 15px;
  line-height: 1.65;
}
.rich-markdown-measure {
  position: absolute !important;
  left: -100000px !important;
  top: 0 !important;
  z-index: -1 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 16px 25px 18px;
}
.rich-markdown-measure.rich-markdown-editor {
  width: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  overflow: visible !important;
}
.rich-markdown-measure .toastui-editor-contents {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-contents,
.rich-markdown-editor:not(.is-fullscreen) .ProseMirror,
.rich-markdown-editor:not(.is-fullscreen) .CodeMirror-lines { padding-bottom: 18px !important; }
.rich-markdown-editor:not(.is-fullscreen) .ProseMirror,
.rich-markdown-editor:not(.is-fullscreen) .toastui-editor-contents { min-height: 0 !important; }
.rich-markdown-editor .toastui-editor-contents h1,
.rich-markdown-editor .toastui-editor-contents h1 *,
.rich-markdown-editor .toastui-editor-contents h2,
.rich-markdown-editor .toastui-editor-contents h2 *,
.rich-markdown-editor .toastui-editor-contents h3,
.rich-markdown-editor .toastui-editor-contents h3 *,
.rich-markdown-editor .toastui-editor-contents h4,
.rich-markdown-editor .toastui-editor-contents h4 *,
.rich-markdown-editor .toastui-editor-contents strong,
.rich-markdown-editor .ProseMirror h1,
.rich-markdown-editor .ProseMirror h1 *,
.rich-markdown-editor .ProseMirror h2,
.rich-markdown-editor .ProseMirror h2 *,
.rich-markdown-editor .ProseMirror h3,
.rich-markdown-editor .ProseMirror h3 *,
.rich-markdown-editor .ProseMirror h4,
.rich-markdown-editor .ProseMirror h4 *,
.rich-markdown-editor .ProseMirror strong {
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.rich-markdown-editor .toastui-editor-contents blockquote,
.rich-markdown-editor .toastui-editor-contents blockquote *,
.rich-markdown-editor .ProseMirror blockquote,
.rich-markdown-editor .ProseMirror blockquote * {
  color: var(--text-2) !important;
  border-left-color: var(--line-strong) !important;
}
.rich-markdown-editor .toastui-editor-contents code,
.rich-markdown-editor .toastui-editor-contents pre,
.rich-markdown-editor .ProseMirror code,
.rich-markdown-editor .ProseMirror pre {
  background: var(--code) !important;
  color: var(--code-text) !important;
}
.rich-markdown-editor .toastui-editor-contents a,
.rich-markdown-editor .ProseMirror a { color: var(--accent-2) !important; }
.rich-markdown-editor .toastui-editor-contents table,
.rich-markdown-editor .ProseMirror table { border-color: var(--line) !important; }
.rich-markdown-editor .toastui-editor-contents table th,
.rich-markdown-editor .toastui-editor-contents table th *,
.rich-markdown-editor .ProseMirror table th,
.rich-markdown-editor .ProseMirror table th * {
  background: var(--panel-2) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  font-weight: 800 !important;
}
.rich-markdown-editor .toastui-editor-contents table td,
.rich-markdown-editor .toastui-editor-contents table td *,
.rich-markdown-editor .ProseMirror table td,
.rich-markdown-editor .ProseMirror table td * {
  background: var(--input) !important;
  color: var(--text-2) !important;
  border-color: var(--line) !important;
}
.rich-markdown-editor .toastui-editor-contents table td:first-child,
.rich-markdown-editor .toastui-editor-contents table td:first-child *,
.rich-markdown-editor .ProseMirror table td:first-child,
.rich-markdown-editor .ProseMirror table td:first-child * {
  color: var(--text) !important;
  font-weight: 650 !important;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field--wide { grid-column: 1 / -1; }
.form-help { color: var(--text-3); font-size: 11px; margin: 4px 0; }

.repeater { grid-column: 1 / -1; border: 0; border-radius: 0; overflow: visible; }
.repeater-head { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; background: transparent; border-bottom: 1px solid var(--line); }
.repeater-head strong { font-size: 12px; }
.repeater-head span { color: var(--text-3); font-size: 10px; display: block; }
.repeater-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 11px; }
.compact-record { display: grid; grid-template-columns: auto minmax(120px, .8fr) minmax(180px, 1.5fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.compact-record:last-child { border-bottom: 0; }
.compact-record:hover { background: var(--panel-2); }
.compact-record strong { font-size: 11px; }
.compact-record small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repeater-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.repeater-row:last-child { border-bottom: 0; }
.row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.row-id { font-family: ui-monospace, monospace; color: var(--accent); font-size: 11px; font-weight: 700; }
.row-head select { width: 125px; margin-left: auto; padding: 5px 7px; font-size: 11px; }
.row-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row-accountability { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-accountability--single { grid-template-columns: 1fr; }
.remove-row { border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.remove-row:hover { color: var(--text); }

.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--scope); }
.status--done .status-dot { background: var(--required); }
.status--wip .status-dot { background: var(--proposed); }
.status--todo .status-dot { background: var(--unanswered); }

.mock-shell { border: 1px solid var(--mock-border); border-radius: 10px; background: var(--mock-shell); color: var(--mock-text); overflow: hidden; margin-bottom: 16px; }
.mock-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.segment { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; }
.segment button { border: 0; background: transparent; padding: 5px 8px; border-radius: 5px; font-size: 10px; color: var(--text-3); cursor: pointer; }
.segment button.is-on { background: var(--accent); color: var(--accent-ink); }
.review-view { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.review-view > span { color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.mock-stage { padding: 20px; min-height: 290px; display: grid; place-items: center; background: var(--mock-stage); }
.mock-page-wrap { width: min(100%, 980px); overflow-x: auto; border: 1px solid var(--mock-border); background: var(--mock-surface); color: var(--mock-text); min-height: 235px; }
.mock-canvas { display: grid; gap: 0; min-width: min-content; min-height: 235px; }
.mock-panel-row { display: grid; min-width: min-content; border-bottom: 1px solid var(--mock-border); }
.mock-row-stack { display: grid; min-height: 220px; border-bottom: 1px solid var(--mock-border); }
.mock-canvas > .mock-row-stack { min-height: inherit; }
.mock-panel-row:last-child, .mock-row-stack:last-child { border-bottom: 0; }
.mock-resize-handle { background: color-mix(in srgb, var(--mock-border) 68%, transparent); opacity: .55; z-index: 2; }
.mock-resize-handle:hover { background: var(--accent); opacity: .9; }
.mock-resize-handle--vertical { cursor: col-resize; min-width: 6px; }
.mock-resize-handle--horizontal { cursor: row-resize; min-height: 6px; }
.is-resizing-layout { user-select: none; cursor: col-resize; }
.is-resizing-layout .mock-resize-handle--horizontal { cursor: row-resize; }
.mock-row { border-bottom: 1px solid var(--mock-border); background: var(--mock-shell); padding: 9px; cursor: pointer; }
.mock-row:last-child { border-bottom: 0; }
.mock-row:hover, .mock-row.is-selected, .mock-panel:hover, .mock-panel.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.mock-row-title, .mock-panel-title { display: grid; gap: 2px; margin-bottom: 9px; }
.mock-row-title span, .mock-panel-title span { color: var(--mock-muted); font: 8px ui-monospace, monospace; text-transform: uppercase; }
.mock-row-title strong, .mock-panel-title strong { font-size: 11px; }
.mock-row-title p, .mock-panel-title p { margin: 0; color: var(--mock-muted); font-size: 9px; line-height: 1.35; }
.mock-row-title small, .mock-panel-title small { color: var(--mock-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.mock-row-content { display: grid; gap: 8px; min-width: 0; }
.mock-panel { min-width: 130px; border-right: 1px solid var(--mock-border); background: var(--mock-surface); padding: 9px; cursor: pointer; }
.mock-panel:last-child { border-right: 0; }
.mock-panel-content { display: grid; gap: 8px; min-width: 0; }
.mock-canvas-empty { min-height: 235px; display: grid; place-content: center; gap: 5px; text-align: center; color: var(--mock-muted); }
.mock-canvas-empty strong { color: var(--mock-text); font-size: 14px; }
.mock-canvas-empty span { font-size: 10px; }
.mock-condition { display: grid; gap: 4px; padding: 10px 18px; border-bottom: 1px solid var(--mock-border); background: var(--mock-shell); }
.mock-condition strong { font-size: 12px; }
.mock-condition span { font-size: 11px; }
.mock-condition small { color: var(--mock-muted); font-size: 9px; }
.mock-element { border: 1px solid var(--mock-border); background: var(--mock-surface); padding: 10px; margin-bottom: 9px; cursor: pointer; }
.mock-element:hover, .mock-element.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.mock-label { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; color: var(--mock-muted); }
.mock-marker { display: inline-flex; width: max-content; border-radius: 999px; padding: 2px 5px; font: 700 8px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-3); color: var(--text-2); }
.mock-marker--required { background: var(--panel-3); color: var(--text); }
.mock-marker--proposed { background: var(--panel-3); color: var(--text-2); }
.mock-marker--unanswered { background: var(--panel-3); color: var(--text-2); }
.mock-marker--observed { background: var(--panel-3); color: var(--text-2); }
.mock-marker--out-of-scope { background: color-mix(in srgb, var(--text-3) 22%, transparent); color: var(--text-3); }
.mock-name { font-weight: 700; margin-top: 3px; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mock-control { border: 1px solid var(--mock-border); background: var(--mock-control); color: var(--mock-text); padding: 6px 9px; font-size: 10px; cursor: pointer; }
.mock-control:hover, .mock-control.is-selected { outline: 2px solid var(--accent); }
.mock-inline-meta { display: block; margin-top: 2px; color: var(--mock-muted); font: 7px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }
.mock-control .mock-marker { margin-left: 6px; vertical-align: middle; }
.honesty-on :is(.mock-row, .mock-panel, .mock-element, .mock-control, .mock-layout-section).status--done { background: color-mix(in srgb, var(--required) 20%, var(--mock-surface)); border-color: var(--required); }
.honesty-on :is(.mock-row, .mock-panel, .mock-element, .mock-control, .mock-layout-section).status--wip { background: color-mix(in srgb, var(--proposed) 22%, var(--mock-surface)); border-color: var(--proposed); }
.honesty-on :is(.mock-row, .mock-panel, .mock-element, .mock-control, .mock-layout-section).status--todo { background: color-mix(in srgb, var(--unanswered) 20%, var(--mock-surface)); border-color: var(--unanswered); }
.mock-layout-section { border: 1px solid var(--mock-border); background: var(--mock-surface-alt); padding: 8px; margin-bottom: 10px; cursor: pointer; }
.mock-layout-section:hover, .mock-layout-section.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.mock-layout-title { display: flex; gap: 7px; align-items: center; font-weight: 700; font-size: 11px; margin-bottom: 7px; }
.mock-layout-title span { color: var(--mock-muted); font: 8px ui-monospace, monospace; }
.mock-layout-grid { display: grid; grid-template-columns: repeat(var(--mock-columns), minmax(0, 1fr)); gap: 7px; }
.mock-layout-grid .mock-element { margin: 0; min-width: 0; }
.mock-layout-grid .mock-control { align-self: end; justify-self: start; }
.mock-input { border: 1px solid var(--mock-border); background: var(--mock-surface-alt); color: var(--mock-muted); padding: 6px; margin-top: 6px; font-size: 9px; }
.mock-lines { display: grid; gap: 4px; margin-top: 7px; }
.mock-lines i { display: block; height: 5px; background: var(--mock-placeholder); }
.mock-lines i:nth-child(2) { width: 82%; }
.mock-lines i:nth-child(3) { width: 68%; }
.mock-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mock-border); border: 1px solid var(--mock-border); margin-top: 7px; }
.mock-table i { display: block; height: 13px; background: var(--mock-surface-alt); }
.mock-element--notice { border-left: 4px solid var(--accent); background: var(--mock-notice); }
.mock-element--navigation { background: var(--mock-surface-alt); }
.mock-navigation-items { display: grid; gap: 3px; margin-top: 7px; }
.mock-navigation-items span { display: block; padding: 5px 6px; border-radius: 4px; color: var(--mock-muted); font-size: 9px; }
.mock-navigation-items span:first-child { background: var(--mock-control); color: var(--mock-text); }
.mock-empty { border: 1px dashed var(--mock-border); padding: 12px; color: var(--mock-muted); font-size: 10px; text-align: center; }
.mock-caption { padding: 9px 12px; border-top: 1px solid var(--mock-border); background: var(--mock-shell); color: var(--mock-muted); font-size: 10px; }

.composer { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 16px; }
.canvas-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-3); }
.canvas-empty strong { color: var(--text); font-size: 14px; }
.canvas-empty span { font-size: 10px; }
.composer-head { padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.composer-head strong, .composer-head span { display: block; }
.composer-head strong { font-size: 12px; }
.composer-head span { color: var(--text-3); font-size: 10px; }
.composer-head-actions, .composer-add-layout { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-tree { display: grid; gap: 10px; padding: 10px; }
.composer-region { border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); overflow: hidden; margin-left: calc(var(--composer-depth, 0) * 10px); }
.composer-region--panel { background: color-mix(in srgb, var(--accent) 5%, var(--panel-2)); }
.composer-region-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.composer-region-head > strong { min-width: 0; font-size: 11px; }
.composer-region-description { min-width: 120px; flex: 1; color: var(--text-3); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-region-head > small { color: var(--text-3); font-size: 9px; text-transform: uppercase; }
.composer-region-head label { color: var(--text-3); font-size: 9px; }
.composer-region-head select { width: 52px; margin-left: 4px; }
.composer-size-input { width: 58px; margin-left: 4px; }
.composer-region-body { padding: 10px; display: grid; gap: 8px; }
.composer-add-layout { padding-top: 2px; }
.composer-section { border-bottom: 1px solid var(--line); }
.composer-section:last-child { border-bottom: 0; }
.composer-section-head { display: flex; align-items: center; gap: 8px; padding: 10px 11px; background: color-mix(in srgb, var(--text) 2%, transparent); cursor: pointer; }
.composer-section-head strong { min-width: 0; flex: 1; }
.composer-section-head label { display: flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 10px; }
.composer-section-head select { width: 55px; padding: 4px; font-size: 10px; }
.composer-move, .composer-item-actions button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 5px; color: var(--text-2); cursor: pointer; padding: 3px 6px; }
.composer-move:disabled, .composer-item-actions button:disabled { opacity: .28; cursor: default; }
.composer-items { padding: 8px 11px; display: grid; gap: 6px; }
.composer-item { border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.composer-item:hover, .composer-section:hover > .composer-section-head { border-color: var(--line-strong); background: var(--panel-2); }
.composer-item strong { min-width: 0; flex: 1; font-size: 11px; }
.composer-item small { color: var(--text-3); font-size: 9px; text-transform: uppercase; }
.composer-item-actions { display: flex; gap: 3px; }
.composer-add { display: flex; gap: 7px; padding: 0 11px 11px; }
.composer-add select { width: 150px; padding: 5px 7px; font-size: 11px; }
.selected-record-editor { border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); padding: 14px; margin: 0 0 16px; scroll-margin-top: 104px; }
.selected-record-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.selected-record-editor h2 { margin: 2px 0 0; font-size: 14px; }
.selected-record-editor .inspector-section { margin-top: 12px; padding-top: 0; border-top: 0; }
.selected-record-editor .inspector-section + .inspector-section { padding-top: 12px; border-top: 1px solid var(--line); }
.is-previewing .menu-column, .is-previewing .inspector-column { display: none; }
.is-previewing .app-shell { display: block; min-height: 100vh; }
.is-previewing .document-column { padding: 0; min-height: 100vh; overflow: hidden; }
.fullscreen-preview { position: relative; min-height: 100vh; background: var(--mock-stage); }
.fullscreen-preview .mock-controls, .fullscreen-preview .mock-caption, .fullscreen-preview .composer { display: none; }
.fullscreen-preview .mock-shell, .fullscreen-preview .mock-stage, .fullscreen-preview .mock-page-wrap { min-height: 100vh; }
.fullscreen-preview .mock-stage { padding: 0; place-items: stretch; }
.fullscreen-preview .mock-page-wrap { width: 100%; max-width: none; border: 0; }
.fullscreen-preview .mock-canvas, .fullscreen-preview .mock-canvas-empty { min-height: 100vh; }
.preview-exit { position: fixed; z-index: 20; top: 8px; right: 8px; width: 22px; height: 22px; border: 1px solid color-mix(in srgb, var(--mock-border) 65%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--mock-surface) 86%, transparent); color: var(--mock-muted); font-size: 12px; line-height: 1; cursor: pointer; }
.preview-exit:hover { color: var(--mock-text); border-color: var(--accent); }
.inspector-edit { display: grid; gap: 10px; }
.inspector-edit textarea { min-height: 64px; }

.contract { border: 1px solid var(--line); border-radius: 8px; background: var(--code); padding: 14px; white-space: pre-wrap; color: var(--code-text); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 430px; overflow: auto; }

.inspector { padding: 14px 12px 60px; }
.inspector-empty { min-height: 70vh; display: grid; place-content: center; text-align: center; color: var(--text-3); }
.inspector-empty strong { color: var(--text-2); margin-bottom: 6px; }
.inspector-kicker { color: var(--accent); font: 700 11px ui-monospace, monospace; }
.inspector h2 { font-size: 18px; line-height: 1.2; margin: 5px 0 4px; }
.inspector-owner { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.inspector-section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.inspector-section h3 { margin: 0 0 7px; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.inspector-section p { color: var(--text-2); margin: 0; font-size: 12px; }
.notes-panel { display: grid; gap: 10px; }
.notes-panel-head p { margin: 0; color: var(--text-3); font-size: 11px; }
.notes-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.notes-tabs button, .notes-quick-add button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text-2); padding: 6px 8px; font-size: 10px; cursor: pointer; }
.notes-tabs button:first-child { grid-column: 1 / -1; }
.notes-tabs button:hover, .notes-tabs button.is-active, .notes-quick-add button:hover { border-color: var(--accent); color: var(--text); background: var(--panel-2); }
.notes-tabs b { color: var(--accent); font-weight: 800; margin-left: 4px; }
.notes-quick-add { display: flex; flex-wrap: wrap; gap: 5px; }
.note-log-list { position: relative; display: grid; gap: 8px; }
.note-log-list::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.note-log-entry { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.note-log-entry summary { list-style: none; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px; cursor: pointer; }
.note-log-entry summary::-webkit-details-marker { display: none; }
.note-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin: 4px auto 0; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 4px var(--panel); }
.note-log-entry--decision .note-dot { background: var(--required); }
.note-log-entry--observation .note-dot { background: var(--observed); }
.note-log-entry--question .note-dot { background: var(--unanswered); }
.note-summary-copy { min-width: 0; }
.note-summary-copy strong, .note-summary-copy small { display: block; overflow-wrap: anywhere; }
.note-summary-copy strong { font-size: 12px; line-height: 1.3; }
.note-summary-copy small { color: var(--text-3); font-size: 9px; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.note-log-body { display: grid; gap: 8px; padding: 0 9px 9px 38px; }
.note-meta-row, .note-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note-log-body .field--wide { grid-column: 1 / -1; }
.note-log-body input, .note-log-body textarea, .note-log-body select { padding: 6px 7px; font-size: 11px; }
.note-log-body textarea { min-height: 62px; }
.note-log-static { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 8px; padding: 9px; }
.note-log-static strong, .note-log-static small { display: block; }
.note-log-static strong { font-size: 11px; line-height: 1.35; }
.note-log-static small { color: var(--text-3); font-size: 9px; margin-top: 2px; }
.notes-empty { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; color: var(--text-3); font-size: 12px; text-align: center; }
.readiness-details { display: grid; gap: 7px; }
.readiness-detail { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); }
.readiness-detail > b { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; color: var(--near-white); background: var(--line-strong); font-size: 10px; }
.readiness-detail--ready > b { background: var(--required); }
.readiness-detail--warning > b { background: var(--proposed); color: var(--near-black); }
.readiness-detail--missing > b { background: var(--unanswered); }
.readiness-detail--na > b { background: var(--line-strong); }
.readiness-detail span, .readiness-detail strong, .readiness-detail small { display: block; }
.readiness-detail strong { font-size: 10px; }
.readiness-detail small { color: var(--text-3); font-size: 9px; line-height: 1.35; margin-top: 2px; }
.inspector-record { display: grid; gap: 8px; }
.inspector-record div { background: var(--panel-2); border-radius: 7px; padding: 8px; }
.related-records { display: grid; gap: 8px; }
.related-records > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--panel-2); }
.related-records strong { margin-left: 6px; font-size: 11px; }
.related-records p { margin: 5px 0 0; color: var(--text-2); font-size: 11px; }
.inspector-record span { display: block; color: var(--text-3); font-size: 9px; text-transform: uppercase; }
.inspector-record strong { display: block; font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.unbuilt { max-width: 720px; margin: 18vh auto 0; border: 1px dashed var(--line-strong); padding: 34px; border-radius: 12px; text-align: center; background: var(--panel); }
.unbuilt h1 { font-size: 34px; }
.unbuilt p { color: var(--text-2); }

.dialog { width: min(520px, calc(100vw - 28px)); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); color: var(--text); padding: 0; }
.dialog::backdrop { background: color-mix(in srgb, var(--near-black) 72%, transparent); backdrop-filter: blur(3px); }
.dialog form { padding: 20px; display: grid; gap: 14px; }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin-top: 3px; }
.dialog-close { border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--text-3); }
.dialog label { display: grid; gap: 6px; color: var(--text-2); font-size: 11px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--near-black); padding: 8px 12px; border-radius: 7px; font-weight: 700; font-size: 11px; z-index: 20; transition: .18s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pdf-export-title { border-bottom: 2px solid var(--line-strong); padding-bottom: 22px; }
.pdf-page-document { max-width: 1080px; margin: 0 auto 42px; }

@media print {
  @page { margin: .55in; }
  :root, html[data-theme="light"], html[data-theme="dark"] {
    color-scheme: light;
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-2: #f7f7f7;
    --panel-3: #eeeeee;
    --line: #d0d0d0;
    --line-strong: #888888;
    --text: #111111;
    --text-2: #333333;
    --text-3: #666666;
    --accent: #444444;
    --accent-2: #555555;
    --accent-ink: #ffffff;
    --input: #ffffff;
    --code: #f7f7f7;
    --code-text: #111111;
    --mock-shell: #ffffff;
    --mock-stage: #f7f7f7;
    --mock-surface: #ffffff;
    --mock-surface-alt: #f3f3f3;
    --mock-text: #111111;
    --mock-muted: #333333;
    --mock-border: #999999;
    --mock-control: #eeeeee;
    --mock-placeholder: #dddddd;
  }
  html, body { background: #ffffff !important; color: #111111 !important; font-size: 10pt; line-height: 1.35; }
  .app-shell { display: block; min-height: auto; }
  .menu-column, .inspector-column, .block-status-nav, .document-toolbar, .block-pager, .composer-head-actions, .composer-add-layout, .composer-add, .composer-move, .remove-row, .mock-controls, .mock-resize-handle, .selected-record-editor, .rich-editor-mode-toggle, .rich-editor-fullscreen-toggle, .toast { display: none !important; }
  .document-column { --document-top-pad: 0; --document-top-offset: 0; padding: 0; }
  .document-head, .block, .block-reminders, .application-settings, .app-overview, .data-section, .data-method-card, .pdf-page-document { max-width: none; }
  .pdf-export-title { break-after: page; }
  .pdf-page-document { break-after: page; margin: 0; }
  .pdf-page-document:last-child { break-after: auto; }
  .document-head, .readiness, .block, .block-reminders, .application-settings, .app-overview { break-inside: avoid; box-shadow: none !important; }
  .block { margin: 0 0 18px; border-color: #cfcfcf; background: #ffffff; }
  .block-head { position: static; top: auto; background: #eeeeee; color: #111111; }
  .block-form, .human-review-footer, .repeater-row, .compact-record, .composer-region, .composer-section, .mock-shell { background: #ffffff; }
  .form-grid, .row-fields, .row-accountability, .human-review-grid, .data-record-grid { gap: 8px; }
  input, textarea, select { border: 0 !important; background: transparent !important; color: #111111 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
  textarea { overflow: visible !important; resize: none !important; }
  textarea.rich-markdown-source { display: none !important; }
  .rich-markdown-editor .toastui-editor-defaultUI { border: 0 !important; background: transparent !important; }
  .rich-markdown-editor .toastui-editor-toolbar, .rich-markdown-editor .toastui-editor-mode-switch, .rich-markdown-editor .toastui-editor-md-tab-container, .rich-markdown-editor .toastui-editor-statusbar { display: none !important; }
  .rich-markdown-editor .toastui-editor-main, .rich-markdown-editor .toastui-editor-ww-container, .rich-markdown-editor .toastui-editor-contents { display: block !important; background: transparent !important; color: #111111 !important; }
  .rich-markdown-editor .toastui-editor-contents { padding: 0 !important; font-size: 10pt !important; line-height: 1.45 !important; }
  .rich-markdown-editor .toastui-editor-contents h1 { font-size: 20pt !important; }
  .rich-markdown-editor .toastui-editor-contents h2 { font-size: 18pt !important; }
  .rich-markdown-editor .toastui-editor-contents h3 { font-size: 14pt !important; }
  .rich-markdown-editor .toastui-editor-contents table { break-inside: avoid; }
  .field, .honesty-field { break-inside: avoid; }
  .field-question, .form-help, .block-owner, .human-review-heading span { color: #555555 !important; }
  .mock-shell, .mock-stage, .mock-panel, .mock-row, .mock-layout-section, .mock-element, .mock-control { border-color: #b8b8b8 !important; box-shadow: none !important; }
  .contract { white-space: pre-wrap; color: #111111; background: #f7f7f7; border-color: #cfcfcf; }
}

@media (max-width: 1380px) {
  .readiness { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-head--with-readiness { grid-template-columns: 1fr; }
  .document-head-readiness .readiness { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  :root { --menu-width: 220px; --inspector-width: 300px; }
  .document-column { padding-left: 24px; padding-right: 24px; }
  .block-owner { display: none; }
  .block-head { grid-template-columns: 52px 1fr; }
  .human-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .menu-column { position: relative; width: 100%; height: auto; max-height: none; }
  .app-menu { max-height: 240px; overflow: auto; }
  .menu-footer { position: relative; }
  .inspector-column { position: relative; width: 100%; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .document-column { --document-top-pad: 26px; --document-top-offset: -26px; --document-x-pad: 16px; padding: var(--document-top-pad) var(--document-x-pad) 50px; }
  .readiness { grid-template-columns: 1fr; }
  .document-head-readiness .readiness { grid-template-columns: 1fr; }
  .block-reminder-card, .note-meta-row, .note-fields { grid-template-columns: 1fr; }
  .honesty-bar, .form-grid, .row-fields, .row-accountability, .application-settings, .human-review-grid, .reviewer-list, .workflow-step-fields, .workflow-transition { grid-template-columns: 1fr; }
}
