/* TurboVault file manager, sharing, and project navigation refinements. */

/* Compact file and folder share controls */
#dashboard .tv-sharing-item{display:flex;align-items:center;gap:12px;min-height:75px;padding:12px 14px;flex-wrap:wrap}
#dashboard .tv-sharing-item-detail{flex:1;min-width:150px}
#dashboard .tv-sharing-item-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-height:35px;flex-direction:row!important;flex-wrap:nowrap;margin-left:auto}
#dashboard .tv-sharing-item-actions>.tv-sharing-status{margin-right:8px}
#dashboard .tv-share-copy-mini,#dashboard .tv-share-menu-mini{width:34px;height:34px;min-width:34px;display:inline-flex;justify-content:center;align-items:center;border:1px solid transparent!important;border-radius:8px;background:transparent!important;color:#57758f!important;cursor:pointer;font-size:21px;box-shadow:none!important}
#dashboard .tv-share-copy-mini:hover,#dashboard .tv-share-menu-mini:hover{background:#ecf4f9!important;border-color:#d9e7ef!important;color:#285575!important}
.tv-share-action-menu,.tv-project-actions-menu{position:fixed;z-index:10030;min-width:185px;background:#fff;border:1px solid #d7e3eb;padding:5px;border-radius:11px;box-shadow:0 15px 40px #1f334d27;display:grid;gap:2px}
.tv-share-action-menu button,.tv-project-actions-menu button{border:0!important;background:transparent;color:#38536b;font-size:12px;font-weight:600;min-height:35px;text-align:left;padding:9px 12px;border-radius:7px;cursor:pointer}
.tv-project-actions-menu button{display:flex;align-items:center;gap:11px}
.tv-share-action-menu button:hover,.tv-project-actions-menu button:hover{background:#edf5fa}
.tv-share-action-menu button.danger,.tv-project-actions-menu button.danger{color:#a23f46}

/* Consistent small modal — no squeezed labels or persistent loading state. */
#modalWrap .modal:has(.tv-share-manager){width:min(540px,calc(100vw - 28px))!important;max-height:86dvh;overflow-y:auto;padding:23px!important}
#modalWrap .tv-share-manager{width:100%;min-width:0;display:grid;gap:17px}
#modalWrap .tv-share-manager-heading{display:grid;gap:3px}
#modalWrap .tv-share-manager-heading strong{font-size:13px;color:#354d62}
#modalWrap .tv-share-manager-heading>span{font-size:11px;color:#8394a4}
#modalWrap .tv-share-link-box{display:flex;align-items:center;border:1px solid #d9e4ec;background:#f6f9fb;border-radius:10px;min-height:42px;overflow:hidden}
#modalWrap .tv-share-link-box input{flex:1;min-width:0!important;width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:11px 12px!important;color:#44657c;white-space:nowrap;text-overflow:ellipsis;font-size:12px!important}
#modalWrap .tv-share-copy-button{display:inline-flex;align-items:center;gap:6px;min-height:37px;white-space:nowrap;flex-shrink:0;border:0;border-left:1px solid #dfe8ee;background:#f1f7fb;color:#376787;padding:8px 11px;cursor:pointer;font-size:12px;font-weight:700}
#modalWrap .tv-share-copy-button svg{height:16px;width:16px}
#modalWrap .tv-share-copy-button:hover{background:#dfedf8}
#modalWrap .tv-share-copy-button:disabled{opacity:.5;cursor:not-allowed}
#modalWrap .tv-share-old-notice{margin:0;padding:10px 11px;background:#fff7ea;color:#805b31;border:1px solid #f0dfbd;border-radius:9px;font-size:12px;line-height:1.5}
#modalWrap .tv-share-settings{display:grid;gap:15px}
#modalWrap .tv-share-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#modalWrap .tv-share-settings-grid:has(>label:only-child){grid-template-columns:1fr}
#modalWrap .tv-share-settings-grid label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:650;color:#526f84}
#modalWrap .tv-share-settings-grid select,#modalWrap .tv-share-settings-grid input{max-width:100%;width:100%;padding:9px 10px;border-radius:8px;border:1px solid #d7e3ed;background:#fff}
#modalWrap .tv-share-settings-grid small{font-size:10px;color:#8196a7}
#modalWrap .tv-share-manager-password{background:#f7fafd;border:1px solid #e5edf3;border-radius:11px;padding:12px;display:grid;gap:10px}
#modalWrap .tv-share-manager-password strong{font-size:12px;color:#3d5f78}
#modalWrap .tv-share-manager-password p{font-size:11px;color:#8094a5;line-height:1.5;margin:3px 0 0}
#modalWrap .tv-password-inline{display:flex;align-items:center;gap:6px}
#modalWrap .tv-password-inline input{min-width:0!important;width:100%!important;flex:1;padding:10px!important;border:1px solid #d6e3ed!important;border-radius:8px!important;font-size:12px!important}
#modalWrap .tv-password-inline button{background:#ecf4fa;border:1px solid #d5e3ed;padding:9px 11px;border-radius:8px;font-weight:650;color:#38627f;cursor:pointer}
#modalWrap .tv-share-remove-label{display:flex!important;align-items:center;flex-direction:row!important;gap:9px;font-size:12px!important}
#modalWrap .tv-share-remove-label input{height:15px!important;width:15px!important}
#modalWrap .tv-share-manager-footer{display:flex;gap:9px;justify-content:flex-end}
#modalWrap .tv-share-manager-footer .btn{width:auto;flex:1;min-height:41px}
#modalWrap .tv-share-error{min-height:0;font-size:12px;color:#ae4047;margin:0}

/* Pinned projects */
#dashboard .tv-project-pin-mark{margin-left:auto;color:#b88735;font-size:12px}
#dashboard .tv-project-sidebar-row>.tv-project-edit{flex-shrink:0}

/* Member access — future project defaults, discreet inline switch */
#modalWrap .tv-new-project-access{border:1px solid #dde9f0;padding:11px 12px;border-radius:11px;background:#f7fbfe;display:grid;gap:7px}
#modalWrap .tv-new-project-toggle{display:flex!important;align-items:center;flex-direction:row!important;justify-content:space-between;gap:14px;width:100%;cursor:pointer}
#modalWrap .tv-new-project-toggle span{display:grid;gap:4px;min-width:0}
#modalWrap .tv-new-project-toggle strong{font-size:12px;color:#365773}
#modalWrap .tv-new-project-toggle small{font-size:10px;color:#8b9cad;line-height:1.4}
#modalWrap .tv-new-project-toggle input{position:absolute;width:1px!important;height:1px!important;opacity:0}
#modalWrap .tv-new-project-toggle i{width:38px;height:21px;display:block;position:relative;background:#c6d2dd;border-radius:20px;flex-shrink:0;transition:background .15s}
#modalWrap .tv-new-project-toggle i:after{content:'';position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
#modalWrap .tv-new-project-toggle input:checked+i{background:#548cad}
#modalWrap .tv-new-project-toggle input:checked+i:after{transform:translateX(17px)}
#modalWrap .tv-new-project-toggle:has(input:focus-visible){outline:2px solid #6b9dc2;outline-offset:3px}
#modalWrap #tvNewProjectGrantMode{display:flex;gap:17px;margin-top:3px}
#modalWrap #tvNewProjectGrantMode.hidden{display:none!important}
#modalWrap #tvNewProjectGrantMode label{display:inline-flex!important;align-items:center;flex-direction:row!important;gap:6px;color:#41617b;font-size:11px!important}
#modalWrap #tvNewProjectGrantMode input{width:15px!important;height:15px!important;margin:0!important}

/* Starred — separate, clean cross-project listing */
.tv-starred-directory{background:#fff;border-radius:14px;border:1px solid #e3eaf0;padding:20px}
.tv-starred-top h2{font-size:19px;color:#314f66;margin:0 0 3px}
.tv-starred-top p{font-size:12px;color:#8799a7;margin:0 0 15px}
.tv-starred-search{display:flex;align-items:center;gap:9px;background:#eff5fa;border:1px solid #d9e5ef;padding:3px 12px;color:#7193ab;border-radius:9px;max-width:480px;margin-bottom:16px}
.tv-starred-search input{min-height:36px;border:0;outline:0;width:100%;background:transparent;font-size:12px;color:#3a5670}
.tv-starred-entries{display:grid;gap:6px}
.tv-starred-row{display:flex;align-items:center;gap:6px;border:1px solid #e3ebf1;border-radius:10px;min-height:60px;padding:6px 10px}
.tv-starred-row:hover{background:#f5fafd}
.tv-starred-name{display:flex;align-items:center;gap:13px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:7px;cursor:pointer}
.tv-starred-name img,.tv-starred-file-icon{width:32px;height:32px;object-fit:contain;flex-shrink:0}
.tv-starred-file-icon{display:grid;place-items:center;border-radius:8px;background:#e9eff5;color:#6284a0;font-size:11px;font-weight:750}
.tv-starred-name span:last-child{min-width:0;display:grid;gap:3px}
.tv-starred-name strong{font-size:12px;color:#355771;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.tv-starred-name small{font-size:10px;color:#8ca1b0}
.tv-starred-action{border:0;border-radius:8px;background:transparent;color:#5c809d;min-width:32px;height:32px;cursor:pointer;font-size:18px}
.tv-starred-action:hover{background:#e6f1fa}
.tv-star-preview-wrap{max-height:58vh;min-height:180px;display:grid;place-items:center;overflow:hidden}
.tv-star-preview{max-height:58vh;max-width:100%;width:100%;object-fit:contain;border:0}

/* Folder-level parent navigation */
#dashboard .tv-up-folder{font-weight:850;color:#34698c;font-size:19px;border:1px solid #d7e6ef;border-radius:8px;min-width:31px;min-height:29px;margin-right:8px;background:#edf6fb;cursor:pointer}
#dashboard .tv-up-folder:hover{background:#d5ecf7}

/* Public shared-folder browser */
body.tv-public-share-body{display:flex;flex-direction:column;min-height:100dvh;background:#f7f9fc;color:#344c63}
.tv-public-share-main{width:min(1180px,calc(100% - 44px));margin:0 auto;flex:1;padding:42px 0 70px}
.tv-public-shared-intro{margin-bottom:22px}
.tv-public-shared-intro .eyebrow{font-size:10px;font-weight:850;color:#7090a9;letter-spacing:.14em;margin-bottom:8px}
.tv-public-shared-intro h1{font-size:clamp(27px,4vw,37px);letter-spacing:-.035em;margin:0 0 7px;font-weight:760;color:#304a60}
.tv-public-shared-intro p:not(.eyebrow){font-size:13px;color:#8196a5;margin:0}
.tv-public-error{color:#bd3d48;background:#fff1f2;border-radius:9px;max-width:550px;margin:12px 0;font-size:12px}
.tv-public-error:empty{display:none}
.tv-public-folder-browser{background:#fff;border:1px solid #dce7ef;border-radius:15px;box-shadow:0 12px 35px #1e405a0a;overflow:hidden}
.tv-public-browser-toolbar{padding:16px 19px;border-bottom:1px solid #e5edf3;display:grid;gap:14px}
.tv-public-browser-location{display:flex;align-items:center;gap:7px;min-width:0}
.tv-public-browser-location .drive-folder-path{min-width:0;display:flex;align-items:center;gap:6px;overflow-x:auto}
.tv-public-browser-location .drive-folder-path button{white-space:nowrap;border:0;background:transparent;color:#416d8b;font-size:13px;font-weight:700;cursor:pointer;padding:5px}
.tv-public-browser-location .drive-folder-path button[aria-current]{color:#253e56}
.tv-public-browser-location #folderGoUp{width:32px;height:32px;min-width:32px;display:grid;place-items:center;border:1px solid #d5e2eb;border-radius:8px;background:#f1f7fb;color:#527d9b;font-weight:800;cursor:pointer}
.tv-public-browser-location #folderGoUp:disabled{opacity:.45;cursor:default}
.tv-public-browser-controls{display:flex;align-items:center;gap:10px;justify-content:space-between}
.tv-public-browser-controls .btn{width:auto;white-space:nowrap;min-height:39px;padding:9px 14px;font-size:12px}
.tv-public-search{display:flex;gap:9px;align-items:center;background:#f1f6fa;border:1px solid #dbe7f0;color:#6a8aa5;border-radius:9px;padding:0 12px;max-width:480px;width:100%}
.tv-public-search input{background:transparent;border:0;outline:0;min-height:39px;width:100%;font-size:12px;color:#31536e}
.tv-public-table-head{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px;align-items:center;gap:10px;padding:11px 16px;background:#f8fbfd;color:#889dac;font-size:10px;font-weight:850;letter-spacing:.07em;border-bottom:1px solid #e6edf3}
.tv-public-table-head span:nth-child(2),.tv-public-table-head span:nth-child(3){text-align:right}
.tv-public-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px;gap:10px;align-items:center;padding:10px 16px;border-bottom:1px solid #edf2f6;background:#fff;cursor:default;min-height:62px}
.tv-public-row:last-child{border-bottom:0}
.tv-public-row:hover,.tv-public-row.selected{background:#edf5fc}
.tv-public-row:focus-visible{outline:2px solid #78accc;outline-offset:-2px}
.tv-public-row-identity{display:flex;align-items:center;gap:12px;min-width:0}
.tv-public-row-identity img,.tv-public-file-icon{width:34px;height:34px;object-fit:contain;flex-shrink:0}
.tv-public-file-icon{display:grid;place-items:center;border-radius:8px;background:#eaf1f6;color:#5a809c;font-size:10px;font-weight:800}
.tv-public-row-identity span:last-child{display:grid;gap:4px;min-width:0}
.tv-public-row-identity strong{color:#3b556e;font-size:12px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.tv-public-row-identity small{font-size:10px;color:#8499aa}
.tv-public-size{text-align:right;font-size:11px;color:#8496a6}
.tv-public-row-actions{display:flex;gap:3px;justify-content:flex-end}
.tv-public-row-actions button{border:0;border-radius:7px;background:transparent;color:#5a829e;cursor:pointer;width:33px;height:32px;font-size:20px}
.tv-public-row-actions button:hover{background:#dbeaf5}
.tv-public-browser-hint{font-size:11px;color:#93a3b0;padding:12px 19px;border-top:1px solid #edf2f6;margin:0}
.tv-public-loading{padding:35px;text-align:center;color:#7f93a2;font-size:12px}
.tv-public-pagination{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:13px 19px;border-top:1px solid #edf2f6;font-size:11px;color:#8197a7}
.tv-public-pagination button{border:1px solid #d9e6ed;border-radius:8px;padding:7px 11px;background:#fff;color:#4d718d;cursor:pointer}
.tv-public-pagination button:disabled{opacity:.4;cursor:default}
#folderLightbox.hidden{display:none!important}
#folderLightbox.drive-lightbox{position:fixed;inset:0;z-index:10050}
.tv-public-password-card{width:min(475px,100%);margin:34px auto;padding:30px 32px;background:#fff;border:1px solid #dce6ef;box-shadow:0 16px 50px #2b4d6411;border-radius:16px;display:grid;gap:13px}
.tv-public-password-card.hidden{display:none!important}
.tv-public-password-icon{display:grid;place-items:center;background:#e9f2f8;border-radius:12px;width:44px;height:44px;font-size:23px}
.tv-public-password-card h2{font-size:20px;letter-spacing:-.025em;color:#304c63;margin:3px 0 0}
.tv-public-password-card p{font-size:12px;color:#899cad;margin:0 0 7px;line-height:1.5}
.tv-public-password-card label{font-size:12px;color:#4e6e86;font-weight:750}
.tv-public-password-field{display:flex;align-items:center;gap:8px;border:1px solid #cbdde9;border-radius:9px;padding:4px 10px;min-height:46px}
.tv-public-password-field:focus-within{border-color:#5b96bc;box-shadow:0 0 0 3px #78b0d229}
.tv-public-password-field input{flex:1;min-width:0;border:0;background:transparent;outline:0;font-size:14px;padding:8px 4px;color:#2d4c61}
.tv-public-password-field button{border:0;background:#eff6fa;color:#3b6887;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}
.tv-public-password-card>.btn{margin-top:6px;min-height:44px;font-size:13px}
@media(max-width:700px){
 #dashboard .tv-sharing-item-actions{width:auto;flex-wrap:wrap}
 .tv-public-share-main{width:calc(100% - 24px);padding:24px 0 35px}
 .tv-public-browser-controls{flex-wrap:wrap}
 .tv-public-browser-controls .btn{width:100%}
 .tv-public-table-head,.tv-public-row{grid-template-columns:minmax(0,1fr) 70px 72px;padding-left:9px;padding-right:9px;gap:5px}
 .tv-public-table-head{font-size:9px}
 .tv-public-row-identity{gap:6px}
 .tv-public-row-identity strong{font-size:11px}
 .tv-public-size{font-size:10px}
 .tv-public-row-actions button{width:30px}
 .tv-public-password-card{padding:23px 18px}
 #modalWrap .tv-share-settings-grid{grid-template-columns:1fr}
 #modalWrap .tv-share-manager-footer{flex-wrap:wrap}
}


/* Unified My Files and Starred table: stable columns and no overlay hiding metadata. */
#dashboard .file-list-head,#dashboard .file-row{grid-template-columns:minmax(235px,1fr) 104px 132px 184px!important;column-gap:16px!important}
#dashboard .file-list-head>span:nth-child(2),#dashboard .file-list-head>span:nth-child(3),#dashboard .file-list-head>span:nth-child(4){text-align:right}
#dashboard .file-row>.file-size,#dashboard .file-row>.file-date{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;z-index:1}
#dashboard .file-row>.file-actions{position:static!important;right:auto!important;top:auto!important;transform:none!important;grid-column:4;display:flex!important;align-items:center;justify-content:flex-end;width:184px!important;min-width:184px!important;min-height:35px;opacity:1!important;z-index:auto;background:transparent!important;box-shadow:none!important;padding:0!important}
#dashboard .file-row:hover>.file-actions{background:transparent!important;box-shadow:none!important}
#dashboard .file-row>.file-actions .tv-quick-action{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s}
#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}
#dashboard .file-row>.file-actions .tv-context-trigger{opacity:1;visibility:visible}
#dashboard .file-row>.file-actions .tv-preview-action{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;background:#f3f8fc;color:#547c9c}
#dashboard .file-row>.file-actions .tv-preview-action:hover{background:#deedf8;color:#2a688f}
#dashboard .file-row>.file-actions .tv-preview-action .tv-preview-eye{width:19px;height:19px;display:block}
/* Floating, non-reflowing selection toolbar. */
#dashboard .tv-selection-bar{position:fixed!important;top:88px!important;left:var(--tv-selection-left,calc(50% - 270px))!important;width:min(var(--tv-selection-width,540px),calc(100vw - 28px))!important;max-width:680px;box-sizing:border-box;z-index:201!important;margin:0!important;box-shadow:0 15px 45px #26445f29!important;border:1px solid #cddfea!important;background:#f6fafdf7!important;backdrop-filter:blur(14px);border-radius:12px}
.tv-context-menu .tv-menu-divider{height:1px;margin:6px 9px;background:#e4ebf1}
.tv-context-menu .tv-menu-section{font-size:10px;font-weight:800;color:#94a3b2;letter-spacing:.09em;margin:4px 10px 2px;padding:3px 0}
 #dashboard .tv-folder-up-entry{grid-template-columns:minmax(235px,1fr) 104px 132px 184px!important;cursor:pointer;background:#fafcfe!important}
#dashboard .tv-folder-up-entry .file-title{align-items:center}
#dashboard .tv-folder-up-entry .tv-parent-icon{width:36px;height:36px;border:1px solid #deebf4;border-radius:9px;display:grid;place-items:center;font-size:22px;color:#477a9e;background:#edf5fb}
#dashboard .tv-folder-up-entry:hover{background:#eaf4fc!important}
#dashboard .tv-received-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#dashboard .tv-received-toolbar .btn{font-size:11px;min-height:34px}
#dashboard .tv-submission-actions{display:flex;gap:8px;flex-wrap:wrap}
#dashboard .tv-review-picker{display:grid;gap:12px}
#dashboard .tv-review-projects,#dashboard .tv-review-folders{display:grid;gap:5px;max-height:220px;overflow:auto;border:1px solid #dde8ef;border-radius:10px;padding:8px}
#dashboard .tv-review-option{border:0;border-radius:8px;background:transparent;padding:10px 12px;text-align:left;color:#48667d;display:flex;align-items:center;gap:10px;cursor:pointer}
#dashboard .tv-review-option:hover,#dashboard .tv-review-option.active{background:#e8f3fb;color:#285d80}
#dashboard .tv-review-option strong{font-size:12px}
#dashboard .tv-review-picker .tv-review-path{font-size:12px;color:#6c879b}
#modalWrap .tv-review-picker{display:grid;gap:12px}
#modalWrap .tv-review-option{border:0;border-radius:8px;background:#f7fafc;padding:10px 12px;text-align:left;cursor:pointer;color:#405f75}
#modalWrap .tv-review-option.active{background:#e1f0fa}
#modalWrap .tv-review-projects,#modalWrap .tv-review-folders{max-height:210px;overflow:auto;display:grid;gap:4px}
#modalWrap .tv-review-picker>label{font-size:12px;font-weight:700;color:#55728b}
#modalWrap .tv-review-picker .tv-review-actions{display:flex;gap:8px;justify-content:flex-end}
.tv-public-row.tv-selected,.tv-public-row.selected{background:#e3effa!important;outline:1px solid #bed6e9;outline-offset:-1px}
.tv-shared-browser .tv-shared-selection{position:fixed;top:87px;left:50%;transform:translateX(-50%);z-index:300;display:flex;align-items:center;gap:10px;background:#f7fbff;border:1px solid #cddfea;border-radius:12px;box-shadow:0 12px 32px #1b40502d;padding:10px 13px;font-size:12px;color:#365a76}
.tv-shared-browser .tv-shared-selection[hidden]{display:none}
.tv-shared-browser .tv-shared-selection button{border:1px solid #d0e3f1;background:white;border-radius:7px;padding:7px 11px;color:#355c75;cursor:pointer}
.tv-shared-browser .tv-shared-selection button:disabled{opacity:.5}
.tv-public-row.tv-public-up{cursor:pointer;background:#f9fbfd}
.tv-public-up .tv-public-file-icon{font-size:21px;background:#e8f3fb}
.tv-public-row .tv-public-row-actions{background:transparent!important}
@media(max-width:790px){
 #dashboard .file-list-head,#dashboard .file-row,#dashboard .tv-folder-up-entry{grid-template-columns:minmax(120px,1fr) 82px 116px 140px!important;gap:7px!important}
 #dashboard .file-row>.file-actions{width:140px!important;min-width:140px!important}
 #dashboard .file-row>.file-actions .tv-quick-share,#dashboard .file-row>.file-actions .tv-quick-download{display:none!important}
}
@media(max-width:600px){
 #dashboard .file-list-head,#dashboard .file-row,#dashboard .tv-folder-up-entry{grid-template-columns:minmax(120px,1fr) 134px!important;gap:6px!important}
 #dashboard .file-list-head>span:nth-child(2),#dashboard .file-list-head>span:nth-child(3),#dashboard .file-row>.file-size,#dashboard .file-row>.file-date{display:none!important}
 #dashboard .file-row>.file-actions{grid-column:2;width:134px!important;min-width:134px!important}
 #dashboard .tv-selection-bar{top:66px!important}
}


#dashboard .workspace-bar-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#dashboard .workspace-bar-actions #shareCurrentFolderButton{order:0}
#dashboard .workspace-bar-actions #newFileRequestButton{order:1}
#dashboard .workspace-bar-actions #vaultNewMenu{order:2}
#dashboard .workspace-bar-actions #sharedBrowseFiles,#dashboard .workspace-bar-actions #emptyTrashButton{order:3}
#dashboard .workspace-bar-actions #newFolderButton,#dashboard .workspace-bar-actions #uploadLabel{display:none!important}
#dashboard .workspace-bar-actions #vaultNewMenu.hidden{display:none!important}
#dashboard .workspace-bar-actions .btn{white-space:nowrap}
#dashboard .tv-folder-up-entry.hidden{display:none!important}
#dashboard .tv-folder-up-entry{border:1px solid #edf2f7;min-height:54px;padding:10px 14px;border-radius:0;background:#f9fcff;display:grid;align-items:center;gap:16px}


/* Shared browser uses the same file-row grammar and spacing as My Files, with only read actions. */
.tv-shared-browser{position:relative;background:#fff}
.tv-shared-browser .file-list-head,.tv-shared-browser .file-row{display:grid;grid-template-columns:minmax(220px,1fr) 100px 110px 148px;gap:15px;align-items:center;padding:10px 14px}
.tv-shared-browser .file-list-head{font-size:10px;letter-spacing:.08em;color:#738da1;font-weight:800;background:#edf3f8;border-bottom:1px solid #dbe7ef}
.tv-shared-browser .file-list-head span:not(:first-child){text-align:right}
.tv-shared-browser .file-row{min-height:55px;border-bottom:1px solid #ebf0f4;cursor:default;transition:background .12s;background:#fff}
.tv-shared-browser .file-row:hover{background:#f0f6fb}
.tv-shared-browser .file-row .file-title{display:flex;align-items:center;gap:10px;min-width:0}
.tv-shared-browser .file-row .tv-file-info{display:grid;gap:4px;min-width:0}
.tv-shared-browser .file-row .tv-file-info b{font-size:12px;font-weight:700;color:#344d64;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-shared-browser .file-row .tv-file-info small{font-size:10px;color:#8b9cab}
.tv-shared-browser .file-row .tv-folder-tile,.tv-shared-browser .file-row .tv-file-tile{height:34px;width:34px;display:grid;place-items:center;border-radius:9px;background:#eaf2f8;color:#4a82a9;font-size:10px;font-weight:800;flex-shrink:0}
.tv-shared-browser .file-row .tv-folder-tile img{height:30px;width:30px;object-fit:contain}
.tv-shared-browser .file-row .file-size,.tv-shared-browser .file-row .file-date{font-size:11px;color:#8296a7;text-align:right;white-space:nowrap}
.tv-shared-browser .file-row .file-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.tv-shared-browser .file-row .file-actions button{border:0;background:transparent;color:#6488a3;border-radius:7px;min-width:32px;height:32px;cursor:pointer;display:grid;place-items:center;font-size:19px}
.tv-shared-browser .file-row .file-actions .tv-quick-action{visibility:hidden;opacity:0}
.tv-shared-browser .file-row:hover .file-actions .tv-quick-action,.tv-shared-browser .file-row.tv-selected .file-actions .tv-quick-action,.tv-shared-browser .file-row:focus-within .file-actions .tv-quick-action{visibility:visible;opacity:1}
.tv-shared-browser .file-row .file-actions button:hover{background:#dcebf6}
.tv-shared-browser .file-row.tv-selected{background:#e3effa!important;outline:1px solid #b8d1e7;outline-offset:-1px}
.tv-shared-browser .tv-public-up{cursor:pointer;background:#f8fbfe}
.tv-shared-browser .tv-public-up:hover{background:#e7f2fa}
.tv-shared-browser .tv-public-up .tv-parent-icon{font-size:22px}
.tv-shared-browser .tv-public-up .file-actions{visibility:hidden}
.tv-shared-selection{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:501;display:flex;align-items:center;gap:12px;background:#f9fcff;border:1px solid #d0e0ec;border-radius:12px;padding:10px 13px;box-shadow:0 15px 40px #1e3b5725}
.tv-shared-selection[hidden]{display:none!important}
.tv-shared-selection strong{font-size:12px}
.tv-shared-selection button{border:1px solid #dce7ee;background:#fff;border-radius:7px;padding:6px 10px;font-size:11px;color:#3d6783;cursor:pointer}
.tv-shared-selection button:disabled{opacity:.4}
#tvSharedContext.tv-context-menu{position:fixed;z-index:501}
@media(max-width:700px){.tv-shared-browser .file-list-head,.tv-shared-browser .file-row{grid-template-columns:minmax(125px,1fr) 125px;gap:6px;padding:9px}.tv-shared-browser .file-list-head span:nth-child(2),.tv-shared-browser .file-list-head span:nth-child(3),.tv-shared-browser .file-row .file-size,.tv-shared-browser .file-row .file-date{display:none}.tv-shared-browser .file-row .file-actions{grid-column:2}.tv-shared-selection{width:calc(100vw - 24px);justify-content:center}}


/* Received upload review: small, readable decision dialog. Explorer is a separate screen. */
#modalWrap .modal:has(.tv-received-review-card){width:min(480px,calc(100vw - 24px))!important;max-height:85dvh!important;overflow-y:auto!important;padding:22px!important}
#modalWrap .modal:has(.tv-received-explorer){width:min(900px,calc(100vw - 24px))!important;max-height:90dvh!important;overflow:hidden!important;padding:22px!important}
#modalWrap .modal:has(.tv-received-explorer) #modalTitle{font-size:21px;line-height:1.3}
#modalWrap .tv-received-review-card{display:grid;gap:17px;color:#3d5369}
#modalWrap .tv-received-person{display:flex;align-items:center;gap:12px}
#modalWrap .tv-received-person-icon{background:#e7f0f7;color:#527d9a;height:39px;width:39px;border-radius:11px;display:grid;place-items:center;font-size:22px;flex-shrink:0}
#modalWrap .tv-received-person div{display:grid;gap:4px}
#modalWrap .tv-received-person strong{font-size:14px;color:#314a60}
#modalWrap .tv-received-person small{font-size:11px;color:#8298a8}
#modalWrap .tv-received-intro{font-size:12px;color:#748ca0;line-height:1.6;margin:0}
#modalWrap .tv-received-files-heading{font-size:11px;color:#65819b;font-weight:800;letter-spacing:.035em}
#modalWrap .tv-received-file-list{max-height:140px;overflow-y:auto;display:grid;gap:5px}
#modalWrap .tv-received-file{border:1px solid #e5edf3;background:#fafcfe;border-radius:9px;padding:9px 11px;display:flex;align-items:center;gap:9px;min-width:0;color:#4c6580;font-size:12px;overflow-wrap:anywhere}
#modalWrap .tv-received-file>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalWrap .tv-received-destination-card{background:#f7fafd;border:1px solid #dce9f2;border-radius:13px;padding:14px;display:grid;gap:12px}
#modalWrap .tv-received-destination-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
#modalWrap .tv-received-destination-heading>span{font-size:11px;font-weight:800;color:#53728a}
#modalWrap .tv-received-destination-heading .btn{width:auto!important;min-height:34px;padding:8px 12px;font-size:11px;white-space:nowrap}
#modalWrap .tv-received-destination-location{display:flex;align-items:center;gap:10px;padding:10px;background:white;border:1px solid #e3edf4;border-radius:9px}
#modalWrap .tv-received-destination-location img{width:31px;height:31px;object-fit:contain}
#modalWrap .tv-received-destination-location span{display:grid;gap:4px;min-width:0}
#modalWrap .tv-received-destination-location strong{color:#345b76;font-size:13px}
#modalWrap .tv-received-destination-location small{font-size:11px;color:#8ca0af;overflow-wrap:anywhere}
#modalWrap .tv-received-review-footer{display:flex;gap:10px}
#modalWrap .tv-received-review-footer .btn{flex:1;min-height:42px;font-size:12px}
#modalWrap .tv-received-review-footer .btn-secondary{color:#a1474b;border-color:#f0d5d6;background:#fff}
#modalWrap .tv-received-review-footer .btn-secondary:hover{background:#fff1f1}
#modalWrap .tv-received-explorer{display:grid;gap:14px;max-height:calc(90dvh - 105px);min-height:0}
#modalWrap .tv-received-explorer-subtitle{font-size:12px;color:#7e93a6;margin:0;line-height:1.5}
#modalWrap .tv-received-explorer-grid{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(0,1.55fr);border:1px solid #dce7ef;border-radius:12px;min-height:200px;height:min(48dvh,385px);overflow:hidden}
#modalWrap .tv-received-explorer-projects,#modalWrap .tv-received-explorer-folders{padding:13px;min-width:0;min-height:0;display:flex;flex-direction:column;gap:9px;background:#fff}
#modalWrap .tv-received-explorer-projects{border-right:1px solid #dce7ef;background:#f7fafc}
#modalWrap .tv-received-explorer-panel-title{font-size:10px;letter-spacing:.1em;color:#7b92a7;font-weight:850}
#modalWrap .tv-explorer-search{display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #d6e5f0;background:#f1f7fb;border-radius:8px;min-height:37px;color:#7192aa}
#modalWrap .tv-explorer-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;min-width:0!important;width:100%!important;font-size:12px!important;padding:8px 0!important;color:#3a5e78}
#modalWrap .tv-received-explorer-project-list,#modalWrap .tv-received-explorer-folder-list{min-height:0;overflow-y:auto;display:grid;align-content:start;gap:3px;padding-right:3px;flex:1}
#modalWrap .tv-explorer-project,#modalWrap .tv-explorer-folder{width:100%;display:flex;align-items:center;gap:9px;min-height:39px;padding:8px 10px;border:1px solid transparent;border-radius:8px;cursor:pointer;text-align:left;background:transparent;font-size:12px;color:#506d82}
#modalWrap .tv-explorer-project img,#modalWrap .tv-explorer-folder img{width:25px;height:25px;object-fit:contain;flex-shrink:0}
#modalWrap .tv-explorer-project>span,#modalWrap .tv-explorer-folder>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalWrap .tv-explorer-project:hover,#modalWrap .tv-explorer-folder:hover{background:#eaf4fa}
#modalWrap .tv-explorer-project.active{background:#dfeef9;color:#285c7f;font-weight:800}
#modalWrap .tv-explorer-check{margin-left:auto;color:#326f95}
#modalWrap .tv-explorer-folder span:has(strong){display:grid;gap:3px;flex:1;min-width:0}
#modalWrap .tv-explorer-folder strong{font-size:12px;font-weight:700;color:#365d7a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalWrap .tv-explorer-folder small{font-size:10px;color:#9aadbc}
#modalWrap .tv-explorer-parent .tv-explorer-folder-icon{display:grid;place-items:center;height:27px;width:27px;border-radius:7px;background:#e8f2fa;color:#4e7d9c;font-size:20px}
#modalWrap .tv-explorer-chevron{margin-left:auto;color:#9aaebd}
#modalWrap .tv-received-explorer-crumbs{display:flex;align-items:center;gap:5px;overflow-x:auto;white-space:nowrap;min-height:32px}
#modalWrap .tv-received-explorer-crumbs button{border:0;background:transparent;font-size:11px;color:#4d7998;font-weight:750;cursor:pointer;padding:5px;border-radius:5px}
#modalWrap .tv-received-explorer-crumbs button:hover{background:#eaf4fa}
#modalWrap .tv-received-explorer-crumbs span{color:#a0b0bd}
#modalWrap .tv-explorer-loading,#modalWrap .tv-explorer-empty{padding:15px;color:#879bac;font-size:11px;line-height:1.5}
#modalWrap .tv-received-explorer-selected{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#edf6fc;border:1px solid #d8eaf4;border-radius:10px}
#modalWrap .tv-received-explorer-selected img{width:28px;height:28px}
#modalWrap .tv-received-explorer-selected span{min-width:0;display:grid;gap:3px}
#modalWrap .tv-received-explorer-selected small{font-size:10px;color:#819aaa}
#modalWrap .tv-received-explorer-selected strong{font-size:12px;color:#35617c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalWrap .tv-received-explorer-actions{display:flex;gap:9px;justify-content:flex-end}
#modalWrap .tv-received-explorer-actions .btn{width:auto!important;min-height:39px;white-space:nowrap;font-size:12px;padding:9px 16px}
#modalWrap .tv-received-explorer-pagination{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:11px;color:#7b92a6}
#modalWrap .tv-received-explorer-pagination[hidden]{display:none!important}
#modalWrap .tv-received-explorer-pagination button{border:1px solid #dbe7ef;background:white;border-radius:7px;padding:5px 8px;font-size:11px;color:#527690;cursor:pointer}
#modalWrap .tv-received-explorer-pagination button:disabled{opacity:.35}
@media(max-width:680px){#modalWrap .modal:has(.tv-received-explorer){padding:13px!important}#modalWrap .tv-received-explorer-grid{grid-template-columns:1fr;height:min(55dvh,520px)}#modalWrap .tv-received-explorer-projects{border-right:0;border-bottom:1px solid #dce7ef;max-height:160px}#modalWrap .tv-received-explorer-folder-list{min-height:120px}#modalWrap .tv-received-review-footer{flex-wrap:wrap}#modalWrap .tv-received-review-footer .btn{min-width:130px}}


/* Received uploads: concise cards with clear review action and no giant gaps. */
#dashboard #intakeSubmissionList{min-height:0!important;padding:9px;display:grid;gap:9px;background:#f7fafc}
#dashboard #intakeSubmissionList .tv-submission-entry{background:#fff!important;border:1px solid #dfe9f0!important;border-radius:12px;box-shadow:0 2px 10px #263e5008;gap:10px;padding:14px 15px!important;align-items:flex-start!important;margin:0!important}
#dashboard #intakeSubmissionList .tv-submission-entry:hover{background:#fcfeff!important;border-color:#cbddea!important}
#dashboard #intakeSubmissionList .tv-request-icon{height:35px;width:35px;flex-basis:35px;font-size:19px;border-radius:9px}
#dashboard #intakeSubmissionList .tv-request-main{display:grid;gap:7px}
#dashboard #intakeSubmissionList .tv-request-title{display:flex;gap:8px;align-items:center;min-height:34px}
#dashboard #intakeSubmissionList .tv-request-title strong{font-size:13px;letter-spacing:-.01em}
#dashboard #intakeSubmissionList .tv-request-title .tv-submission-actions{margin:0 0 0 auto;display:flex;align-items:center}
#dashboard #intakeSubmissionList .tv-request-title .tv-submission-actions button{background:#e8f3fa!important;border:1px solid #cfe4f1!important;color:#326688!important;border-radius:8px;padding:8px 12px;font-size:11px}
#dashboard #intakeSubmissionList .tv-request-title .tv-submission-actions button:hover{background:#d8ebf8!important}
#dashboard #intakeSubmissionList .tv-request-meta{margin:0;gap:7px 11px;font-size:10px}
#dashboard #intakeSubmissionList .tv-request-main>p{margin:0!important;color:#8499a9}
#dashboard #intakeSubmissionList .tv-received-destination{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#7993a4;margin:0;padding:0}
#dashboard #intakeSubmissionList .tv-received-destination strong{color:#3e657e;font-size:11px}
#dashboard #intakeSubmissionList .tv-received-destination .tv-request-action{padding:4px 8px;font-size:10px;border:0;background:#edf5fb;color:#3b6d8e}
#dashboard #intakeSubmissionList .tv-submission-files{margin-top:2px;display:grid;gap:4px}
#dashboard #intakeSubmissionList .tv-submission-file{padding:7px 10px;min-height:36px;background:#fafcfe;border:1px solid #e9eef2;border-radius:7px;color:#546f84}
#dashboard #intakeSubmissionList .tv-submission-file small{margin-left:auto;color:#839dad}
#dashboard #intakeSubmissionList .tv-submission-file .tv-request-action{margin-left:6px;padding:5px 9px;color:#3b6f93;background:#f0f7fd}
#dashboard #intakeSubmissionList .tv-submission-file span:nth-child(2){font-size:11px}
@media(max-width:640px){#dashboard #intakeSubmissionList .tv-submission-entry{padding:12px!important}#dashboard #intakeSubmissionList .tv-request-title{flex-wrap:wrap}#dashboard #intakeSubmissionList .tv-request-title .tv-submission-actions{margin-left:0;width:100%}#dashboard #intakeSubmissionList .tv-submission-file{flex-wrap:wrap}}

#modalWrap .tv-explorer-folder.active,#modalWrap .tv-explorer-folder[aria-selected="true"]{background:#dcecf8;border-color:#9ec7e1;color:#2c6589;box-shadow:inset 0 0 0 1px #c8e2f3}
#modalWrap .tv-explorer-folder:focus-visible{outline:2px solid #64a3c9;outline-offset:-2px}


/* Three separate actions above the current directory; never a duplicate action dropdown. */
#dashboard .workspace-bar-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#dashboard .workspace-bar-actions #newFileRequestButton{order:0;white-space:nowrap;flex:0 1 auto}
#dashboard .workspace-bar-actions #shareCurrentFolderButton{order:1;white-space:nowrap}
#dashboard .workspace-bar-actions #vaultNewMenu{order:2;flex:0 0 auto}
#dashboard .workspace-bar-actions #newFileRequestButton.hidden,
#dashboard .workspace-bar-actions #shareCurrentFolderButton.hidden{display:none!important}
#dashboard .file-controls .breadcrumbs{min-width:0}
#dashboard .file-controls .search-wrap{margin-left:auto}
@media(max-width:560px){
 #dashboard .workspace-bar-actions #newFileRequestButton{white-space:normal;text-align:center;max-width:100%}
}
/* Wide file explorer used by received uploads, Move, Move to Project, copies and bulk moves. */
#modalWrap .modal:has(.tv-directory-explorer){
  width:min(980px,calc(100vw - 32px))!important;
  max-width:min(980px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:auto!important;
  padding:26px 28px!important;
  box-sizing:border-box!important;
}
#modalWrap .modal:has(.tv-directory-explorer) .modal-head{margin-bottom:12px}
#modalWrap .modal:has(.tv-directory-explorer) #modalTitle{font-size:23px;line-height:1.3;letter-spacing:-.02em}
#modalWrap .tv-directory-explorer{display:grid;gap:17px;min-width:0}
#modalWrap .tv-directory-guide{margin:0;color:#6f879a;font-size:13px;line-height:1.5}
#modalWrap .tv-directory-columns{
  display:grid;
  grid-template-columns:minmax(235px,0.9fr) minmax(355px,1.6fr);
  height:clamp(350px,48dvh,480px);
  min-height:0;
  border:1px solid #d5e3ed;
  border-radius:13px;
  overflow:hidden;
  background:#fff;
}
#modalWrap .tv-directory-project-panel,#modalWrap .tv-directory-folder-panel{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;padding:17px}
#modalWrap .tv-directory-project-panel{background:#f5f9fc;border-right:1px solid #d7e6ef}
#modalWrap .tv-directory-column-title{font-size:11px;font-weight:850;letter-spacing:.105em;color:#7791a7}
#modalWrap .tv-directory-search{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;border:1px solid #d5e4ee;border-radius:10px;background:#f1f7fb;color:#688da8;padding:0 12px;min-height:41px}
#modalWrap .tv-directory-search input{width:100%!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;color:#335b77!important;font-size:13px!important;padding:8px 0!important;min-height:39px!important}
#modalWrap .tv-directory-project-list,#modalWrap .tv-directory-folder-list{min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:0 3px 3px 0;flex:1}
#modalWrap .tv-dir-project,#modalWrap .tv-dir-folder{
  width:100%;min-height:47px;flex-shrink:0;border:1px solid transparent;border-radius:9px;
  background:transparent;color:#3c5c74;display:flex;align-items:center;gap:11px;padding:9px 11px;
  text-align:left;cursor:pointer;font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;
}
#modalWrap .tv-dir-project img,#modalWrap .tv-dir-folder img{width:30px;height:30px;object-fit:contain;flex-shrink:0}
#modalWrap .tv-dir-project>span:not(.tv-dir-check),#modalWrap .tv-dir-folder>span:has(strong){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
#modalWrap .tv-dir-folder>span:has(strong){display:grid;gap:4px}
#modalWrap .tv-dir-folder strong{font-size:13px;font-weight:700;color:#375e7b;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
#modalWrap .tv-dir-folder small{font-size:11px;font-weight:400;color:#8da1b0}
#modalWrap .tv-dir-project:hover,#modalWrap .tv-dir-folder:hover{background:#ebf4fb}
#modalWrap .tv-dir-project.active,#modalWrap .tv-dir-folder.active{background:#dfeffb;border-color:#c7dfef;color:#2d6589}
#modalWrap .tv-dir-project.active{font-weight:800}
#modalWrap .tv-dir-project:focus-visible,#modalWrap .tv-dir-folder:focus-visible{outline:2px solid #73abd0;outline-offset:-2px}
#modalWrap .tv-dir-check{color:#346e94;font-size:16px;margin-left:auto}
#modalWrap .tv-dir-chevron{margin-left:auto;color:#92aabd;font-size:20px}
#modalWrap .tv-dir-up-icon{display:grid;place-items:center;height:30px;width:30px;flex-shrink:0;border-radius:8px;background:#e5f0f8;color:#477ca0;font-size:21px}
#modalWrap .tv-directory-breadcrumbs{display:flex;align-items:center;gap:5px;min-height:37px;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin}
#modalWrap .tv-directory-breadcrumbs button{border:0;background:transparent;border-radius:6px;padding:6px;color:#3c6f93;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
#modalWrap .tv-directory-breadcrumbs button:hover{background:#eaf4fb}
#modalWrap .tv-directory-breadcrumbs span{color:#9caeba}
#modalWrap .tv-directory-empty{font-size:12px;color:#8198ac;line-height:1.6;margin:5px 0;padding:12px}
#modalWrap .tv-directory-paging{display:flex;justify-content:flex-end;align-items:center;gap:10px;font-size:11px;color:#748da1}
#modalWrap .tv-directory-paging[hidden]{display:none!important}
#modalWrap .tv-directory-paging button{border:1px solid #d6e3ec;background:#fff;border-radius:7px;padding:6px 10px;color:#4f758f;font-size:11px;cursor:pointer}
#modalWrap .tv-directory-paging button:disabled{opacity:.45;cursor:default}
#modalWrap .tv-directory-selected{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #d6e5f0;background:#edf6fc;border-radius:11px;min-width:0}
#modalWrap .tv-directory-selected img{width:32px;height:32px;object-fit:contain;flex-shrink:0}
#modalWrap .tv-directory-selected span{min-width:0;display:grid;gap:5px}
#modalWrap .tv-directory-selected small{font-size:11px;color:#7794a8}
#modalWrap .tv-directory-selected strong{font-size:13px;color:#315f7d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalWrap .tv-directory-buttons{display:flex;justify-content:flex-end;gap:10px}
#modalWrap .tv-directory-buttons .btn{width:auto!important;min-height:44px;padding:10px 19px;font-size:13px;font-weight:750;margin:0!important;white-space:nowrap}
#modalWrap .tv-directory-buttons .btn:disabled{opacity:.5;cursor:default}
@media(max-width:720px){
 #modalWrap .modal:has(.tv-directory-explorer){width:calc(100vw - 22px)!important;max-width:calc(100vw - 22px)!important;padding:17px!important}
 #modalWrap .tv-directory-columns{grid-template-columns:minmax(0,1fr);height:min(60dvh,570px);min-height:330px}
 #modalWrap .tv-directory-project-panel{border-right:0;border-bottom:1px solid #d7e6ef;max-height:165px;padding:11px}
 #modalWrap .tv-directory-folder-panel{padding:11px;min-height:165px}
 #modalWrap .tv-directory-explorer{gap:11px}
 #modalWrap .tv-directory-guide{font-size:12px}
 #modalWrap .tv-directory-buttons .btn{flex:1;padding:9px 7px;font-size:12px}
 #dashboard .tv-directory-actions-popup{left:auto;right:0}
}

/* Safe previews display PDF in an iframe and text as escaped, scrollable text. */
.drive-lightbox-media .tv-text-preview,#modalWrap .tv-text-preview,.tv-star-preview-wrap .tv-text-preview{
 display:block;width:100%;max-width:100%;max-height:68dvh;overflow:auto;box-sizing:border-box;
 padding:20px;border:1px solid #d6e3eb;border-radius:12px;
 font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
 font-size:12px;line-height:1.65;color:#304e66;background:#f8fbfe;
 white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;
}
.drive-lightbox-media .tv-preview-unavailable,.tv-preview-unavailable{
 display:grid;gap:15px;justify-items:center;text-align:center;
 padding:27px;max-width:460px;width:100%;box-sizing:border-box;
 border:1px solid #dae6ee;border-radius:14px;background:white;color:#38566e;
}
.tv-preview-unavailable p{margin:0;line-height:1.5}
.tv-preview-unavailable a.btn{width:auto;min-height:40px}
#modalWrap .modal:has(.tv-preview-unavailable),#modalWrap .modal:has(.tv-text-preview){width:min(720px,calc(100vw - 24px));max-width:min(720px,calc(100vw - 24px))}


/* My Files primary actions: each has a visible standalone button.
   The request control was previously hidden by a rule in style.css. */
#dashboard .workspace-bar-actions #newFileRequestButton:not(.hidden){
 display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
 order:0;min-height:38px;padding:8px 13px;border-radius:9px;
 color:#395a73;background:#fff;border:1px solid #d7e3ed;
 font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;
}
#dashboard .workspace-bar-actions #newFileRequestButton:not(.hidden):hover,
#dashboard .workspace-bar-actions #newFileRequestButton:not(.hidden):focus-visible{
 background:#edf6fc;border-color:#a8cce4;color:#2c6082;
}
#dashboard .workspace-bar-actions #shareCurrentFolderButton:not(.hidden){
 display:inline-flex!important;align-items:center;justify-content:center;
 order:1;min-height:38px;padding:8px 13px;
}
#dashboard .workspace-bar-actions #vaultNewMenu{order:2}
#dashboard .workspace-bar-actions #newFileRequestButton.hidden,
#dashboard .workspace-bar-actions #shareCurrentFolderButton.hidden{display:none!important}
#modalWrap .tv-request-current-location{
 display:flex;align-items:center;gap:13px;padding:14px 16px;
 border:1px solid #cfe1ee;background:#eef6fc;border-radius:12px;
 font-size:13px;color:#385b74;margin:0 0 17px;
}
#modalWrap .tv-request-current-icon{
 display:grid;place-items:center;flex:0 0 35px;height:35px;
 background:#d9ebf7;border-radius:9px;color:#477b9f;font-size:22px;
}
#modalWrap .tv-request-current-location>span:last-child{display:grid;gap:4px;min-width:0}
#modalWrap .tv-request-current-location small{font-size:11px;color:#7792a7}
#modalWrap .tv-request-current-location strong{font-size:14px;overflow-wrap:anywhere;color:#315e7c}
#modalWrap .tv-request-current-location em{font-size:11px;font-style:normal;line-height:1.4;color:#788fa0}

/* Preview unavailable: centered card, no oversized empty right-hand whitespace. */
#modalWrap .modal:has(.tv-preview-unavailable){
 width:min(560px,calc(100vw - 32px))!important;
 max-width:min(560px,calc(100vw - 32px))!important;
 box-sizing:border-box;
}
#modalWrap .modal:has(.tv-preview-unavailable) #modalBody{
 display:flex;align-items:center;justify-content:center;width:100%;
}
#modalWrap .modal:has(.tv-preview-unavailable) .tv-preview-unavailable{
 width:100%;max-width:490px;margin:0 auto;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 text-align:center;min-height:175px;
}
#modalWrap .modal:has(.tv-preview-unavailable) .tv-preview-unavailable .modal-note{
 overflow-wrap:anywhere;max-width:100%;
}
#modalWrap .modal:has(.tv-preview-unavailable) .tv-preview-unavailable a.btn{
 align-self:center;width:auto!important;min-width:148px;
}
@media(max-width:650px){
 #dashboard .workspace-bar-actions{justify-content:flex-start;gap:7px}
 #dashboard .workspace-bar-actions #newFileRequestButton:not(.hidden){white-space:normal;max-width:100%;text-align:center}
 #modalWrap .modal:has(.tv-preview-unavailable){padding:20px!important}
}
