.compact-collection { width: 100%; max-width: 1100px; min-width: 0; margin: 0 auto; }
.collection-folder-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 12px 0 0; }
.collection-folder-heading { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.collection-folder-title { display: flex; align-items: flex-start; gap: 12px; min-width: 0; max-width: 100%; }
.collection-folder-heading .library-kind-icon { flex: none; width: 22px; height: 24px; margin-top: 6px; }
.collection-folder-heading h1 { min-width: 0; margin: 0; font-family: var(--heading-font); font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.collection-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.collection-folder-header > .library-item-actions > summary { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; }
.collection-description { max-width: 75ch; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.collection-description-copy p { margin: 0; }
.collection-description-copy p + p { margin-top: 12px; }
.collection-description[data-collapsed="true"] .collection-description-copy { max-height: 3.3em; overflow: hidden; }
.collection-description-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: var(--brand-ink); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.compact-collection .collection-description-toggle[hidden], .compact-collection [data-collection-search-status][hidden] { display: none; }
.compact-collection #collection-protocols { margin-top: 20px; }
.collection-search { display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 0 18px; }
.collection-query-field { position: relative; flex: 1; min-width: 0; }
.collection-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.collection-query-field > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transform: translateY(-50%); }
.compact-collection .collection-query-field input { display: block; width: 100%; min-width: 0; height: 44px; padding: 10px 14px 10px 41px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; }
.collection-query-field input::placeholder { color: var(--muted); opacity: 1; }
.collection-search-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.collection-search-summary p { margin: 0; }
.collection-search-summary .editorial-link { font-size: inherit; }
.compact-collection .collection-library-list { margin: 0; padding: 0; }
.compact-collection .library-row { flex-wrap: nowrap; gap: 8px; min-height: 74px; }
.compact-collection .collection-library-list .library-row-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; align-self: stretch; padding: 17px 8px; border-radius: 4px; }
.compact-collection .library-row-copy h3 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
.compact-collection .library-row-meta, .compact-collection .collection-entry-status { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.compact-collection .library-row-duration { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compact-collection .library-item-actions > summary { min-width: 44px; min-height: 44px; }
.compact-collection .notice { margin-top: 18px; }
.compact-collection [data-collection-search-status] { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 13px; }
.compact-collection [data-collection-search-status] button, .compact-collection [data-collection-search-status] a { display: inline-flex; align-items: center; min-height: 44px; font: inherit; color: var(--brand-ink); }
.compact-collection [data-collection-search-status] button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.compact-collection [data-collection-results][aria-busy="true"] { cursor: progress; }
@media (max-width: 760px) {
  .collection-folder-header { gap: 8px; margin-top: 9px; }
  .collection-folder-heading { gap: 8px 10px; }
  .collection-folder-title { gap: 10px; }
  .collection-folder-heading h1 { font-size: 27px; }
  .collection-folder-heading .library-kind-icon { width: 20px; margin-top: 4px; }
  .compact-collection #collection-protocols { margin-top: 17px; }
  .compact-collection .library-row { gap: 4px; min-height: 72px; }
  .compact-collection .collection-library-list .library-row-link { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; }
  .compact-collection .library-row-copy h3 { font-size: 14px; }
  .compact-collection .library-row-duration, .compact-collection .library-row-meta, .compact-collection .collection-entry-status { font-size: 11px; }
  .compact-collection .library-kind-icon svg { width: 19px; height: 19px; }
  .collection-search-summary .editorial-link { display: inline-flex; align-items: center; min-height: 44px; }
  .collection-description-toggle { min-height: 44px; }
}
