.room-directory-card{padding:0;display:flex;align-items:center;cursor:default}
.room-card-open{border:0;background:transparent;font:inherit;color:inherit;display:flex;gap:14px;align-items:center;text-align:left;flex:1;min-width:0;padding:18px;cursor:pointer}
.room-card-open>.icon{width:16px;flex-shrink:0;color:#7d8490}
.room-card-controls{display:flex;gap:12px;padding:0 18px}
.danger-text{color:#b42335!important}
#room-file-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#room-file-actions[hidden]{display:none}
#folder-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:4px 0 18px;color:#8b8b98}
#folder-breadcrumbs:empty,#room-folders:empty{display:none}
#folder-breadcrumbs .text-button{font-size:13px;overflow-wrap:anywhere;text-align:left}
#room-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-bottom:22px}
.room-folder{display:flex;align-items:center;gap:8px;min-width:0;background:white;border:1px solid #e4e5ec;border-radius:8px;padding:12px}
.folder-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;font-size:14px;font-weight:600;color:#292c34;padding:6px 0}
.folder-open span{overflow-wrap:anywhere}.folder-open .icon{color:#2563eb;flex-shrink:0}
.room-folder>div{display:flex;gap:8px}.room-folder .text-button,.room-card-controls .text-button{font-size:12px}
.file-extension-note{color:#777d89;margin-top:-10px}
.workspace-readonly [data-room-write]{display:none!important}
@media(max-width:650px){.room-directory-card{align-items:stretch;flex-direction:column}.room-card-controls{padding:0 18px 14px;justify-content:flex-end}.heading-actions{flex-wrap:wrap}#room-file-actions{justify-content:flex-start}#room-folders{grid-template-columns:1fr}}
/* Match the CRM table header to the portal's black navigation and stage headers. */
.crm-table thead th{background:#111!important;color:#fff!important;border-bottom-color:#111!important}
.stage-pill{background:#eeeef1!important;color:#656873!important}
.stage-pill:before{background:#868994!important}
.investor-logo,.investor-profile-avatar,.kanban-card .investor-logo{background:#eeeef1!important;color:#656873!important;overflow:hidden;flex-shrink:0}
.investor-logo img,.investor-profile-avatar img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.investor-logo-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.investor-logo-controls button{font-size:12px}
.room-tabs{overflow-x:auto;max-width:100%;flex-shrink:1}
.room-tabs button{white-space:nowrap}
.room-tabs #add-room-category{display:grid;place-items:center;align-self:stretch;min-width:42px;background:#111;color:white;font-size:25px;font-weight:400;border:0;border-radius:0 6px 6px 0;padding:0 12px;flex-shrink:0}
.room-tabs #add-room-category:hover{background:#292929}
.room-tabs #add-room-category:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.file-row>*,.file-name,.file-name>span:last-child{min-width:0}
.file-name>span:last-child{overflow:hidden;flex:1}
.file-list-name{display:flex!important;max-width:100%;min-width:0;white-space:nowrap}
.file-list-name>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-list-name .file-name-extension{flex-shrink:0}
.file-row .file-name{overflow:hidden;padding-right:18px}
/* Investor edits use the same centered dialog surface as the other forms. */
#modal-card:has(.investor-edit-form){width:min(760px,100%)}
#modal-card .investor-edit-form{gap:20px}
#modal-card .investor-form-group{display:grid;gap:14px}
#modal-card .investor-form-group h3{margin:0;font-size:11px;letter-spacing:.09em;text-transform:uppercase}
#modal-card .investor-edit-form .modal-actions{position:sticky;bottom:-25px;background:#fff;padding:16px 0 8px;border-top:1px solid #eeeef2;z-index:2}
#modal-card .investor-file-options{max-height:170px;overflow:auto}
@media(max-width:550px){#modal-card .investor-edit-form .form-row{grid-template-columns:1fr}}
.files-head{background:#111!important;color:#fff!important;border-bottom-color:#111!important}
.file-icon.type-icon{width:34px;height:40px;padding:4px;border-radius:6px;background:var(--file-tint)!important;color:var(--file-color)!important}
.file-icon.type-icon svg{display:block;width:27px;height:32px;flex:none}
.type-pdf{--file-color:#c94643;--file-tint:#fff0ef}
.type-excel{--file-color:#287b50;--file-tint:#edf7f0}
.type-csv{--file-color:#278486;--file-tint:#ebf7f7}
.type-word{--file-color:#3167bd;--file-tint:#edf3ff}
.type-powerpoint{--file-color:#c56737;--file-tint:#fff1e9}
.type-image{--file-color:#8763af;--file-tint:#f3eef9}
.type-audio{--file-color:#ac4f7a;--file-tint:#fbeef4}
.type-video{--file-color:#4c65a6;--file-tint:#eef1fb}
.type-text,.type-archive,.type-generic{--file-color:#6d7686;--file-tint:#f0f2f5}
.file-category-picker{min-width:0;margin:0;padding:14px;border:1px solid #e2e3eb;border-radius:7px}
.file-category-picker legend{padding:0 5px;font-size:13px;font-weight:600;color:#4f5361}
.file-category-picker p{margin:0 0 12px;font-size:12px;color:#777d89}
.file-category-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.file-category-picker label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e7e8ee;border-radius:5px;background:#fff;cursor:pointer;font-size:13px!important}
.file-category-picker label:has(input:checked){background:#edf3ff;border-color:#c8d8fb;color:#1e4ca8}
.file-category-picker input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;padding:0;flex:none;accent-color:#2563eb}
.file-category-picker label span{overflow-wrap:anywhere;min-width:0}
.file-category{overflow-wrap:anywhere}
@media(max-width:450px){.file-category-picker>div{grid-template-columns:1fr}}
.access-row-actions{display:flex!important;flex:0!important;flex-direction:row;gap:12px}
.access-person>div:first-child{min-width:0}.access-person strong,.access-person small{overflow-wrap:anywhere}
.access-share-heading{margin-bottom:16px}.inherited-access{background:#f7f8fa}
.access-check{display:flex!important;align-items:center;gap:9px!important}
.access-check input{width:16px!important;height:16px!important;min-height:0!important;flex:none;accent-color:#2563eb}
.room-guest .main-nav [data-nav]:not([data-nav="room"]),.room-guest #notification-button{display:none}
.room-guest #workspace-link{display:none}
#modal-card:has(#manage-room-access),#modal-card:has(#manage-workspace-access){width:min(650px,100%)}
#manage-room-access h3,#manage-workspace-access h3{margin:8px 0 0;font-size:15px}
#manage-room-access .modal-actions,#manage-workspace-access .modal-actions{position:sticky;bottom:-25px;background:#fff;padding:14px 0 8px;border-top:1px solid #eeeef2;z-index:2}
#room-folder-choices[hidden]{display:none}
