/* Photos & Graphics library and Photos Manager. Same look as the resource library pages:
   white bars, card grid, sharp corners. Green #8cc63e only ever sits with #1c1e1a (never on white). No all caps. */
.cpl { font-family: Inter, Arial, sans-serif; color: #1c1e1a; display: flex; flex-direction: column; gap: 20px; }
.cpl *, .cpl *::before, .cpl *::after { box-sizing: border-box; }
.cpl [hidden] { display: none !important; }
.cpl label { font-weight: 400; margin-bottom: 0; }
.cpl button, .cpl input, .cpl select { font-family: inherit; text-transform: none; letter-spacing: 0; }
.cpl img { max-width: none; vertical-align: top; }
.cpl table { border-spacing: 0; }
.cpl-box { width: 18px; height: 18px; margin: 0; accent-color: #1c1e1a; cursor: pointer; flex: 0 0 auto; }
.cpl-dialog { margin: auto; }
.cpl-bar { background: #fff; border: 1px solid #e3e1da; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cpl-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cpl-field { display: flex; flex-direction: column; gap: 4px; flex: 0 0 200px; margin: 0; }
.cpl-field-grow { flex: 1 1 240px; }
.cpl-label { font-size: 12px; font-weight: 600; color: #5c5f57; }
.cpl-select, .cpl-search, .cpl-input { height: 40px; border: 1px solid #c9c7bf; background: #fff; font: inherit; font-size: 14px; color: #1c1e1a; padding: 0 10px; border-radius: 0; width: 100%; margin: 0; }
.cpl-search-wrap { position: relative; display: block; }
.cpl-search-icon { position: absolute; left: 12px; top: 12px; color: #5c5f57; display: flex; }
.cpl-search { padding-left: 36px; }
.cpl-select:focus, .cpl-search:focus, .cpl-input:focus { outline: 2px solid #1c1e1a; outline-offset: -1px; border-color: #1c1e1a; }
.cpl-bar-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #ebe9e2; padding-top: 12px; }
.cpl-bar-left, .cpl-bar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cpl-count { font-size: 14px; font-weight: 600; }
.cpl-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #1c1e1a; text-decoration: underline; cursor: pointer; }
.cpl-link:disabled { color: #8a8d84; cursor: default; text-decoration: none; }
.cpl-link-danger { color: #8a2a22; }
.cpl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 1px solid #1c1e1a; background: #fff; color: #1c1e1a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 0; text-decoration: none; }
.cpl-btn-primary { background: #8cc63e; border-color: #1c1e1a; color: #1c1e1a; }
.cpl-btn-primary:hover { background: #7fb534; }
.cpl-btn:disabled { background: #ebe9e2; border-color: #ebe9e2; color: #6b6e66; cursor: default; }
.cpl-btn:focus-visible, .cpl-link:focus-visible, .cpl-preview:focus-visible, .cpl-dialog-close:focus-visible { outline: 2px solid #1c1e1a; outline-offset: 2px; }
.cpl-msg { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid #e3e1da; font-size: 14px; }
.cpl-msg-error { background: #fbeceb; border-color: #f0cfcb; color: #8a2a22; }
.cpl-status:empty { display: none; }
.cpl-empty { grid-column: 1 / -1; margin: 0; padding: 32px 16px; background: #fff; border: 1px solid #e3e1da; text-align: center; color: #4a4d45; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cpl-empty p { margin: 0; }

/* Format chooser */
.cpl-format-wrap { position: relative; }
.cpl-formats { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; max-width: 86vw; background: #fff; border: 1px solid #1c1e1a; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 24px rgba(28, 30, 26, 0.16); }
.cpl-formats-title { margin: 0 0 2px; font-size: 13px; font-weight: 700; }
.cpl-formats-note { margin: 4px 0 0; font-size: 12px; color: #5c5f57; }
.cpl-format { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; cursor: pointer; }
.cpl-formats-gap { margin-top: 8px; padding-top: 10px; border-top: 1px solid #ebe9e2; }
.cpl-format input, .cpl-check input, .cpl-row-check { width: 18px; height: 18px; margin: 0; accent-color: #1c1e1a; cursor: pointer; flex: 0 0 auto; }

/* Cards */
.cpl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cpl-card { background: #fff; border: 1px solid #e3e1da; display: flex; flex-direction: column; }
.cpl-card.is-selected { border-color: #1c1e1a; box-shadow: inset 0 0 0 1px #1c1e1a; }
.cpl-card-top { position: relative; }
.cpl-preview { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; background: #f4f5f1; border: 0; padding: 0; cursor: pointer; color: #8a8d84; overflow: hidden; }
.cpl-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cpl-check { position: absolute; top: 8px; right: 8px; display: flex; padding: 4px; background: rgba(255, 255, 255, 0.9); cursor: pointer; margin: 0; }
.cpl-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; border-top: 1px solid #ebe9e2; }
.cpl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cpl-tag { background: #1c1e1a; color: #8cc63e; font-size: 11px; font-weight: 700; padding: 3px 6px; }
.cpl-tag-light { background: #f1efe9; color: #1c1e1a; }
.cpl-name { margin: 4px 0 0; font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.cpl-sub { margin: 0; font-size: 13px; line-height: 1.4; color: #4a4d45; word-break: break-word; }
.cpl-card-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Details window */
.cpl-dialog { border: 1px solid #1c1e1a; padding: 0; width: min(960px, 94vw); max-height: 90vh; color: #1c1e1a; background: #fff; border-radius: 0; }
.cpl-dialog::backdrop { background: rgba(28, 30, 26, 0.6); }
.cpl-dialog-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cpl-dialog-view { background: #f4f5f1; display: flex; align-items: center; justify-content: center; min-height: 320px; color: #8a8d84; }
.cpl-dialog-view img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; background: #fff; }
.cpl-dialog-side { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; max-height: 90vh; }
.cpl-dialog-title { margin: 0 32px 0 0; font-family: Inter, Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.cpl-dialog-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3e1da; cursor: pointer; color: #1c1e1a; padding: 0; }
.cpl-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 6px 0; font-size: 14px; }
.cpl-facts dt { color: #5c5f57; }
.cpl-facts dd { margin: 0; }
.cpl-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.cpl-files td { padding: 8px 0; border-top: 1px solid #ebe9e2; vertical-align: top; }
.cpl-dim { color: #5c5f57; font-size: 13px; padding-left: 10px !important; }
.cpl-right { text-align: right; white-space: nowrap; padding-left: 10px !important; }

/* Photos Manager */
.cpl-panel { background: #fff; border: 1px solid #e3e1da; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cpl-panel-head { display: flex; flex-direction: column; gap: 4px; }
.cpl-panel-title { margin: 0; font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.cpl-sub-title { margin: 8px 0 0; font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; }
.cpl-help { margin: 0; font-size: 13px; color: #4a4d45; line-height: 1.5; }
.cpl-drop { border: 2px dashed #c9c7bf; background: #f9f8f5; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cpl-drop.is-over { border-color: #1c1e1a; background: #f1efe9; }
.cpl-drop-icon { color: #5c5f57; display: flex; }
.cpl-drop-title { margin: 0; font-size: 15px; font-weight: 600; }
.cpl-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cpl-row > .cpl-field { flex: 1 1 150px; }
.cpl-row.cpl-center { justify-content: center; }
.cpl-row.cpl-middle { align-items: center; gap: 16px; }
.cpl-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.cpl-select.cpl-auto { width: auto; }
.cpl-select-sm { height: 36px; width: auto; font-size: 13px; padding: 0 8px; }
.cpl-muted { color: #5c5f57; font-size: 13px; }
.cpl-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.cpl-progress { height: 8px; background: #ebe9e2; }
.cpl-progress > div { height: 100%; background: #1c1e1a; width: 0; transition: width 0.2s; }
.cpl-log { margin: 0; padding: 0 0 0 18px; font-size: 13px; color: #8a2a22; max-height: 160px; overflow: auto; }
.cpl-log:empty { display: none; }

/* Tagging bar: always there, and it follows you down the list once photos are ticked. */
.cpl-bulk { background: #fff; border: 1px solid #e3e1da; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cpl-bulk.is-active { position: sticky; top: 0; z-index: 15; border-color: #1c1e1a; box-shadow: 0 6px 18px rgba(28, 30, 26, 0.14); }
.cpl-bulk-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cpl-bulk-count { margin: 0; font-size: 14px; color: #4a4d45; }
.cpl-bulk.is-active .cpl-bulk-count { color: #1c1e1a; font-weight: 600; }

/* The list */
.cpl-table-wrap { background: #fff; border: 1px solid #e3e1da; overflow-x: auto; }
.cpl-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.cpl-table th { text-align: left; font-size: 12px; font-weight: 600; color: #5c5f57; padding: 10px 12px; border-bottom: 1px solid #e3e1da; white-space: nowrap; background: #fff; }
.cpl-table td { padding: 8px 12px; border-bottom: 1px solid #ebe9e2; vertical-align: middle; line-height: 1.35; }
.cpl-table tbody tr:hover td { background: #faf9f6; }
.cpl-table tr.is-selected td { background: #f1efe9; }
.cpl-cell-check { width: 44px; padding-right: 0 !important; }
.cpl-cell-thumb { width: 88px; }
.cpl-cell-edit { text-align: right; white-space: nowrap; }
.cpl-hit { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; cursor: pointer; }
.cpl-thumb { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #f4f5f1; color: #8a8d84; border: 1px solid #ebe9e2; }
.cpl-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cpl-thumb-btn, .cpl-name-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: block; }
.cpl-name-btn:hover .cpl-row-name { text-decoration: underline; }
.cpl-row-name { display: block; font-weight: 600; word-break: break-word; }
.cpl-row-sub { display: block; font-size: 12px; color: #5c5f57; word-break: break-word; }
.cpl-missing { color: #8a2a22; font-size: 13px; }
.cpl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cpl-chip { background: #f1efe9; color: #1c1e1a; font-size: 12px; padding: 2px 7px; white-space: nowrap; }
.cpl-chip-format { background: #fff; border: 1px solid #d8d6cf; padding: 1px 6px; }
.cpl-none { text-align: center; color: #4a4d45; padding: 28px 12px !important; }
.cpl-more { padding: 12px; text-align: center; }
.cpl-btn-sm { min-height: 30px; padding: 0 12px; font-size: 13px; }

/* One photo */
.cpl-editor { width: min(1040px, 96vw); }
.cpl-noprev { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.cpl-editor .cpl-dialog-side { gap: 12px; }
.cpl-dialog-side > .cpl-field { flex: 0 0 auto; }
.cpl-editor .cpl-dialog-view { background: #fff; border-right: 1px solid #ebe9e2; padding: 16px; }
.cpl-dialog-actions { border-top: 1px solid #ebe9e2; padding-top: 14px; margin-top: 4px; }
.cpl-files .cpl-right { display: flex; gap: 12px; justify-content: flex-end; }

/* Folders (customer library) */
.cpl-bar-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cpl-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; min-width: 0; }
.cpl-crumb { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #4a4d45; text-decoration: underline; cursor: pointer; }
.cpl-crumb.is-here { color: #1c1e1a; font-weight: 700; text-decoration: none; cursor: default; }
.cpl-crumb-sep { color: #8a8d84; }
.cpl-search-box { flex: 0 1 340px; min-width: 220px; }
.cpl-folder { box-shadow: 4px 4px 0 #e3e1da; }
.cpl-folder.is-selected { box-shadow: inset 0 0 0 1px #1c1e1a, 4px 4px 0 #1c1e1a; }
.cpl-folder-meta { display: flex; align-items: center; gap: 6px; }
.cpl-name-open { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cpl-name-open:hover { text-decoration: underline; }
.cpl-where { margin: 0; font-size: 12px; color: #5c5f57; }
.cpl-tray { position: sticky; bottom: 16px; z-index: 15; background: #1c1e1a; color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 8px 24px rgba(28, 30, 26, 0.28); }
.cpl-tray-text { font-size: 15px; font-weight: 600; }
.cpl-tray-actions { display: flex; align-items: center; gap: 18px; }
.cpl-link.cpl-tray-link { color: #fff; }
.cpl-tray .cpl-btn-primary { border-color: #8cc63e; }
.cpl-tray .cpl-btn:disabled { background: #4a4d45; border-color: #4a4d45; color: #c9c7bf; }
.cpl-dl { width: min(520px, 94vw); }
.cpl-dl-inner { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.cpl-dl-list { display: flex; flex-direction: column; border: 1px solid #e3e1da; }
.cpl-dl-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; margin: 0; }
.cpl-dl-row + .cpl-dl-row { border-top: 1px solid #ebe9e2; }
.cpl-dl-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1c1e1a; flex: 0 0 auto; cursor: pointer; }
.cpl-dl-text { display: flex; flex-direction: column; gap: 2px; }
.cpl-dl-name { font-size: 15px; font-weight: 700; }
.cpl-dl-note { font-size: 13px; color: #4a4d45; line-height: 1.4; }
.cpl-dl-bg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.cpl-dl-bg .cpl-formats-title { margin: 0; flex: 0 0 100%; }
.cpl-dl-total { margin: 0; font-size: 14px; font-weight: 600; }
.cpl-fe { width: min(640px, 94vw); }
.cpl-fe .cpl-dl-inner { max-height: 88vh; overflow: auto; }
.cpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.cpl-pick-item { aspect-ratio: 1 / 1; border: 1px solid #e3e1da; background: #fff; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 12px; color: #1c1e1a; overflow: hidden; }
.cpl-pick-item img { width: 100%; height: 100%; object-fit: contain; }
.cpl-pick-item.is-on { outline: 3px solid #1c1e1a; outline-offset: -3px; }
.cpl-prod-list { max-height: 240px; overflow: auto; margin-top: 8px; }
.cpl-prod { padding: 8px 12px; align-items: center; }
.cpl-prod .cpl-dl-text { flex-direction: row; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 14px; }
.cpl-copy { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.cpl-copy .cpl-input { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.cpl-copy .cpl-btn { flex: 0 0 auto; }
.cpl-share { align-items: flex-start; justify-content: space-between; cursor: default; }
.cpl-share .cpl-dl-text { flex: 1 1 auto; min-width: 0; }
.cpl-share.is-off .cpl-dl-name { color: #6b6e66; }
.cpl-share-list { max-height: 60vh; overflow: auto; }
.cpl-level { justify-content: space-between; align-items: center; cursor: default; }
.cpl-level-move { display: flex; gap: 12px; }
.cpl-msg-inline { font-size: 13px; color: #8a2a22; }
.cpl-dl-inner > .cpl-field { flex: 0 0 auto; }

/* Download box: same look as the Sign in and Request access cards (.su-card and friends in Webflow). */
.cpl-dlx { width: min(520px, 94vw); border: 0; background: transparent; overflow: visible; }
.cpl-dlx-card { position: relative; box-sizing: border-box; padding: 36px 40px; background: #fff; border: 1px solid #e3e1da; border-top: 4px solid #1c1e1a; max-height: 92vh; overflow: auto; }
.cpl-dlx-title { margin: 0; font-family: Lora, Georgia, serif; font-size: 32px; line-height: 1.15; font-weight: 600; color: #1c1e1a; }
.cpl-dlx-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #4a4d45; }
.cpl-dlx-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.cpl-dlx-field { display: flex; flex-direction: column; gap: 6px; }
.cpl-dlx-label { font-size: 13px; font-weight: 600; color: #1c1e1a; }
.cpl-dlx-hint { font-size: 12px; line-height: 1.5; color: #5c5f57; }
.cpl-dlx-list { display: flex; flex-direction: column; border: 1px solid #c9c7bf; }
.cpl-dlx-row { display: grid; grid-template-columns: 18px 48px 64px 72px 1fr; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin: 0; font-size: 15px; cursor: pointer; }
.cpl-dlx-row + .cpl-dlx-row { border-top: 1px solid #ebe9e2; }
.cpl-dlx-row:hover { background: #f9f8f5; }
.cpl-dlx-row.is-on { background: #f4f5f1; }
.cpl-dlx-check { width: 18px; height: 18px; margin: 0; accent-color: #1c1e1a; cursor: pointer; }
.cpl-dlx-type { font-weight: 600; }
.cpl-dlx-meta { justify-self: end; font-size: 13px; color: #5c5f57; }
.cpl-dlx-check:focus-visible, .cpl-dlx-submit:focus-visible, .cpl-dlx-cancel:focus-visible { outline: 2px solid #1c1e1a; outline-offset: 2px; }
.cpl-dlx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cpl-dlx-seg-btn { min-height: 52px; padding: 6px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; border: 1px solid #c9c7bf; background: #fff; color: #1c1e1a; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.cpl-dlx-seg-btn:hover { border-color: #1c1e1a; }
.cpl-dlx-seg-btn.is-on { border-color: #1c1e1a; box-shadow: inset 0 0 0 1px #1c1e1a; background: #f4f5f1; }
.cpl-dlx-seg-btn:focus-visible { outline: 2px solid #1c1e1a; outline-offset: 2px; }
.cpl-dlx-seg-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cpl-dlx-seg-name::before { content: ""; width: 14px; height: 14px; border: 1px solid #a3a59c; border-radius: 50%; background: #fff; box-sizing: border-box; flex: 0 0 auto; }
.cpl-dlx-seg-btn.is-on .cpl-dlx-seg-name::before { border: 4px solid #1c1e1a; }
.cpl-dlx-seg-note { font-size: 12px; color: #5c5f57; padding-left: 22px; }
.cpl-dlx-total { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #4a4d45; }
.cpl-dlx-submit { display: flex; height: 46px; margin-top: 4px; justify-content: center; align-items: center; gap: 8px; border: 1px solid #8cc63e; background: #8cc63e; color: #1c1e1a; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 0; }
.cpl-dlx-submit:hover { background: #7fb534; }
.cpl-dlx-submit:disabled { background: #ebe9e2; border-color: #ebe9e2; color: #6b6e66; cursor: default; }
.cpl-dlx-cancel { align-self: center; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #1c1e1a; text-decoration: underline; cursor: pointer; }
@media (max-width: 479px) { .cpl-dlx-card { padding: 28px 20px; } .cpl-dlx-title { font-size: 26px; } }

@media (max-width: 1279px) { .cpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px) { .cpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cpl-field { flex: 1 1 100%; }
  .cpl-dialog-inner { grid-template-columns: 1fr; }
  .cpl-dialog-view { min-height: 220px; }
  .cpl-formats { right: auto; left: 0; }
}
@media (max-width: 479px) { .cpl-grid { grid-template-columns: 1fr; } }
