/* cult-ui / 21st.dev 1529: perspective, drag-to-browse and expanded preview,
   adapted to accessible native scrolling. Private photos never leave their authorized routes. */
.reports-library{display:grid;gap:20px;min-width:0}.reports-library .page-header{margin:0}.reports-library-tools{padding:0;overflow:hidden}.reports-library-tabs{display:flex;border-bottom:1px solid var(--fdc-color-border);background:var(--fdc-color-background-secondary)}.reports-library-tabs>a{display:flex;align-items:center;gap:10px;padding:20px 26px;text-decoration:none;color:var(--fdc-color-text-secondary);border-bottom:3px solid transparent;font-weight:650}.reports-library-tabs>a small{font-weight:400;font-size:.78rem}.reports-library-tabs>a[aria-current=page]{color:var(--fdc-color-text);border-color:#2f7a70;background:var(--fdc-color-surface)}.reports-library-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:20px}.reports-library-filters label{display:grid;gap:6px;flex:1 1 145px;font-size:.76rem;font-weight:600;color:var(--fdc-color-text-secondary);min-width:0}.reports-library-filters .reports-search{flex:2 1 250px}.reports-library-filters input,.reports-library-filters select{width:100%;min-width:0;min-height:42px;background:var(--fdc-color-surface);border:1px solid var(--fdc-color-border);border-radius:9px;padding:10px;color:var(--fdc-color-text);font-size:.87rem}.reports-result-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}.reports-result-heading h2{margin:0;font-size:1.14rem}.reports-result-heading>span,.reports-pagination{font-size:.82rem;color:var(--fdc-color-text-secondary)}.reports-document-list{display:grid;gap:12px}.report-library-card{display:flex;align-items:flex-start;gap:18px;padding:22px}.report-library-icon{flex:0 0 52px;width:52px;height:64px;border:1px solid var(--fdc-color-border);border-radius:12px;color:#347f74;background:var(--fdc-color-background-secondary);display:grid;place-items:center}.report-library-copy{flex:1;min-width:0}.report-library-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.report-library-title h3{font-size:1rem;margin:0;overflow-wrap:anywhere}.report-library-copy p{margin:7px 0;color:var(--fdc-color-text-secondary)}.report-library-copy small{font-size:.78rem;color:var(--fdc-color-text-secondary)}.report-library-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:350px}.report-more-actions{font-size:.83rem;position:relative}.report-more-actions[open]{display:grid;gap:10px;padding:12px;border:1px solid var(--fdc-color-border);border-radius:8px}.report-more-actions a{display:block;margin-top:12px}.report-version-history{margin-top:14px;font-size:.82rem}.report-version-history>div{display:flex;gap:12px;padding:10px 0;flex-wrap:wrap}.report-version-history>div span{flex:1}.reports-pagination{display:flex;gap:18px;align-items:center;justify-content:center;padding:12px}.media-share-review{padding:22px}.media-share-review h2{font-size:1.2rem}.media-share-review li{overflow-wrap:anywhere}.media-gallery{min-width:0;padding:20px;background:var(--fdc-color-surface);border:1px solid var(--fdc-color-border);border-radius:16px}.media-gallery-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.media-gallery-toolbar h3{font-size:1rem;margin:0 0 6px}.media-gallery-toolbar p{font-size:.8rem;margin:0;color:var(--fdc-color-text-secondary)}.media-view-switch{display:flex;padding:4px;border:1px solid var(--fdc-color-border);border-radius:10px;gap:3px}.media-view-switch button{display:flex;align-items:center;gap:7px;padding:9px 12px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:.82rem;color:var(--fdc-color-text-secondary)}.media-view-switch button[aria-pressed=true]{background:var(--fdc-color-background-secondary);color:var(--fdc-color-text);box-shadow:0 1px 3px #0002}.media-selection-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 0;border-top:1px solid var(--fdc-color-border)}.media-selection-toolbar label{display:flex;align-items:center;gap:8px;font-size:.8rem}.media-selection-toolbar input,.media-gallery-select input{appearance:auto;accent-color:#2f7a70;width:19px;height:19px;margin:0;cursor:pointer}.media-selection-toolbar>span{font-size:.78rem;color:var(--fdc-color-text-secondary)}.media-selection-toolbar button:disabled{opacity:.45;cursor:not-allowed}.media-selection-help{font-size:.76rem;color:var(--fdc-color-text-secondary);margin:0 0 16px}.media-gallery-track{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px;position:relative;outline-offset:3px}.media-gallery-card{border:1px solid var(--fdc-color-border);border-radius:12px;overflow:hidden;min-width:0;background:var(--fdc-color-surface);transition:transform .2s,border-color .2s}.media-gallery-card.is-selected{border:2px solid #2f7a70}.media-gallery-image{position:relative;background:var(--fdc-color-background-secondary)}.media-gallery-image>a:first-of-type{display:flex;align-items:center;justify-content:center;height:240px}.media-gallery-image img{height:100%;width:100%;object-fit:contain}.media-gallery-select{position:absolute;top:9px;left:9px;z-index:2;background:var(--fdc-color-surface);border:1px solid var(--fdc-color-border);border-radius:8px;padding:9px;display:flex}.media-gallery-actions{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;background:var(--fdc-color-surface);padding:10px;border-top:1px solid var(--fdc-color-border)}.media-gallery-actions a{display:flex;align-items:center;gap:5px;font-size:.77rem;text-decoration:none;padding:5px 3px;min-height:32px}.media-gallery-caption{display:grid;gap:5px;padding:14px}.media-gallery-caption strong{font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-gallery-caption span,.media-gallery-caption small{font-size:.75rem;overflow-wrap:anywhere;color:var(--fdc-color-text-secondary)}.media-file-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:240px;color:var(--fdc-color-text-secondary);font-size:.85rem}.media-gallery-navigation,.media-gallery-filmstrip{display:none}.media-gallery[data-mode=gallery] .media-gallery-navigation{display:flex;gap:12px;align-items:center;justify-content:center;margin-bottom:16px;font-size:.8rem}.media-gallery[data-mode=gallery] .media-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:24px;padding:16px max(18px,calc((100% - 500px)/2));perspective:1400px;scrollbar-width:thin}.media-gallery[data-mode=gallery] .media-gallery-card{flex:0 0 min(82vw,500px);scroll-snap-align:center;transform:scale(.93) rotateY(3deg);transform-origin:center;opacity:.8}.media-gallery[data-mode=gallery] .media-gallery-card.is-gallery-active{transform:none;opacity:1}.media-gallery[data-mode=gallery] .media-gallery-image>a:first-of-type,.media-gallery[data-mode=gallery] .media-file-placeholder{height:350px}.media-gallery[data-mode=gallery] .media-gallery-filmstrip{display:flex;overflow-x:auto;gap:9px;padding:16px 0 0;scrollbar-width:thin}.media-gallery-filmstrip button{flex:0 0 64px;height:54px;border:2px solid transparent;background:var(--fdc-color-background-secondary);border-radius:7px;color:var(--fdc-color-text);position:relative;overflow:hidden;padding:0}.media-gallery-filmstrip button[aria-current=true]{border-color:#2f7a70}.media-gallery-filmstrip img{width:100%;height:100%;object-fit:cover}.media-gallery-filmstrip span{position:absolute;bottom:0;right:0;background:#152a30d9;color:white;padding:1px 5px;font-size:.65rem}.library-file-dialog{width:min(1200px,94vw);max-width:94vw;height:min(940px,94vh);max-height:94vh;padding:0;border:1px solid var(--fdc-color-border);border-radius:16px;background:var(--fdc-color-surface);color:var(--fdc-color-text)}.library-file-dialog[open]{display:flex;flex-direction:column}.library-file-dialog::backdrop{background:#07131dcc;backdrop-filter:blur(4px)}.library-file-dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:16px;border-bottom:1px solid var(--fdc-color-border)}.library-file-dialog h2{font-size:1.05rem;margin:5px 0 0;overflow-wrap:anywhere}.library-file-dialog button{border:1px solid var(--fdc-color-border);background:var(--fdc-color-background-secondary);color:var(--fdc-color-text);border-radius:8px;padding:10px 13px;min-height:42px}.library-preview-body{flex:1;min-height:160px;min-width:0;display:flex;align-items:center;justify-content:center;background:#14212c;overflow:auto}.library-preview-body img,.library-preview-body video{max-width:100%;max-height:100%;object-fit:contain}.library-preview-body audio{width:min(600px,90%)}.library-preview-body iframe{width:100%;height:100%;min-height:45vh;border:0;background:#e4e8ed}.library-preview-body p{color:white;padding:20px}.library-preview-note{font-size:.75rem;color:var(--fdc-color-text-secondary);padding:10px 22px;margin:0}.library-file-dialog footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 22px;border-top:1px solid var(--fdc-color-border)}.library-file-dialog footer a{font-size:.82rem;padding:8px}.library-file-dialog footer span{font-size:.76rem}.library-file-dialog footer button:disabled{opacity:.4}.media-gallery :focus-visible,.reports-library :focus-visible{outline:3px solid #4d9dba;outline-offset:3px}
.library-preview-body.is-pdf{display:flex;flex-direction:column;align-items:stretch;overflow:hidden}.library-pdf-tools{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px;background:var(--fdc-color-surface);color:var(--fdc-color-text);font-size:.8rem}.library-pdf-tools button:disabled{opacity:.45}.library-pdf-scroll{flex:1;min-height:100px;overflow:auto;padding:16px;overscroll-behavior:contain;text-align:center}.library-pdf-scroll canvas{display:block;max-width:none;margin:auto;background:white;box-shadow:0 3px 12px #0006}.library-pdf-text{max-height:25%;overflow:auto;background:var(--fdc-color-surface);color:var(--fdc-color-text);padding:10px;font-size:.8rem}.library-preview-body .library-pdf-text p{color:inherit;padding:10px;white-space:pre-wrap}
@media(hover:hover) and (pointer:fine){.media-gallery[data-mode=gallery] .media-gallery-actions{opacity:0;transition:opacity .15s}.media-gallery[data-mode=gallery] .media-gallery-card:hover .media-gallery-actions,.media-gallery[data-mode=gallery] .media-gallery-card:focus-within .media-gallery-actions{opacity:1}}
@media(max-width:750px){.reports-library-tabs>a{padding:16px}.reports-library-tabs small{display:none}.report-library-card{flex-wrap:wrap;padding:16px;gap:12px}.report-library-actions{width:100%;max-width:none;justify-content:flex-start}.media-gallery{padding:14px}.media-gallery-track{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.media-gallery-toolbar{align-items:flex-start}.media-view-switch{width:100%}.media-view-switch button{flex:1;justify-content:center}.media-gallery[data-mode=gallery] .media-gallery-card{flex-basis:82vw}.media-gallery[data-mode=gallery] .media-gallery-image>a:first-of-type{height:300px}.media-selection-toolbar>button{min-height:42px}.library-file-dialog{width:96vw;max-width:96vw;max-height:96dvh;height:96dvh}.library-file-dialog header,.library-file-dialog footer{padding:12px}.reports-library-filters{padding:16px}.reports-pagination{flex-wrap:wrap}.report-library-icon{flex-basis:40px;width:40px;height:48px}.report-library-copy{flex-basis:calc(100% - 54px)}}
@media(prefers-reduced-motion:reduce){.media-gallery-card,.media-gallery-actions{transition:none!important}.media-gallery[data-mode=gallery] .media-gallery-card{transform:none;opacity:1}.media-gallery-track{scroll-behavior:auto!important}[data-gallery-play]{display:none}}
#job-media{grid-column:1 / -1;min-width:0}
.media-gallery-caption strong{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.4}
