/* Readability pass: stronger text, larger labels, unchanged document workspace. */
:root{color:#243d4b}
.topbar-center,.local-badge{color:#d3dfe4;font-size:12px}
.sidebar-heading,.folder-heading{color:#4f6572;font-size:11px;letter-spacing:1px}
.client-name{font-size:14px;line-height:20px;color:#304b59;font-weight:550}
.client-avatar{font-size:11px;color:#285663}
.folder-row{font-size:14px;color:#3c5665}
.folder-row.active{color:#075c54;font-weight:650}
.folder-row>span:first-child,.icon-button{color:#536d7c}
.count{font-size:12px;color:#536d7b}
.sidebar-bottom{font-size:11px;color:#536d7b;line-height:18px}
.sidebar-bottom small{font-size:10px;color:#657c89}
.input-icon input{font-size:13px;color:#294452}
.input-icon input::placeholder{color:#617985;opacity:1}
.input-icon>span{color:#647d89}
.eyebrow,.preview-title .eyebrow{color:#526d7b;font-size:10px;letter-spacing:1px}
.current-place h1{color:#173543;font-size:23px}
.breadcrumb{font-size:12px;color:#5c7482}
.breadcrumb b{color:#344f5e;font-weight:600}
.button{font-size:13px;min-height:37px}
.secondary{color:#365968;border-color:#bbcdd5}
.file-pane-heading h2{font-size:17px;color:#253f4d}
.file-pane-heading h2>span{font-size:12px;color:#4b6776}
.file-pane-heading p{font-size:12px;line-height:18px;color:#5b7481}
.file-toolbar{height:40px}
.select-all,.small-button{font-size:12px;color:#4d6877}
.table-heading{padding-top:12px;padding-bottom:10px}
.table-heading button{font-size:12px;color:#4b6776;font-weight:600}
.file-name{font-size:14px;line-height:22px;color:#213f4f;font-weight:600}
.file-subline{font-size:12px;line-height:19px;color:#536f7e}
.file-date{font-size:12px;color:#4e6a79}
.file-row{min-height:82px}
.file-row.active{background:#e4f2ec}
.file-pane-footer{font-size:11px;color:#526e7d;min-height:35px}
.preview-title h2{font-size:15px;color:#294756}
.preview-controls{height:45px;flex-shrink:0}
.page-controls label{font-size:12px;color:#526d7b}
.page-controls input{font-size:12px;color:#274957;width:33px;height:27px}
.preview-controls select{font-size:12px;color:#365968;max-width:160px;padding:5px 7px}
.preview-footer{height:34px;min-height:34px;font-size:12px;color:#4f6d7b}
.preview-placeholder{color:#5d7887}
.preview-placeholder h3{color:#3d5c6d;font-size:19px}
.preview-placeholder p{font-size:14px;line-height:24px;color:#587382}
.empty-files h3{color:#3d5b6b;font-size:15px}
.empty-files p{color:#597583;font-size:13px}
.dialog-description{font-size:13px;color:#526e7e;line-height:21px}
.field-label{font-size:14px;color:#2f4c5c}
.rename-input input,.add-client-form input{font-size:14px;color:#2b4959}
.rename-input>span{font-size:13px;color:#5b7583}
.manage-client-row strong{font-size:14px;color:#294858}
.manage-client-row small{font-size:12px;color:#577382}
.manage-client-row .small-button{font-size:12px}
.move-choice,.context-menu button{font-size:13px}
.toast,.upload-progress{font-size:13px}
@media(max-width:1150px){
 .current-place h1{font-size:20px}
 .button{font-size:12px}
 .file-row{gap:7px}
 .file-date{font-size:11px}
 .preview-controls select{font-size:11px;max-width:140px}
 .preview-footer{font-size:11px}
}
.workspace{grid-template-columns:var(--sidebar) 7px minmax(0,1fr)}
.sidebar-splitter{background:#e9eff1;cursor:col-resize;position:relative;touch-action:none}
.sidebar-splitter:hover,.sidebar-splitter:focus-visible,.splitter:hover{background:#5ca69f}
.sidebar-splitter:after{content:'';position:absolute;top:42%;height:40px;left:2px;border-left:2px solid #9bafb8}
.sidebar-collapsed .workspace{grid-template-columns:56px 0 minmax(0,1fr)}
.sidebar-collapsed .sidebar-splitter{visibility:hidden}
.preview-focus .workspace{grid-template-columns:minmax(0,1fr)}
.preview-focus .sidebar-splitter{display:none}
.profile-screen{height:calc(100vh - 62px);overflow:auto;background:#edf3f4;display:grid;place-items:center;padding:32px}
.profile-card{background:white;border:1px solid #d6e1e5;border-radius:14px;padding:38px;width:min(560px,100%);box-shadow:0 10px 40px #1736420c}
.profile-card h1{margin:12px 0;font-size:29px}.profile-card p{color:#48616e;line-height:1.6}
.profile-card small{display:block;color:#4a6370;line-height:1.6;border-top:1px solid #e1e8ec;padding-top:20px;margin-top:20px}
.profile-card label{display:block;font-weight:600;margin:22px 0 8px}
.profile-choice{display:block;width:100%;text-align:left;padding:15px 18px;background:#f2f8f7;border:1px solid #c6ded9;border-radius:7px;margin:9px 0;color:#175b56;font-weight:600;font-size:16px}
.profile-choice:hover{background:#dceee9}
.profile-card input,.manage-client-search{padding:11px;border:1px solid #cbd9df;border-radius:5px;min-width:0}
.manage-client-search{width:100%;margin:12px 0}
.manage-client-row{gap:10px}.manage-client-row input[type=checkbox]{width:18px;height:18px;accent-color:#087c75;flex:none}
.crumb-folder{border:0;background:transparent;padding:0;color:#315767;font-weight:600}.crumb-folder:hover{text-decoration:underline}
.folder-list{overflow:auto}.folder-row{flex-shrink:0}.breadcrumb{white-space:nowrap;overflow:auto;max-width:65vw}
@media(max-width:900px){.workspace{grid-template-columns:56px 0 minmax(0,1fr)}.sidebar-splitter{display:none}}
.main-inbox{display:flex;align-items:center;gap:9px;width:100%;padding:13px 10px;border:1px solid #bfd7d2;border-radius:7px;background:#fff;color:#245a55;font-weight:650;text-align:left}.main-inbox b{margin-left:auto;background:#dceee9;border-radius:12px;min-width:24px;text-align:center;padding:2px 6px}.main-inbox.active{background:#dceee9;border-color:#70aaa1;color:#075f57}.intake-nav-hint{font-size:11px;color:#506b76;margin:7px 4px 20px}.assignment-panel{background:#f0f8f5;border-top:1px solid #c9e0d7;border-bottom:1px solid #c9e0d7;padding:14px 20px;flex-shrink:0}.assignment-panel strong{font-size:14px;color:#214e44}.assignment-panel small{font-size:12px;color:#4f6d62;margin-left:12px}.assignment-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.assignment-actions input,.assignment-actions select{min-width:120px;padding:10px;border:1px solid #b8cec7;border-radius:5px;background:#fff;color:#234a40;font-size:14px}.assignment-actions input{width:170px}.assignment-actions select{flex:1}.assignment-panel p{margin:8px 0 0;color:#29594a;font-size:12px}.assignment-panel p:empty{display:none}.intake-mode .folder-heading{display:none}.sidebar-collapsed .main-inbox{padding:9px;justify-content:center}.sidebar-collapsed .main-inbox>span:not([data-icon]),.sidebar-collapsed .main-inbox b,.sidebar-collapsed .intake-nav-hint{display:none}@media(max-width:1150px){.assignment-panel small{display:block;margin:5px 0}.assignment-panel{padding:12px}.assignment-actions input{width:100%}.assignment-actions .button{padding:8px}.workspace-actions{flex-wrap:wrap}}@media(max-width:900px){.main-inbox>span:not([data-icon]),.main-inbox b,.intake-nav-hint{display:none}.main-inbox{padding:8px;justify-content:center}}
.client-inbox-email{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#365967}.client-inbox-email input{width:260px;max-width:100%;padding:5px 7px;border:1px solid #cbdadd;border-radius:4px;background:#f6faf9;color:#174e46;font-size:12px}.email-inactive{background:#fff3d8;color:#77551b;padding:4px 7px;border-radius:4px;font-size:11px}.new-email-controls{display:flex;align-items:center;gap:12px;margin:10px 0;flex-wrap:wrap}.new-email-controls span{font-size:13px;color:#215d53;overflow-wrap:anywhere}.email-note{font-size:12px;color:#6b572c;margin:5px 0 14px}.manage-client-row{flex-wrap:wrap}.manage-client-row .client-info{min-width:130px}.saved-client-email{overflow-wrap:anywhere;color:#215c53!important}.new-client-form{border-bottom:1px solid #dce5e8;padding-bottom:10px}

.new-email-controls input{width:300px;max-width:100%;padding:9px 10px;border:1px solid #9dbab3;border-radius:5px;background:#fff;color:#174e46;font-size:14px}

/* Client bookkeeping reminders: both color and visible text, including active selection. */
.client-row-text{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.client-row-text .client-name{max-width:100%}
.client-kind-badge{display:inline-flex;width:fit-content;align-items:center;border:1px solid;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:700;line-height:17px;letter-spacing:0;text-transform:none;white-space:nowrap}
.client-kind-badge.kind-doo{background:#e4eefc;color:#174c89;border-color:#a3c0e6}.client-kind-badge.kind-independent{background:#fff0d8;color:#794600;border-color:#d9b77f}
.client-row.kind-doo{border-left:3px solid #3978c4;background:#f0f5fc}.client-row.kind-independent{border-left:3px solid #bd7a1e;background:#fff7eb}
.client-row.kind-doo:hover,.client-row.kind-doo.active{background:#dbe9fb}.client-row.kind-independent:hover,.client-row.kind-independent.active{background:#ffe9c6}
.client-row.kind-doo .client-avatar,.manage-client-row.kind-doo .client-avatar{background:#d6e6fa;color:#174c89}.client-row.kind-independent .client-avatar,.manage-client-row.kind-independent .client-avatar{background:#ffe5bd;color:#794600}
.client-row.active{outline:1px solid #728b99;outline-offset:-1px}.manage-client-row .client-kind-badge{margin:4px 0}.sidebar-collapsed .client-row-text{display:none}

.file-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.file-pane-heading #list-upload{font-size:12px;min-height:33px;padding:6px 9px;flex-shrink:0}

.file-pane-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.file-pane-actions .button{font-size:12px;min-height:33px;padding:6px 9px}.file-pane-heading>div:first-child{min-width:100px}

.folder-line{display:flex;align-items:center;gap:2px}.folder-line .folder-row{min-width:0;flex:1}.folder-delete{color:#9c4039;width:28px;height:30px}.folder-delete:hover{background:#fbe9e6;color:#852c26}.delete-folder-confirm{background:#a6342b;color:#fff}#delete-folder-dialog{width:460px;max-width:calc(100vw - 30px)}#delete-folder-description{line-height:1.6}

.assignment-search-hint{font-size:12px;color:#294d43;margin:9px 0 5px}.assignment-results{display:flex;flex-direction:column;max-height:150px;overflow:auto;border:1px solid #b8cec7;border-radius:5px;background:#fff}.assignment-result{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #e0eae5;padding:9px 11px;color:#204638;font-size:13px;flex-shrink:0}.assignment-result:last-child{border-bottom:0}.assignment-result:hover{background:#eaf5ef}.assignment-result[aria-pressed="true"]{background:#d6eee1;box-shadow:inset 3px 0 #087c75;font-weight:650}.assignment-result .client-kind-badge{flex-shrink:0}

.table-heading{display:grid;grid-template-columns:minmax(0,1fr) 50px 84px;gap:8px;padding-right:15px}.table-heading>button:first-child{text-align:left}.number-column-heading{text-align:center;color:#365968}.file-number{flex:0 0 50px;width:50px;min-width:0;padding:5px 3px;text-align:center;color:#233f4e;background:transparent;border:1px solid transparent;border-radius:4px;font-size:13px}.file-number:hover,.file-number:focus{background:#fff;border-color:#99b9b1}.file-information{min-width:0}.metadata-date-button{flex:0 0 84px;width:84px;background:none;border:0;padding:4px 0;text-align:right;cursor:pointer;color:#3b5868;font-size:12px}.metadata-date-button:hover{text-decoration:underline}#metadata-dialog{width:520px;max-width:calc(100vw - 30px)}.metadata-standard{display:flex;gap:16px}.metadata-standard label{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;font-weight:600;color:#294a56}.metadata-standard input,.metadata-custom-row input{width:100%;min-width:0;padding:9px;border:1px solid #abc3c8;border-radius:4px;color:#254752;background:#fff}.metadata-note{font-size:12px;line-height:1.5;color:#536b76}.metadata-custom-row{display:flex;gap:8px;margin:9px 0}.metadata-custom-row input{flex:1}.metadata-custom-row .icon-button{flex-shrink:0}

#metadata-dialog .metadata-standard{margin-top:14px}#folder-fields-dialog{width:520px;max-width:calc(100vw - 30px)}.metadata-custom-row input[readonly]{background:#eff4f5;font-weight:600;color:#34515d}

.account-form{display:grid;gap:16px;margin-top:22px}.account-form label{display:grid;gap:8px;color:#264653;font-size:14px;font-weight:600}.account-form input{width:100%;min-width:0;padding:12px;border:1px solid #9fb9c1;border-radius:6px;background:#fff;color:#173c4b;font:inherit;font-weight:400}.account-form input:focus{outline:3px solid #c7e8e2;border-color:#087d78}.account-form .form-error{margin:0}.account-form>.primary{justify-content:center;min-height:44px;font-size:15px}.account-form h3{margin:4px 0 0;font-size:17px}#accounts-dialog{width:560px;max-height:85vh;overflow:auto}#accounts-list{max-height:230px;overflow:auto}#login-screen .profile-card{max-width:440px}#login-screen small{display:block;margin-top:24px;line-height:1.5;color:#4d6570}

/* Folder tree: independent scrolling and compact, collapsible branches. */
.sidebar{overflow:hidden}
.sidebar>.main-inbox,.sidebar>.intake-nav-hint,.sidebar>.sidebar-heading,.sidebar>.client-search,.sidebar>.folder-heading,.sidebar>.trash-row,.sidebar>.sidebar-bottom{flex-shrink:0}
.sidebar>.client-list{max-height:min(218px,28vh)}
.sidebar>.folder-list{flex:1 1 100px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.folder-list::-webkit-scrollbar{width:9px}
.folder-list::-webkit-scrollbar-thumb{background:#8ba5ae;border:2px solid #f6f8f9;border-radius:8px}
.folder-section-toggle{display:flex;align-items:center;gap:5px;border:0;background:transparent;padding:5px 0;color:#3c5665;font-size:11px;font-weight:700;letter-spacing:1px}
.folder-section-toggle svg{width:14px;height:14px;transition:transform .12s}
.folder-section-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.folder-tree-line{gap:0;min-width:0;align-items:stretch}
.folder-tree-line .folder-row{gap:6px;min-width:0;margin-bottom:2px;padding-right:5px}
.folder-tree-line .folder-label{min-width:0;flex:1}
.folder-tree-line .folder-row>span:first-child{flex:none}
.folder-tree-line .folder-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;border:0;border-radius:4px;background:transparent;color:#315a67;padding:0;margin-bottom:2px}
.folder-toggle svg{width:15px;height:15px;transition:transform .12s}
.folder-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.folder-toggle:hover{background:#dcece8}
.folder-toggle-spacer{visibility:hidden}
.sidebar-collapsed .folder-toggle{display:none}
.sidebar-collapsed .folder-tree-line{padding-left:0!important}
@media(max-width:900px){.folder-toggle{display:none!important}.folder-tree-line{padding-left:0!important}}
@media(max-height:650px){.sidebar>.client-list{max-height:22vh}.sidebar-bottom{display:none}.folder-heading{margin-top:6px}.intake-nav-hint{margin:5px 0}}

.share-dialog{width:620px;max-height:90vh;overflow:auto}
.share-dialog h3{font-size:15px;margin:16px 0 10px;color:#254956}
.share-dialog section{border-top:1px solid #dce5e8;padding-bottom:8px}
.share-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.share-actions label{display:flex;align-items:center;gap:8px;font-size:13px}
.share-actions select{border:1px solid #c6d7df;border-radius:4px;padding:8px;color:#254956;background:white}
#share-link{width:100%;padding:10px;border:1px solid #87b7ac;border-radius:5px;color:#244b53;background:#f0f8f5;margin:6px 0}
#share-expiry{display:block;color:#375d65}
.share-local-note{padding:10px;border-radius:5px;color:#77500f;background:#fff3d7;font-size:12px;line-height:1.6}
.share-existing-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1eaee;padding:10px 0}
.share-existing-row strong{display:block;font-size:12px;overflow-wrap:anywhere}
.share-existing-row small{display:block;color:#526d79;margin-top:4px}
.share-dialog summary{cursor:pointer;color:#315a67;font-weight:600;padding:10px 0}

/* Compact working header: document area starts directly below the top bar. */
.workspace-heading{min-height:70px;padding:7px 16px;gap:8px}
.current-place{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:3px;align-items:center;min-width:0;width:100%}
.current-place h1{grid-column:1;grid-row:1;font-size:18px;line-height:25px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.current-place>.eyebrow{grid-column:2;grid-row:1;justify-self:end;white-space:nowrap}
.current-place>.breadcrumb{grid-column:1;grid-row:2;min-width:0;overflow:hidden;white-space:nowrap}
.current-place>.client-inbox-email{grid-column:2;grid-row:2;margin:0;padding:0;gap:6px;font-size:11px}
.current-place .client-inbox-email input{max-width:210px;height:25px;padding:3px 5px;font-size:11px}
.current-place .client-inbox-email .small-button{padding:3px;font-size:11px}
.current-place .email-inactive{font-size:10px;padding:3px 5px}
.file-pane-heading{padding:10px 13px 9px}
.preview-titlebar{min-height:55px;padding:8px 14px}
.preview-controls{height:36px;min-height:36px}
.share-dialog{margin:70px auto auto;max-height:calc(100dvh - 90px)}
@media(max-width:1250px){.current-place>.client-inbox-email input{max-width:155px}.current-place .client-inbox-email>span:first-child{display:none}.current-place .email-inactive{max-width:80px;white-space:normal}.current-place{column-gap:9px}.current-place h1{font-size:17px}}
@media(max-width:900px){.current-place>.client-inbox-email{grid-column:1 / -1;grid-row:3}.workspace-heading{min-height:70px}.current-place>.eyebrow{font-size:8px}}

/* Direct sharing: clear actions without technical helper instructions. */
.share-copy-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.share-copy-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:100px;padding:15px 8px;border:1px solid #c9dedb;border-radius:12px;background:#f1f9f7;color:#075f59;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.share-copy-button span:last-child{font-size:14px;font-weight:650}
.share-copy-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dcefe9}
.share-copy-icon svg{width:23px;height:23px}
.share-copy-button:hover:not(:disabled){border-color:currentColor;transform:translateY(-1px);background:#e5f4ef}
.share-copy-button:focus-visible{outline:3px solid #9ccdc8;outline-offset:3px}
.share-viber{color:#6751ad;background:#f6f3fc;border-color:#ded5ef}.share-viber .share-copy-icon{background:#e9e1f8}.share-viber:hover:not(:disabled){background:#eee8f9}
.share-download{color:#365566;background:#f6f8fa;border-color:#d7e0e6}.share-download .share-copy-icon{background:#e6edf2}.share-download:hover:not(:disabled){background:#edf2f6}
.share-copy-button:disabled{opacity:.5;cursor:wait}
@media(max-width:480px){.share-copy-actions{grid-template-columns:1fr;gap:8px}.share-copy-button{flex-direction:row;justify-content:flex-start;min-height:58px;padding:9px 14px}}
/* Stronger selection actions, still within the document column. */
.file-toolbar{flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
.file-toolbar .select-all{font-size:13px;font-weight:650;color:#145d58;gap:8px}
.file-toolbar:has(#select-all:checked){background:#f0f8f6}
.selection-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.selection-actions .small-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 10px;border-radius:7px;font-size:13px;font-weight:650;line-height:1.2}
#share-selected{background:#087c75;color:#fff;border:1px solid #087c75}
#share-selected:hover:not(:disabled){background:#06665f;border-color:#06665f}
#move-selected{background:#edf4fb;color:#245982;border:1px solid #bfd1e3}
#move-selected:hover:not(:disabled){background:#dfeefa;border-color:#8aaecb}
#trash-selected{margin-left:3px;width:33px;min-height:34px;border:1px solid #e5d2d2;border-radius:7px;color:#9a5151;background:#fff8f7}
#trash-selected:hover:not(:disabled){background:#fbe9e7;border-color:#ce9790}
.selection-actions button:disabled{opacity:.35}

.workspace-heading{min-height:58px;padding:4px 16px}.current-place{row-gap:1px}.current-place h1{line-height:23px}.metadata-enter-hint{margin-right:auto;font-size:12px;color:#426b70;font-weight:600}@media(max-width:900px){.workspace-heading{min-height:58px}}
/* Keep the top line for the client name only. */
.current-place>.eyebrow{display:none!important}
.workspace-heading{min-height:50px;padding:3px 16px}
.current-place>.client-inbox-email{grid-row:1 / span 2}
.file-toolbar{min-height:42px;padding:7px 13px;background:#fff}
.file-toolbar .select-all{font-size:13px;color:#405e68;font-weight:600}
.selection-actions:not(:has(button:not(:disabled):not([hidden]))){display:none}
.file-toolbar:has(.selection-actions button:not(:disabled):not([hidden])){background:#f1f8f6}
.file-toolbar:has(.selection-actions button:not(:disabled):not([hidden])) .select-all{color:#075f59;font-weight:700}
.table-heading,.table-heading button,.number-column-heading{font-size:12px;font-weight:650;color:#355765}
@media(max-width:900px){.workspace-heading{min-height:50px}.current-place>.client-inbox-email{grid-row:3}}

.current-place h1{font-size:20px;font-weight:750;line-height:25px;letter-spacing:.35px;text-transform:uppercase;color:#173f4b}@media(max-width:1250px){.current-place h1{font-size:19px}}

.share-permissions{display:flex;gap:14px;flex-wrap:wrap;border:1px solid #cadcd8;border-radius:8px;padding:12px;margin:12px 0;color:#244d51}.share-permissions legend{padding:0 5px;font-size:13px;font-weight:650}.share-permissions label,.share-permission-editor label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}.share-permissions input,.share-permission-editor input{accent-color:#087c75}.share-permissions small{flex-basis:100%;font-size:12px;color:#526f76}.share-existing-row{flex-wrap:wrap}.share-existing-row>span{flex:1;min-width:180px}.share-permission-editor{flex-basis:100%;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f3f8f7;padding:12px;border-radius:7px}.share-permission-editor select{max-width:160px;padding:7px}.share-permission-editor .form-error{flex-basis:100%}

/* Balanced navigation and header Inbox. */
.topbar-center{display:none}.topbar .main-inbox{display:flex;align-items:center;gap:9px;flex-shrink:0;width:auto;margin:0;padding:9px 12px;border:1px solid #577b80;border-radius:7px;color:#e8f5f2;background:#213f47;font-size:13px;font-weight:650}.topbar .main-inbox.active{background:#176a65;border-color:#51b2a4}.topbar .main-inbox b{margin-left:8px;background:#dcefe9;color:#075f59;border-radius:12px;padding:2px 7px;font-size:12px}
.sidebar{display:flex;flex-direction:column;gap:0;padding-top:6px;padding-bottom:6px}.sidebar-clients,.sidebar-folders{display:flex;flex-direction:column;flex:1 1 50%;min-height:0;overflow:hidden}.sidebar-clients{padding-bottom:10px}.sidebar-folders{border-top:1px solid #d3e1e4;padding-top:7px}.sidebar-clients .sidebar-heading,.sidebar-clients .client-search,.sidebar-folders .folder-heading,.sidebar-folders .trash-row{flex-shrink:0}.sidebar-clients .client-list,.sidebar-folders .folder-list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.sidebar-bottom{display:none}.sidebar-folders .folder-heading{margin-top:0}.intake-mode .sidebar-folders{display:none}.intake-mode .sidebar-clients{flex:1}
.file-toolbar{height:auto;min-height:48px;flex:0 0 auto}.table-heading{flex-shrink:0}.selection-actions{max-width:100%}

/* Client identity aligned with the preview heading. */
.file-pane>.workspace-heading{flex:0 0 auto;min-height:61px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--line);align-items:flex-start}
.file-pane .current-place{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.file-pane .current-place h1{color:#e6b447;font-size:20px;line-height:25px;margin:0;max-width:100%;font-weight:750}
.file-pane .breadcrumb,.file-pane .breadcrumb b,.file-pane .crumb-arrow{color:#426675}
.file-pane .client-inbox-email{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px;color:#365967;font-size:10px}
.file-pane .client-inbox-email input{width:190px;max-width:100%;font-size:10px}
.file-pane .client-inbox-email .small-button{color:#365967}
.file-pane .client-inbox-email>span:first-child{display:none}
.preview-titlebar{align-items:flex-start}

:root{--sidebar:380px;--list:380px}

/* Move destinations always show the complete folder tree. */
#move-folders{max-height:min(50vh,440px);overflow-y:auto;overflow-x:hidden}
.move-tree-choice{flex-wrap:wrap;gap:8px;padding:11px 12px}
.move-tree-choice .move-folder-name{flex:1;min-width:100px;overflow-wrap:anywhere;font-weight:600}
.move-tree-choice.current-location{background:#f2f6f7;border-color:#d9e3e7;cursor:default}
.move-current-note{flex-basis:100%;padding-left:43px;color:#526c77;font-size:11px}

.client-row-text{flex:1}
.client-row-details{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;width:100%;min-width:0}
.client-inbox-count{flex:none;margin-left:auto;white-space:nowrap;border:1px solid #d3dfe5;border-radius:12px;padding:2px 6px;background:#f6f8fa;color:#536b78;font-size:11px;font-weight:650}
.client-inbox-count.has-documents{background:#087c75;border-color:#087c75;color:#fff;font-weight:750}

/* F5 workstation: independent document and metadata scroll areas. */
.focus-editor{display:none}
.preview-focus .document-workspace{grid-template-columns:minmax(0,1fr) clamp(310px,28vw,430px)}
.preview-focus .focus-editor{display:block;overflow-y:auto;min-height:0;background:#fff;border-left:1px solid #cfdee3;padding:20px 20px 28px}
.focus-editor-heading{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}
.focus-editor-heading h2{font-size:19px;line-height:1.4;text-transform:uppercase;color:#173f4b;margin:7px 0}
.focus-editor small{display:block;font-size:12px;line-height:1.5;color:#526e7b}
.focus-editor fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:9px}
.focus-editor label{font-size:13px;font-weight:650;color:#285963}
.focus-editor input,.focus-editor select{width:100%;min-width:0;padding:10px;border:1px solid #bfced6;border-radius:5px;color:#244653;background:#fff;font-size:14px}
.focus-editor .rename-input input{border:0}
.focus-standard{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;margin:10px 0}
.focus-standard input{margin-top:7px}
.focus-field-row{display:grid;grid-template-columns:1fr;gap:6px;margin-top:15px}
.focus-field-row input[data-label]{font-size:12px;font-weight:650;padding:5px 7px;background:#f3f7f8}
.focus-field-row input[data-label]:read-only{border-color:transparent;background:transparent;padding-left:0;color:#285963}
#focus-save-next{margin-top:20px;min-height:42px;font-size:14px}
#focus-status{font-size:13px;line-height:1.5;color:#27545d;overflow-wrap:anywhere}
.preview-focus #rename-document,.preview-focus #metadata-document{display:none}
.preview-focus .preview-titlebar{flex-shrink:0}
@media(max-width:850px){.preview-focus .document-workspace{grid-template-columns:minmax(0,1fr) 290px}.preview-focus .focus-editor{padding:12px}.focus-standard{grid-template-columns:1fr}}
/* PDF merge: compact toolbar, scrollable reorder list. */
.selection-actions:has(.merge-action:not([hidden])){flex-wrap:wrap;justify-content:flex-end;gap:5px}
.file-toolbar:has(.merge-action:not([hidden])){height:auto;min-height:48px;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}
#merge-dialog{width:min(580px,94vw)}
#merge-controls{border:0;padding:0;margin:0;min-width:0}
#merge-name{width:100%}
#merge-order{list-style:none;padding:0;max-height:260px;overflow:auto;border-top:1px solid #dce7eb}
#merge-order li{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #dce7eb}
#merge-order li span{flex:1;min-width:0;overflow-wrap:anywhere}
.merge-trash-label{display:flex;gap:8px;align-items:center;font-size:13px}
#merge-progress{color:#087e7b;font-weight:600}
#merge-name{box-sizing:border-box;border:1px solid #b8cfd6;border-radius:6px;padding:10px 12px;font:inherit;color:#173e4d;background:#fff}
#merge-order .small-button{border:1px solid #b8cfd6;border-radius:5px;min-width:32px;min-height:30px;font-size:18px;color:#075e66;background:#f3f9fa}
#merge-order .small-button:disabled{opacity:.35}
.merge-action{font-weight:700;color:#087b79}
/* PDF editor stays inside one bounded dialog; workspace widths are untouched. */
#merge-dialog{width:min(1120px,94vw);max-width:94vw;max-height:94vh;padding:22px;box-sizing:border-box;position:relative}
#merge-dialog form{display:flex;flex-direction:column;min-height:0}
#merge-dialog .dialog-heading{margin-bottom:12px}#merge-dialog h2{margin:0 0 5px}
#merge-dialog .dialog-description{margin:0;color:#41606c;font-weight:600}
.pdf-editor-settings{display:grid;grid-template-columns:1fr 310px;gap:18px}
.pdf-editor-settings label{font-size:13px;font-weight:650;display:grid;gap:6px}
.pdf-editor-settings select{font:inherit;color:#173e4d;border:1px solid #b8cfd6;border-radius:6px;padding:10px;background:#fff;min-width:0}
.pdf-editor-toolbar{display:flex;align-items:center;gap:10px;margin:12px 0;flex-wrap:wrap}
.pdf-editor-toolbar p{flex:1;font-size:13px;color:#385863;margin:0;min-width:200px}
#pdf-organizer-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;overflow:auto;max-height:50vh;min-height:220px;padding:12px;background:#edf2f4;border:1px solid #d4e0e4;border-radius:8px;align-content:start;overscroll-behavior:contain}
.pdf-page-card{min-width:0;padding:10px;background:#fff;border:2px solid transparent;border-radius:7px;color:#183d4b;box-shadow:0 2px 5px #183d4b12}
.pdf-page-card.is-selected{border-color:#07837c}.pdf-page-card.starts-pdf{border-top:5px solid #e8b33e}
.pdf-page-label{display:flex;gap:8px;align-items:center;font-weight:700;font-size:13px;margin-bottom:8px}
.pdf-thumb{display:flex;align-items:center;justify-content:center;position:relative;border:0;background:#f6f7f7;width:100%;height:220px;padding:4px;cursor:zoom-in;overflow:hidden}
.pdf-thumb canvas{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 1px 4px #0002}.pdf-thumb-note{position:absolute;font-size:12px;color:#812d28}
.pdf-source{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:9px 0;color:#47616a;font-size:11px}
.pdf-page-actions{display:flex;justify-content:space-between;gap:5px}.pdf-page-actions button{font-size:18px;min-width:38px}
.pdf-cut{margin-top:8px;width:100%;font-size:12px}.pdf-cut[aria-pressed=true]{background:#ffedbd;color:#543b04;border-color:#d9a52e}
.pdf-editor-footer{display:flex;gap:20px;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid #d4e0e4}
.pdf-editor-footer .metadata-note{max-width:720px;margin:6px 0 0;font-size:12px}.pdf-editor-footer .button{flex-shrink:0}
#merge-progress:empty,#merge-error:empty{display:none}#pdf-large{position:absolute;inset:0;background:#edf2f4;padding:20px;z-index:2;display:flex;flex-direction:column}#pdf-large[hidden]{display:none}
#pdf-large header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:15px}#pdf-large>div{overflow:auto;text-align:center;min-height:0}#pdf-large canvas{background:white;max-width:100%;box-shadow:0 2px 10px #0002}
@media(max-width:650px){.pdf-editor-settings{grid-template-columns:1fr}.pdf-editor-footer{align-items:stretch;flex-direction:column}#pdf-organizer-pages{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));max-height:40vh}#merge-dialog{padding:15px}}
/* Header navigation stays next to the brand, independent of sidebar width. */
.topbar .brand{min-width:0;flex:0 0 auto;margin-right:0}
.topbar{gap:22px}
.topbar .main-inbox{background:#e6b447;color:#172831;border-color:#e6b447;font-weight:750;box-shadow:0 1px 2px #0002}
.topbar .main-inbox:hover{background:#f2c45d;border-color:#f2c45d}
.topbar .main-inbox.active{background:#f2c45d;border-color:#ffe1a0;box-shadow:inset 0 -3px 0 #977019}
.topbar .main-inbox b{background:#172831;color:#ffe09a;margin-left:6px;font-weight:750}
.topbar .main-inbox:focus-visible{outline:2px solid #fff;outline-offset:3px}
.topbar .main-inbox>span:not([data-icon]),.topbar .main-inbox b{display:block}
@media(max-width:680px){.topbar{gap:12px}.topbar .main-inbox{padding:8px;gap:6px}}
/* Client name: branded badge; keep the white header and existing panel margins. */
.file-pane .current-place h1{background:#e6b447;color:#172831;border:1px solid #e6b447;border-radius:4px 10px 4px 4px;padding:2px 8px;font-weight:750;overflow-wrap:anywhere;white-space:normal}

/* F5: date is retained internally; only the document number is editable here. */
.focus-standard{grid-template-columns:1fr}

.password-input-wrap{display:block;position:relative;width:100%}.account-form .password-input-wrap input{width:100%;padding-right:48px}.password-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:34px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#245361;cursor:pointer}.password-eye:hover,.password-eye[aria-pressed="true"]{background:#e0efec;color:#006f68}.password-eye svg{width:21px;height:21px}
