/* Narrow additions inside the existing execution/risk drawers. */
[data-invest-panel] { margin-block: 12px; padding: 12px 16px; border: 1px solid var(--border-color, #d5d9df); border-radius: 8px; color: var(--text-primary, #202938); background: var(--bg-card, #fff); }
[data-invest-panel] summary { cursor: pointer; font-weight: 600; padding-block: 6px; }
[data-invest-panel] label { display: grid; gap: 6px; margin-block: 12px; min-width: 0; }
[data-invest-panel] input, [data-invest-panel] textarea, [data-invest-panel] select { box-sizing: border-box; width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border-color, #d5d9df); border-radius: 6px; color: inherit; background: var(--bg-input, #fff); font: inherit; }
[data-invest-panel] textarea { resize: vertical; }
[data-invest-panel] p, [data-invest-panel] li { line-height: 1.6; overflow-wrap: anywhere; }
[data-invest-panel] details { margin-block: 12px; }
[data-invest-panel] button { max-width: 100%; white-space: normal; }
[data-invest-panel] [data-invest-status]:empty { display: none; }
[data-invest-panel] :focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }
[data-invest-panel] ul { padding-inline-start: 20px; }
[data-invest-panel] li + li { margin-block-start: 10px; }
[data-invest-panel] [hidden] { display:none !important; }
.invest-project { margin:0; padding:24px; border:0; border-bottom:1px solid var(--border-color,#d5d9df); border-radius:0; }
.invest-project header, .invest-project-list > li { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.invest-project h3 { margin:0 0 6px; font-size:18px; }
.invest-project header p, .invest-empty { margin:0; color:var(--text-secondary,#52637c); }
.invest-empty { padding-top:16px; }
.invest-project .invest-project-list { margin:16px 0 0; padding:0; list-style:none; }
.invest-project-list > li { padding:16px 0; border-top:1px solid var(--border-color,#d5d9df); }
.invest-project-list > li > div:first-child { display:grid; gap:6px; min-width:0; }
.invest-project-list span { color:var(--text-secondary,#52637c); }
.invest-actions { display:flex; gap:8px; flex-wrap:wrap; flex-shrink:0; }
.invest-form { max-width:760px; padding-top:12px; }
.invest-form-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
[data-invest-panel] .invest-material { display:flex; align-items:center; gap:10px; }
[data-invest-panel] .invest-material input { width:18px; min-height:18px; flex-shrink:0; }
.invest-material-list { max-height:240px; overflow:auto; }
.invest-context { padding:12px 0; }
.invest-context p { margin:6px 0; color:var(--text-secondary,#52637c); }
.invest-record-host[data-invest-panel] { margin:0; padding:24px; border:0; border-bottom:1px solid var(--border-color,#d5d9df); border-radius:0; }
.invest-records h3 { margin:0 0 8px; font-size:18px; }
.invest-records > p { color:var(--text-secondary,#52637c); }
.invest-records .invest-actions { align-items:baseline; }
.invest-records .invest-record-refs { margin:0; }
.invest-records .invest-record-question { max-width:760px; }
.invest-records .invest-ai-result { max-width:76ch; }
.invest-records .invest-ai-result > details { border-top:1px solid var(--border-color,#d5d9df); padding-top:8px; }
.invest-records [data-wr-status]:empty { display:none; }
.invest-records .invest-material-list:empty::after { content:'尚无项目资料，可先上传已有记录。'; }
.invest-trace, .invest-feedback { max-width:760px; }
.invest-ai { padding-block:20px; border-block:1px solid var(--border-color,#d5d9df); margin-block:16px; }
.invest-ai h3 { margin:0 0 8px; font-size:19px; }
.invest-ai > p { color:var(--text-secondary,#52637c); max-width:72ch; }
.invest-ai-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:baseline; }
.invest-ai-actions details { margin:0; min-width:220px; max-width:560px; flex:1; }
.invest-ai-result { max-width:76ch; padding-top:16px; }
.invest-ai-judgment { font-size:16px; }
.invest-ai-next { padding:12px 16px; background:var(--bg-secondary,#f1f5fa); border-radius:6px; }
.invest-ai-risks { margin-block:20px; }
.invest-ai-result ol { padding-left:24px; }
.invest-ai-result li { padding-block:10px; }
.invest-ai-result li > span { color:var(--text-secondary,#52637c); margin-left:8px; font-size:13px; }
.invest-ai-result blockquote { margin:8px 0 16px; padding:12px; background:var(--bg-secondary,#f1f5fa); }
[data-invest-panel] [data-invest-status] { padding-block:8px; }
@media(max-width:640px) {
  .invest-record-host[data-invest-panel] { padding:18px; }
  .invest-project { padding:18px; }
  .invest-project header, .invest-project-list > li { align-items:flex-start; flex-direction:column; }
  .invest-form-pair { grid-template-columns:1fr; gap:0; }
}

/* Risk decisions lead; record intake remains one contextual disclosure. */
.invest-record-host > .invest-record-entry { display:list-item; padding:4px 0; }
.invest-record-entry strong { font-size:16px; margin-right:16px; }
.invest-record-entry span { color:var(--text-secondary,#52637c); font-weight:400; }
.invest-record-host[open] > .invest-record-entry { margin-bottom:20px; }

.invest-record-host .invest-record-link { max-width:76ch; border-top:1px solid var(--border-color,#d5d9df); margin-top:20px; padding-top:8px; }
.invest-record-link p { color:var(--text-secondary,#52637c); }
.pra-risk-summary-disclosure { padding:16px 24px; border-top:1px solid var(--border-color,#d5d9df); }
.pra-risk-summary-disclosure > summary { cursor:pointer; font-weight:600; }

/* Record intake and interpretation form one working surface. */
.invest-record-host[data-invest-panel] { padding:24px 28px; }
.invest-record-host[open] > .invest-record-entry { margin-bottom:24px; }
.invest-record-host .invest-records { display:grid; grid-template-columns:minmax(230px, 0.8fr) minmax(0, 2fr); gap:28px; align-items:start; }
.invest-records > p { grid-column:1 / -1; margin:0; }
.invest-record-intake { min-width:0; padding-right:28px; border-right:1px solid var(--border-color,#d5d9df); }
.invest-record-intake h3 { font-size:15px; margin:0 0 10px; }
.invest-record-intake > p { font-size:14px; line-height:1.7; color:var(--text-secondary,#52637c); margin:0 0 16px; }
.invest-record-intake .invest-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.invest-record-intake .invest-actions > a { order:3; align-self:flex-start; border:0; box-shadow:none; padding:4px 0; color:var(--primary,#244bc2); font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.invest-record-intake .invest-record-refs { padding:8px 12px; background:var(--bg-secondary,#f1f5fa); border-radius:6px; font-size:14px; }
.invest-record-intake .invest-record-selection { margin:16px 0 0; font-size:13px; }
.invest-record-main { min-width:0; }
.invest-record-main .invest-record-question { margin-top:0; max-width:none; }
.invest-record-main .invest-record-question span { font-weight:600; font-size:15px; }
.invest-record-main textarea { line-height:1.7; padding:12px 14px; }
.invest-record-main .invest-ai-result { padding:0; }
.invest-record-main .invest-ai-result > p:first-child { margin-top:0; font-size:18px; }
.invest-record-main .invest-ai-result > p { margin-bottom:16px; }
.invest-record-main .invest-ai-result + .invest-record-question { margin-top:24px; }
.pra-register-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pra-register-tools .pra-risk-sheet-counts { margin-right:12px; }
@media(max-width:760px) {
 .invest-record-host[data-invest-panel] { padding:20px; }
 .invest-record-host .invest-records { grid-template-columns:1fr; gap:24px; }
 .invest-record-intake { padding:0 0 20px; border-right:0; border-bottom:1px solid var(--border-color,#d5d9df); }
 .invest-record-entry span { display:block; margin-top:6px; font-size:13px; }
 .pra-register-tools { width:100%; }
 .pra-register-tools .pra-risk-sheet-counts { width:100%; }
}

.invest-record-host > header.invest-record-entry { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.invest-record-picker { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(560px, calc(100vw - 32px)); max-height:70vh; padding:24px; border:1px solid #d5d9df; border-radius:12px; background:#fff; color:#213047; box-shadow:0 16px 48px #17203326; }
.invest-record-picker::backdrop { background:#17203355; }
.invest-record-picker > header { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.invest-record-picker > header h3 { margin:0; font-size:18px; }
.invest-record-picker > p { color:#52637c; font-size:14px; }
.invest-record-picker .invest-material-list { max-height:45vh; overflow:auto; margin-top:16px; }
.invest-record-picker .invest-material { padding:12px 0; border-bottom:1px solid #e1e6ed; font-size:14px; }
.invest-record-picker button:focus-visible { outline:2px solid #244bc2; outline-offset:3px; }

.invest-journey-nav { display:flex; gap:24px; border-bottom:1px solid #d5d9df; margin-bottom:24px; }
.invest-journey-nav button { display:flex; gap:10px; align-items:center; padding:12px 0; border:0; border-bottom:2px solid transparent; background:transparent; color:#52637c; font:inherit; cursor:pointer; }
.invest-journey-nav button span { font-size:12px; }
.invest-journey-nav button[aria-current="step"] { color:#244bc2; border-bottom-color:#244bc2; font-weight:600; }
.invest-journey-pane h3 { font-size:20px; margin:0 0 12px; }
.invest-journey-pane > p { color:#52637c; line-height:1.7; max-width:820px; }
.invest-project-brief { display:grid; grid-template-columns:1fr 1fr; gap:20px 40px; margin:24px 0; }
.invest-project-brief dt { color:#52637c; font-size:13px; margin-bottom:6px; }
.invest-project-brief dd { margin:0; line-height:1.6; }
.invest-project-materials { padding:20px 0; border-top:1px solid #e1e6ed; }
.invest-project-materials ul { padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.invest-project-materials button { white-space:normal; text-align:left; }
.invest-journey-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.invest-prepare-list { padding-left:24px; margin:24px 0; max-width:850px; }
.invest-prepare-list li { padding:0 0 20px 8px; }
.invest-prepare-list strong,.invest-prepare-list span { display:block; }
.invest-prepare-list span { margin-top:6px; color:#52637c; line-height:1.7; }
.invest-journey [data-wr-pane][hidden] { display:none; }
.invest-journey button:focus-visible { outline:2px solid #244bc2; outline-offset:4px; }
@media(max-width:760px) { .invest-journey-nav { gap:12px; } .invest-journey-nav button { flex:1; align-items:flex-start; text-align:left; font-size:13px; } .invest-project-brief { grid-template-columns:1fr; } }
.invest-journey-help { margin-top:24px; padding-top:20px; border-top:1px solid #d5d9df; max-width:880px; }
.invest-journey-help > p { color:#52637c; font-size:13px; line-height:1.7; }
.invest-journey-help li { margin-bottom:12px; line-height:1.8; }
.invest-project-materials > button { margin-top:12px; }

.invest-record-host.invest-optional[data-invest-panel] { padding:16px 20px; }
.invest-optional-entry { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.invest-optional-entry strong { font-size:15px; }
.invest-optional-entry strong span { font-size:12px; font-weight:400; color:#52637c; margin-left:8px; }
.invest-optional-entry p { margin:6px 0 0; font-size:13px; color:#52637c; line-height:1.6; }
.invest-optional-entry > button { flex-shrink:0; }
.invest-workspace-dialog { position:fixed; inset:0; margin:auto; width:min(1080px,calc(100vw - 32px)); max-height:86vh; box-sizing:border-box; padding:28px; overflow:auto; border:1px solid #d5d9df; border-radius:12px; background:#fff; color:#213047; }
.invest-workspace-dialog::backdrop { background:#17203355; }
.invest-workspace-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:20px; }
.invest-workspace-header h3 { font-size:22px; margin:0; }
.invest-workspace-header p { color:#52637c; margin:8px 0 0; font-size:14px; }
.invest-workspace-header > button { flex-shrink:0; }
.invest-journey-nav button[aria-current="page"] { color:#244bc2; border-bottom-color:#244bc2; font-weight:600; }
@media(max-width:760px) { .invest-workspace-dialog { padding:20px; max-height:92vh; } .invest-optional-entry { align-items:flex-start; gap:12px; } .invest-workspace-header { flex-wrap:wrap; } }
