/* A shared, private creative library for clients and their administrator. */
.asset-library{min-width:0}.asset-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.asset-total{font-size:12px;color:#71869a}.asset-library .actions{display:flex;gap:12px;align-items:center;margin:0}.asset-library button svg{width:16px;height:16px}.asset-library .portal-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.asset-file-list{display:grid;gap:12px}.asset-loading{padding:24px 0;color:#71869a;font-size:14px}.asset-empty{padding:32px 22px;text-align:center;border:1px dashed #cbdce9;border-radius:12px;background:#f8fbfd}.asset-empty>span{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#eaf2f9;color:#517f9f;margin:0 auto 17px}.asset-empty svg{width:27px;height:27px}.asset-empty h3{font-size:17px;margin:0 0 10px;color:#284762}.asset-empty p{font-size:13px;line-height:1.8;max-width:370px;margin:0 auto 20px;color:#71869a}.asset-file{display:flex;align-items:flex-start;gap:14px;border:1px solid #e0e9f0;border-radius:11px;background:#fff;padding:17px}.asset-file-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:46px;color:#477a9f;background:#eef5fa;border-radius:9px}.asset-file-icon svg{width:23px;height:23px}.asset-file-info{flex:1;min-width:0}.asset-library .asset-file-name{display:block;min-height:0;text-align:left;padding:0;border:0;box-shadow:none;border-radius:0;background:transparent;color:#254f72;font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere;max-width:100%;text-decoration:none}.asset-library .asset-file-name:hover{text-decoration:underline}.asset-file-meta{font-size:11px;color:#8092a2;line-height:1.6;margin:6px 0 0}.asset-file-note{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#5b7389;margin:9px 0 0}.asset-file-actions{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0}.asset-file-actions .portal-button{font-size:11px!important;min-height:33px!important;padding:7px 11px!important}.asset-file-actions .quiet{font-size:11px;min-height:28px;padding:5px 8px;color:#7c8fa0}.asset-storage-note,.asset-privacy-note{font-size:11px!important;line-height:1.8;color:#8193a3;margin:18px 0 0}.asset-feedback{font-size:13px;line-height:1.7;color:#406b8e;background:#eff6fb;padding:12px 14px;border-radius:9px;overflow-wrap:anywhere}.asset-feedback.error,.asset-library>.asset-feedback{background:#fff3f1;color:#a64535}.workspace-ui .asset-dialog{width:min(580px,calc(100% - 32px));max-width:580px;color:#2a4862}.workspace-ui .asset-dialog .portal-dialog-heading{position:sticky;top:-28px;z-index:3;padding:12px 0 16px;border-bottom:1px solid #e5edf4}.workspace-ui .asset-dialog h2{font-size:23px;overflow-wrap:anywhere;min-width:0}.asset-dialog .icon-close{flex-shrink:0}.asset-dialog-intro{font-size:14px;line-height:1.8;color:#71869a;margin:20px 0}.asset-dropzone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;text-align:center;border:1.5px dashed #b8d0e3;border-radius:13px;background:#f5f9fc;padding:30px 23px;cursor:pointer;transition:background .15s,border-color .15s}.asset-dropzone:hover,.asset-dropzone.dragging{border-color:#558fb9;background:#eaf4fc}.asset-dropzone[aria-disabled=true]{cursor:wait;opacity:.6}.asset-dropzone svg{width:30px;height:30px;color:#467fa8}.asset-dropzone strong{font-size:15px;font-weight:600;color:#335c7c}.asset-dropzone span{font-size:11px;color:#8092a2;line-height:1.7;max-width:310px}.asset-file-input{position:absolute;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);opacity:0}.asset-selection{display:grid;gap:9px;margin-top:18px}.asset-selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2eaf1;padding:12px 14px;border-radius:9px;min-width:0}.asset-selected-file>span{min-width:0}.asset-selected-file strong{display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.asset-selected-file small{display:block;font-size:11px;color:#7c90a2;line-height:1.7;overflow-wrap:anywhere;margin-top:3px}.asset-selected-file button{min-width:30px;font-size:21px!important;padding:3px!important}.asset-dialog .asset-note-label{display:block;font-size:13px;line-height:1.6;color:#46617a;margin:22px 0 18px}.asset-note-label>span{font-size:11px;color:#8b9cac;font-weight:400;margin-left:4px}.asset-dialog textarea{margin-top:8px;width:100%;font:inherit;font-size:13px;padding:11px 13px;border:1px solid #d5e1eb;border-radius:8px;resize:vertical;box-sizing:border-box}.asset-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px;margin-top:20px;border-top:1px solid #e5edf4}.asset-dialog-actions button{font-size:13px}.asset-preview-content{display:grid;place-items:center;min-height:160px;padding:20px 0;color:#71869a;font-size:14px;line-height:1.7}.asset-preview-content img,.asset-preview-content video{max-width:100%;max-height:55dvh;object-fit:contain;border-radius:8px;background:#f4f7fa}.asset-preview-note{white-space:pre-wrap;font-size:13px;line-height:1.8;color:#6d8397;overflow-wrap:anywhere}.asset-pdf{text-align:center}.asset-pdf svg{display:block;width:52px;height:52px;margin:0 auto 16px;color:#557f9d}.asset-pdf strong{display:block}.asset-pdf p{font-size:13px}.asset-remove-dialog>p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.admin-assets{padding-top:22px;margin:24px 0;border-top:1px solid #e3ebf2}.admin-assets h3{font-size:17px;margin:0}.admin-assets>p{color:#71869a;font-size:13px;line-height:1.7}.admin-assets .asset-library-toolbar{margin-top:12px}.dashboard-page.workspace-ui .portal-tabs button{font-size:14px;padding-left:10px;padding-right:10px}
@media(max-width:580px){.dashboard-page.workspace-ui .portal-tabs{display:grid;grid-template-columns:1fr 1fr}.dashboard-page.workspace-ui .portal-tabs button{font-size:12px;gap:7px}.dashboard-page.workspace-ui .portal-tabs svg{display:block}.asset-library-toolbar{gap:10px;align-items:flex-start}.asset-library .actions{gap:7px}.asset-library-toolbar .portal-button{padding:9px 12px;font-size:12px}.asset-file{padding:14px;gap:11px;flex-wrap:wrap}.asset-file-icon{flex-basis:34px;width:34px;height:39px}.asset-file-icon svg{width:20px;height:20px}.asset-file-actions{width:100%;padding-left:45px;flex-direction:row;justify-content:flex-start;gap:10px}.asset-library .asset-file-name{font-size:13px}.asset-empty{padding:27px 15px}.asset-total{font-size:11px}.asset-dialog-actions button{flex:1}.workspace-ui .asset-dialog .portal-dialog-heading{top:-24px}.asset-dropzone{padding:24px 15px}}
@media(prefers-reduced-motion:reduce){.asset-dropzone{transition:none}}

/* A visual library: private originals, compact previews, and quiet file actions. */
.workspace-ui .asset-library-toolbar{margin:20px 0 16px}.workspace-ui .asset-file-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.workspace-ui .asset-file-list>.asset-empty,.workspace-ui .asset-file-list>.asset-loading{grid-column:1/-1}.workspace-ui .asset-card{display:flex;flex-direction:column;gap:0;min-width:0;padding:0;border:1px solid #e0e8ef;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 2px 7px #15334b03}.workspace-ui .asset-cover{display:block;position:relative;width:100%;aspect-ratio:16/10;min-height:0!important;padding:0;border:0;border-bottom:1px solid #e8eef4;border-radius:0;background:#f2f6fa;overflow:hidden;box-shadow:none;color:#6c91ad}.asset-cover-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:linear-gradient(145deg,#f4f8fb,#eaf1f7)}.asset-cover-fallback svg{width:33px!important;height:33px!important;color:#7b9ab1}.asset-cover-fallback>span{font-size:10px;color:#90a5b5}.asset-cover img,.asset-cover video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#edf2f7;pointer-events:none}.asset-cover [hidden]{display:none!important}.asset-cover img{padding:10px;box-sizing:border-box}.asset-cover .asset-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:36px;height:36px;background:#ffffffed;border:1px solid #dce6ed;border-radius:50%;box-shadow:0 2px 10px #16384d15;color:#4b789a}.asset-play svg{width:19px!important;height:19px!important}.asset-format{position:absolute;left:10px;bottom:9px;padding:3px 6px;background:#ffffffed;border:1px solid #e0e8ef;border-radius:5px;color:#6e879b;font-size:9px;font-weight:650;line-height:1.4}.asset-cover:hover img,.asset-cover:hover video{filter:brightness(.97)}.workspace-ui .asset-card .asset-file-info{width:100%;box-sizing:border-box;padding:13px 13px 9px;flex:1}.workspace-ui .asset-card .asset-file-name{font-size:12px;line-height:1.6;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;min-height:0!important;color:#3b607c}.workspace-ui .asset-card .asset-file-meta{font-size:10px;color:#8b9eae;margin:5px 0 0;line-height:1.6}.workspace-ui .asset-card .asset-file-note{font-size:11px;line-height:1.7;margin:8px 0 0;color:#7b91a3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}.workspace-ui .asset-card .asset-file-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0 12px 12px;box-sizing:border-box;margin-top:4px}.workspace-ui .asset-card .asset-file-actions .portal-button{border:0;background:#eff5fa;color:#5a7f9d;min-height:30px!important;padding:6px 9px!important;font-size:10px!important;font-weight:500;box-shadow:none}.asset-card .asset-file-actions .portal-button svg{width:12px;height:12px;transform:rotate(180deg)}.workspace-ui .asset-card .asset-remove{display:grid;place-items:center;width:28px;height:28px;min-height:28px!important;padding:0!important;border:0;border-radius:7px;font-size:18px;background:transparent;color:#9aaeba}.workspace-ui .asset-card .asset-remove:hover{color:#a5574e;background:#fff3ef}.workspace-ui .asset-filters{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:6px 0 20px}.asset-filters label{display:block;flex:1;min-width:145px;color:#8398a9;font-size:10px}.workspace-ui .asset-filters input{width:100%;box-sizing:border-box;min-height:37px;margin:5px 0 0;font-size:11px;background:#f7f9fc;border:1px solid #e1e9f1;border-radius:8px;padding:9px 11px;appearance:none}.asset-type-filters{display:flex;gap:3px;padding:4px;background:#f0f5f9;border-radius:9px;max-width:100%;align-self:flex-end}.workspace-ui .asset-type-filters button{border:1px solid transparent!important;color:#8097aa!important;background:transparent!important;box-shadow:none!important;border-radius:6px!important;padding:7px 9px!important;font-size:10px!important;min-height:30px!important;white-space:nowrap}.workspace-ui .asset-type-filters button[aria-pressed=true]{background:#fff!important;border-color:#dfe8f1!important;color:#366789!important;box-shadow:0 1px 3px #183f5c07!important}.asset-preview-content video{width:100%;background:#142333}.asset-preview-content img{display:block}.asset-cover:focus-visible{outline:3px solid #8cb9db!important;outline-offset:-3px}
@media(max-width:580px){.workspace-ui .asset-file-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workspace-ui .asset-card .asset-file-info{padding:10px 10px 8px}.workspace-ui .asset-card .asset-file-name{font-size:11px}.workspace-ui .asset-card .asset-file-meta{font-size:9px}.workspace-ui .asset-card .asset-file-actions{padding:0 9px 10px;gap:3px}.workspace-ui .asset-card .asset-file-actions .portal-button{font-size:9px!important;padding:6px!important;gap:5px}.asset-cover img{padding:6px}.asset-format{font-size:8px;left:7px;bottom:7px}.workspace-ui .asset-filters{display:block;margin-bottom:16px}.asset-type-filters{margin-top:12px;width:100%;box-sizing:border-box}.workspace-ui .asset-type-filters button{flex:1;padding:7px 6px!important}.asset-storage-note{font-size:10px!important}.asset-card .asset-file-note{display:none!important}}
.asset-preview-dialog .asset-playback-status{font-size:12px;line-height:1.8;color:#748c9e;margin:0 0 12px}.asset-preview-dialog .asset-playback-status[role=alert]{color:#a45143}.workspace-ui .asset-preview-dialog .asset-playback-button{font-size:12px;padding:9px 15px;margin:0 10px 10px 0;min-height:37px!important;border-radius:8px}.asset-preview-dialog [hidden]{display:none!important}.asset-preview-dialog .asset-preview-content video{min-height:160px;max-height:55dvh}

/* Readable labels and consistent controls throughout the creative library. */
.workspace-ui .asset-library :is(.asset-total,.asset-empty p,.asset-loading,.asset-storage-note,.asset-privacy-note){color:var(--portal-muted,#526b81)}
.workspace-ui .asset-card .asset-file-name{font-size:13px;color:#315775}
.workspace-ui .asset-card .asset-file-meta{font-size:11px;color:#60798e}
.workspace-ui .asset-card .asset-file-note{font-size:12px;color:#526e85}
.workspace-ui .asset-filters label{font-size:12px;color:#526b81}
.workspace-ui .asset-filters input{font-size:13px;min-height:44px;background:#fff}
.workspace-ui .asset-type-filters button{font-size:12px!important;min-height:36px!important;color:#526f85!important}
.workspace-ui .asset-card .asset-file-actions .portal-button{font-size:11px!important;min-height:34px!important;color:#365e7e}
.workspace-ui .asset-dialog-intro{color:#526b81}
@media(max-width:580px){.dashboard-page.workspace-ui .portal-tabs button{font-size:13px;min-height:46px}.workspace-ui .asset-filters input{font-size:16px}.workspace-ui .asset-type-filters button{font-size:11px!important}.workspace-ui .asset-card .asset-file-meta{font-size:10px}.workspace-ui .asset-card .asset-file-actions .portal-button{font-size:10px!important}}
