.evidence-field{--ev-blue:#1769e0;--ev-line:#dce3ec;--ev-muted:#667085}
.evidence-form-section{background:linear-gradient(180deg,#fff,#fcfdff)}
.evidence-identity{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start}.evidence-identity-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:#edf5ff;color:var(--ev-blue)}.evidence-identity-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.evidence-identity label{display:block;margin-bottom:7px;color:#344054;font-size:13px;font-weight:700}.evidence-identity .form-control{height:43px}.evidence-identity small{display:block;margin-top:6px;color:var(--ev-muted);font-size:9px;line-height:1.55}.evidence-identity .errorlist{margin:6px 0 0;padding:8px 10px;list-style:none;border-left:3px solid #d92d20;background:#fff1f0;color:#b42318;font-size:11px}
.evidence-workspace{margin-top:17px;overflow:hidden;border:1px solid var(--ev-line);border-radius:12px;background:#fff}.evidence-toolbar{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 8px;border-bottom:1px solid #e5e9ef;background:#f8fafc}.evidence-tabs{display:flex;gap:4px}.evidence-tabs button{min-height:38px;display:flex;align-items:center;gap:7px;padding:0 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:#667085;font:inherit;font-size:10px;font-weight:650;cursor:pointer;transition:background .16s,border-color .16s,color .16s}.evidence-tabs button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.evidence-tabs button:hover,.evidence-tabs button:focus-visible{border-color:#d7dee8;background:#fff;color:#344054;outline:3px solid rgba(23,105,224,.08)}.evidence-tabs button.active{border-color:#c4d8f1;background:#fff;color:var(--ev-blue);box-shadow:0 2px 7px rgba(16,24,40,.04)}.evidence-toolbar-status{min-width:0;display:flex;align-items:center;gap:10px}.evidence-toolbar-status>span{overflow:hidden;color:#7b8492;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.evidence-total{min-width:56px;padding:5px 8px;border:1px solid #dfe5ed;border-radius:999px;background:#fff;color:#667085;font:700 8px ui-monospace,SFMono-Regular,Consolas;text-align:center}.evidence-total[data-state=active]{border-color:#bfd3ed;background:#eef5ff;color:var(--ev-blue)}.evidence-total[data-state=full]{border-color:#f1c0bc;background:#fff2f1;color:#b42318}
.evidence-pane{padding:14px}.evidence-pane[hidden]{display:none}.evidence-pane>input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.evidence-dropzone{width:100%;min-height:86px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 15px;border:1px dashed #aec6e5;border-radius:10px;background:linear-gradient(90deg,#fbfdff,#f4f8fd);color:#344054;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s}.evidence-dropzone:hover,.evidence-dropzone:focus-visible,.evidence-dropzone.dragging{border-color:var(--ev-blue);background:#f1f7ff;box-shadow:0 0 0 3px rgba(23,105,224,.08);outline:none}.evidence-drop-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid #cfe0f5;border-radius:11px;background:#fff;color:var(--ev-blue);font-size:22px}.evidence-dropzone>span:nth-child(2) b,.evidence-dropzone>span:nth-child(2) small{display:block}.evidence-dropzone>span:nth-child(2) b{font-size:11px}.evidence-dropzone>span:nth-child(2) small{margin-top:4px;color:#7b8492;font-size:8px}.evidence-dropzone em{padding:8px 11px;border:1px solid #bfd2ed;border-radius:7px;background:#fff;color:var(--ev-blue);font-size:9px;font-style:normal;font-weight:650;white-space:nowrap}
.evidence-file-queue{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.evidence-file-queue:empty{display:none}.evidence-file-item,.reference-chip,.evidence-result{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px;border:1px solid #e2e7ee;border-radius:8px;background:#fff}.evidence-file-type,.reference-chip-icon,.evidence-result-type{width:34px;height:34px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#edf4ff;color:var(--ev-blue);font:700 7px ui-monospace,SFMono-Regular,Consolas}.evidence-file-type img{width:100%;height:100%;object-fit:cover}.evidence-file-copy,.reference-chip-copy,.evidence-result-copy{min-width:0}.evidence-file-copy b,.evidence-file-copy small,.reference-chip-copy b,.reference-chip-copy small,.evidence-result-copy b,.evidence-result-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evidence-file-copy b,.reference-chip-copy b,.evidence-result-copy b{font-size:9px}.evidence-file-copy small,.reference-chip-copy small,.evidence-result-copy small{margin-top:2px;color:#8b95a4;font-size:7px}.evidence-file-actions,.reference-chip-actions{display:flex;gap:3px}.evidence-file-actions button,.reference-chip-actions button,.evidence-result button{min-height:28px;padding:0 7px;border:1px solid #d7dee8;border-radius:6px;background:#fff;color:#475467;font:inherit;font-size:8px;cursor:pointer}.evidence-file-actions button:hover,.reference-chip-actions button:hover,.evidence-result button:hover{border-color:var(--ev-blue);color:var(--ev-blue)}.evidence-file-actions .remove:hover,.reference-chip-actions .remove:hover{border-color:#efb4af;background:#fff5f4;color:#b42318}
.evidence-reference-layout{display:grid;grid-template-columns:minmax(360px,1fr) minmax(0,.85fr);gap:14px;align-items:center}.evidence-reference-layout>small{color:#7b8492;font-size:8px;line-height:1.55}.evidence-reference-picker{position:relative}.evidence-search{height:42px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #d6dde7;border-radius:9px;background:#fff}.evidence-search:focus-within{border-color:var(--ev-blue);box-shadow:0 0 0 3px rgba(23,105,224,.08)}.evidence-search svg{width:16px;height:16px;fill:none;stroke:#98a2b3;stroke-width:1.7}.evidence-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:9px}.evidence-search-results{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:230px;overflow:auto;border:1px solid #dce3ec;border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(16,24,40,.14)}.evidence-search-results[hidden]{display:none}.evidence-search-results>p{display:grid;place-items:center;min-height:66px;margin:0;padding:14px;color:#8b95a4;font-size:8px;text-align:center}.evidence-result{border:0;border-bottom:1px solid #edf0f4;border-radius:0}.evidence-result:last-child{border-bottom:0}.evidence-result button{color:var(--ev-blue)}.evidence-result button:disabled{border-color:transparent;background:#f2f4f7;color:#98a2b3;cursor:default}.reference-selection{margin-top:13px;padding-top:11px;border-top:1px solid #e7ebf0}.reference-selection-heading{display:flex;align-items:center;justify-content:space-between}.reference-selection-heading b{font-size:10px}.reference-selection-heading span{color:#7b8492;font-size:8px}.reference-selected{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.reference-selected>.reference-empty{grid-column:1/-1;min-height:42px;display:grid;place-items:center;margin:0;border:1px dashed #dce3ec;border-radius:8px;background:#fafbfd;color:#8b95a4;font-size:8px}.reference-chip{border:1px solid #e2e7ee;border-radius:8px}.reference-chip-icon{background:#edf8f4;color:#147a58}.evidence-search-loading{color:var(--ev-blue)!important}.evidence-search-error{color:#b42318!important}
.evidence-preview-dialog{width:min(900px,calc(100vw - 36px));padding:0;border:0;border-radius:16px;background:#fff;box-shadow:0 28px 80px rgba(16,24,40,.24);overflow:hidden}.evidence-preview-dialog::backdrop{background:rgba(16,24,40,.5);backdrop-filter:blur(3px)}.evidence-preview-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #e7eaf0}.evidence-preview-dialog header span{color:var(--ev-blue);font:700 8px ui-monospace,SFMono-Regular,Consolas;letter-spacing:.13em}.evidence-preview-dialog h2{margin:3px 0 0;font-size:17px}.evidence-preview-dialog header p{margin:3px 0 0;color:#667085;font-size:9px}.evidence-preview-dialog header button{width:34px;height:34px;border:0;border-radius:50%;background:#f2f4f7;color:#475467;font-size:21px;cursor:pointer}.evidence-preview-stage{height:min(64vh,600px);display:grid;place-items:center;background:#f2f4f7}.evidence-preview-stage img,.evidence-preview-stage video,.evidence-preview-stage iframe{width:100%;height:100%;border:0;object-fit:contain}.evidence-text-preview{width:100%;height:100%;margin:0;padding:20px;overflow:auto;background:#fff;color:#344054;white-space:pre-wrap}.evidence-preview-fallback{text-align:center}.evidence-preview-fallback i{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 12px;border-radius:15px;background:#eaf3ff;color:var(--ev-blue);font-style:normal;font-weight:700}.evidence-preview-fallback b{display:block}.evidence-preview-fallback p{margin:5px 0 0;color:#667085;font-size:10px}.evidence-preview-dialog footer{display:flex;justify-content:flex-end;padding:12px 19px;border-top:1px solid #e7eaf0}
@media(max-width:760px){.evidence-toolbar{align-items:stretch;flex-direction:column}.evidence-tabs{display:grid;grid-template-columns:1fr 1fr}.evidence-tabs button{justify-content:center;min-height:44px}.evidence-toolbar-status{justify-content:space-between}.evidence-dropzone{grid-template-columns:40px minmax(0,1fr)}.evidence-dropzone em{grid-column:1/-1;text-align:center}.evidence-file-queue,.reference-selected{grid-template-columns:1fr}.evidence-reference-layout{grid-template-columns:1fr;align-items:start}.evidence-reference-layout>small{padding:0 2px}}
@media(max-width:480px){.evidence-identity{grid-template-columns:1fr}.evidence-identity-icon{display:none}.evidence-tabs button{padding:0 7px}.evidence-file-item,.reference-chip{grid-template-columns:34px minmax(0,1fr)}.evidence-file-actions,.reference-chip-actions{grid-column:1/-1;padding-left:42px}.evidence-file-actions button,.reference-chip-actions button{min-height:36px;flex:1}.evidence-preview-dialog{width:calc(100vw - 18px)}.evidence-preview-stage{height:55vh}}
@media(prefers-reduced-motion:reduce){.evidence-tabs button,.evidence-dropzone{transition:none}}
.evidence-workspace{overflow:visible}.evidence-toolbar{justify-content:flex-start;gap:10px}.evidence-tabs{flex:0 0 auto}.evidence-reference-toolbar{display:flex;flex:1 1 390px;align-items:center;gap:10px;min-width:260px}.evidence-reference-toolbar[hidden]{display:none}.evidence-reference-toolbar .evidence-reference-picker{position:relative;flex:1 1 auto;min-width:190px;max-width:420px}.evidence-reference-toolbar>small{flex:0 1 auto;color:#7b8492;font-size:8px;line-height:1.45;white-space:nowrap}.evidence-toolbar-status{margin-left:auto;flex:0 0 auto}.evidence-search{height:38px}.evidence-search svg{flex:0 0 16px;display:block}.evidence-search input{height:100%;line-height:1}.evidence-search-results{z-index:30}.reference-selection{margin-top:0;padding-top:0;border-top:0}.evidence-pane[data-evidence-pane=reference]{padding-top:12px}
@media(max-width:1100px){.evidence-reference-toolbar>small{display:none}.evidence-reference-toolbar{flex-basis:260px}}
@media(max-width:760px){.evidence-toolbar{display:grid;grid-template-columns:1fr;padding:8px}.evidence-tabs{width:100%}.evidence-reference-toolbar{width:100%;min-width:0}.evidence-reference-toolbar .evidence-reference-picker{max-width:none}.evidence-toolbar-status{margin-left:0}.evidence-reference-toolbar>small{display:none}}
.evidence-search{position:relative;display:block;padding:0}.evidence-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:1}.evidence-search input{position:absolute;inset:0 10px 0 36px;width:auto;height:auto;margin:0;padding:0;line-height:36px;display:block}

/* 资料工具栏使用稳定的三段网格，避免按钮、检索和统计在宽屏上各自漂移。 */
.evidence-toolbar{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px;min-height:56px;padding:8px 14px}.evidence-toolbar:has(.evidence-reference-toolbar[hidden]){grid-template-columns:max-content minmax(0,1fr)}.evidence-tabs{height:40px;align-items:stretch}.evidence-tabs button{height:40px;min-height:40px;white-space:nowrap}.evidence-reference-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) max-content;align-items:center;gap:12px;min-width:0}.evidence-reference-toolbar .evidence-reference-picker{min-width:0;max-width:none}.evidence-reference-toolbar>small{white-space:nowrap}.evidence-search{height:40px}.evidence-search input{line-height:38px}.evidence-toolbar-status{height:40px;margin-left:0;justify-self:end;gap:9px}.evidence-toolbar-status>span{line-height:40px}.evidence-toolbar:has(.evidence-reference-toolbar:not([hidden])) .evidence-toolbar-status>span{display:none}.evidence-total{min-width:64px;padding:6px 9px}
@media(max-width:1100px){.evidence-toolbar{grid-template-columns:max-content minmax(0,1fr) max-content;gap:9px;padding:8px 10px}.evidence-reference-toolbar{grid-template-columns:minmax(190px,1fr)}.evidence-reference-toolbar>small{display:none}.evidence-tabs button{padding:0 10px}}
@media(max-width:760px){.evidence-toolbar,.evidence-toolbar:has(.evidence-reference-toolbar[hidden]){display:grid;grid-template-columns:1fr;padding:8px}.evidence-tabs{width:100%;height:auto}.evidence-tabs button{min-height:44px;height:44px}.evidence-reference-toolbar{width:100%;grid-template-columns:1fr}.evidence-toolbar-status{width:100%;height:auto;justify-self:stretch;justify-content:space-between}.evidence-toolbar-status>span{line-height:1.45}}
.evidence-reference-toolbar{height:40px;align-self:center}.evidence-reference-toolbar .evidence-reference-picker{height:40px}
/* 文件引用搜索框由外层绘制单一焦点状态。 */
.evidence-search input:focus-visible{outline:none;box-shadow:none}

/* Business typography: evidence upload, references and preview. */
.evidence-identity small{color:#596579;font-size:11px;line-height:1.6}
.evidence-tabs button{font-size:12px}
.evidence-toolbar-status>span{color:#596579;font-size:11px}
.evidence-total{font-size:10px}
.evidence-dropzone>span:nth-child(2) b{font-size:13px}
.evidence-dropzone>span:nth-child(2) small{color:#596579;font-size:11px;line-height:1.5}
.evidence-dropzone em{font-size:11px}
.evidence-file-type,.reference-chip-icon,.evidence-result-type{font-size:10px}
.evidence-file-copy b,.reference-chip-copy b,.evidence-result-copy b{font-size:12px}
.evidence-file-copy small,.reference-chip-copy small,.evidence-result-copy small{color:#667085;font-size:10px;line-height:1.45}
.evidence-file-actions button,.reference-chip-actions button,.evidence-result button{min-height:34px;font-size:11px}
.evidence-reference-layout>small,.evidence-reference-toolbar>small{color:#596579;font-size:10px;line-height:1.55}
.evidence-search input{font-size:12px}
.evidence-search-results>p{color:#667085;font-size:11px}
.reference-selection-heading b{font-size:12px}
.reference-selection-heading span{color:#596579;font-size:10px}
.reference-selected>.reference-empty{color:#667085;font-size:11px}
.evidence-preview-dialog header span{font-size:10px}
.evidence-preview-dialog h2{font-size:18px}
.evidence-preview-dialog header p{color:#596579;font-size:11px;line-height:1.5}
.evidence-preview-fallback p{color:#596579;font-size:11px}

@media(max-width:760px){
  .evidence-tabs button,.evidence-dropzone,.evidence-search,
  .evidence-file-actions button,.reference-chip-actions button,.evidence-result button{min-height:44px}
  .evidence-file-actions button,.reference-chip-actions button{height:44px}
  .evidence-preview-dialog header button{width:44px;height:44px}
}
