body.funding-editor-open{overflow:hidden}
#fundingEditorDialog{width:min(940px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:16px;color:#12345a;background:#fff;box-shadow:0 24px 80px #09284955;overflow:auto}
#fundingEditorDialog::backdrop{background:#091e3780}
#fundingEditorDialog [hidden]{display:none!important}
#fundingTextResearchDialog{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:16px;color:#12345a;background:#fff;box-shadow:0 24px 80px #09284955;overflow:auto}
#fundingTextResearchDialog::backdrop{background:#091e3780}
.funding-text-research-shell{padding:22px}
.funding-text-research-body{padding:0 22px 22px}
.funding-text-research-body>p:first-child{margin:0 0 16px;color:#4b6a8d;line-height:1.5}
.funding-text-research-body label{display:block;font-weight:700}
#fundingTextResearchInput{display:block;width:100%;min-height:300px;margin-top:8px;padding:14px;border:1px solid #b8d0eb;border-radius:12px;box-sizing:border-box;color:#12345a;background:#fbfdff;font:inherit;line-height:1.45;resize:vertical}
#fundingTextResearchInput:focus{outline:3px solid #2d76d2aa;border-color:#1264c3}
#fundingTextResearchStatus{min-height:24px;margin:12px 0 0;color:#28577f}
.funding-text-research-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.funding-editor-source-note{padding:10px 12px;border-radius:10px;background:#eef6ff;color:#3b638b}
.event-form label.funding-ai-proposed input,.event-form label.funding-ai-proposed select,.event-form label.funding-ai-proposed textarea{border-color:#1b9b68;background:#effbf5;box-shadow:0 0 0 2px #1b9b6833}
.event-form label.funding-ai-alternative input,.event-form label.funding-ai-alternative select,.event-form label.funding-ai-alternative textarea{border-color:#d58a16;background:#fff9ec;box-shadow:0 0 0 2px #d58a1633}
.funding-field-suggestion{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:7px;padding:8px 10px;border-radius:9px;font-size:.86rem;font-weight:600;line-height:1.35}
.funding-field-suggestion.is-proposed{color:#116b4b;background:#e7f8ef}
.funding-field-suggestion.is-alternative{color:#80530b;background:#fff3d8}
.funding-field-suggestion>span:first-child{flex:1 1 240px}
.funding-field-suggestion-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.funding-field-suggestion .mini-btn,.funding-field-suggestion .save-btn{padding:6px 10px;font-size:.82rem}
.funding-editor-shell{padding:0 24px 24px}
.funding-editor-header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0 14px;background:#fff;border-bottom:1px solid #dce6f1}
.funding-editor-eyebrow{font-size:.75rem;font-weight:500;color:#5b7189}
#fundingEditorHeading{font-size:1.6rem;margin:6px 0;font-weight:750;line-height:1.2}
#fundingEditorOrigin{font-size:.9rem;margin:0;color:#5b7189;line-height:1.45}
.funding-editor-message:empty{display:none}
.funding-editor-message{padding:12px 14px;border-radius:9px;background:#edf5ff;font-size:.9rem;line-height:1.5;margin:14px 0}
.funding-editor-research{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 0;border-bottom:1px solid #e7eef6}
.funding-editor-research p{margin:0;flex:1 1 230px;color:#5b7189;font-size:.85rem;line-height:1.5}
#fundingEditorResearchStatus{flex-basis:100%}
#fundingEditorResearchStatus:empty{display:none}
.funding-editor-section{padding:16px 0 8px}
.funding-editor-section h3{margin:0 0 14px;font-size:1.1rem;font-weight:750;line-height:1.3;color:#12345a}
#fundingEditorForm .funding-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
#fundingEditorForm .wide{grid-column:1/-1}
#fundingEditorForm label{display:grid;gap:7px;min-width:0;font-size:.9rem;font-weight:550;line-height:1.45}
#fundingEditorForm input,#fundingEditorForm textarea,#fundingEditorForm select{width:100%;min-width:0;padding:10px 12px;border:1px solid #c2d2e5;border-radius:8px;background:#fff;color:#12345a;font:400 .94rem/1.45 Arial,sans-serif;min-height:42px}
#fundingEditorForm textarea{resize:vertical}
#fundingEditorForm .funding-editor-grant input{background:#f0f7ff;border-color:#a8c4e5;font-size:1.05rem}
#fundingEditorForm input:disabled,#fundingEditorForm select:disabled{background:#f5f7fa;color:#708398}
#fundingEditorForm [aria-invalid=true]{border-color:#b02c34}
#fundingEditorForm small{font-weight:400;font-size:.79rem;color:#5b7189}
#fundingEditorForm [data-error]{color:#a4252e}
#fundingEditorForm [data-error]:empty{display:none}
.funding-editor-details{margin:12px 0;border-top:1px solid #e3ebf4}
.funding-editor-details>summary{cursor:pointer;font-size:.9rem;font-weight:500;padding:14px 0}
.funding-editor-details .funding-editor-grid{padding:4px 0 12px}
#fundingEditorSources p{font-size:.85rem;line-height:1.5;overflow-wrap:anywhere;color:#50657d}
#fundingEditorSources a{color:#145ba6}
#fundingEditorEvidence{max-height:300px;overflow:auto}
.funding-editor-footer{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;margin-top:18px;padding:14px 0;background:#fff;border-top:1px solid #dce6f1}
#fundingEditorForm .funding-editor-confirm{display:flex;align-items:center;gap:10px;padding:14px;background:#edf5ff;border-radius:9px;font-weight:500}
#fundingEditorForm .funding-editor-confirm input{width:18px;min-width:18px;min-height:18px;height:18px;margin:0;accent-color:#156ec3}
#fundingEditorForm .funding-editor-demo{display:flex;grid-column:1/-1;align-items:center;gap:10px;padding:8px 2px;font-weight:750}
#fundingEditorForm .funding-editor-demo input{width:18px;min-width:18px;min-height:18px;height:18px;margin:0;accent-color:#156ec3}
#fundingEditorForm input[readonly]{background:#f5f8fc;color:#50657d}
.funding-editor-footer>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.funding-editor-footer>small,.funding-editor-footer>p{grid-column:1/-1}
#fundingEditorOutcome{font-size:.85rem;line-height:1.5;color:#50657d}
#fundingEditorOutcome:empty{display:none}
@media(max-width:600px){.funding-editor-shell{padding:0 14px 18px}.funding-editor-header{padding:14px 0}.funding-editor-header h2{font-size:1.32rem!important}.funding-editor-section h3{font-size:1.04rem}#fundingEditorForm .funding-editor-grid{grid-template-columns:minmax(0,1fr)}.funding-editor-research button{width:100%;font-size:.85rem}.funding-editor-footer{position:static;grid-template-columns:minmax(0,1fr)}.funding-editor-footer>div button{flex:1 1 auto}}

.funding-editor-api{background:#f3f7fc;border-radius:10px;padding:14px;margin-top:12px}.funding-editor-api p{font-size:.85rem;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.funding-editor-api:has(#fundingEditorApiDates:empty):has(#fundingEditorApiFunds:empty){display:none}
/* The legacy review stylesheet also made these acquisition panels span the page. */
#view-funding>.funding-wide{grid-column:1/-1;width:100%;min-width:0}
#view-funding{min-width:0}
.funding-records,.funding-sources{min-width:0}
#fundingEditorForm{display:block}
#fundingEditorForm .funding-editor-section h3{display:block;margin:0 0 12px}
.funding-editor-reference{margin:12px 0 14px;padding:0 14px;border:1px solid #dce6f1;border-radius:10px}
.funding-editor-reference>summary{font-weight:600}
.funding-editor-reference a{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none}
.funding-editor-reference a:hover{text-decoration:underline}
#view-funding .funding-records{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-top:14px}
#view-funding .funding-record{min-width:0;padding:18px 4px;border-bottom:1px solid #e6edf5}
#view-funding .funding-record:first-child{padding-top:4px}
#view-funding .funding-record:last-child{border-bottom:0}
#view-funding .funding-record h3{margin:0 0 10px;color:#12345a;font-size:1.12rem;line-height:1.42;font-weight:750;overflow-wrap:anywhere}
#view-funding .funding-title-status{display:inline-flex;vertical-align:middle;margin-left:6px;padding:3px 9px;border-radius:999px;background:#eef3f8;color:#49637f;font-size:.7em;font-weight:800;white-space:nowrap;letter-spacing:0}
#view-funding .funding-title-status.is-open{background:#e4f5ed;color:#08744f}
#view-funding .funding-title-status.is-scheduled{background:#e8f0ff;color:#235caa}
#view-funding .funding-title-status.is-closed{background:#f3eeee;color:#8d4b4b}
#view-funding .funding-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;color:#50657d;font-size:.84rem;line-height:1.45;min-width:0}
#view-funding .funding-record-source{font-weight:650}
.funding-reference-chip{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #dbe7f4;border-radius:999px;background:#f6f9fd;color:#526982;font-size:.76rem;font-weight:700;overflow-wrap:anywhere}
.funding-record-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.funding-territory-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.funding-badge.is-territory{background:#eaf2fc;color:#285b8e;max-width:100%;white-space:normal}
.funding-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#eef3f8;color:#526982;font-size:.74rem;font-weight:800;white-space:nowrap}
.funding-badge.is-pending{background:#fff4dd;color:#90620b}
.funding-badge.is-confirmed,.funding-badge.is-open{background:#e6f5ef;color:#247250}
.funding-badge.is-scheduled{background:#e9f2ff;color:#265d9d}
.funding-badge.is-closed,.funding-badge.is-rejected{background:#f1edf5;color:#67587a}
.funding-record-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.funding-record-actions button{min-height:36px;white-space:nowrap}
.source-search-help{padding:10px 12px;border-left:3px solid #2b6db3;border-radius:7px;background:#edf5ff;line-height:1.55}
.source-search-help a{font-weight:700;color:#205f9f}
@media(max-width:600px){#view-funding .funding-record-meta{align-items:flex-start;gap:7px}#view-funding .funding-record-actions{width:100%;margin:2px 0 0}.funding-record-actions button{width:100%;justify-content:center}}
.funding-import-policy{margin:14px 0;padding:12px 16px;border:1px solid #d6e5f5;border-radius:12px;background:#f7fbff}
.funding-import-policy>summary{cursor:pointer;font-weight:800;color:#163e6d}
.funding-import-policy .panel-note{margin:12px 0;line-height:1.5}
.funding-import-policy-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.funding-import-policy-groups fieldset{min-width:0;margin:0;padding:12px;border:1px solid #d8e6f5;border-radius:10px;background:white}
.funding-import-policy-groups legend{padding:0 5px;font-weight:800;color:#163e6d}
.funding-import-policy-groups fieldset>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.funding-import-policy-groups label{display:flex;align-items:flex-start;gap:7px;font-size:.86rem;line-height:1.35}
.funding-import-policy-groups input{margin:1px 0 0;accent-color:#226bb3}
.funding-import-reason{display:grid;gap:6px;margin-top:12px;font-weight:700;color:#244767}
.funding-import-reason textarea{width:100%;min-height:68px;padding:10px;border:1px solid #bdd2e8;border-radius:9px;resize:vertical}
.funding-import-policy .form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.funding-editor-footer>details{grid-column:1/-1}
.funding-editor-footer>details label{display:grid;gap:6px;padding-bottom:10px}
.funding-editor-footer>details textarea{width:100%;min-height:65px}
#fundingEditorCompanySizesLabel[hidden]{display:none!important}
@media(max-width:760px){.funding-import-policy-groups{grid-template-columns:minmax(0,1fr)}}
