.tags-workspace { position:fixed; inset:8px 8px 8px calc(var(--application-nav-width, 200px) + 8px); width:auto; max-width:none; height:auto; max-height:none; margin:0; padding:0; border:1px solid #c6d3e2; border-radius:4px; background:#fff; color:#172c46; font:14px Arial,sans-serif; overflow:hidden; }
.tags-workspace[open] { display:flex; flex-direction:column; }
.tags-workspace * { box-sizing:border-box; letter-spacing:0; }
.tags-workspace [hidden] { display:none!important; }
.tags-workspace h2,.tags-workspace h3,.tags-workspace h4 { margin:0; }
.tags-workspace h2 { font-size:22px; }
.tags-workspace h3 { font-size:16px; }
.tags-workspace h4 { font-size:14px; margin:10px 0; }
.tags-workspace button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:6px 9px; border:1px solid #bacbdf; border-radius:4px; background:white; color:#174774; font:inherit; min-height:32px; cursor:pointer; }
.tags-workspace button:hover { background:#edf5ff; }
.tags-workspace button.primary { background:#1265d9; color:white; border-color:#1265d9; }
.tags-workspace button:disabled { opacity:.5; cursor:default; }
.tags-workspace svg { width:16px; height:16px; flex:0 0 16px; }
.tags-workspace input:not([type=checkbox]):not([type=radio]),.tags-workspace textarea,.tags-workspace select { font:inherit; width:100%; min-width:0; border:1px solid #bbcade; border-radius:4px; padding:7px 8px; color:#173354; background:white; }
.tags-workspace label { display:grid; gap:5px; font-size:12px; min-width:0; }
.tags-workspace input[type=checkbox],.tags-workspace input[type=radio] { accent-color:#1265d9; }
.tags-workspace :focus-visible { outline:2px solid #1265d9; outline-offset:1px; }
.tw-header,.tw-controls,.tw-chips { flex-shrink:0; padding:12px 14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; border-bottom:1px solid #d7e2ee; }
.tw-header output { margin-left:auto; color:#197554; font-size:12px; }
.tw-header output.failed { color:#ae2435; }
.tw-controls { background:#f7f9fc; }
.tw-controls .tw-search { display:flex; align-items:center; flex:1; min-width:180px; }
.tw-match { display:flex; gap:12px; margin-left:auto; }
.tw-match label,.tags-workspace .tw-check { display:flex; align-items:center; gap:6px; }
.tw-controls>label:last-child { min-width:160px; }
.tw-chips { padding:6px 14px; min-height:12px; }
.tw-chips .filter-chip { background:#eaf2ff; border-color:#afcafa; min-height:28px; font-size:12px; }
.tw-filter-fields { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:12px; padding:10px 14px; border-bottom:1px solid #d7e2ee; }
.tw-body { display:grid; grid-template-columns:250px minmax(340px,1fr) minmax(300px,360px); grid-template-rows:minmax(0,1fr); flex:1; min-height:0; overflow:hidden; }
.tw-tree { display:flex; flex-direction:column; min-height:0; border-right:1px solid #d7e2ee; overflow:hidden; background:#f7f9fc; }
.tw-tree-tools { flex:0 0 auto; display:grid; gap:10px; padding:12px 12px 9px; border-bottom:1px solid #d7e2ee; background:#f7f9fc; }
.tw-tree-tools>header { display:grid; gap:10px; }
.tw-tree .tw-archived { display:flex; align-items:center; }
.tw-tree-scroll { flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; padding:6px 8px 12px 12px; overscroll-behavior:contain; scrollbar-gutter:stable; scrollbar-color:#8298b1 #e8eef5; scrollbar-width:auto; }
.tw-tree-scroll::-webkit-scrollbar { width:13px; }
.tw-tree-scroll::-webkit-scrollbar-track { background:#e8eef5; }
.tw-tree-scroll::-webkit-scrollbar-thumb { background:#8298b1; border:3px solid #e8eef5; border-radius:7px; }
.tw-tree-scroll::-webkit-scrollbar-thumb:hover { background:#607b98; }
.tw-tree ul { list-style:none; padding:0; margin:0; }
.tw-tree ul ul { padding-left:15px; }
.tw-tree-row { display:flex; align-items:center; gap:3px; min-height:34px; }
.tw-tree-row button { border:0; padding:2px; min-height:24px; width:20px; flex:0 0 20px; }
.tw-tree-spacer { width:20px; flex:0 0 20px; }
.tw-tree-row label { display:flex; align-items:center; flex:1; font-size:12px; overflow-wrap:anywhere; }
.tw-tree-row label svg { width:13px; height:13px; color:#567b9d; }
.tw-tree-row small { font-size:11px; color:#61768b; padding-left:4px; }
.tw-results { min-width:0; display:flex; flex-direction:column; }
.tw-results>header,.tw-results>footer { padding:10px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tw-results>footer { border-top:1px solid #d7e2ee; justify-content:flex-end; font-size:12px; }
.tw-results>footer>span:first-child { margin-right:auto; }
.tw-results>footer select { width:70px; }
.tw-table-scroll { overflow:auto; flex:1; }
.tw-results table { width:100%; min-width:780px; border-collapse:collapse; font-size:12px; }
.tw-results td:first-child { min-width:90px; overflow-wrap:normal; }
.tw-results td:last-child { min-width:90px; }
.tw-results th { position:sticky; top:0; background:#edf2f8; color:#274463; text-align:left; font-size:11px; padding:9px 7px; z-index:1; }
.tw-results td { padding:9px 7px; border-bottom:1px solid #e0e7ef; vertical-align:top; overflow-wrap:anywhere; }
.tw-results td:nth-child(2) { min-width:160px; max-width:300px; }
.tw-results td:nth-child(3) { white-space:nowrap; }
.tw-results td button { text-align:left; border:0; background:none; padding:0; min-height:0; justify-content:flex-start; font-size:12px; color:inherit; }
.tw-results td small { display:block; color:#687b90; margin-top:4px; }
.tw-results tr[aria-selected=true] { background:#eaf3ff; }
.tw-results tr:hover { background:#f1f6fb; }
.tw-tag { display:inline-flex; align-items:center; gap:3px; padding:3px 5px; margin:2px; background:#eaf0f7; color:#32516f; border-radius:3px; font-size:11px; overflow-wrap:anywhere; }
.tw-tag.matched { background:#ddedff; color:#0e52a5; }
.tw-tag button { min-height:18px; padding:0; border:0; background:none; }
.tw-proof { color:#2c7257; font-size:11px; }
.tw-detail { padding:14px; overflow:auto; border-left:1px solid #c9d8e7; min-width:0; }
.tw-detail>header { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:18px; }
.tw-detail h3 { overflow-wrap:anywhere; }
.tw-detail small { color:#59728d; display:block; margin-bottom:6px; }
.tw-detail form>fieldset,.tw-manager form>fieldset { border:0; padding:0; margin:0; min-width:0; }
.tw-detail label { margin-bottom:12px; font-weight:600; }
.tw-detail fieldset fieldset { border:1px solid #d7e2ee; max-height:180px; overflow:auto; margin-bottom:12px; }
.tw-detail .tw-check { font-weight:400; margin-bottom:6px; }
.tw-detail section,.tw-detail details { margin-top:18px; border-top:1px solid #d7e2ee; padding-top:12px; }
.tw-detail section>button { margin:4px 0; max-width:100%; text-align:left; }
.tw-detail dd { margin:4px 0 12px; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.tw-detail dt { font-size:11px; font-weight:bold; color:#59728d; }
.tw-detail .lcw-file-viewer { width:100%; }
.tw-detail iframe,.tw-detail img { max-width:100%; }
.tw-detail-tags { border-top:1px solid #d7e2ee; padding-top:6px; }
.tw-detail-tags .event-tag-row,.tw-detail-tags .add-tag-row { display:flex; align-items:center; gap:8px; margin:6px 0; }
.tw-detail-tags .event-tag-row>span,.tw-detail-tags .add-tag-row>select { flex:1; min-width:0; }
.tw-detail-tags button { flex-shrink:0; }
.tw-manager { width:480px; max-width:calc(100% - 24px); max-height:90dvh; border:1px solid #a8bbd2; border-radius:6px; padding:20px; color:inherit; }
.tw-manager::backdrop { background:rgb(22 36 54 / 30%); }
.tw-manager header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.tw-manager label { margin-bottom:12px; }
.tw-manager output { display:block; color:#ae2435; margin-top:10px; }
.tags-workspace .tw-embedded.points-workspace { position:relative; inset:auto; width:100%; height:auto; margin:12px 0; max-width:none; max-height:none; overflow:visible; border:0; padding:0; }
.tw-embedded .pw-header,.tw-embedded .pw-list,.tw-embedded .pw-toolbar>*:not([data-status]) { display:none; }
.tw-embedded .pw-toolbar { padding:6px 0; }
.tw-embedded .pw-body { display:block; overflow:visible; }
.tw-embedded .pw-editor { padding:0; overflow:visible; }
.tw-embedded .pw-editor-header [data-action=native] { display:none; }
.tw-detail .dw-person-editor { display:block; padding:0; border:0; background:none; }
.tw-detail .person-foundation-grid,.tw-detail .person-contact-grid { display:block; }
.tw-people-picker { margin-bottom:16px; }
.tw-person-result,.tw-native-event .event-person-search-result { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px solid #e0e7ef; }
.tw-person-result span,.tw-native-event .event-person-search-result span { min-width:0; overflow-wrap:anywhere; }
.tw-person-result button,.tw-native-event .event-person-search-result button { flex-shrink:0; }
.tw-native-event #comparisonEventEditBody { padding:0; overflow:visible; max-height:none; }
.tw-native-event .edit-form { padding:0; gap:12px; min-width:0; }
.tw-native-event .edit-topbar { position:sticky; top:-14px; z-index:3; background:white; margin:0 -2px; padding:10px 2px; border-bottom:1px solid #c9d8e7; flex-wrap:wrap; gap:8px; }
.tw-native-event .edit-topbar h2 { font-size:18px; }
.tw-native-event .edit-top-actions { flex-wrap:wrap; gap:4px; }
.tw-native-event .edit-grid,.tw-native-event .three-column-grid { grid-template-columns:minmax(0,1fr); }
.tw-native-event .add-person-row,.tw-native-event .add-tag-row,.tw-native-event .add-document-row { display:flex; flex-wrap:wrap; gap:6px; }
.tw-native-event .add-person-row>input,.tw-native-event .add-person-row>select,.tw-native-event .add-tag-row>select { flex:1; min-width:150px; }
.tw-native-event .event-person-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.tw-native-event .event-person-row>span { grid-column:1; grid-row:1; min-width:0; overflow-wrap:anywhere; }
.tw-native-event .event-person-row>.event-person-role { grid-column:1 / -1; grid-row:2; }
.tw-native-event .event-person-row>[data-remove-event-person] { grid-column:2; grid-row:1; align-self:center; }
.tw-native-event .event-person-row select { width:100%; }
.tw-native-event .checkbox-row { display:flex; align-items:center; gap:6px; }
.tw-native-event .event-edit-section-heading { flex-wrap:wrap; }
.tw-native-event .event-edit-section-heading h3 { font-size:15px; }
.tw-native-event .event-id-pill { overflow-wrap:anywhere; }
.tw-native-event input[type=file] { font-size:12px; }
.tw-native-event .event-tag-list,.tw-native-event .event-document-list { overflow-wrap:anywhere; }
.tw-native-event .event-person-search-result svg { stroke:currentColor; fill:none; }
.tw-native-file #fileEditPanel { display:block; width:100%; min-width:0; max-width:none; padding:0; border:0; overflow:visible; max-height:none; background:white; }
.tw-native-file .file-edit-grid,.tw-native-file .file-edit-grid.compact { grid-template-columns:minmax(0,1fr); }
.tw-native-file .file-edit-header { position:static; display:flex; flex-wrap:wrap; gap:10px; padding:0 0 10px; }
.tw-native-file .file-edit-header-copy { flex:1 1 180px; min-width:0; }
.tw-native-file .file-edit-toolbar { display:flex; flex-wrap:wrap; gap:4px; }
.tw-native-file .file-edit-file-name { overflow-wrap:anywhere; }
.tw-native-file .file-edit-secondary-actions { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
.tw-native-file .add-person-row,.tw-native-file .add-tag-row { display:flex; flex-wrap:wrap; gap:6px; }
.tw-native-file .add-person-row>input,.tw-native-file .add-person-row>select,.tw-native-file .add-tag-row>select { flex:1; min-width:160px; }
.tw-native-file .event-person-row,.tw-native-file .event-tag-row,.tw-native-file .event-person-search-result { display:flex; align-items:center; gap:8px; padding:6px 0; }
.tw-native-file .event-person-row>span,.tw-native-file .event-tag-row>span,.tw-native-file .event-person-search-result>span { flex:1; min-width:0; overflow-wrap:anywhere; }
.tw-native-file .event-person-row>button,.tw-native-file .event-tag-row>button,.tw-native-file .event-person-search-result>button { flex-shrink:0; }
.tw-native-file .file-attach-table-wrap { overflow:auto; max-width:100%; }
.tw-native-file .file-event-filter-grid { grid-template-columns:minmax(0,1fr); }
.tw-native-file .file-related-event-card { display:flex; flex-wrap:wrap; min-width:0; }
.tw-native-file .file-related-event-open { display:block; text-align:left; min-width:0; }
.tw-native-file .file-edit-checks label { display:flex; align-items:center; gap:6px; }
.tw-native-file .file-inline-preview { max-width:100%; }
.tw-native-file [data-tags-file-status] { display:block; margin:8px 0; font-size:12px; color:#197554; }
.tw-native-file [data-tags-file-status].error-text { color:#ae2435; }
.tw-native-file button svg { stroke:currentColor; fill:none; }
.tags-workspace .tw-embedded-discovery.documents-discovery-workspace { position:relative; inset:auto; width:100%; height:auto; margin:12px 0; max-width:none; max-height:none; overflow:visible; border:0; padding:0; }
.tw-embedded-discovery .dd-top,.tw-embedded-discovery .dd-library,.tw-embedded-discovery .dd-main { display:none; }
.tw-embedded-discovery .dd-layout { display:block; height:auto; }
.tw-embedded-discovery .dd-detail { padding:0; overflow:visible; }
@media(min-width:1800px) { .tw-body { grid-template-columns:280px minmax(480px,1fr) 420px; } }
@media(max-width:1150px) { .tw-body { grid-template-columns:200px minmax(240px,1fr) 300px; } .tw-match { margin-left:0; } }
@media(max-width:850px) { .tw-body { display:block; overflow:auto; } .tw-tree { height:260px; max-height:260px; border-bottom:1px solid #d7e2ee; } .tw-results { min-height:320px; max-height:600px; } .tw-detail { border-top:1px solid #c9d8e7; } .tw-filter-fields { grid-template-columns:repeat(2,minmax(100px,1fr)); } .tw-header { padding:8px; } .tw-header output { max-width:200px; } }
