/* Build 002 desktop workspace. Login uses the preserved stylesheet unchanged. */
#app{display:block;height:100dvh;overflow:hidden}
#desktop-only{display:none}
#app #desktop-library{--agency:#000;--sidebar-width:210px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:12px;color:#32343a;background:#fff;height:100%;display:flex;flex-direction:column}
#desktop-library .workspace-brand{display:flex;flex-shrink:0;height:73px;align-items:center;justify-content:space-between;padding:0 29px 0 30px;border:0;background:white;gap:0}
#desktop-library #workspace-logo{width:110px;height:28px;display:flex;align-items:center;font-size:12px;font-weight:600}
#desktop-library #workspace-logo svg{width:100%;height:100%}
#desktop-library .workspace-powered{display:grid;grid-template-columns:max-content;gap:4px;color:#737981;font-size:10px;line-height:1}
#desktop-library .workspace-powered img{width:0;min-width:100%;height:auto}
#desktop-library .workspace-body{display:flex;flex:1;min-height:0;gap:12px;padding:10px 16px 15px}
#desktop-library .finder-sidebar{width:var(--sidebar-width);flex:0 0 var(--sidebar-width);padding:21px 10px 12px;background:#f8f8f9;border:1px solid #f0f0f2;border-radius:13px;box-shadow:0 2px 9px #00000004;display:flex;flex-direction:column;margin:0}
#desktop-library .location{display:flex;width:100%;align-items:center;gap:9px;font-size:12px;line-height:17px;padding:7px 10px;border:0;border-radius:5px;margin:1px 0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#desktop-library .location.active{background:#e9e9ec;color:#242629}
#desktop-library .location:hover{background:#eeeef0}
#desktop-library .location svg{width:16px;height:16px;flex-shrink:0;stroke:#777d87;stroke-width:1.55;fill:none}
#desktop-library .location .folder-art{width:18px;height:17px;flex-shrink:0}
#desktop-library .location .folder-art svg{width:18px;height:17px;stroke:none}
#desktop-library #locations h2{font-size:10px;line-height:14px;font-weight:600;color:#96999e;margin:25px 10px 7px;letter-spacing:.1px}
#desktop-library .sidebar-bottom{margin-top:auto;padding:20px 10px 0;font-size:10px;color:#888c93}
#desktop-library #signout{font-size:10px;padding:8px 0 0;color:#747a83;margin-top:10px}
#desktop-library .finder-main{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden;background:white}
#desktop-library .finder-toolbar{height:52px;flex:0 0 52px;display:flex;align-items:center;gap:20px;padding:0 19px 0 13px;background:#fff;border-bottom:1px solid #f1f1f2}
#desktop-library .history-buttons{display:flex;gap:1px}
#desktop-library .history-buttons button{display:grid;place-items:center;padding:5px;width:25px;height:26px;color:#757a84}
#desktop-library svg{display:block}
#desktop-library .history-buttons svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
#desktop-library #title{font-size:14px;font-weight:600;letter-spacing:-.15px;line-height:20px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#desktop-library .view-switch{display:flex;gap:1px;border:1px solid #e5e5e7;border-radius:5px;padding:2px}
#desktop-library .view-switch button{width:29px;height:24px;border-radius:3px;display:grid;place-items:center;padding:5px;color:#858992}
#desktop-library .view-switch button[aria-pressed=true]{background:#eeeeef;color:#4e535b}
#desktop-library .view-switch svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.4;fill:none;stroke-linejoin:round;stroke-linecap:round}
#desktop-library .finder-search{display:flex;align-items:center;width:180px;height:28px;border:1px solid #e1e2e5;border-radius:6px;padding:0 8px;gap:5px}
#desktop-library .finder-search svg{width:14px;height:14px;stroke:#9a9ea6;stroke-width:1.6;fill:none;stroke-linecap:round}
#desktop-library .finder-search input{border:0;outline:none;background:transparent;font:inherit;font-size:11px;padding:4px 0;width:100%;color:#353a43}
#desktop-library .finder-search:focus-within{outline:1px solid var(--agency);outline-offset:1px}
#desktop-library #view-host{flex:1;min-height:0;overflow:auto;position:relative;outline:none;background:white}
#desktop-library .finder-status{height:33px;flex:0 0 33px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #efeff1;background:white;padding:0 18px;font-size:10px;color:#a0a3aa;gap:20px}
#desktop-library #breadcrumbs{display:flex;gap:7px;align-items:center;min-width:0;overflow:auto}
#desktop-library #breadcrumbs button{padding:3px 0;font-size:10px;color:#8c9199;white-space:nowrap}
#desktop-library #item-count{white-space:nowrap}
#desktop-library .folder-art{display:block;width:76px;height:60px;filter:drop-shadow(0 2px 1px #2860800d)}
#desktop-library .folder-art svg{width:100%;height:100%}
#desktop-library .icon-grid{position:relative;width:100%}
#desktop-library .icon-item,.drag-ghost{width:104px;height:100px;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 4px 5px;border:1px solid transparent;border-radius:6px;user-select:none}
#desktop-library .icon-item .folder-art{margin:1px 0 9px}
#desktop-library .item-name{font-size:11px;line-height:15px;color:#41454d;overflow-wrap:anywhere;max-width:100%}
#desktop-library .icon-item .item-name{text-align:center;max-height:31px;overflow:hidden;padding:0 3px;border-radius:3px}
#desktop-library .selected{background:#f0f1f3}
#desktop-library .icon-item.selected{background:transparent}
#desktop-library .icon-item.selected .item-name{background:#e6e8ec;color:#232830}
#desktop-library .icon-item:focus-visible{outline:1px solid #9fa5af;outline-offset:0}
#desktop-library .drop-target{outline:2px solid #6e9abb;background:#ecf5fb}
#desktop-library .drag-source{opacity:0}
.drag-ghost{position:fixed!important;z-index:1000;pointer-events:none;opacity:1;background:transparent;border:1px solid transparent;font:11px -apple-system,sans-serif;text-align:center;box-shadow:none}
.drag-ghost .folder-art{width:76px;height:60px}.drag-ghost svg{width:100%;height:100%}.drag-ghost .file-art{width:44px;height:59px}.drag-ghost img{width:100%}
#desktop-library .file-art{display:block;position:relative;width:45px;height:60px;margin:1px auto 9px;background:#fff;border:1px solid #dfe1e5;border-radius:2px;box-shadow:0 2px 4px #1f304215;overflow:hidden;flex-shrink:0}
#desktop-library .file-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:top}
#desktop-library .file-type{display:block;font-size:7px;font-weight:700;line-height:11px;padding:4px 4px 0;color:#707a88}
#desktop-library .file-art.word .file-type{color:#396aa4}#desktop-library .file-art.sheet .file-type{color:#4b856c}
#desktop-library .file-caption{display:block;font-size:4px;line-height:5px;margin:3px 4px;max-height:15px;overflow:hidden;color:#848b95}
#desktop-library .paper-rules{display:block;height:13px;margin:4px;border-top:1px solid #e3e6eb;border-bottom:1px solid #e3e6eb}
#desktop-library .finder-table{border-collapse:separate;border-spacing:0;width:calc(100% - 24px);margin:0 12px;font-size:11px;table-layout:fixed}
#desktop-library .finder-table th{position:sticky;top:0;text-align:left;background:#fff;z-index:1;color:#90969e;border-bottom:1px solid #efeff1;height:32px;font-size:10px;font-weight:400;padding:0 8px}
#desktop-library .finder-table th button{font-size:10px;padding:4px 0;color:inherit}
#desktop-library .finder-table th:first-child{width:30%}#desktop-library .finder-table th:nth-child(2){width:16%}#desktop-library .finder-table th:nth-child(3){width:13%}#desktop-library .finder-table th:nth-child(4){width:8%}
#desktop-library .finder-table td{height:35px;padding:5px 8px;color:#8c929b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-top:1px solid transparent;border-bottom:1px solid transparent;font-size:10px}
#desktop-library .finder-table td button{font-size:10px;padding:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#858d98;text-align:left}
#desktop-library .finder-table tr:nth-child(even){background:#f9f9fa}
#desktop-library .finder-table tr.selected{background:#eceef1}
#desktop-library .finder-table tr:focus-visible{outline:1px solid #929ba8;outline-offset:-1px}
#desktop-library .finder-table .name-cell{color:#434850}
#desktop-library .name-cell .folder-art,#desktop-library .name-cell .file-art{display:inline-block;vertical-align:middle;width:20px;height:22px;margin:0 8px 0 0}
#desktop-library .name-cell .file-art{width:16px;height:21px;margin-left:2px;margin-right:10px;box-shadow:0 1px 2px #0001}
#desktop-library .name-cell .file-type{font-size:3px;line-height:5px;padding:2px}.finder-table .file-caption,.finder-table .paper-rules{display:none!important}
#desktop-library .empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;gap:12px;color:#a0a5ad;font-size:11px}
#desktop-library .empty-state .folder-art{opacity:.45;width:60px;height:48px}
#desktop-library .empty-state strong{font-size:12px;font-weight:500;color:#868d96}
#desktop-library .column-browser{display:flex;height:100%;overflow:auto;align-items:stretch}
#desktop-library .finder-column{width:225px;min-width:225px;overflow:auto;border-right:1px solid #e9eaed;padding:8px 6px}
#desktop-library .column-item{height:31px;display:flex;align-items:center;gap:8px;padding:4px 7px;border-radius:4px;cursor:default}
#desktop-library .column-item .folder-art{width:20px;height:20px;flex-shrink:0}
#desktop-library .column-item .file-art{width:15px;height:21px;margin:0 2px;box-shadow:none}
#desktop-library .column-item .file-type{font-size:3px;line-height:4px;padding:1px}
#desktop-library .column-item .file-caption,#desktop-library .column-item .paper-rules{display:none}
#desktop-library .column-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#desktop-library .column-chevron{margin-left:auto;color:#939aa3}
#desktop-library .view-gallery{display:flex;flex-direction:column}
#desktop-library .gallery-stage{flex:1;min-height:250px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:17px 25px;overflow:auto;background:#fafafb}
#desktop-library .gallery-title{font-size:11px;color:#737c88;margin-bottom:5px}
#desktop-library .gallery-stage .pdf-stack{width:100%;flex:1;min-height:0;display:flex;justify-content:center;overflow:hidden}
#desktop-library .gallery-stage .pdf-stack img{height:100%;max-height:500px;max-width:100%;width:auto;object-fit:contain;filter:drop-shadow(0 3px 6px #0001)}
#desktop-library .gallery-stage>.folder-art{width:150px;height:120px;margin:auto}
#desktop-library .gallery-stage>button{font-size:11px;color:#555d69;border:1px solid #dedfe4;background:white;padding:5px 12px}
#desktop-library .gallery-strip{display:flex;gap:12px;padding:12px 18px;height:115px;flex:0 0 115px;overflow:auto;align-items:flex-start;border-top:1px solid #ececf0}
#desktop-library .gallery-item{width:110px;min-width:110px;padding:5px;border-radius:5px;text-align:center}
#desktop-library .gallery-item .folder-art{width:54px;height:43px;margin:0 auto 4px}
#desktop-library .gallery-item .file-art{width:32px;height:43px;margin:0 auto 4px}
#desktop-library .gallery-item .item-name{display:block;max-height:28px;overflow:hidden;font-size:10px;line-height:14px}
#desktop-library .inline-name{font:11px -apple-system,sans-serif;padding:2px 3px;border:1px solid #8994a4;outline:none;border-radius:2px;max-width:100%;width:100%;background:white;color:#333}
#context-menu{position:fixed;z-index:2000;min-width:205px;padding:5px;background:#fffffff5;border:1px solid #dfdfe3;border-radius:7px;box-shadow:0 6px 25px #00000026;backdrop-filter:blur(12px);font:12px -apple-system,sans-serif}
#context-menu button{display:block;width:100%;text-align:left;padding:5px 9px;border:0;border-radius:3px;font-size:12px;line-height:17px}
#context-menu button:hover,#context-menu button:focus{background:#eceef2;outline:none}
#context-menu hr{margin:4px 4px;border:0;border-top:1px solid #e8e8eb}
#quicklook{width:calc(100vw - 100px);max-width:1500px;height:calc(100dvh - 80px);max-height:1100px;border:1px solid #dfe1e5;border-radius:10px;background:#f0f1f3;padding:0;overflow:hidden;box-shadow:0 20px 100px #0004}
#quicklook::backdrop{background:#1e27344d;backdrop-filter:blur(2px)}
.ql-toolbar{height:48px;display:flex;align-items:center;gap:12px;padding:0 14px;background:#fbfbfc;border-bottom:1px solid #dddfe4;font:12px -apple-system,sans-serif}
#ql-close{font-size:23px;line-height:24px;padding:0;width:24px;color:#7c828b}
#ql-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
#ql-position{font-size:10px;color:#9a9fa7}
#ql-previous,#ql-next{font-size:24px;padding:1px 7px;color:#777f89}
#ql-download{font-size:11px;text-decoration:none;color:#3f4754;border:1px solid #dcdfe5;border-radius:5px;padding:5px 12px;background:white}
#ql-content{height:calc(100% - 48px);overflow:auto;padding:26px 35px;text-align:center}
#ql-content .pdf-stack{display:flex;flex-direction:column;gap:24px;align-items:center}
#ql-content .pdf-stack img{display:block;max-width:min(100%,850px);height:auto;background:#fff;box-shadow:0 2px 10px #0002}
.text-preview{font:13px/1.8 -apple-system,sans-serif;background:white;color:#48505d;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;padding:45px;max-width:850px;width:100%;margin:0 auto;min-height:300px;box-shadow:0 2px 10px #0000000d}
#action-dialog{width:450px;max-width:90vw;border-radius:10px;border:1px solid #dfe1e6;padding:0;box-shadow:0 20px 65px #0003;font:12px -apple-system,sans-serif}
.action-heading{display:flex;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #e8e9ec}.action-heading h2{font-size:14px;font-weight:600;flex:1}.action-heading button{font-size:20px;padding:0 5px}
#action-fields{padding:18px 20px 12px}#action-fields label{margin:12px 0;color:#565f6d;font-size:11px}#action-fields input,#action-fields select{width:100%;margin-top:6px;font-size:12px;border:1px solid #d9dce3;padding:9px}
#action-fields .dialog-help{font-size:11px;color:#8b929d;line-height:1.6;margin-bottom:16px}
#action-submit{margin:2px 20px 20px;background:#24272c;color:white;border:0;padding:8px 18px;font-size:11px}
#action-error{margin:0 20px 12px;color:#a83232;font-size:11px}.version-row{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid #eee}.version-row small{overflow-wrap:anywhere}
@media(max-width:1100px) and (min-width:901px){#app #desktop-library{--sidebar-width:185px}#desktop-library .finder-toolbar{gap:11px}#desktop-library .finder-search{width:145px}#desktop-library .finder-table th:first-child{width:27%}#desktop-library .finder-table td{font-size:9px}#desktop-library .item-name{font-size:10px}}
@media(max-width:900px){#desktop-library{display:none!important}#desktop-only{display:block;padding:50px;font:14px/1.7 -apple-system,sans-serif}#desktop-only button{display:block;margin-top:20px}}
/* Agency-coloured keyboard focus in library overlays; approved login is untouched. */
#desktop-library :focus-visible, #quicklook :focus-visible, #action-dialog :focus-visible, #context-menu :focus-visible {outline:2px solid var(--agency,#222);outline-offset:2px}
#desktop-library .folder-art>img,.drag-ghost .folder-art>img{display:block;width:100%;height:100%;object-fit:contain}

#desktop-library .icon-item .folder-art,.drag-ghost .folder-art{width:64px;height:50px}

/* The drag representation keeps the same artwork-to-filename spacing. */
.drag-ghost .folder-art{display:block;flex-shrink:0;margin:1px 0 9px}
.drag-ghost .file-art{display:block;flex-shrink:0;margin:1px auto 9px}

/* Reserve both filename lines without flex shrinking or clipping the second line. */
#desktop-library .icon-item .item-name,.drag-ghost .item-name{flex:0 0 30px;min-height:30px;height:30px;max-height:30px;line-height:15px;box-sizing:content-box;padding-top:0;padding-bottom:0}
/* Document-shaped Quick Look, matching the Director's desktop reference. */
#quicklook{width:min(760px,calc((100dvh - 64px)*.69));max-width:calc(100vw - 64px);height:calc(100dvh - 64px);max-height:none;border:1px solid #bfc7ca;border-radius:19px;padding:5px;background:#f4fafbeF;box-shadow:0 18px 46px #00000032,0 3px 10px #00000016;backdrop-filter:blur(20px)}
#quicklook::backdrop{background:transparent;backdrop-filter:none}
#quicklook .ql-toolbar{height:29px;padding:0 7px 5px;gap:8px;background:transparent;border:0;color:#52595e;font-size:11px}
#ql-close{display:flex;align-items:center;justify-content:center;width:12px;height:12px;min-width:12px;padding:0;border:0;border-radius:50%;background:#7c898f;color:white;font-size:12px;line-height:12px}
#ql-name{font-size:11px;font-weight:600}
#ql-position{font-size:9px;white-space:nowrap}
#ql-previous,#ql-next{font-size:17px;padding:0 2px;line-height:20px}
#ql-download{font-size:10px;padding:3px 11px;border:0;border-radius:12px;background:#e0e7eb;color:#394247;white-space:nowrap}
#ql-content{height:calc(100% - 29px);padding:0;overflow:auto;border-radius:13px;background:white;text-align:center;scrollbar-width:thin}
#ql-content .pdf-stack{gap:7px;background:#edf0f1}
#ql-content .pdf-stack img{width:100%;max-width:100%;height:auto;box-shadow:none;background:white}
#ql-content .text-preview{box-shadow:none;min-height:100%;padding:32px;font-size:12px}
#ql-close:focus-visible{outline-offset:3px}

/* Desktop workspace uses the native arrow rather than web-style hand cursors. */
#desktop-library,#desktop-library *,#quicklook,#quicklook *,#context-menu,#context-menu *,#action-dialog,#action-dialog *,.drag-ghost,.drag-ghost *{cursor:default!important}
/* Compact list treatment from the Director's Finder reference. */
#desktop-library .finder-table{width:calc(100% - 16px);margin:0 8px;font-size:12px}
#desktop-library .finder-table th{height:27px;padding:0 8px;font-size:10px;border-bottom:1px solid #e8e8e8;color:#898989}
#desktop-library .finder-table th+th{border-left:1px solid #ebebeb}
#desktop-library .finder-table th:first-child{width:57%}
#desktop-library .finder-table th:nth-child(2){width:20%}
#desktop-library .finder-table th:nth-child(3){width:9%;text-align:right}
#desktop-library .finder-table th:nth-child(4){width:14%}
#desktop-library .finder-table.recent-table th:first-child{width:32%}
#desktop-library .finder-table.recent-table th:nth-child(2){width:15%}
#desktop-library .finder-table.recent-table th:nth-child(4){width:12%}
#desktop-library .finder-table td{height:22px;padding:0 8px;border:0;font-size:12px;line-height:22px;color:#858585}
#desktop-library .finder-table td:nth-child(3){text-align:right}
#desktop-library .finder-table .name-cell{color:#333}
#desktop-library .finder-table .item-name{font-size:12px;line-height:22px;color:inherit}
#desktop-library .finder-table tbody tr:nth-child(even){background:#f4f4f4}
#desktop-library .finder-table tbody tr.selected{background:#0865df}
#desktop-library .finder-table tbody tr.selected td,#desktop-library .finder-table tbody tr.selected button{color:#fff}
#desktop-library .finder-table tbody td:first-child{border-radius:7px 0 0 7px}
#desktop-library .finder-table tbody td:last-child{border-radius:0 7px 7px 0}
#desktop-library .finder-table td button{font-size:11px;line-height:22px;color:inherit}
#desktop-library .finder-table .name-cell .folder-art{width:17px;height:17px;margin:0 6px 0 0;vertical-align:middle;filter:none}
#desktop-library .list-file-icon{display:inline-block;width:16px;height:18px;margin:0 7px 0 0;vertical-align:middle}
#desktop-library .list-file-icon svg{display:block;width:100%;height:100%}
#desktop-library .finder-table td,#desktop-library .finder-table .item-name,#desktop-library .finder-table td button{line-height:18px}

#quicklook{background:#f4fafb;backdrop-filter:none}
/* Finder reference: thumbnail grid, gallery inspector and column preview. */
#desktop-library .icon-item .file-art{width:44px;height:58px;min-height:58px;flex-shrink:0;margin:0 auto 9px;border-radius:3px;box-shadow:0 1px 3px #0002}
#desktop-library .icon-item .file-art img{object-fit:contain;object-position:center}
#desktop-library .icon-item .item-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#desktop-library .view-gallery{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:minmax(0,1fr) 75px;overflow:hidden}
#desktop-library .gallery-stage{grid-column:1;grid-row:1;min-height:0;padding:28px 32px 20px;background:white;overflow:hidden;display:flex;justify-content:center;align-items:center}
#desktop-library .gallery-stage .pdf-stack{height:100%;width:100%;min-height:0;display:flex;align-items:center;justify-content:center}
#desktop-library .gallery-stage .pdf-stack img{height:auto;width:auto;max-height:100%;max-width:100%;object-fit:contain;border:1px solid #e8e8e8;border-radius:4px;filter:none}
#desktop-library .gallery-stage .text-preview{height:100%;max-width:560px;overflow:auto;box-shadow:none;border:1px solid #eee;font-size:11px;padding:24px}
#desktop-library .gallery-strip{grid-column:1;grid-row:2;height:75px;min-height:0;padding:7px 12px;gap:8px;border:0;align-items:center;overflow-x:auto;overflow-y:hidden}
#desktop-library .gallery-item{width:44px;min-width:44px;height:61px;padding:4px;border-radius:5px;flex-shrink:0}
#desktop-library .gallery-item .file-art{width:34px;height:49px;margin:0 auto;border-radius:2px}
#desktop-library .gallery-item .folder-art{width:36px;height:30px;margin:10px auto}
#desktop-library .gallery-item .item-name{display:none}
#desktop-library .gallery-item.selected{background:#d0d0d0;box-shadow:inset 0 0 0 2px #bbb}
#desktop-library .document-info{padding:24px 15px;min-width:0;background:#fafafa;color:#555;font-size:11px;display:flex;flex-direction:column}
#desktop-library .view-gallery>.document-info{grid-column:2;grid-row:1 / 3;border-left:1px solid #e8e8e8}
#desktop-library .info-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px;min-width:0}
#desktop-library .info-heading>div{min-width:0}
#desktop-library .info-heading strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:18px;color:#444}
#desktop-library .info-heading span:not(.file-art):not(.file-type):not(.file-caption):not(.paper-rules):not(.folder-art){display:block;color:#888;margin-top:3px}
#desktop-library .info-heading .file-art{width:30px;height:41px;min-width:30px;margin:0}
#desktop-library .info-heading .folder-art{width:34px;height:28px;min-width:34px}
#desktop-library .document-info h3{font-size:12px;margin:0 0 8px;font-weight:600}
#desktop-library .document-info dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0;margin:0}
#desktop-library .document-info dt,#desktop-library .document-info dd{padding:6px 0;border-bottom:1px solid #e8e8e8;margin:0;font-size:10px;line-height:14px}
#desktop-library .document-info dt{color:#888;padding-right:12px}
#desktop-library .document-info dd{text-align:right;overflow-wrap:anywhere}
#desktop-library .info-actions{display:flex;justify-content:center;gap:15px;margin-top:auto;padding-top:24px}
#desktop-library .info-actions button{font-size:11px;padding:6px;color:#666}
#desktop-library .finder-column{width:225px;min-width:225px;padding:7px 8px}
#desktop-library .column-item{height:23px;gap:6px;padding:1px 5px;border-radius:5px}
#desktop-library .column-item .item-name{font-size:12px;line-height:20px;color:inherit}
#desktop-library .column-item .folder-art{width:17px;height:17px}
#desktop-library .column-item .list-file-icon{flex-shrink:0;margin:0;width:16px;height:18px}
#desktop-library .column-item.selected{background:#0865df;color:white}
#desktop-library .column-item.selected .column-chevron{color:white}
#desktop-library .column-preview{min-width:420px;flex:1;display:flex;flex-direction:column;overflow:auto;padding:15px 28px;background:white}
#desktop-library .column-preview-art{height:320px;min-height:180px;display:flex;justify-content:center;align-items:center}
#desktop-library .column-preview-art .pdf-stack{height:100%;display:flex;justify-content:center}
#desktop-library .column-preview-art img{height:100%;max-width:100%;object-fit:contain;border:1px solid #eee;border-radius:4px}
#desktop-library .column-preview-art .text-preview{max-height:300px;min-height:0;overflow:auto;font-size:10px;padding:20px;border:1px solid #eee;box-shadow:none}
#desktop-library .column-preview .document-info{background:white;width:100%;max-width:560px;margin:10px auto 0;padding:14px 0;flex:1}
#desktop-library .column-preview .info-heading>.file-art{display:none}
/* Director-approved permanent integrated branding layout. */
#desktop-library .workspace-brand{display:none}
#desktop-library .workspace-body{padding-top:10px}
#desktop-library .finder-sidebar>#workspace-logo{align-self:center;flex-shrink:0;margin:3px auto 28px}
#desktop-library .sidebar-bottom{display:flex;flex-direction:column;align-items:center;padding-top:20px;padding-bottom:7px}
#desktop-library #signout{padding:5px 0;margin-top:0;text-align:center}
#desktop-library .sidebar-bottom .workspace-powered{margin-top:23px;justify-items:center;text-align:center;font-size:9px;gap:4px}
#desktop-library #workspace-logo,#desktop-library .workspace-powered img{mix-blend-mode:multiply}
/* Keep the tile fixed while highlighting only the occupied filename lines. */
#desktop-library .icon-item .item-name,.drag-ghost .item-name{flex:0 0 auto;min-height:0;height:auto;max-height:30px}
.director-review{padding:18px 20px;font-size:12px}.director-review h2{font-size:15px;margin:0 0 8px}.director-review>p{color:#80858a;margin:0 0 20px}.director-review table{width:100%;border-collapse:collapse;table-layout:fixed}.director-review th{text-align:left;color:#858b91;font-size:10px;font-weight:500;padding:8px;border-bottom:1px solid #e9e9eb}.director-review td{padding:10px 8px;border-bottom:1px solid #eee;overflow-wrap:anywhere}.director-review th:first-child{width:37%}.director-review button{font-size:11px;padding:5px 8px;border:1px solid #ddd;border-radius:5px;margin:2px;background:white}.director-review td small{display:block;color:#888;margin-top:4px}.director-review .release-action{background:#222;color:white;border-color:#222}
/* Sidebar selection follows the words; row geometry and hit areas are preserved. */
#desktop-library .location.active,#desktop-library .location:hover{background:transparent}
#desktop-library .sidebar-label{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;border-radius:3px}
#desktop-library .location.active .sidebar-label{background:#e9e9ec;box-shadow:0 0 0 2px #e9e9ec}
#desktop-library .location:hover .sidebar-label{background:#eeeef0;box-shadow:0 0 0 2px #eeeef0}
#desktop-library .location{position:relative}
#desktop-library .location.pin-before::before,#desktop-library .location.pin-after::after{content:'';position:absolute;height:2px;background:#666;left:9px;right:9px}
#desktop-library .location.pin-before::before{top:0}
#desktop-library .location.pin-after::after{bottom:0}
#desktop-library .sidebar-rename{width:100%;min-width:0;font:inherit;line-height:17px;padding:0 2px;border:1px solid #777;border-radius:3px;background:white;color:#333}
#desktop-library #signout{background:#fff;border:1px solid #e1e2e5;border-radius:6px;padding:7px 22px;min-width:92px;color:#4a4f55;font-size:11px;line-height:15px;box-shadow:0 1px 2px #00000004}
#desktop-library #signout:hover{background:#fff;border-color:#c6c9ce}
#desktop-library #signout:active{background:#f8f8f9}
/* More breathing room beneath the agency wordmark. */
#desktop-library .finder-sidebar>#workspace-logo{margin-bottom:33px}
/* Align the toolbar's centre with the agency wordmark's centre. */
#desktop-library .finder-main{margin-top:13px}
#desktop-library #signout{width:150px;max-width:100%}
/* Selection belongs to the filename, not the tile or full row. */
#desktop-library .icon-item.selected,#desktop-library .column-item.selected,#desktop-library .gallery-item.selected{background:transparent;box-shadow:none;color:inherit}
#desktop-library .finder-table tbody tr.selected{background:transparent}
#desktop-library .finder-table tbody tr.selected:nth-child(even){background:#f4f4f4}
#desktop-library .finder-table tbody tr.selected td,#desktop-library .finder-table tbody tr.selected button{color:#858585}
#desktop-library .finder-table tbody tr.selected .name-cell{color:#333}
#desktop-library .column-item.selected .column-chevron{color:#939aa3}
#desktop-library .column-item.selected .item-name,#desktop-library .finder-table tr.selected .item-name{background:#0865df;color:white;border-radius:3px;box-shadow:0 0 0 2px #0865df}
#desktop-library .column-item .item-name{flex:0 1 auto}
#desktop-library .gallery-item.selected .item-name{background:#e6e8ec;color:#232830}
#quicklook.folder-quicklook{width:620px;height:330px;max-width:calc(100vw - 64px);background:#f8f9fa}
#quicklook.folder-quicklook #ql-name{visibility:hidden}
#quicklook.folder-quicklook #ql-content{background:transparent;overflow:auto}
.folder-quicklook-body{height:100%;display:flex;align-items:center;gap:27px;padding:18px 24px 32px;text-align:left}
.folder-quicklook-body>.folder-art{display:block;width:240px;height:189px;flex:0 0 240px;filter:drop-shadow(0 3px 3px #0003)}
.folder-quicklook-body>.folder-art img{display:block;width:100%;height:100%}
.folder-quicklook-details{min-width:0;flex:1}
.folder-quicklook-details h2{font:600 20px/1.3 -apple-system,sans-serif;color:#4d4d4d;overflow-wrap:anywhere;margin:0 0 9px}
.folder-quicklook-details p{font:12px/1.5 -apple-system,sans-serif;color:#888;margin:3px 0}

/* Finder-style selection wraps each filename line independently. */
#desktop-library .icon-item.selected .item-name,.drag-ghost.selected .item-name{background:transparent;box-shadow:none;color:inherit}
#desktop-library .icon-item .filename-text,.drag-ghost .filename-text{border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
#desktop-library .icon-item.selected .filename-text,.drag-ghost.selected .filename-text{background:#0865df;color:#fff;box-shadow:2px 0 #0865df,-2px 0 #0865df}
/* Preserve the folder path in grey; blue belongs only to the active column. */
#desktop-library .finder-column .column-item.path-selected .item-name,
#desktop-library .finder-column .column-item.selected .item-name{background:#ddd;color:#333;box-shadow:0 0 0 2px #ddd;border-radius:3px}
#desktop-library .finder-column.active-column .column-item.selected .item-name,
#desktop-library .finder-column.active-column .column-item.path-selected .item-name{background:#0865df;color:#fff;box-shadow:0 0 0 2px #0865df}
#context-menu .menu-action-icon{display:inline-flex;width:15px;height:15px;margin-right:10px;vertical-align:-3px;color:#65686b}
#context-menu .menu-action-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#action-fields>.document-info{background:white;padding:0;color:#555;font-size:12px}
#action-fields .info-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}
#action-fields .info-heading .file-art,#action-fields .info-heading .folder-art{display:none}
#action-fields .info-heading strong,#action-fields .info-heading span{display:block;margin-bottom:5px}
#action-fields .document-info dl{display:grid;grid-template-columns:90px 1fr;gap:8px;margin:15px 0}
#action-fields .document-info dd{margin:0;overflow-wrap:anywhere}
#action-fields .info-actions{display:none}
#desktop-library .location.active,#desktop-library .location.active:hover{background:#ededee;color:#0084ff}
#desktop-library .location.active .sidebar-label,#desktop-library .location.active:hover .sidebar-label{background:transparent;box-shadow:none;color:#0084ff}
#desktop-library .location.active>svg{stroke:#0084ff}
#desktop-library .location.active .folder-art{filter:none;background:center/18px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' fill='none' stroke='%230084ff' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M2 6V4a2 2 0 0 1 2-2h6l3 3h7a2 2 0 0 1 2 2v12H2Z'/%3E%3Cpath d='M2 7h20'/%3E%3C/svg%3E")}
#desktop-library .location.active .folder-art svg{visibility:hidden}
/* Compact frosted context menu, retaining the approved contextual actions. */
#context-menu{min-width:210px;padding:5px;background:rgba(250,250,251,.88);border:1px solid rgba(185,188,192,.65);border-radius:12px;box-shadow:0 6px 18px #00000024,0 1px 4px #00000010;backdrop-filter:blur(22px) saturate(1.15);-webkit-backdrop-filter:blur(22px) saturate(1.15);font:12px/18px -apple-system,BlinkMacSystemFont,sans-serif}
#context-menu button{height:25px;display:flex;align-items:center;gap:0;padding:3px 10px;border-radius:5px;font-size:12px;line-height:18px;color:#303338;background:transparent;font-weight:400}
#context-menu .menu-action-icon{display:inline-flex;flex:0 0 13px;width:13px;height:13px;margin-right:8px;color:#50565b;vertical-align:initial}
#context-menu .menu-action-icon svg{width:13px;height:13px;stroke-width:1.7}
#context-menu hr{margin:5px 9px;border:0;border-top:1px solid #dadcdf}
#context-menu button:hover,#context-menu button:focus-visible{background:#0865df;color:white;outline:none}
#context-menu button:hover .menu-action-icon,#context-menu button:focus-visible .menu-action-icon{color:white}
/* Hover does not shade folder names; selected-location styling is retained. */
#desktop-library .location:hover .sidebar-label{background:transparent;box-shadow:none}
#desktop-library .location.active:hover .sidebar-label{background:transparent;box-shadow:none}
#desktop-library .location.sidebar-opening .folder-art{animation:sidebar-folder-open 340ms cubic-bezier(.22,.61,.36,1) both;animation-delay:var(--sidebar-open-delay,0ms);transform-origin:50% 85%}
@keyframes sidebar-folder-open{0%{transform:perspective(90px) rotateX(0) scale(1)}45%{transform:perspective(90px) rotateX(-30deg) scale(1.08,1.02)}100%{transform:perspective(90px) rotateX(0) scale(1)}}
@media(prefers-reduced-motion:reduce){#desktop-library .location.sidebar-opening .folder-art{animation:none}}

#context-menu button:disabled{color:#a0a0a4;background:transparent;opacity:1}
#context-menu button:disabled svg{opacity:.55}

/* Sidebar-only hinged front: reveal the folder interior on activation. */
#desktop-library .location .sidebar-opening-art{display:none}
#desktop-library .location.sidebar-opening .folder-art{animation:none;background:none;position:relative}
#desktop-library .location.sidebar-opening .folder-art>svg:first-child{visibility:hidden}
#desktop-library .location.sidebar-opening .folder-art .sidebar-opening-art{display:block;visibility:visible;position:absolute;inset:0;width:100%;height:100%}
#desktop-library .sidebar-opening-art .sidebar-folder-flap{transform-origin:12px 19px;animation:sidebar-flap-open 340ms cubic-bezier(.22,.61,.36,1) both;animation-delay:var(--sidebar-open-delay,0ms)}
@keyframes sidebar-flap-open{0%,100%{transform:skewX(0deg) scaleY(1)}45%,65%{transform:skewX(-18deg) scaleY(.62)}}
@media(prefers-reduced-motion:reduce){#desktop-library .sidebar-opening-art .sidebar-folder-flap{animation:none}}

/* Finder-style selection: an icon backing plus the existing fitted blue name. */
#desktop-library .icon-item.selected>.folder-art{position:relative;isolation:isolate}
#desktop-library .icon-item.selected>.folder-art::before{content:"";position:absolute;inset:-8px -6px;background:#e7e7e7;border-radius:7px;z-index:-1;pointer-events:none}
/* Preserve the outline while the sidebar folder opens and settles. */
#desktop-library .location .folder-art .sidebar-opening-art{stroke:#0084ff;stroke-width:1.6;fill:none}
/* File thumbnails share the selected folder's soft grey backing. */
#desktop-library .icon-item.selected:has(>.file-art){isolation:isolate}
#desktop-library .icon-item.selected:has(>.file-art)::before{content:"";position:absolute;top:1px;left:50%;transform:translateX(-50%);width:76px;height:72px;background:#e7e7e7;border-radius:7px;z-index:-1;pointer-events:none}
#desktop-library .icon-item.selected>.file-art{box-shadow:0 1px 3px #0002}

/* Selected sidebar folders stay open; clicks animate into that state. */
#desktop-library .location.active .folder-art{background:none;position:relative}
#desktop-library .location.active .folder-art .sidebar-opening-art{display:block;visibility:visible;position:absolute;inset:0;width:100%;height:100%}
#desktop-library .location.active .sidebar-folder-flap{transform-origin:12px 19px;transform:skewX(-18deg) scaleY(.62)}
@keyframes sidebar-flap-open{0%{transform:skewX(0deg) scaleY(1)}100%{transform:skewX(-18deg) scaleY(.62)}}

/* One selection backing for every grid item, independent of artwork dimensions. */
#desktop-library .icon-item.selected{isolation:isolate}
#desktop-library .icon-item.selected::before{content:"";position:absolute;top:1px;left:50%;transform:translateX(-50%);width:76px;height:72px;background:#e7e7e7;border-radius:7px;z-index:-1;pointer-events:none}
#desktop-library .icon-item.selected>.folder-art::before{content:none}

#desktop-library .location .sidebar-opening-art .sidebar-folder-flap{animation:none;transition:none}

/* Equal seven-pixel selection padding around each artwork's own bounds. */
#desktop-library .icon-item.selected:has(>.file-art)::before{width:58px;height:72px;top:1px}
#desktop-library .icon-item.selected:has(>.folder-art)::before{width:78px;height:64px;top:2px}

/* The same rounded surround follows each artwork, rather than a fixed tile. */
#desktop-library .icon-item.selected::before,#desktop-library .icon-item.selected:has(>.file-art)::before,#desktop-library .icon-item.selected:has(>.folder-art)::before{content:none}
#desktop-library .icon-item.selected>.folder-art{background:#e7e7e7;border-radius:3px;box-shadow:0 0 0 7px #e7e7e7}
#desktop-library .icon-item.selected>.file-art{border-radius:3px;box-shadow:0 0 0 7px #e7e7e7}

#desktop-library .location>svg.all-documents-open{overflow:visible}

/* Identical selection plate for every item type. */
#desktop-library .icon-item.selected::before,
#desktop-library .icon-item.selected:has(>.file-art)::before,
#desktop-library .icon-item.selected:has(>.folder-art)::before{content:"";position:absolute;top:1px;left:50%;transform:translateX(-50%);width:78px;height:72px;background:#e7e7e7;border-radius:7px;z-index:-1;pointer-events:none}
#desktop-library .icon-item.selected>.folder-art{background:transparent;box-shadow:none}
#desktop-library .icon-item.selected>.file-art{box-shadow:0 1px 3px #0002}

/* Desktop sidebar sizing matched to the supplied Finder reference. */
#desktop-library .location{font-size:13px;line-height:18px;padding:7px 10px;margin:0;gap:9px}
#desktop-library .location>svg{width:18px;height:18px}
#desktop-library .location .folder-art{width:18px;height:18px}
#desktop-library .location .folder-art svg{width:18px;height:18px}
#desktop-library #locations h2{font-size:11px;line-height:15px}

/* Larger sidebar artwork and labels; preserve the approved sidebar width. */
#desktop-library .location{font-size:14px;line-height:20px;padding-top:6px;padding-bottom:6px}
#desktop-library .location>svg{width:20px;height:20px}
#desktop-library .location .folder-art,#desktop-library .location .folder-art svg{width:20px;height:20px}

/* Tighter page-edge inset while retaining the floating sidebar. */
#desktop-library .workspace-body{padding-top:6px;padding-left:6px;padding-bottom:6px}

/* More prominent ACIAS branding with additional room above it. */
#desktop-library .sidebar-bottom .workspace-powered{margin-top:35px}
#desktop-library .sidebar-bottom .workspace-powered img{width:72px;min-width:72px;height:auto}

#desktop-library #submit-client{display:block;width:150px;max-width:100%;margin:47px auto 0;background:#fff;border:1px solid #e1e2e5;border-radius:6px;padding:7px 22px;color:#4a4f55;font-size:11px;line-height:15px;box-shadow:0 1px 2px #00000004}
#desktop-library #submit-client:hover{background:#fff;border-color:#c6c9ce}
#desktop-library #submit-client:active{background:#f8f8f9}
#submission-dialog{width:min(900px,calc(100vw - 80px));height:calc(100dvh - 64px);max-height:none;padding:0;border:1px solid #ddd;border-radius:16px;overflow:hidden;box-shadow:0 16px 60px #0003}
#submission-dialog::backdrop{background:#0002}
.submission-toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font:13px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff}
#submission-close{font-size:22px;border:0;background:none;padding:3px 8px}
#submission-frame{display:block;width:100%;height:calc(100% - 42px);border:0}

/* Submit Client shares Quick Look's thin frame and compact toolbar. */
#submission-dialog{padding:5px;border:1px solid #bfc7ca;border-radius:19px;background:#f4fafb;box-shadow:0 18px 46px #00000032,0 3px 10px #00000016}
#submission-dialog::backdrop{background:transparent}
#submission-dialog .submission-toolbar{height:29px;padding:0 7px 5px;gap:8px;background:transparent;border:0;color:#52595e;font-size:11px;justify-content:flex-end;flex-direction:row-reverse}
#submission-close{font-size:17px;line-height:18px;padding:0 3px;color:#727c81}
#submission-frame{height:calc(100% - 29px);border:0;border-radius:13px;background:#fff}

/* Group submission and sign-out at the foot of the sidebar. */
#desktop-library #sidebar-actions{width:100%}
#desktop-library #submit-client{margin:0 auto}
#desktop-library .sidebar-action-divider{width:100%;border:0;border-top:1px solid #e1e2e5;margin:24px 0}
#desktop-library .sidebar-bottom .workspace-powered{margin-top:25px}

#submission-dialog{width:min(620px,calc(100vw - 80px));height:min(760px,calc(100dvh - 80px))}

/* Consistent destructive action colour, independent of agency branding. */
#context-menu button.destructive:not(:hover):not(:focus-visible),
#context-menu button.destructive:not(:hover):not(:focus-visible) .menu-action-icon{color:#D92D20}
#action-dialog.delete-confirmation #action-submit{background:#D92D20;color:#fff}

/* No automatic or grey menu highlight; blue background only on hover. */
#context-menu:focus{outline:none}
#context-menu button:not(:hover){background:transparent;color:#32343a}
#context-menu button:not(:hover) .menu-action-icon{color:#50565b}
#context-menu button.destructive:not(:hover),#context-menu button.destructive:not(:hover) .menu-action-icon{color:#D92D20}
#context-menu button:focus-visible:not(:hover){outline:1px solid #0865df;outline-offset:-2px}
#context-menu button:hover{background:#0865df;color:#fff}
#context-menu button:hover .menu-action-icon{color:#fff}

#desktop-library .finder-status-location{display:flex;align-items:center;gap:14px;min-width:0}
#desktop-library .finder-bin-icon{display:flex;align-items:center;justify-content:center;flex:0 0 24px;color:#8c9199}
#desktop-library .finder-bin-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

#desktop-library .finder-bin-icon{width:26px;height:26px;padding:4px;border:0;border-radius:5px;background:transparent}
#desktop-library .finder-bin-icon:hover{background:#e7e7e7;color:#555b63}

#desktop-library .info-actions button.destructive{color:#D92D20}
