/* Clerk also uses cl-* classes. Keep customer library styles inside this root. */
.cl-library { min-width: 0; color: var(--ink); }
.cl-library .calm-screen-button { font-weight: 500; }
.cl-library .calm-screen-button.primary { font-weight: 600; }
.cl-library .cl-heading, .cl-library .cl-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cl-library .cl-heading h1 { margin: 8px 0; font-size: 28px; }
.cl-library .cl-heading p, .cl-library .cl-muted, .cl-library .cl-card small, .cl-library .cl-facts dt { color: var(--muted, #9ba7b8); }
.cl-library .cl-tabs { display: flex; gap: 4px 12px; flex-wrap: wrap; margin: 24px 0 16px; border-bottom: 1px solid var(--line); }
.cl-library .cl-tabs button { min-height: 41px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 9px 4px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.cl-library .cl-tabs button[aria-pressed=true] { color: var(--calm-teal); border-bottom-color: var(--calm-teal); font-weight: 600; }
.cl-library .cl-tabs button:focus-visible { outline: 3px solid rgba(35, 135, 126, 0.28); outline-offset: 2px; }
.cl-library .cl-tabs span { opacity: .7; margin-left: 6px; font-weight: 400; }
.cl-library .cl-filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.cl-library .cl-filters input { flex: 1 1 260px; min-width: 0; height: 41px; padding: 9px 12px; border: 1px solid #cbd5d2; border-radius: 8px; font: inherit; font-size: 13px; color: inherit; background: var(--panel); }
.cl-library .cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 18px 0; }
.cl-library .cl-card { display: block; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); color: inherit; text-align: left; cursor: pointer; }
.cl-library .cl-card:hover, .cl-library .cl-card:focus-visible { border-color: var(--teal); }
.cl-library .cl-media { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.cl-library .cl-media img, .cl-library .cl-media .content-ledger-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-library .cl-card-copy { display: grid; gap: 6px; padding: 14px; overflow-wrap: anywhere; }
.cl-library .cl-card-copy strong { font-size: 16px; }
.cl-library .cl-empty { padding: 30px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.cl-library .cl-detail-media { max-width: 1100px; margin: 18px 0; }
.cl-library .cl-detail-media .cl-media img, .cl-library .cl-detail details .cl-media img { object-fit: contain; }
.cl-library .cl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 14px 0; }
.cl-library .cl-facts div { min-width: 0; overflow-wrap: anywhere; }
.cl-library .cl-facts dt { font-size: 12px; margin-bottom: 6px; }
.cl-library .cl-facts dd { margin: 0; }
.cl-library .cl-material { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); padding: 16px 0; }
.cl-library .cl-material .cl-media { aspect-ratio: 1; border-radius: 8px; }
.cl-library .cl-detail .activity-premiere-preview { margin: 20px 0; }
.cl-library .cl-detail .activity-premiere-preview iframe { width: 100%; min-height: 560px; border: 0; }
@media (max-width: 600px) { .cl-library .cl-filters input { flex-basis: 100%; } .cl-library .cl-material { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; } .cl-library .cl-detail .activity-premiere-preview iframe { min-height: 440px; } }
