.tv-selection-bar{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:14px;padding:10px 14px;margin:8px 0;background:#e8f0f7;color:#1e4260;border:1px solid #cbddea;border-radius:12px;box-shadow:0 4px 15px #172b4410}.tv-selection-bar[hidden],.tv-selection-context[hidden]{display:none!important}.tv-selection-bar>button{border:0;background:transparent;font-size:20px;cursor:pointer}.tv-selection-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.tv-selection-actions button,.tv-selection-context button,.tv-all-projects,.tv-all-project-row button,.tv-batch-projects button{border:1px solid #cbd7e2;background:white;border-radius:8px;padding:9px 12px;color:#284965;cursor:pointer;font:inherit}.tv-selection-actions button:hover,.tv-selection-context button:hover,.tv-all-projects:hover,.tv-all-project-row button:hover,.tv-batch-projects button:hover{background:#eff5fb}.tv-selection-actions button:last-child,.tv-selection-context button:last-child{color:#a12b32}.file-row.tv-selected{background:#e2eef9!important;outline:1px solid #a6c6e6;outline-offset:-1px}.file-row{cursor:default}.file-row .file-actions{opacity:0;transition:opacity .15s}.file-row:hover .file-actions,.file-row:focus-within .file-actions,.file-row.tv-selected .file-actions{opacity:1}.tv-selection-context{position:fixed;z-index:10010;min-width:210px;display:flex;flex-direction:column;gap:3px;padding:6px;background:white;border:1px solid #cbd7e2;border-radius:12px;box-shadow:0 15px 35px #20314833}.tv-selection-context button{text-align:left;border:0}.tv-all-projects{width:100%;margin:10px 0;text-align:left}.tv-all-project-list{max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:7px}.tv-all-project-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e6ecf1;padding:6px}.tv-all-project-row button:first-child{flex:1;text-align:left}.tv-batch-projects{max-height:45vh;overflow:auto;display:flex;flex-direction:column;gap:6px}.tv-batch-projects button{text-align:left}@media(max-width:650px){.tv-selection-bar{flex-wrap:wrap}.tv-selection-actions{margin-left:0;width:100%}.tv-selection-actions button{flex:1;min-width:100px}}

.tv-permissions-modal{width:min(760px,96vw)!important;max-height:min(89vh,900px)!important}.tv-permissions-modal #dialogForm{display:flex;flex-direction:column;gap:13px}.tv-access-intro{background:#eef5fa;border-radius:12px;padding:14px 16px}.tv-access-intro strong{font-size:16px}.tv-access-intro p{margin:5px 0 0;color:#53697e;font-size:13px}.tv-access-presets{display:flex;gap:8px;flex-wrap:wrap}.tv-access-presets button{background:#fff;border:1px solid #c8d7e3;border-radius:20px;padding:9px 16px;cursor:pointer;color:#274963;font-weight:650}.tv-access-presets button:hover,.tv-access-presets button.is-selected{background:#e4f1fb;border-color:#6f9fc2}.tv-access-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tv-access-group{padding:12px;border:1px solid #dce5ee;border-radius:12px;background:#fff}.tv-access-group:first-child{grid-row:span 2}.tv-access-group-head{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.tv-access-group-head strong{font-size:14px;color:#2d4e68}.tv-access-group-head small{color:#6c8191}.tv-access-check-grid{display:grid;gap:9px}.tv-access-checkbox{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:13px!important;padding:1px!important;line-height:1.4;color:#40586e}.tv-access-checkbox input{width:17px!important;height:17px!important;flex-shrink:0;margin:0!important;accent-color:#427ba3}.tv-access-projects{border:1px solid #dce5ee;border-radius:12px;padding:14px;background:#fff}.tv-access-projects-head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.tv-access-projects-head small{color:#6c8191}.tv-access-search{position:relative;display:block!important}.tv-access-search span{position:absolute;top:50%;left:12px;transform:translateY(-50%);color:#70889b}.tv-access-search input{width:100%;padding:10px 12px 10px 32px!important;border:1px solid #c9d6e2;border-radius:9px}.tv-access-project-list{max-height:225px;overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:7px}.tv-access-project[hidden]{display:none}.tv-access-project{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 10px;background:#f7fafd;border-radius:9px}.tv-access-project>div{min-width:0;display:flex;flex-direction:column;gap:3px}.tv-access-project strong{font-size:13px;overflow-wrap:anywhere}.tv-access-project small{font-size:11px;color:#718698}.tv-access-project select{max-width:140px;min-width:120px;padding:8px!important;border:1px solid #d1dfe9;border-radius:7px;background:#fff;color:#314b63}.tv-access-footnote{font-size:12px;color:#6d8194;margin-top:11px;line-height:1.5}@media(max-width:650px){.tv-access-groups{grid-template-columns:1fr}.tv-access-group:first-child{grid-row:auto}.tv-access-project{flex-wrap:wrap}.tv-access-project select{max-width:none;width:100%}}

.file-row .file-actions{display:flex;justify-content:flex-end;align-items:center;gap:4px;min-width:156px}.tv-quick-action{border:0;background:transparent;color:#56738d;width:32px;height:32px;display:inline-grid;place-items:center;cursor:pointer;font-size:20px;border-radius:8px}.tv-quick-action:hover,.tv-quick-action:focus-visible{color:#254f73;background:#e6f1fb}.tv-quick-action.is-starred{color:#c7952a}.tv-context-trigger{flex-shrink:0}.tv-share-settings{display:grid;gap:16px}.tv-share-settings-link{display:flex;align-items:flex-end;gap:8px}.tv-share-settings-link label{flex:1;min-width:0}.tv-share-settings-link input{font-size:12px}.tv-share-security{background:#eff4fa;padding:11px 13px;border-radius:9px;color:#425e78;margin:0}.tv-share-remove-pass{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}.tv-share-remove-pass input{width:auto!important}.tv-share-settings-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}.tv-sharing-manage{border:1px solid #cbd7e2;background:white;border-radius:8px;color:#345b7a;padding:8px 13px;cursor:pointer}.tv-sharing-manage:hover{background:#ebf3fa}@media(max-width:650px){.file-row .file-actions{min-width:unset;gap:0}.tv-share-settings-link{flex-direction:column;align-items:stretch}}
.tv-quick-action svg{width:19px;height:19px;display:block;pointer-events:none}.tv-quick-action.is-starred svg{fill:#f2d77d;stroke:#a77b21}.tv-access-project select:focus,.tv-access-search input:focus{outline:2px solid #6fa4cc;outline-offset:1px}
.tv-access-advanced{border:1px solid #dce5ee;border-radius:12px;padding:11px;background:#f9fcfe}.tv-access-advanced summary{display:flex;align-items:center;gap:9px;font-weight:700;color:#2c536f;cursor:pointer;list-style:revert}.tv-access-advanced summary small{font-weight:450;color:#778da0}.tv-access-advanced[open] summary{margin-bottom:12px}.tv-access-advanced .tv-access-groups{padding-top:3px}

/* Desktop file actions — position over row content instead of the 42px actions grid cell. */
#dashboard .file-row{position:relative}
#dashboard .file-row>.file-actions{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:auto;min-width:0;display:flex;align-items:center;gap:2px;padding:3px 4px;border-radius:9px;background:linear-gradient(90deg,rgba(255,255,255,.92),#fff 16%);box-shadow:-9px 0 12px rgba(255,255,255,.85);opacity:1;z-index:4}
#dashboard .file-row>.file-actions .tv-quick-action{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(4px);transition:opacity .13s,transform .13s}
#dashboard .file-row:hover>.file-actions .tv-quick-action,
#dashboard .file-row:focus-within>.file-actions .tv-quick-action,
#dashboard .file-row.tv-selected>.file-actions .tv-quick-action{opacity:1;visibility:visible;pointer-events:auto;transform:none}
#dashboard .file-row>.file-actions .tv-context-trigger{opacity:1;visibility:visible}
#dashboard .file-row>.file-actions button{width:32px;height:32px;min-width:32px}
#dashboard .file-row:hover{z-index:5}
#dashboard .tv-selection-bar{position:sticky;top:64px;display:flex;align-items:center;gap:12px;padding:7px 13px;margin:0 0 10px;background:#eef2f6;border:1px solid #d9e2ea;border-radius:10px;min-height:49px;z-index:10;box-shadow:none;color:#2c4258}
#dashboard .tv-selection-bar[hidden]{display:none!important}
#dashboard .tv-selection-bar>strong{font-size:13px;font-weight:650;white-space:nowrap;color:#30465b}
#dashboard .tv-selection-actions{display:flex;align-items:center;gap:3px;margin-left:auto;flex-wrap:nowrap}
#dashboard .tv-selection-bar button{border:0;background:transparent;border-radius:8px;width:36px;height:35px;min-width:36px;display:inline-grid;place-items:center;color:#405363;padding:6px;margin:0;cursor:pointer}
#dashboard .tv-selection-bar button:hover,#dashboard .tv-selection-bar button:focus-visible{background:#dce6ef;color:#254a68}
#dashboard .tv-selection-bar button:disabled{opacity:.35;cursor:not-allowed}
#dashboard .tv-selection-bar .tv-selection-close{margin-right:2px}
#dashboard .tv-selection-bar button svg,.tv-selection-context svg{width:19px;height:19px;flex-shrink:0}
.tv-selection-context{min-width:225px;border:1px solid #d6e0e9;border-radius:12px;padding:6px;background:#fff;box-shadow:0 12px 35px #243a5230}
.tv-selection-context button{display:flex;align-items:center;gap:11px;border:0;width:100%;text-align:left;border-radius:7px;padding:9px 10px;font-size:13px;font-weight:500;color:#3e5164}
.tv-selection-context button:hover{background:#eaf3fa}
.tv-selection-context button[data-batch="trash"]{color:#aa383e}
.tv-selection-context button[hidden],#dashboard .tv-selection-bar button[hidden]{display:none!important}
#dashboard .tv-project-view-all>button:first-child{font-size:11px;font-weight:750;color:#4b799f}
#dashboard .tv-project-view-all .tv-project-sidebar-icon{font-size:15px}
.tv-project-directory{padding:22px 24px 28px;border:1px solid #e5ebf0;background:#fff;border-radius:16px}
.tv-directory-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
.tv-directory-top h2{margin:0 0 4px;font-size:21px;color:#2c475e}
.tv-directory-top p{margin:0;color:#8193a3;font-size:12px}
.tv-directory-top .btn{width:auto;white-space:nowrap}
.tv-directory-search{max-width:560px;margin:0 0 18px!important}
.tv-directory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tv-directory-row{display:flex;align-items:center;border:1px solid #e5edf3;border-radius:11px;background:#fff;min-width:0;transition:background .13s,border-color .13s}
.tv-directory-row:hover{background:#eef6fb;border-color:#cadfed}
.tv-directory-open{display:flex;align-items:center;gap:12px;border:0;background:transparent;min-width:0;flex:1;text-align:left;padding:11px 12px;cursor:pointer;color:#34566e}
.tv-directory-open img{width:27px;height:27px}
.tv-directory-open>span:nth-of-type(1){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.tv-directory-open strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-directory-open small{font-size:11px;color:#8497a5}
.tv-directory-current{color:#366a90}
.tv-directory-settings{border:0;background:transparent;color:#6d849a;cursor:pointer;font-size:21px;padding:9px}
.tv-directory-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:18px;font-size:12px;color:#71889b}
.tv-directory-pages div{display:flex;gap:8px}
.tv-directory-pages button{background:#fff;border:1px solid #d4e0e9;padding:8px 12px;border-radius:8px;color:#466780;cursor:pointer}
.tv-directory-pages button:disabled{opacity:.4;cursor:default}
#modalWrap .tv-move-project-picker{width:min(100%,420px);margin:auto}
#modalWrap .tv-move-project-picker>.modal-note{margin-bottom:12px}
#modalWrap .tv-move-project-picker .tv-project-search{margin-bottom:10px}
#modalWrap .tv-move-project-picker .tv-project-choices{max-height:340px;overflow:auto}
#modalWrap .tv-move-project-picker .tv-project-choices button{width:100%;margin:0;text-align:left}
#modalWrap .tv-move-project-picker .tv-project-choices img{width:23px;height:23px}
#modalWrap .tv-move-project-picker #tvBatchError{margin-top:8px}
#modalWrap .modal.tv-permissions-modal{width:min(640px,calc(100vw - 28px))!important;max-width:640px!important;max-height:min(88dvh,790px)!important;overflow-y:auto!important;padding:20px 21px!important}
#modalWrap .tv-permissions-modal .modal-head{position:sticky;top:-20px;z-index:5;background:#fff;padding:0 0 9px;margin-bottom:11px}
#modalWrap .tv-permissions-modal #dialogForm{display:flex;flex-direction:column;gap:11px;min-width:0}
#modalWrap .tv-permissions-modal #dialogForm>.btn[type=submit]{position:sticky;bottom:-20px;z-index:5;margin:0 -1px -20px;width:calc(100% + 2px)!important;min-height:43px;border-radius:9px;box-shadow:0 -8px 14px #fff;background:#355d7d}
#modalWrap .tv-member-basics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#modalWrap .tv-member-basics label{font-size:11px;display:flex;flex-direction:column;gap:5px;min-width:0}
#modalWrap .tv-member-basics label:last-child{grid-column:span 2}
#modalWrap .tv-member-basics input{width:100%;min-height:36px;padding:8px 10px;font-size:12px}
#modalWrap .tv-member-access-shell{display:flex;flex-direction:column;gap:11px;min-width:0}
#modalWrap .tv-member-access-intro{padding:9px 11px;background:#f4f8fb;border-radius:10px}
#modalWrap .tv-member-access-intro strong{font-size:13px;color:#345571}
#modalWrap .tv-member-access-intro p{margin:3px 0 0;font-size:11px;line-height:1.4;color:#6b8295}
#modalWrap .tv-access-presets{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#modalWrap .tv-access-presets button{border:1px solid #d7e2ec;border-radius:17px;padding:6px 12px;background:#fff;color:#456881;font-size:11px;font-weight:700;cursor:pointer}
#modalWrap .tv-access-presets button.is-selected,#modalWrap .tv-access-presets button:hover{background:#dcecf7;border-color:#8fb4d0}
#modalWrap .tv-access-presets span{font-size:10px;color:#8798a6;margin-left:3px}
#modalWrap .tv-perm-tabs{display:flex;gap:4px;border-bottom:1px solid #dfe8f0}
#modalWrap .tv-perm-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;color:#7f91a2;font-size:12px;font-weight:700;padding:9px 13px;cursor:pointer}
#modalWrap .tv-perm-tabs button.active{border-bottom-color:#4e89b2;color:#285977}
#modalWrap .tv-perm-panel{min-width:0;display:flex;flex-direction:column;gap:9px}
#modalWrap .tv-perm-panel.hidden{display:none!important}
#modalWrap .tv-perm-panel-head{display:flex;align-items:center;justify-content:space-between;gap:9px}
#modalWrap .tv-perm-panel-head strong{font-size:12px;color:#3b5871}
#modalWrap .tv-perm-panel-head small{font-size:11px;color:#8a9fb1}
#modalWrap .tv-perm-search{margin:0!important}
#modalWrap .tv-perm-search input{min-height:35px;font-size:12px}
#modalWrap .tv-perm-project-list{display:grid;gap:7px;min-height:155px;align-content:start}
#modalWrap .tv-perm-project-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e8eef3;border-radius:9px;padding:7px 9px;background:#fbfcfd;min-width:0}
#modalWrap .tv-perm-project-identity{display:flex;gap:8px;align-items:center;min-width:0;flex:1}
#modalWrap .tv-perm-project-identity img{width:23px;height:23px;flex-shrink:0}
#modalWrap .tv-perm-project-identity div{display:flex;flex-direction:column;gap:1px;min-width:0}
#modalWrap .tv-perm-project-identity strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3a5971}
#modalWrap .tv-perm-project-identity small{font-size:10px;color:#91a0ab}
#modalWrap .tv-perm-project-choices{display:inline-flex;align-items:center;background:#edf3f7;border:1px solid #e0e9f0;border-radius:8px;padding:3px;gap:2px;flex-shrink:0}
#modalWrap .tv-perm-project-choices button{border:0;border-radius:6px;background:transparent;color:#728699;padding:6px 8px;font-size:11px;font-weight:650;cursor:pointer;white-space:nowrap}
#modalWrap .tv-perm-project-choices button.active{background:#fff;color:#295879;box-shadow:0 1px 4px #2b4e6a1e}
#modalWrap .tv-perm-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8397a7;font-size:11px}
#modalWrap .tv-perm-pages>div{display:flex;gap:7px}
#modalWrap .tv-perm-pages button{border:1px solid #dce6ed;background:white;color:#496e89;border-radius:7px;padding:6px 10px;font-size:11px;cursor:pointer}
#modalWrap .tv-perm-pages button:disabled{opacity:.45;cursor:default}
#modalWrap .tv-access-footnote{color:#879bac;font-size:10px;line-height:1.45;margin:3px 0 0}
#modalWrap .tv-perm-group{border:1px solid #e4ebf1;padding:10px 11px;border-radius:9px;background:#fff}
#modalWrap .tv-perm-group header{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
#modalWrap .tv-perm-group header strong{font-size:12px;color:#365c7a}
#modalWrap .tv-perm-group header small{font-size:10px;color:#90a0ac}
#modalWrap .tv-perm-switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#modalWrap .tv-perm-switch{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px;border-radius:7px;padding:7px 9px!important;background:#f6f9fb;font-size:11px!important;min-width:0;cursor:pointer}
#modalWrap .tv-perm-switch span{font-size:11px;font-weight:650;color:#536c80;line-height:1.3}
#modalWrap .tv-perm-switch input{appearance:none;position:absolute;width:1px!important;height:1px!important;opacity:0;overflow:hidden}
#modalWrap .tv-perm-switch i{display:block;position:relative;width:32px;height:18px;border-radius:99px;background:#becbd5;flex-shrink:0;transition:background .13s}
#modalWrap .tv-perm-switch i:after{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .13s}
#modalWrap .tv-perm-switch input:checked+i{background:#4d88b3}
#modalWrap .tv-perm-switch input:checked+i:after{transform:translateX(14px)}
#modalWrap .tv-perm-switch:has(input:focus-visible){outline:2px solid #6aabce}
@media(max-width:680px){
 #dashboard .tv-selection-bar{top:54px;gap:6px;padding:6px 8px}
 #dashboard .tv-selection-actions{gap:0}
 #dashboard .tv-selection-bar button{width:31px;min-width:31px;height:33px;padding:5px}
 #dashboard .tv-selection-bar>strong{font-size:11px}
 .tv-directory-list{grid-template-columns:1fr}
 .tv-project-directory{padding:14px}
 #modalWrap .tv-member-basics{grid-template-columns:1fr}
 #modalWrap .tv-member-basics label:last-child{grid-column:auto}
 #modalWrap .tv-perm-project-row{flex-wrap:wrap}
 #modalWrap .tv-perm-project-choices{width:100%;display:flex}
 #modalWrap .tv-perm-project-choices button{flex:1}
 #modalWrap .tv-perm-switch-grid{grid-template-columns:1fr}
 #modalWrap .modal.tv-permissions-modal{padding:15px!important}
}

#modalWrap .tv-share-password-input{display:flex;align-items:center;gap:7px}#modalWrap .tv-share-password-input input{min-width:0;flex:1}#modalWrap .tv-share-password-input button{width:auto;min-width:60px;background:#eef4f9;border:1px solid #d2e0eb;border-radius:8px;padding:9px 11px;color:#376484;cursor:pointer}#modalWrap .tv-sharing-manage{margin:0 3px}

/* Move-to-project list mirrors the My Vault project switcher. */
#modalWrap .tv-move-project-picker .tv-project-search{display:flex;align-items:center;gap:8px;background:#edf4f9;border:1px solid #dfeaf3;border-radius:9px;padding:0 10px;color:#7897ae}
#modalWrap .tv-move-project-picker .tv-project-search input{width:100%;min-height:38px;border:0;background:transparent;box-shadow:none;color:#344d61;font-size:12px;outline:none;padding:5px 2px}
#modalWrap .tv-move-project-picker .tv-project-choices{display:grid;gap:3px;padding:6px 0;max-height:340px;overflow:auto}
#modalWrap .tv-move-project-picker .tv-project-choices button{border:0;background:transparent;display:flex;align-items:center;text-align:left;gap:10px;width:100%;padding:9px 7px;border-radius:8px;cursor:pointer;color:#3e627c}
#modalWrap .tv-move-project-picker .tv-project-choices button:hover{background:#ebf4fa}
#modalWrap .tv-move-project-picker .tv-project-choices button>img{width:25px;height:24px;object-fit:contain}
#modalWrap .tv-move-project-picker .tv-project-choices button>span:nth-child(2){flex:1;display:grid;gap:3px;min-width:0}
#modalWrap .tv-move-project-picker .tv-project-choices button strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}
#modalWrap .tv-move-project-picker .tv-project-choices button small{font-size:10px;color:#8da3b1}
#modalWrap .tv-move-project-picker .tv-project-choices .tv-project-none{padding:15px;text-align:center;color:#7b91a3}
