/* Source tools wrap within their pane; long filing titles remain readable. */
.v85-dialog .v85-workspace-tools{flex-wrap:wrap;min-width:0}
.v85-dialog .v85-source-zoom{flex-wrap:wrap;max-width:100%}
.v85-dialog .v73-source-viewer{min-width:0;overflow:hidden}
.v85-dialog .v93-source-actions{min-width:0}
.v85-dialog .v93-source-actions .v77-source-link{overflow-wrap:anywhere;white-space:normal;line-height:1.35}
.v85-dialog .v81-source-search{display:flex;flex-wrap:wrap;min-width:0}
.v85-dialog .v81-source-search input[type=search]{flex:1 1 180px;min-width:0;width:auto}
.v85-dialog .v81-source-search-status{flex:1 0 100%}
.v85-dialog .v72-body[data-v85-mode=summary] .v72-details{display:block;overflow:auto}
.v97-selection-card{border:1px solid #b8ccdf;border-radius:7px;background:#fff;padding:12px;margin:12px 0;color:#183a61;overflow-wrap:anywhere}
.v97-selection-card h4{margin:0 0 5px;font-size:14px}
.v97-selection-card p,.v97-summary-note,.v97-summary-status{font-size:12px;line-height:1.45;margin:6px 0}
.v97-copy-row{display:flex;align-items:flex-end;gap:8px;margin:7px 0}
.v97-copy-field{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:12px;font-weight:600}
.v97-copy-field input{width:100%;min-width:0;box-sizing:border-box;font-family:Consolas,monospace;background:#fff;color:#183a61}
.v97-copy-row button{flex:none;width:auto}
.v97-summary-group{margin:12px 0}
.v97-summary-group>summary{font-weight:600;cursor:pointer;line-height:1.4}
.v97-summary-scroll{overflow:auto;max-height:420px;border:1px solid #c6d5e3;margin:7px 0}
.v97-summary-table{border-collapse:collapse;width:100%;font-size:12px;background:#fff;color:#183a61;table-layout:fixed}
.v97-summary-table th,.v97-summary-table td{padding:8px;border:1px solid #d2dfea;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.v97-summary-table th{position:sticky;top:0;background:#eaf2fa;z-index:1}
.v97-summary-table th:first-child{width:60px}.v97-summary-table th:last-child{width:65px}
.v97-summary-table button{font-size:12px;padding:3px 6px;width:auto}
.v97-history-overlay{position:fixed;inset:0;z-index:2147483005;display:flex;align-items:center;justify-content:center;background:#10233c88;padding:16px;color:#183a61}
.v97-history-dialog{position:relative;width:min(1200px,100%);max-height:92dvh;overflow:auto;background:#f7faff;border-radius:10px;padding:20px;box-sizing:border-box}
.v97-history-dialog h3{margin:0 110px 15px 0;font-size:18px;color:#183a61}
.v97-history-dialog>button{position:absolute;right:18px;top:14px;width:auto}
.v97-history-dialog details>summary{cursor:pointer;line-height:1.5}
.v97-history-dialog input{background:#fff;color:#183a61;border:1px solid #a9bed2;border-radius:5px;padding:8px}
.v97-history-dialog button{background:#174c79;color:#fff;border:1px solid #174c79;border-radius:5px;padding:7px 10px;cursor:pointer}
#secWorkspace #v97-statement-sources{max-width:920px;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:12px;margin:12px 0;background:var(--panel);color:var(--text)}
#v97-statement-sources h3{margin:0 0 6px;color:var(--amber);font-size:14px}
#v97-statement-sources select{max-width:320px;color:var(--text);border:1px solid var(--border)}
#v97-statement-sources .fieldHelp{color:#c8b8da;font-size:11px;line-height:1.45;margin:6px 0}
.v97-recent-statements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.v97-statement-card{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--border);border-radius:5px;padding:8px;background:var(--panel2);color:var(--text);cursor:pointer;min-width:0;margin:0}
.v97-statement-card:has(input:checked){border-color:var(--amber);box-shadow:inset 3px 0 var(--amber)}
.v97-statement-card:focus-within{outline:2px solid var(--amber);outline-offset:2px}
.v97-statement-card input{flex:none;width:16px;height:16px;margin:2px 0}
.v97-statement-card span{min-width:0}.v97-statement-card strong,.v97-statement-card small{display:block;overflow-wrap:anywhere}
.v97-statement-card small{font-size:11px;margin-top:3px;color:#c8b8da;line-height:1.4}
#v97-saved-selections{width:auto;margin:2px 0;padding:6px 10px;font-size:11px}
@media(max-width:650px){.v97-recent-statements{grid-template-columns:1fr}.v97-copy-row{align-items:stretch;flex-direction:column}.v97-summary-table{min-width:550px}.v97-history-overlay{padding:5px}.v97-history-dialog{padding:12px}}
