:root {
  color-scheme: light;
  --canvas: #dce1e7; --sidebar: #e3e7ed; --stage: #f0f2f5; --paper: #fafbfc;
  --surface: #e2e5ea; --nav-active: #d2d9e2; --ink: #262a32; --ink-2: #454c59; --muted: #596270;
  --line: #d4d9e1; --line-strong: #afb7c4; --control-line: #808a9a;
  --accent: #5264b9; --accent-deep: #43559d; --accent-soft: #e7ebf8;
  --button: #3c4c82; --button-ink: #fff; --warning: #835637; --brand: #7561ab;
  --shadow: 0 12px 34px #2521360b, 0 2px 5px #25213606;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #10141b; --sidebar: #181e27; --stage: #14181f; --paper: #222a35;
  --surface: #303741; --nav-active: #303a47; --ink: #edf0f5; --ink-2: #ccd2dd; --muted: #aab4c3;
  --line: #3c4654; --line-strong: #586575; --control-line: #7f8a9d;
  --accent: #a6b0f5; --accent-deep: #a6b0f5; --accent-soft: #293046;
  --button: #a6b0f5; --button-ink: #151c31; --warning: #e2b996; --brand: #aea0dd;
  --shadow: 0 12px 38px #0000001c, 0 2px 4px #00000012;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --canvas: #10141b; --sidebar: #181e27; --stage: #14181f; --paper: #222a35;
    --surface: #303741; --nav-active: #303a47; --ink: #edf0f5; --ink-2: #ccd2dd; --muted: #aab4c3;
    --line: #3c4654; --line-strong: #586575; --control-line: #7f8a9d;
    --accent: #a6b0f5; --accent-deep: #a6b0f5; --accent-soft: #293046;
    --button: #a6b0f5; --button-ink: #151c31; --warning: #e2b996; --brand: #aea0dd;
    --shadow: 0 12px 38px #0000001c, 0 2px 4px #00000012;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, textarea, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; transition: color 120ms var(--ease), background-color 120ms var(--ease), border-color 120ms var(--ease); }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dd, strong, a, code, li { overflow-wrap: anywhere; }
h1 { font-size: 1.625rem; font-weight: 550; letter-spacing: -.035em; line-height: 1.3; }
h2 { font-size: 1.125rem; font-weight: 550; line-height: 1.4; letter-spacing: -.015em; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.45; }
p { margin: 12px 0; }
.small { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; color: var(--paper); background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.eyebrow { display: block; margin: 0 0 8px; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .02em; line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 6px; color: var(--muted); background: var(--surface); font-size: .8125rem; line-height: 1.5; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; font-size: .875rem; font-weight: 550; line-height: 1.4; text-decoration: none; }
.primary-button { color: var(--button-ink); background: var(--button); box-shadow: inset 0 1px #ffffff1c; }
.primary-button:hover:not(:disabled) { filter: brightness(1.08); }
.secondary-button { color: var(--ink-2); background: transparent; border-color: var(--line); }
.secondary-button:hover:not(:disabled) { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; border: 0; color: var(--accent-deep); background: transparent; font-size: .875rem; font-weight: 500; text-align: left; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 5px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 1.3rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100dvh; min-height: 0; }
.sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 15px 12px 12px; background: var(--sidebar); overflow-y: auto; scrollbar-width: thin; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 12px; }
.workspace-brand { display: flex; align-items: center; gap: 11px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.workspace-brand svg { color: var(--accent-deep); width: 21px; height: 21px; flex: 0 0 auto; }
.sidebar-close, .menu-button { display: none; }
.new-need { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 10px 12px; margin: 22px 0 5px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 550; text-align: left; }
.new-need[aria-current="page"] { background: var(--surface); }
.new-need svg { color: var(--accent-deep); flex: 0 0 auto; }
.main-nav { display: grid; gap: 3px; }
.main-nav button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--ink-2); background: transparent; font-size: .875rem; text-align: left; }
.main-nav button:hover:not(:disabled), .main-nav button[aria-current="page"], .new-need:hover:not(:disabled) { color: var(--ink); background: var(--surface); }
.main-nav button > span { display: inline-flex; align-items: center; color: var(--muted); }
.main-nav small { font-size: .75rem; }
.sidebar-context { margin: 27px 0 22px; min-height: 0; }
.sidebar-context h2 { margin: 0 12px 8px; color: var(--muted); font-size: .75rem; letter-spacing: .02em; font-weight: 500; }
#recent-cases { display: grid; gap: 3px; }
#recent-cases > p { padding: 0 12px; font-size: .8125rem; }
.recent-case { display: block; width: 100%; overflow: hidden; padding: 10px 12px; min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: .875rem; line-height: 1.5; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.recent-case:hover, .recent-case[aria-current="true"] { background: var(--surface); color: var(--ink); }
.sidebar-footer { display: grid; gap: 3px; margin-top: auto; padding: 16px 10px 0; color: var(--muted); font-size: .6875rem; }
.sidebar-footer .text-button { color: var(--muted); font-size: .8125rem; }
.local-identity { display: flex; align-items: center; gap: 10px; }
.identity-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-size: .8125rem; background: var(--surface); color: var(--ink); }
.local-identity strong, .local-identity div > span { display: block; }
.local-identity strong { color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
.local-identity div > span { font-size: .6875rem; line-height: 1.5; }
.stage { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; min-height: 0; background: var(--stage); }
.topbar { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 26px; }
.current-view { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 11px; }
.current-view strong { font-size: .875rem; font-weight: 550; }
.mode-label { padding-left: 11px; border-left: 1px solid var(--line); }
.mode-label, .connection-label { color: var(--muted); font-size: .75rem; }
.connection-label::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.dossier-actions { display: flex; align-items: center; gap: 3px; padding-left: 8px; border-left: 1px solid var(--line); }
.export-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .875rem; text-decoration: none; }
.export-button:hover, .icon-button:hover { background: var(--surface); }
.export-button[aria-disabled="true"] { opacity: .48; cursor: default; }
.theme-toggle { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle b { font-size: .75rem; font-weight: 500; }
.workspace-main { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scroll-padding: 24px; }
.view { width: min(990px, 100%); min-height: 100%; margin: 0 auto; padding: 30px clamp(24px,4vw,64px) 70px; }
.view.entered { animation: reveal 160ms var(--ease); }
@keyframes reveal { from { opacity: .7; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.start-view, .gate-view { display: flex; align-items: flex-start; justify-content: center; }
.start-frame { width: min(740px,100%); padding: clamp(24px,8vh,88px) 0 24px; }
.empty-state { padding: 0 0 24px; text-align: left; }
.start-mark { display: block; margin: 0 auto 24px; color: var(--accent); }
.empty-state h1 { margin: 0; font-size: 1.5rem; font-weight: 550; letter-spacing: -.025em; }
.empty-state p { max-width: 60ch; margin: 10px 0 0; color: var(--muted); }
.empty-state .eyebrow { margin: 0 0 12px; font-size: .875rem; }
.composer { padding: 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow), inset 0 1px #ffffff0a; transition: border-color 150ms; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.composer textarea { display: block; width: 100%; min-height: 94px; max-height: 300px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; resize: vertical; font-size: 1rem; line-height: 1.65; }
textarea::placeholder { color: var(--muted); opacity: 1; }
.composer textarea:focus-visible { outline: none; }
.composer footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.composer footer > span { color: var(--muted); font-size: .875rem; }
.key-hint { margin-left: 8px; padding-left: 8px; border-left: 1px solid currentColor; opacity: .72; font-size: .6875rem; letter-spacing: .06em; }
.optional-brief { margin-top: 12px; padding: 0 6px; }
summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-size: .875rem; font-weight: 500; }
summary > span { margin-left: 8px; color: var(--muted); font-size: .75rem; font-weight: 400; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 18px; }
label { display: block; color: var(--ink-2); font-size: .875rem; }
label textarea, label select, input[type="file"] { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--control-line); border-radius: 10px; background: var(--paper); font-size: 1rem; }
label textarea { resize: vertical; }
#need-help { margin: 20px 0 0; text-align: left; font-size: .875rem; }
.start-footnote { max-width: 68ch; margin: 12px 0 0; color: var(--muted); font-size: .875rem; text-align: left; }
.view-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.view-header h1 { margin: 0; }
.view-lead { margin: 13px 0 28px; color: var(--muted); }
.case-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: start; gap: 16px; width: 100%; padding: 21px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-align: left; }
.case-row:hover { background: var(--surface); }
.case-initial { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--accent-deep); background: var(--accent-soft); font-size: .75rem; }
.case-row-copy { min-width: 0; }
.case-row small, .case-row strong, .case-row em { display: block; }
.case-row small { margin-top: 9px; color: var(--muted); font-size: .75rem; }
.case-row-next { display: block; margin-top: 6px; max-width: 64ch; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.case-row strong { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.case-row em { margin-top: 5px; color: var(--muted); font-size: .75rem; font-style: normal; }
.list-note { margin-top: 22px; color: var(--muted); font-size: .8125rem; }
.empty-list { padding: 32px 0; }
.empty-list h2 { margin-top: 0; }
.case-meta { color: var(--muted); font-size: .75rem; }
.dossier-header h1 { max-width: 750px; font-size: 1.25rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.45; }
.case-metadata { margin: 4px 0 12px; }
.case-metadata > summary { min-height: 34px; padding: 6px 0; color: var(--muted); font-size: .75rem; }
.next-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.next-card > div { flex: 1 1 360px; }
.next-card .status { padding: 0; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 550; }
.next-card .status::before { content: ""; width: 5px; height: 5px; background: var(--muted); border-radius: 50%; }
.next-card p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.document-card { margin: 0; padding: 20px 0; border: 0; border-radius: 0; background: transparent; }
.document-card > h2:first-child { margin: 0 0 16px; color: var(--muted); font-size: .875rem; font-weight: 550; }
.document-card p, .document-card li { color: var(--ink-2); }
.document-card p, .document-card ul { max-width: 68ch; white-space: pre-wrap; }
.document-card .original { margin: 0 0 22px auto; max-width: 92%; padding: 15px 20px; border-radius: 17px 17px 4px 17px; background: var(--surface); color: var(--ink); }
.document-card h3 { margin: 22px 0 8px; }
.document-card dl { margin: 10px 0; }
.document-card dl > div { padding: 8px 0; }
dt { color: var(--muted); font-size: .875rem; }
dd { margin: 5px 0 0; color: var(--ink-2); font-size: 1rem; white-space: pre-wrap; }
.document-card ul { margin: 10px 0; padding-left: 20px; }
.document-card li + li { margin-top: 7px; }
details.document-card { padding: 0; border-top: 1px solid var(--line); }
details.document-card > summary { min-height: 52px; padding: 15px 3px; font-size: .875rem; color: var(--ink-2); }
details.document-card[open] { padding-bottom: 22px; }
details.document-card[open] > summary { color: var(--ink); }
.document-card.nested-detail { padding: 0; margin: 8px 0; border: 0; }
.nested-detail > summary { min-height: 44px !important; padding: 10px 0 !important; font-size: .875rem; color: var(--accent-deep) !important; }
.review-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 20px; margin: 16px 0 8px; padding: 0; border: 0; background: transparent; }
.choice-group { display: flex; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-option { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 10px; color: var(--ink-2); background: transparent; cursor: pointer; font-size: .875rem; line-height: 1.4; }
.choice-option:hover { background: var(--surface); }
.choice-option:has(input:checked) { color: var(--accent-deep); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.choice-option input { appearance: none; flex: 0 0 auto; width: 12px; height: 12px; margin: 0; border: 1px solid var(--control-line); border-radius: 50%; background: transparent; cursor: pointer; }
.choice-option input:checked { border: 3px solid var(--accent-deep); background: var(--accent-soft); }
.choice-option input:focus-visible { outline: none; }
.choice-option:has(input:disabled) { opacity: .48; cursor: default; }
.review-form .review-note { grid-column: 1 / -1; grid-row: 2; }
.review-form .review-note textarea { min-height: 90px; }
.review-form > .small { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: .875rem; }
.review-form .actions { grid-column: 2; grid-row: 1; align-self: center; }
.review-form .note-toggle { grid-column: 1 / -1; grid-row: 2; width: fit-content; min-height: 36px; padding: 0; font-size: .875rem; }
.option-item, .claim-item { padding: 18px 0; border-top: 1px solid var(--line); }
.option-item h3 { margin-top: 0; }
.attention-note { display: grid; gap: 2px; margin: 18px 0; padding: 3px 0 3px 15px; border-left: 2px solid var(--line-strong); background: transparent; }
.attention-note strong { color: var(--ink); font-size: .875rem; font-weight: 550; }
.attention-note ul { margin: 5px 0; }
.decision-reasons h3 { font-size: .875rem; color: var(--ink); }
.attention-note p { margin: 0; font-size: 1rem; }
#proposal-summary > h3:first-of-type { margin-top: 0; font-size: 1.375rem; font-weight: 550; letter-spacing: -.025em; }
#proposal-summary > p { color: var(--ink); }
#decision-heading { margin-top: 26px; font-size: 1rem; }
.source-item + .source-item { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.source-links { display: flex; gap: 12px; flex-wrap: wrap; }
.source-links .text-button { min-height: 34px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: .8125rem; background: var(--paper); }
.preferred-option { padding-left: 16px; border-left: 2px solid var(--accent); margin-top: 12px; }
.decision-record { margin: 8px 0 24px; padding: 20px 0; border-bottom: 1px solid var(--line); background: transparent; }
.decision-record .record-choice { color: var(--ink); font-size: 1.125rem; font-weight: 500; }
.decision-record blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--accent); color: var(--ink-2); white-space: pre-wrap; }
.decision-record > .small { margin: 8px 0 0; }
.claim-item p:first-child { margin-top: 0; }
.source-assessment { margin-top: 12px; }
.assessment-group { margin: 16px 0; }
.assessment-group h4 { margin: 0 0 10px; font-size: .875rem; color: var(--accent-deep); font-weight: 550; }
.assessment-group dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
.assessment-group dl > div { border-top: 1px solid var(--line); }
.assessment-group dd { font-size: 1rem; }
.assessment-group .unassessed { color: var(--muted); }
.history { list-style: none; padding: 0 !important; }
.history li { padding: 13px 0 13px 16px; border-left: 1px solid var(--line-strong); font-size: .875rem; }
.history time { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.import-preview { margin: 18px 0; padding: 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); }
.warning { color: var(--warning) !important; }
.control-list { border-top: 1px solid var(--line); }
.control-safety { margin: 24px 0 30px; color: var(--ink-2); font-size: .9375rem; }
.control-safety > span:last-child { color: var(--muted); font-size: .875rem; }
.local-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.control-group { border-bottom: 1px solid var(--line); }
.control-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; list-style: none; }
.control-group > summary::-webkit-details-marker { display: none; }
.control-group-copy { margin: 0; }
.control-group-copy strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 550; }
.control-group-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.control-group .disclosure-mark { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 1.125rem; background: var(--surface); }
.control-group[open] > summary .disclosure-mark { transform: rotate(45deg); color: var(--accent-deep); }
.control-group-body { padding: 0 18px 12px; border-left: 2px solid var(--line); margin: 0 0 18px 4px; }
.control-list article { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 16px 0; }
.control-list article > div { max-width: 680px; }
.control-list h2 { margin: 0 0 9px; font-size: 1.0625rem; }
.control-list p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.control-list .status { flex: 0 0 auto; }
.gate-card { width: min(510px,100%); padding: 16px 0; }
.gate-card h1 { margin: 0 0 18px; }
.gate-card > p:not(.eyebrow) { color: var(--muted); }
.gate-card button { margin: 13px 0 5px; }
.gate-card .small { padding-top: 15px; }
.notice { width: min(862px,calc(100% - 48px)); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 22px auto 0; padding: 17px 21px; border: 1px solid var(--line-strong); border-left: 3px solid var(--warning); border-radius: 12px; background: var(--paper); }
.notice > div { flex: 1 1 300px; }
.notice strong { font-size: .9375rem; }
.notice p { margin: 5px 0 0; color: var(--muted); font-size: .875rem; }
.notice:not([hidden]) ~ .view { min-height: auto; }
.workspace-feedback { display: flex; gap: 9px; align-items: center; min-height: 38px; padding: 6px 26px; color: var(--ink-2); background: var(--stage); }
.workspace-feedback p { display: flex; gap: 9px; align-items: center; margin: 0; font-size: .875rem; line-height: 1.55; }
.activity-mark { display: none; flex: 0 0 auto; color: var(--accent); }
.workspace-feedback:has(.is-active) .activity-mark { display: block; }
.workspace-feedback:has(.is-active) .activity-mark path { animation: activity 1200ms ease-in-out infinite alternate; }
.activity-mark path:nth-child(2) { animation-delay: 200ms !important; }
.activity-mark path:nth-child(3) { animation-delay: 400ms !important; }
@keyframes activity { to { opacity: .35; } }
.decision-shortcut { position: fixed; right: 24px; bottom: 52px; z-index: 20; box-shadow: 0 4px 20px #00000024; }
.case-view { padding-bottom: 100px; }
.confirm-dialog { max-width: min(500px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: #14141a99; backdrop-filter: blur(4px); }
.confirm-dialog h2 { margin: 0 0 14px; font-size: 1.375rem; }
.confirm-dialog p { color: var(--ink-2); }
.confirm-dialog form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 25px; }
.no-script { padding: 18px; background: var(--paper); }
.scrim { position: fixed; inset: 0; z-index: 40; border: 0; background: #15151c88; backdrop-filter: blur(3px); }
@media (max-width: 1120px) { .connection-label { display: none; } .control-list article { display: block; } .control-list .status, .control-list .text-button { margin-top: 16px; } .review-form { grid-template-columns: minmax(0,1fr); } .review-form .actions { grid-column: 1; grid-row: 4; justify-content: flex-end; } }
@media (max-width: 760px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(290px,calc(100% - 52px)); visibility: hidden; transform: translateX(-100%); }
  .sidebar.is-open { transform: none; visibility: visible; }
  .sidebar-close, .menu-button { display: inline-grid; }
  .topbar { padding: 6px 12px; gap: 8px; }
  .current-view { display: block; }
  .current-view strong, .mode-label { display: block; }
  .mode-label { border: 0; padding: 0; font-size: .6875rem; margin-top: 1px; }
  .topbar-actions { gap: 6px; }
  .dossier-actions { gap: 0; padding: 0; border: 0; }
  .export-button { width: 40px; justify-content: center; }
  .export-button > span, .key-hint { display: none; }
  .theme-toggle b { display: none; }
  .view { padding: 24px 20px 40px; }
  .start-frame { padding: 20px 0; }
  .empty-state { padding: 0 0 22px; }
  .start-mark { margin-bottom: 20px; width: 32px; height: 32px; }
  .empty-state h1 { font-size: 1.5rem; }
  .empty-state p { font-size: 1rem; }
  .composer { padding: 16px; border-radius: 12px; }
  .composer footer { flex-wrap: wrap; gap: 12px; }
  .composer footer button { margin-left: auto; }
  .field-grid { grid-template-columns: 1fr; }
  .optional-brief summary > span { display: block; margin-left: 0; }
  .view-header { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .case-row { grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 16px 4px; }
  .case-row > .status { grid-column: 2; }
  .dossier-header h1 { font-size: 1.125rem; }
  .next-card { margin-bottom: 8px; padding-bottom: 14px; }
  .document-card { padding: 20px 0; }
  .review-form { padding: 0; }
  .choice-option { padding: 10px 8px; gap: 7px; }
  .review-form .actions button { width: 100%; }
  .document-card .original { max-width: 100%; padding: 14px 16px; }
  #proposal-summary > h3:first-of-type { font-size: 1.25rem; }
  .assessment-group dl { grid-template-columns: minmax(0,1fr); }
  .notice { width: calc(100% - 40px); }
  .workspace-feedback { padding: 6px 20px; }
}
/* V0.28 : le travail reste une surface, les preuves une lecture volontaire. */
.text-button, .new-need svg, .nested-detail > summary, .assessment-group h4,
.control-group[open] > summary .disclosure-mark { color: var(--ink-2) !important; }
.connection-label::before, .local-dot { background: var(--muted); }
.case-initial { color: var(--muted); background: var(--surface); }
.main-nav button[aria-current="page"], .new-need[aria-current="page"], .recent-case[aria-current="true"] { background: var(--nav-active); color: var(--ink); }
.case-list { margin-top: 24px; }
.case-row { grid-template-columns: minmax(0,1fr) auto; padding: 22px 0; }
.case-row strong { font-weight: 550; }
.case-row .status { color: var(--ink-2); font-size: .875rem; }
.sidebar-context h2 { font-size: .875rem; }
.preferred-option, .decision-record blockquote { border-left-color: var(--line-strong); }
.case-view { width: min(950px,100%); padding-top: 20px; padding-bottom: 42px; }
.dossier-header { align-items: flex-start; gap: 12px; }
.dossier-header > div { min-width: 0; }
.dossier-header h1 { font-size: 1rem; line-height: 1.55; color: var(--ink-2); letter-spacing: -.012em; }
.dossier-header .status { margin-top: 8px; padding: 0; background: transparent; font-size: .875rem; color: var(--muted); }
.dossier-detail-button { flex: 0 0 auto; min-height: 40px; padding-top: 0; }
.dossier-detail-button svg { display: none; }
.next-card { border: 0; padding: 0; margin: 0 0 22px; gap: 4px 16px; }
.next-card > div { flex-basis: 440px; }
.next-card p { font-size: .875rem; }
#case-content > .document-card { padding: 12px 0 0; }
#case-content > .document-card > h2:first-child { margin: 0 0 14px; font-size: 1.375rem; font-weight: 550; color: var(--ink); letter-spacing: -.025em; }
.work-lead { color: var(--ink) !important; margin-top: 0; }
.document-card p, .document-card ul { max-width: 65ch; }
.document-card .original { margin: 0; padding: 0; border: 0; background: transparent; max-width: 100%; border-radius: 0; }
.decision-reasons { margin: 20px 0; }
.decision-reasons h3 { margin-top: 0; }
.attention-note { margin: 20px 0; padding: 12px 16px; border: 0; border-radius: 8px; background: var(--surface); }
.attention-note .text-button { min-height: 36px; padding: 3px 0; text-decoration: underline; }
.review-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.review-form .actions { justify-content: flex-start; align-self: stretch; margin-top: 2px; }
.choice-group { max-width: 570px; }
.choice-option { flex: 0 1 auto; min-width: 105px; }
.choice-option:has(input:checked) { color: var(--ink); background: var(--surface); border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.choice-option input:checked { border-color: var(--ink-2); background: var(--paper); }
.review-form .review-note { width: 100%; max-width: 660px; }
.review-form .note-toggle { width: fit-content; }
#proposal-summary > #decision-heading { font-size: 1rem; margin: 18px 0 8px; letter-spacing: 0; }
.decision-record { border: 0; margin: 0; }
.decision-record blockquote { margin: 12px 0 18px; }
.decision-record .note-preview-label { margin-bottom: 0; }
.full-note { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.workspace-feedback p { flex: 1 1 auto; }
.decision-shortcut { position: static; flex: 0 0 auto; margin-left: auto; min-height: 36px; padding: 2px 0; box-shadow: none; }
.detail-dialog { position: fixed; inset: 12px 12px 12px auto; width: min(720px,calc(100vw - 48px)); height: calc(100dvh - 24px); max-width: none; max-height: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 70px #00000030; }
.detail-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.detail-dialog::backdrop { background: #14192266; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.detail-header h2 { margin: 0; font-size: 1.125rem; }
.detail-header .eyebrow { margin-bottom: 3px; }
.detail-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 24px 14px; border-bottom: 1px solid var(--line); }
.depth-nav-button { min-height: 40px; border: 0; border-radius: 7px; padding: 8px 12px; color: var(--muted); background: transparent; font-size: .875rem; }
.depth-nav-button:hover, .depth-nav-button[aria-current="page"] { color: var(--ink); background: var(--surface); }
.detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 32px; scrollbar-width: thin; scroll-padding-top: 20px; }
.detail-content .document-card { padding: 0 0 26px; }
.detail-content .document-card > h2:first-child { color: var(--ink); font-size: 1rem; margin: 0 0 12px; }
.detail-content .document-card .document-card { margin-top: 24px; padding-bottom: 0; }
.detail-content .option-item { border: 0; padding: 14px 16px; margin-top: 12px; background: var(--stage); border-radius: 8px; }
.detail-content .claim-item { border: 0; padding: 12px 0; }
.detail-content .assessment-group dl { grid-template-columns: 1fr; gap: 4px; }
.detail-content .source-links .text-button { color: var(--ink-2); }
.detail-feedback { margin: 0; min-height: 32px; padding: 4px 24px; color: var(--ink-2); font-size: .875rem; }
@media (max-width: 760px) {
  .case-row { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .case-row > .status { grid-column: 1; }
  .case-view { padding: 16px 20px 32px; }
  .dossier-header { flex-wrap: nowrap; }
  .dossier-detail-button { flex: 0 0 44px; min-height: 44px; justify-content: center; padding: 0; border-radius: 8px; background: var(--surface); }
  .dossier-detail-button > span { display: none; }
  .dossier-detail-button svg { display: block; }
  .next-card { margin-bottom: 18px; }
  #case-content > .document-card > h2:first-child { font-size: 1.25rem; }
  #case-content > .document-card { margin: 0 -8px; padding: 18px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; line-height: 1.6; }
  .choice-group { flex-wrap: wrap; gap: 8px; }
  .choice-option { min-width: 0; flex: 1 1 auto; }
  .attention-note { padding: 12px 14px; }
  .workspace-feedback { min-height: 40px; flex-wrap: wrap; gap: 0 10px; }
  .workspace-feedback:has(.is-active) .decision-shortcut { display: none; }
  .detail-dialog { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .detail-header { padding: 16px 20px 10px; }
  .detail-nav { padding: 0 16px 12px; gap: 2px; }
  .depth-nav-button { min-height: 44px; padding: 8px 10px; }
  .detail-content { padding: 20px 20px 28px; }
  .detail-feedback { padding: 5px 20px; }
}
@media (max-height: 650px) { .start-view, .gate-view { align-items: flex-start; } .start-frame { padding: 12px 0 20px; } }
/* V0.32 — a work stream, an anchored composer, and optional evidence beside it. */
.stage { grid-template-rows: auto minmax(0,1fr) auto auto; }
.workspace-brand svg { color: var(--brand); }
.topbar { border-bottom: 1px solid var(--line); }
.case-view { max-width: 900px; padding-bottom: 32px; }
.dossier-header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dossier-header h1 { font-size: .9375rem; line-height: 1.5; font-weight: 500; }
.intervention { position: relative; padding: 18px 0 22px 36px; margin: 8px 0; border: 0; background: transparent; }
.intervention::before { position: absolute; top: 22px; left: 0; content: ""; width: 18px; height: 18px; border: 1px solid var(--control-line); border-radius: 6px; }
.intervention-accompaniment::before { border-color: var(--brand); background: linear-gradient(140deg,transparent 40%,var(--brand) 41%,var(--brand) 56%,transparent 57%); }
.intervention-you::before { border-radius: 50%; background: var(--surface); }
.intervention-author { margin: 0 0 12px; font-size: .8125rem; line-height: 1.5; font-weight: 650; color: var(--ink); }
.intervention-copy { margin: 0; white-space: pre-wrap; }
.intervention-meta { margin: 9px 0 0; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.intervention-you .intervention-copy { width: fit-content; max-width: 100%; padding: 12px 16px; border-radius: 3px 14px 14px; background: var(--surface); }
.intervention-event { padding: 12px 0 12px 36px; border-top: 1px solid var(--line); }
.intervention-event::before { top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); border: 0; }
.intervention-event .intervention-author { color: var(--muted); margin-bottom: 3px; font-weight: 400; }
.intervention-event .intervention-copy { font-size: .875rem; }
.current-work .document-card { margin: 0; padding: 18px 0 22px 36px; }
.current-work .document-card h2 { font-size: 1.375rem; line-height: 1.3; margin: 0 0 18px; }
.current-work .work-lead { font-size: 1rem; line-height: 1.75; }
.engaging-action { margin: 28px 0 12px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.engaging-action h3 { margin: 0 0 12px; }
.note-composer { min-width: 0; padding: 10px 28px 4px; background: var(--stage); }
.note-composer form { max-width: 774px; margin: auto; padding: 12px 16px 9px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); box-shadow: 0 -8px 30px #00000006; }
.note-composer:focus-within form { border-color: var(--accent); }
.note-composer label { font-size: .75rem; color: var(--muted); }
.note-input-row { display: flex; align-items: flex-end; gap: 12px; }
.note-input-row textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 160px; width: 100%; padding: 6px 0; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); line-height: 1.55; font-size: .9375rem; }
.note-input-row button { flex: 0 0 auto; min-height: 40px; margin: 0 0 5px; padding: 8px 12px; }
.note-composer p { font-size: .6875rem; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.demo-launch { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; }
.demo-launch h2 { margin: 0 0 8px; font-size: 1.125rem; }
.demo-launch p:not(.eyebrow) { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.demo-launch .secondary-button { margin-top: 6px; }
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-left: 2px solid var(--accent); padding: 8px 12px; margin: 18px 0 12px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.demo-banner strong { color: var(--accent-deep); font-weight: 600; }
.demo-label { color: var(--accent-deep); }
.sidebar-demo-label { margin: 22px 12px 8px; font-size: .6875rem; font-weight: 500; color: var(--muted); }
.demo-list-heading { margin: 26px 0 14px; font-size: .9375rem; }
.prepared-answer { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.prepared-answer p { font-size: .875rem; margin-top: 0; }
.prepared-preview { margin: 26px 0 18px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); }
.prepared-preview h3 { font-size: .8125rem; font-weight: 500; }
.prepared-preview .preview-title { max-width: 18ch; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.045em; color: var(--ink); }
.prepared-preview p { font-size: .8125rem; color: var(--muted); }
.preview-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0; }
.preview-tile { display: flex; align-items: flex-end; min-height: 82px; padding: 8px; border-radius: 4px; color: #fff; font-size: .6875rem; background: linear-gradient(145deg,#53696e 0 40%,#34474a 41% 64%,#253a3b 65%); }
.tile-1 { background: linear-gradient(35deg,#4f576d 0 33%,#374256 34% 65%,#697283 66%); }
.tile-2 { background: linear-gradient(150deg,#726353 0 33%,#504b44 34% 65%,#3e4447 66%); }
.proposal-alternative { padding: 16px 0; border-top: 1px solid var(--line); font-size: .875rem; }
@media (min-width: 1100px) {
  .depth-open .stage { margin-right: 390px; }
  .detail-dialog { inset: 0 0 0 auto; width: 390px; height: 100dvh; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .depth-open .view { padding-left: 28px; padding-right: 28px; }
  .detail-header { padding: 22px 22px 14px; }
  .detail-nav { padding-left: 16px; padding-right: 16px; gap: 0; }
  .depth-nav-button { padding: 8px 10px; font-size: .8125rem; }
  .detail-content { padding: 24px; font-size: .875rem; }
  .depth-open .connection-label { display: none; }
  .depth-open .note-composer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 760px) {
  .note-composer { padding: 5px 12px 0; }
  .note-composer form { padding: 9px 12px 7px; }
  .note-input-row { gap: 8px; }
  .note-input-row button { font-size: .75rem; padding: 8px; }
  .note-input-row textarea { font-size: 1rem; min-height: 48px; max-height: 100px; }
  .note-composer p { font-size: .625rem; }
  .intervention, .current-work .document-card { padding-left: 28px; }
  .intervention::before { width: 16px; height: 16px; }
  .intervention-event::before { width: 7px; height: 7px; }
  .intervention-you .intervention-copy { padding: 10px 12px; }
  .engaging-action { padding: 16px 12px; }
  .demo-banner { margin-top: 12px; }
  .prepared-preview { padding: 18px; }
  .prepared-preview .preview-title { font-size: 1.375rem; }
  .demo-launch { padding: 18px; }
  .current-work .document-card h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* V0.33 — conversation first. Existing colour tokens are intentionally unchanged. */
.start-view { align-items: center; }
.start-frame { max-width: 720px; padding-bottom: 24px; }
.empty-state { text-align: left; }
.empty-state h1 { font-size: clamp(1.65rem,3vw,2.25rem); }
.start-footnote { max-width: 58ch; }
.demo-launch { padding: 18px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.demo-launch h2 { font-size: .9375rem; }
.demo-launch p:not(.eyebrow) { max-width: 60ch; }
#need-form .composer { padding: 0; border: 0; box-shadow: none; background: transparent; }
#need-form .composer textarea { min-height: 64px; max-height: 150px; padding: 6px 0; font-size: 1rem; }
#need-form .composer textarea { height: 64px; }
#need-form .composer footer { padding: 4px 0; }
#need-form .optional-brief { margin: 6px 0 0; }
#need-form .optional-brief summary { font-size: .75rem; }
#need-form .optional-brief p { font-size: .75rem; }
#need-form { max-height: min(55dvh,430px); overflow-y: auto; }
.case-view { max-width: 820px; }
.dossier-header { border-bottom: 0; margin-bottom: 0; }
.dossier-header h1 { max-width: 56ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-card { padding-top: 0; margin-bottom: 8px; border: 0; background: transparent; }
.intervention { margin: 12px 0; padding-top: 14px; padding-bottom: 18px; }
.intervention::before { top: 18px; }
.intervention-you { margin-left: auto; max-width: 88%; padding-left: 0; text-align: right; }
.intervention-you::before { display: none; }
.intervention-you .intervention-author { margin-bottom: 5px; }
.intervention-you .intervention-copy { margin-left: auto; text-align: left; border-radius: 16px 16px 4px 16px; }
.intervention-you .intervention-meta { margin-top: 6px; }
.current-work > .document-card { padding-top: 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.current-work > .document-card > h2 { font-size: 1.125rem; margin-bottom: 12px; font-weight: 550; }
.current-work .work-lead { line-height: 1.7; }
.prepared-answer { padding: 0; border: 0; background: transparent; }
.prepared-answer > p { color: var(--muted); }
.prepared-answer button { background: transparent; border-color: var(--line); font-size: .8125rem; }
.attention-note { padding: 12px 0; border: 0; border-radius: 0; background: transparent; }
.current-work .attention-note { margin: 12px 0 0; padding: 8px 0 0; }
.attention-note p { margin: 6px 0; font-size: .875rem; }
.proposal-alternative { padding: 10px 0; border: 0; }
.proposal-alternative p { margin: 0; }
.conversation-resources { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.artifact-link { display: block; width: 100%; text-align: left; margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.artifact-link:hover { border-color: var(--accent); }
.engaging-action { margin-top: 20px; padding: 16px; }
.document-card .engaging-action h3 { margin: 0 0 10px; }
.choice-option { border-radius: 8px; }
#validation-choice .choice-option { background: transparent; border-color: transparent; padding-left: 0; }
.review-form .note-toggle { font-size: .75rem; }
.intervention-event { border: 0; padding-top: 7px; padding-bottom: 7px; }
.intervention-event .intervention-author { font-size: .6875rem; }
.intervention-event .intervention-copy { color: var(--muted); font-size: .8125rem; }
.note-composer { padding-top: 14px; }
.note-composer form { max-width: 724px; }
#need-form #need-help { margin: 6px 0 0; font-size: .6875rem; }
#start-options { max-width: 660px; margin-top: 18px; padding: 0; }
#start-options > summary { font-size: .8125rem; color: var(--muted); min-height: 44px; }
#start-options textarea { font-size: .9375rem; }
.start-frame .demo-launch { margin-top: 16px; padding: 18px 0 0; }
.start-frame .demo-launch p { margin: 0 0 6px; }
.start-frame .demo-launch .text-button { margin-top: 0; gap: 8px; }
.validation-inline .actions { flex-wrap: wrap; gap: 10px 20px; }
.validation-inline > div:not(.actions) textarea { display: block; width: 100%; margin: 8px 0 12px; }
@media (max-width: 760px) {
  .start-frame { padding-top: 12px; }
  .empty-state h1 { font-size: 1.6rem; }
  .intervention-you { max-width: 94%; }
  .current-work > .document-card { padding-left: 26px; }
  .note-composer { padding-top: 8px; }
  #need-form .composer textarea { min-height: 48px; max-height: 90px; }
  #need-form .composer footer { flex-wrap: wrap; gap: 6px; }
  #need-form .composer footer button { margin-left: auto; }
}
/* V0.34 — quiet attribution, actual brand mark, contextual question at the input. */
.intervention::before { display: none; }
.response-mark { position: absolute; top: 18px; left: 0; width: 19px; height: 19px; color: var(--brand); }
.intervention-author.sr-only { margin: 0; }
.intervention-you { margin-top: 16px; margin-bottom: 20px; }
.intervention-record { padding-left: 0 !important; }
.conversation-timeline .intervention-you { margin-top: 12px; margin-bottom: 16px; }
.note-composer { padding-top: 8px; }
#context-question { max-width: 724px; margin: 0 auto 8px; }
.context-question-card { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); max-height: 35dvh; overflow: auto; overscroll-behavior: contain; }
.context-question-card > summary { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; list-style: none; padding: 12px 16px; background: var(--paper); border-radius: 12px; cursor: pointer; }
.context-question-card > summary::-webkit-details-marker { display: none; }
.context-question-card > summary strong { grid-column: 1; font-size: .875rem; line-height: 1.45; font-weight: 550; }
.question-label { grid-column: 1; font-size: .6875rem; color: var(--muted); }
.question-chevron { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); transform: rotate(-90deg); }
.context-question-card[open] .question-chevron { transform: none; }
.context-question-body { padding: 0 16px 12px; }
.context-question-body form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; }
.context-question-body .review-form { gap: 8px; }
.context-question-body .review-form > .small { font-size: .6875rem; line-height: 1.45; }
.context-question-body .review-form .note-toggle { min-height: 28px; }
.context-question-body .review-note textarea { min-height: 58px; max-height: 110px; }
.context-question-body .choice-group { gap: 6px; }
.context-question-body .choice-option { min-width: 0; min-height: 40px; padding: 7px 12px; font-size: .8125rem; }
.context-question-body .prepared-answer { margin: 0; padding: 0; }
.context-question-body .prepared-answer p { margin: 0 0 8px; font-size: .8125rem; color: var(--ink-2); }
.context-question-body .prepared-answer button { min-height: 40px; }
.context-question-body .actions { margin: 0; }
.context-question-body .review-form:not(.validation-inline) > .actions { position: sticky; bottom: 0; z-index: 2; padding-top: 6px; padding-bottom: 2px; background: var(--paper); border-top: 1px solid var(--line); }
.context-question-body .primary-button { min-height: 38px; padding: 8px 12px; font-size: .8125rem; }
.context-question-card:not([open]) > summary .question-label { display: none; }
.context-question-card:not([open]) > summary .question-chevron { grid-row: 1; }
@media (max-width: 760px) {
  .response-mark { top: 17px; width: 17px; height: 17px; }
  .context-question-card > summary { padding: 10px 12px; }
  .context-question-body { padding: 0 12px 10px; }
  .context-question-body .choice-option { flex: 1 1 auto; padding: 7px 9px; }
  .context-question-body .actions button { width: auto; }
  .note-input-row textarea { min-height: 42px; max-height: 80px; }
}
@media (max-height: 650px) {
  .context-question-card { max-height: 31dvh; }
  .context-question-card > summary { padding-top: 8px; padding-bottom: 8px; }
  .note-input-row textarea { height: 42px; min-height: 42px; }
  .note-composer form { padding-top: 7px; padding-bottom: 5px; }
}
/* V0.35: explicit private authentication, same palette and typography. */
#private-login { display: grid; gap: .75rem; margin-block: 1.25rem; text-align: left; }
#private-login[hidden] { display: none; }
#private-login input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; color: var(--ink); border: 1px solid var(--control-line); border-radius: 10px; background: var(--paper); }
