/* Scoped to Secure Documents; existing Activity Manager and Workstreams assets unchanged. */
.wpp-sd{--sd-ink:#173c56;--sd-muted:#536c7d;--sd-line:#d5e1e9;--sd-blue:#17648d;color:var(--sd-ink);font-size:14px;min-width:0}
.wpp-sd *, .wpp-sd *::before,.wpp-sd *::after{box-sizing:border-box}
.wpp-sd [hidden]{display:none!important}
.wpp-sd button,.wpp-sd input,.wpp-sd select{font:inherit}
.wpp-sd button{cursor:pointer}
.wpp-sd button:disabled{cursor:wait;opacity:.6}
.wpp-sd :is(button,a,input,select):focus-visible{outline:2px solid #1880b5;outline-offset:3px}
.wpp-sd-tabs{display:flex;gap:0;border-bottom:1px solid var(--sd-line);background:#f4f8fb;border-radius:8px 8px 0 0;margin:0 0 12px;overflow-x:auto}
.wpp-sd .wpp-sd-tab{border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--sd-muted);background:transparent;font-weight:700;font-size:13px;flex:1;padding:11px 8px;white-space:nowrap}
.wpp-sd .wpp-sd-tab[aria-selected=true]{color:var(--sd-blue);border-bottom-color:var(--sd-blue);background:#fff}
.wpp-sd-tools,.wpp-sd-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wpp-sd .wpp-sd-primary,.wpp-sd .wpp-sd-secondary{padding:8px 11px;min-height:36px;border:1px solid var(--sd-line);border-radius:6px;text-decoration:none;line-height:1.3;font-weight:650;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.wpp-sd .wpp-sd-primary{background:var(--sd-blue);color:#fff;border-color:var(--sd-blue)}
.wpp-sd .wpp-sd-secondary{background:#fff;color:var(--sd-ink)}
.wpp-sd-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:8px;margin-top:12px}
.wpp-sd-filters>.wpp-sd-search{grid-column:1/-1}
.wpp-sd .wpp-sd-filters :is(input,select){width:100%;min-width:0;border:1px solid var(--sd-line);border-radius:6px;padding:8px;background:#fff;color:var(--sd-ink);font-size:13px;min-height:38px}
.wpp-sd-count{font-size:12px;color:var(--sd-muted);margin:10px 0!important}
.wpp-sd-files,.wpp-sd-events{list-style:none!important;padding:0!important;margin:0!important}
.wpp-sd-file{padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--sd-line)}
.wpp-sd-file:last-child{border-bottom:0}
.wpp-sd-file-top{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.wpp-sd .wpp-sd-title{padding:0;margin:0;min-width:0;text-align:left;font-weight:700;line-height:1.4;border:0;border-radius:0;background:none;color:var(--sd-blue);overflow-wrap:anywhere}
.wpp-sd .wpp-sd-title:hover{text-decoration:underline}
.wpp-sd-badge{font-size:10px;font-weight:700;border:1px solid var(--sd-line);padding:3px 6px;border-radius:20px;white-space:nowrap;background:#f1f6f9}
.wpp-sd-badge.is-restricted{background:#fff4ea;border-color:#f3d2af;color:#865018}
.wpp-sd-badge.is-internal{background:#edf3ff;border-color:#cedcf3;color:#365c91}
.wpp-sd-file-meta{display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap;color:var(--sd-muted);font-size:11px;margin:8px 0}
.wpp-sd-person{display:inline-flex;gap:6px;align-items:center;font-size:12px;color:var(--sd-ink);min-width:0;vertical-align:middle}
.wpp-sd-avatar{display:inline-flex;position:relative;overflow:hidden;justify-content:center;align-items:center;border-radius:50%;background:#e3edf4;width:28px;height:28px;flex:0 0 28px;font-weight:700;font-size:10px}
.wpp-sd-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.wpp-sd-row-actions{display:flex;flex-wrap:wrap;gap:6px 14px}
.wpp-sd .wpp-sd-link{padding:2px 0;background:none;border:0;color:var(--sd-blue);text-decoration:none;font-size:12px;min-height:28px;border-radius:0}
.wpp-sd .wpp-sd-link:hover{text-decoration:underline}
.wpp-sd-status,.wpp-sd-error,.wpp-sd-form-error{padding:10px 12px;border:1px solid #b9dac8;border-radius:6px;background:#f0f8f4;font-size:13px;line-height:1.5;margin:0 0 12px}
.wpp-sd .is-error,.wpp-sd-error,.wpp-sd-form-error{border-color:#e7bba8;background:#fff5ef;color:#7a3821}
.wpp-sd-empty{padding:22px 10px!important;text-align:center;color:var(--sd-muted);background:#f8fafc;border:1px dashed var(--sd-line);border-radius:8px;margin:10px 0!important}
.wpp-sd-pagination{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;margin:12px 0 0}
.wpp-sd-event{border-bottom:1px solid var(--sd-line);padding:13px 0;margin:0!important}
.wpp-sd-event-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}
.wpp-sd-event-head time{font-size:10px;color:var(--sd-muted)}
.wpp-sd-event-file{margin:4px 0 7px!important;font-size:12px;overflow-wrap:anywhere}
.wpp-sd-event-changes{margin-top:8px;font-size:12px}
.wpp-sd-event-changes summary{cursor:pointer;color:var(--sd-blue)}
.wpp-sd-event-changes p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0!important}
.wpp-sd-dialog{padding:0;border:1px solid var(--sd-line);border-radius:12px;width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);color:var(--sd-ink);background:#fff;box-shadow:0 20px 70px #152e4440;margin:auto}
.wpp-sd-dialog::backdrop{background:#152e4470}
.wpp-sd-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;position:sticky;top:0;padding:16px 20px;background:#f5f9fc;border-bottom:1px solid var(--sd-line);z-index:1}
.wpp-sd-dialog-head h3{margin:0!important;font-size:18px!important;line-height:1.4}
.wpp-sd .wpp-sd-close{padding:6px 10px;border:1px solid var(--sd-line);border-radius:5px;background:#fff;color:var(--sd-ink);font-size:12px;flex-shrink:0}
.wpp-sd-dialog-body{padding:20px}
.wpp-sd-form{display:grid;gap:14px;margin:0}
.wpp-sd-field{display:grid;gap:6px;font-size:13px;font-weight:650;margin:0}
.wpp-sd .wpp-sd-field :is(input,select){width:100%;min-width:0;padding:10px 12px;border:1px solid var(--sd-line);border-radius:6px;background:#fff;color:var(--sd-ink);font-size:14px;font-weight:400;min-height:42px}
.wpp-sd-policy-note{margin:0!important;background:#f3f7fa;border-left:3px solid #70a0bd;padding:12px;font-size:13px;line-height:1.5}
.wpp-sd-grants{border:1px solid var(--sd-line);border-radius:8px;padding:12px;margin:0;min-width:0}
.wpp-sd-grants legend{padding:0 5px;font-size:13px;font-weight:700}
.wpp-sd .wpp-sd-grants>.wpp-sd-search{padding:8px;border:1px solid var(--sd-line);border-radius:5px;width:100%;background:#fff;min-height:38px;color:var(--sd-ink)}
.wpp-sd-grant-list{max-height:230px;overflow:auto;margin-top:10px}
.wpp-sd-grant{display:flex;gap:10px;align-items:center;padding:9px 4px;border-bottom:1px solid #edf2f5;flex-wrap:wrap;cursor:pointer}
/* Keep grant checkboxes and identities aligned when the page/theme styles labels. */
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;grid-auto-flow:row;align-items:center!important;justify-content:start!important;justify-items:start!important;gap:6px 10px!important;width:100%!important;max-width:none;min-width:0;margin:0!important;padding:10px 8px!important;text-align:left!important;line-height:1.45;border-bottom:1px solid #edf2f5;border-radius:0;box-sizing:border-box;cursor:pointer}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant[hidden]{display:none!important}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant:focus-within{outline:2px solid #1880b5;outline-offset:-2px;background:#f4f9fc}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant>input[type=checkbox]{appearance:auto!important;position:static!important;display:block!important;float:none!important;opacity:1!important;visibility:visible!important;clip:auto!important;clip-path:none!important;grid-column:1;grid-row:1;align-self:center;justify-self:start;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;transform:none!important;accent-color:var(--sd-blue)}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant>span{grid-column:2;min-width:0;max-width:100%;margin:0!important;text-align:left!important;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant>.wpp-sd-person{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:8px!important;width:100%;min-height:28px}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant .wpp-sd-avatar{width:28px!important;height:28px!important;min-width:28px;max-width:28px;min-height:28px;flex:0 0 28px!important;margin:0!important;align-self:center;text-align:center}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant .wpp-sd-person>span:last-child{flex:1 1 auto;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-grant-list>label.wpp-sd-grant>small{grid-column:2;display:block;min-width:0;margin:0!important;text-align:left;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-grant input,.wpp-sd .wpp-sd-confirm input{width:18px!important;height:18px!important;min-width:18px;margin:0;flex-shrink:0;accent-color:var(--sd-blue)}
.wpp-sd-grant small{font-size:11px;color:var(--sd-muted)}
.wpp-sd-confirm{display:flex;gap:10px;align-items:center;font-size:14px}
.wpp-sd-confirm-name{font-weight:700;overflow-wrap:anywhere;margin:0!important}
.wpp-sd-muted{color:var(--sd-muted);font-size:12px;line-height:1.5;margin:0!important}
.wpp-sd-details{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;margin:0 0 20px!important}
.wpp-sd-details dt{font-weight:700;font-size:13px;margin:0}
.wpp-sd-details dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.wpp-sd-form-actions{border-top:1px solid var(--sd-line);padding-top:14px;margin-top:4px}
@media(max-width:480px){.wpp-sd-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px)}.wpp-sd-dialog-head{padding:13px}.wpp-sd-dialog-body{padding:14px}.wpp-sd-details{grid-template-columns:1fr;gap:6px}.wpp-sd-details dd{margin-bottom:9px}.wpp-sd-file-top{flex-wrap:wrap}.wpp-sd-filters{grid-template-columns:1fr}.wpp-sd-filters>.wpp-sd-search{grid-column:auto}}
@media print{.wpp-sd-tabs,.wpp-sd-tools,.wpp-sd-filters,.wpp-sd-row-actions,.wpp-sd-dialog,.wpp-sd-pagination,.wpp-sd-status{display:none!important}.wpp-sd-events{display:none!important}.wpp-sd-file{break-inside:avoid}.wpp-sd-title{color:#000!important}}
.wpp-sd-review-history{margin-top:18px;border:1px solid #d8e4ed;border-radius:7px;padding:10px 12px;background:#fff}
.wpp-sd-review-history summary{cursor:pointer;font-weight:700;color:#173e59}
.wpp-sd-review-scroll{overflow:auto;margin-top:10px}
.wpp-sd-review-table{width:100%;min-width:980px;border-collapse:collapse;font-size:12px}
.wpp-sd-review-table th,.wpp-sd-review-table td{padding:8px;border-bottom:1px solid #e3eaf0;text-align:left;vertical-align:top}
.wpp-sd-review-history-host{margin-top:18px}

/* v0.4.92: protected viewer stays inside the established PMO modal UI. */
.wpp-sd-viewer-tools{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:12px 0}
.wpp-sd-preview-frame{min-height:180px;max-height:64vh;overflow:auto;background:#e7edf2;border:1px solid var(--sd-line);border-radius:8px;padding:10px;text-align:center}
.wpp-sd-page{display:block;max-width:100%;height:auto;margin:auto;user-select:none;-webkit-user-select:none;box-shadow:0 2px 12px #142d4230}
.wpp-sd .wpp-sd-dialog:has(.wpp-sd-preview-frame){width:min(960px,calc(100vw - 24px))}
@media print{.wpp-sd-preview-frame{display:none!important}}

/* v0.5.12 — compact document rows (desktop); responsive details remain accessible. */
.wpp-sd .wpp-sd-files-compact{width:100%}
.wpp-sd .wpp-sd-file-compact{display:grid;grid-template-columns:26px 23px minmax(150px,1fr) 132px minmax(130px,170px) 79px minmax(190px,auto);align-items:center;gap:9px;padding:8px 6px!important;margin:0!important;min-height:42px;border-bottom:1px solid var(--sd-line);list-style:none}
.wpp-sd .wpp-sd-file-compact:hover{background:#f5f9fc}
.wpp-sd-type-icon{font-size:20px;line-height:1;text-align:center}
.wpp-sd-direction{font-size:21px;line-height:1;text-align:center;font-weight:700;color:#66869c}
.wpp-sd-direction.is-incoming{color:#197caa}
.wpp-sd-direction.is-outgoing{color:#20835d}
.wpp-sd-direction.is-internal{color:#745cba}
.wpp-sd-file-name{min-width:0}
.wpp-sd .wpp-sd-file-compact .wpp-sd-title{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4}
.wpp-sd-file-date{white-space:nowrap;font-size:11px;color:var(--sd-muted)}
.wpp-sd-file-uploader{min-width:0;overflow:hidden}
.wpp-sd-file-uploader .wpp-sd-person{max-width:100%;display:inline-flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.wpp-sd-file-uploader .wpp-sd-person>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.wpp-sd-file-uploader .wpp-sd-avatar{width:24px;height:24px;flex-basis:24px}
.wpp-sd .wpp-sd-file-compact .wpp-sd-badge{justify-self:start}
.wpp-sd .wpp-sd-file-compact .wpp-sd-row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:4px 10px;white-space:nowrap;min-width:0}
.wpp-sd .wpp-sd-file-compact .wpp-sd-link{font-size:11px;min-height:24px}
@media(max-width:1350px){.wpp-sd .wpp-sd-file-compact{grid-template-columns:24px 21px minmax(140px,1fr) 115px minmax(125px,160px) 75px}.wpp-sd .wpp-sd-file-compact .wpp-sd-row-actions{grid-column:3/-1;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:660px){.wpp-sd .wpp-sd-file-compact{grid-template-columns:24px 20px minmax(0,1fr) auto;gap:6px 7px}.wpp-sd-file-date{grid-column:3}.wpp-sd-file-uploader{grid-column:3/-1}.wpp-sd .wpp-sd-file-compact .wpp-sd-badge{grid-column:4;grid-row:1}.wpp-sd .wpp-sd-file-compact .wpp-sd-row-actions{grid-column:3/-1;grid-row:auto;flex-wrap:wrap}}

/* v0.5.19: document-manager assignment, scoped to its existing modal. */
.wpp-sd .wpp-sd-manager-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:hidden;border:1px solid #bfd3df;border-radius:18px;box-shadow:0 24px 80px #102f4a45}
.wpp-sd .wpp-sd-manager-dialog[open]{display:flex;flex-direction:column}
.wpp-sd .wpp-sd-manager-dialog .wpp-sd-dialog-head{position:static;flex:0 0 auto;align-items:flex-start;padding:22px 24px 19px;background:linear-gradient(125deg,#103d59,#176c88);border-bottom:0;color:#fff}
.wpp-sd .wpp-sd-manager-heading{flex:1 1 auto;min-width:0}
.wpp-sd .wpp-sd-manager-eyebrow{display:block;margin:0 0 7px;color:#bde2ec;font-size:10px;font-weight:750;letter-spacing:1.5px;line-height:1.4}
.wpp-sd .wpp-sd-manager-heading h3{color:#fff!important;font-size:23px!important;line-height:1.25!important;font-weight:750!important}
.wpp-sd .wpp-sd-manager-project{margin:7px 0 0!important;color:#d7ecf4;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-manager-dialog .wpp-sd-close{flex:0 0 64px;width:64px;margin-top:1px;min-height:34px;border-color:#ffffff50;background:#ffffff14;color:#fff}
.wpp-sd .wpp-sd-manager-dialog .wpp-sd-close:hover{background:#ffffff26}
.wpp-sd .wpp-sd-manager-dialog .wpp-sd-dialog-body{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}
.wpp-sd .wpp-sd-manager-form{display:flex;flex-direction:column;min-height:0;margin:0;overflow:hidden}
.wpp-sd .wpp-sd-manager-intro{padding:17px 24px 14px;background:#f4f9fc;border-bottom:1px solid #dde9f0;flex:0 0 auto}
.wpp-sd .wpp-sd-manager-intro>p{margin:0!important;font-size:13px;line-height:1.6;color:#3f5a6f}
.wpp-sd .wpp-sd-manager-intro .wpp-sd-manager-warning{margin-top:10px!important;padding:9px 11px;background:#fff6e8;border:1px solid #edd8b4;border-radius:7px;color:#765016}
.wpp-sd .wpp-sd-manager-panel{padding:18px 24px 20px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1 1 auto}
.wpp-sd .wpp-sd-manager-toolbar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.wpp-sd .wpp-sd-manager-search{display:grid;gap:6px;flex:1 1 240px;min-width:0;font-size:12px;font-weight:700;color:#29495f;margin:0}
.wpp-sd .wpp-sd-manager-search input{display:block;width:100%;min-width:0;min-height:43px;margin:0;padding:10px 13px;border:1px solid #c4d7e2;border-radius:9px;background:#fff;color:#173c56;font-size:14px;font-weight:400;box-shadow:0 1px 2px #1b4b6e05}
.wpp-sd .wpp-sd-manager-selected-filter{display:flex;align-items:center;gap:8px;margin:0 0 11px;font-size:12px;color:#456174;font-weight:600;cursor:pointer;white-space:nowrap}
.wpp-sd .wpp-sd-manager-selected-filter input,.wpp-sd .wpp-sd-manager-card input{appearance:auto!important;position:static!important;display:block!important;opacity:1!important;visibility:visible!important;clip:auto!important;clip-path:none!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;padding:0!important;margin:0!important;flex-shrink:0;accent-color:#16718c}
.wpp-sd .wpp-sd-manager-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:15px 0 10px;font-size:12px;color:#647d8e}
.wpp-sd .wpp-sd-manager-count{display:inline-flex;align-items:center;padding:4px 10px;border-radius:20px;background:#e7f4f7;color:#11667e;font-size:11px;font-weight:750;white-space:nowrap}
.wpp-sd .wpp-sd-manager-list{display:grid;gap:8px}
.wpp-sd .wpp-sd-manager-card{display:grid;grid-template-columns:20px 38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 13px;margin:0;border:1px solid #d9e5ed;border-radius:11px;background:#fff;cursor:pointer;transition:background .12s,border-color .12s;min-width:0}
.wpp-sd .wpp-sd-manager-card:hover{border-color:#a3c8d8;background:#f8fcfd}
.wpp-sd .wpp-sd-manager-card:focus-within{outline:2px solid #1981a4;outline-offset:2px}
.wpp-sd .wpp-sd-manager-card.is-selected{background:#f0f9fb;border-color:#91bdcf;box-shadow:inset 3px 0 0 #177b98}
.wpp-sd .wpp-sd-manager-card.is-removing{background:#fffaf3;border-color:#e5cda7}
.wpp-sd .wpp-sd-manager-card .wpp-sd-avatar{width:38px;height:38px;flex-basis:38px;font-size:12px;background:#e6eff5;color:#305b77}
.wpp-sd .wpp-sd-manager-card.is-selected .wpp-sd-avatar{background:#dceef3;color:#14677f}
.wpp-sd .wpp-sd-manager-identity{display:grid;gap:4px;min-width:0}
.wpp-sd .wpp-sd-manager-name{display:block;color:#193e58;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-manager-email{display:block;color:#647e90;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.wpp-sd .wpp-sd-manager-state{font-size:10px;font-weight:700;color:#718694;white-space:nowrap;border-radius:14px;background:#f1f5f8;padding:4px 8px}
.wpp-sd .wpp-sd-manager-card.is-selected .wpp-sd-manager-state{background:#dbedf3;color:#146c84}
.wpp-sd .wpp-sd-manager-card.is-removing .wpp-sd-manager-state{background:#fff0d7;color:#916317}
.wpp-sd .wpp-sd-manager-empty{margin:0!important;padding:25px 16px;border:1px dashed #cbdde7;border-radius:10px;background:#f8fbfd;text-align:center;font-size:13px;line-height:1.65;color:#587284}
.wpp-sd .wpp-sd-manager-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex:0 0 auto;padding:16px 24px;background:#fff;border-top:1px solid #d9e6ee;box-shadow:0 -5px 18px #244f7106}
.wpp-sd .wpp-sd-manager-footer-copy{display:grid;gap:4px;min-width:0}
.wpp-sd .wpp-sd-manager-footer-copy strong{font-size:12px;color:#294c64}
.wpp-sd .wpp-sd-manager-footer-copy small{font-size:11px;color:#718594}
.wpp-sd .wpp-sd-manager-actions{display:flex;gap:8px;align-items:center}
.wpp-sd .wpp-sd-manager-actions button{min-height:42px;padding:10px 16px;border-radius:8px;font-size:13px}
.wpp-sd .wpp-sd-manager-actions .wpp-sd-primary{background:#146c88;border-color:#146c88}
.wpp-sd .wpp-sd-manager-footer .wpp-sd-form-error{flex:1 0 100%;margin:0}
@media(max-width:540px){.wpp-sd .wpp-sd-manager-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);border-radius:13px}.wpp-sd .wpp-sd-manager-dialog .wpp-sd-dialog-head{padding:18px 16px 16px}.wpp-sd .wpp-sd-manager-heading h3{font-size:21px!important}.wpp-sd .wpp-sd-manager-intro{padding:14px 16px}.wpp-sd .wpp-sd-manager-panel{padding:16px}.wpp-sd .wpp-sd-manager-toolbar{gap:9px}.wpp-sd .wpp-sd-manager-search{flex-basis:100%}.wpp-sd .wpp-sd-manager-selected-filter{margin:1px 0}.wpp-sd .wpp-sd-manager-card{grid-template-columns:20px 34px minmax(0,1fr);gap:9px;padding:12px 10px}.wpp-sd .wpp-sd-manager-card .wpp-sd-avatar{width:34px;height:34px;flex-basis:34px}.wpp-sd .wpp-sd-manager-state{grid-column:3;justify-self:start;margin-top:-1px}.wpp-sd .wpp-sd-manager-footer{padding:14px 16px;gap:12px}.wpp-sd .wpp-sd-manager-footer-copy{flex-basis:100%}.wpp-sd .wpp-sd-manager-actions{width:100%;display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1fr)}.wpp-sd .wpp-sd-manager-actions button{width:100%;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.wpp-sd .wpp-sd-manager-card{transition:none}}


/* v0.5.20: document titles and filenames remain separate in the compact list. */
.wpp-sd .wpp-sd-file-compact{grid-template-columns:26px 23px minmax(260px,1fr) minmax(110px,150px) 132px 79px minmax(190px,auto)}
.wpp-sd .wpp-sd-file-name{display:block;min-width:0}
.wpp-sd .wpp-sd-name-line{display:flex;align-items:center;gap:9px;min-width:0}
.wpp-sd .wpp-sd-document-number{display:block;min-width:0;margin-bottom:4px;color:#17698a;font-size:11px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;letter-spacing:.02em}
.wpp-sd .wpp-sd-document-number.is-pending{color:var(--sd-muted);font-weight:500;letter-spacing:0}
.wpp-sd .wpp-sd-file-compact .wpp-sd-file-name .wpp-sd-title{flex:1 1 48%;min-width:0;max-width:100%;font-size:12px}
.wpp-sd .wpp-sd-file-original{flex:1 1 52%;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.4;color:var(--sd-muted)}
.wpp-sd .wpp-sd-name-separator{flex:0 0 auto;color:#bacbd6;font-size:14px;line-height:1.4}
.wpp-sd .wpp-sd-document-metadata{padding-bottom:18px;border-bottom:1px solid var(--sd-line)}
.wpp-sd .wpp-sd-document-metadata .wpp-sd-document-title{font-size:17px;font-weight:700;line-height:1.45;color:#163e59}
.wpp-sd .wpp-sd-document-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.wpp-sd .wpp-sd-document-metadata .wpp-sd-metadata-empty{font-size:13px;font-weight:400;color:var(--sd-muted)}
.wpp-sd .wpp-sd-metadata-actions{margin:-6px 0 20px;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1350px){.wpp-sd .wpp-sd-file-compact{grid-template-columns:24px 21px minmax(200px,1fr) minmax(110px,145px) 115px 75px}}
@media(max-width:660px){.wpp-sd .wpp-sd-file-compact{grid-template-columns:24px 20px minmax(0,1fr) auto;gap:6px 7px}.wpp-sd .wpp-sd-file-name,.wpp-sd .wpp-sd-name-line{display:block}.wpp-sd .wpp-sd-file-compact .wpp-sd-file-name .wpp-sd-title{white-space:normal;overflow-wrap:anywhere}.wpp-sd .wpp-sd-name-separator{display:none}.wpp-sd .wpp-sd-file-original{white-space:normal;overflow-wrap:anywhere;margin-top:4px;font-size:10px}.wpp-sd .wpp-sd-file-uploader{grid-column:3/-1}.wpp-sd .wpp-sd-file-date{grid-column:3/-1}.wpp-sd .wpp-sd-file-compact .wpp-sd-badge{grid-column:4;grid-row:1}.wpp-sd .wpp-sd-file-compact .wpp-sd-row-actions{grid-column:3/-1}}

/* Explicit placement keeps the title/filename group together when actions wrap. */
.wpp-sd .wpp-sd-file-compact>.wpp-sd-type-icon{grid-column:1;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-direction{grid-column:2;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-file-name{grid-column:3;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-file-uploader{grid-column:4;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-file-date{grid-column:5;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-badge{grid-column:6;grid-row:1}
.wpp-sd .wpp-sd-file-compact>.wpp-sd-row-actions{grid-column:7;grid-row:1}
@media(max-width:1350px){.wpp-sd .wpp-sd-file-compact>.wpp-sd-row-actions{grid-column:3/-1;grid-row:2}}
@media(max-width:660px){.wpp-sd .wpp-sd-file-compact>.wpp-sd-file-uploader{grid-column:3/-1;grid-row:2}.wpp-sd .wpp-sd-file-compact>.wpp-sd-file-date{grid-column:3/-1;grid-row:3}.wpp-sd .wpp-sd-file-compact>.wpp-sd-badge{grid-column:4;grid-row:1}.wpp-sd .wpp-sd-file-compact>.wpp-sd-row-actions{grid-column:3/-1;grid-row:4}}
