/* Role home and collection browsing extend the shared DIME workspace. */
.dam-home-overview{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 20px;margin:0 0 22px;background:var(--dam-surface);border:1px solid var(--line);border-radius:8px}
.dam-home-stats{display:flex;flex-wrap:wrap;gap:22px 30px;min-width:0}
.dam-home-stats>div{display:flex;flex-direction:column;gap:5px}
.dam-home-stats strong{font-size:22px;line-height:1;letter-spacing:-.6px;font-weight:550}
.dam-home-stats span{font-size:10px;color:var(--dam-muted)}
.dam-home-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 16px}
.dam-home-links a{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#d4c99d}
.dam-home-links a:hover,.dam-home-collections .dam-section-label a:hover{color:var(--gold)}
.dam-home-links svg{width:15px;height:15px}
.dam-home-access{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 8px;font-size:11px;color:#d5d8c9;max-width:330px}
.dam-home-access small{grid-column:2;font-size:10px;color:var(--dam-muted);line-height:1.6}
.dam-home-collections{margin:0 0 25px}
.dam-home-collections .dam-section-label{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dam-home-collections .dam-section-label a{display:inline-flex;align-items:center;gap:4px;color:var(--dam-muted);font-size:11px;white-space:nowrap}
.dam-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:18px}
.dam-collection-grid.is-home{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dam-collection-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--dam-surface);transition:border-color .15s}
.dam-collection-card:hover{border-color:#666e50}
.dam-collection-cover{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center;height:155px;overflow:hidden;background:linear-gradient(120deg,#303725,#22271c)}
.dam-collection-cover img{width:100%;height:100%;object-fit:cover;object-position:center}
.dam-collection-cover>span:first-child:not(.dam-collection-audience){color:#b9bc92}
.dam-collection-cover>span:first-child:not(.dam-collection-audience)>svg{width:43px;height:43px;stroke-width:1}
.dam-collection-audience{position:absolute;left:11px;bottom:10px;padding:5px 8px;max-width:calc(100% - 22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #ffffff19;background:#121810e8;border-radius:4px;font-size:9px;color:#d5d7c8}
.dam-collection-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:15px}
.dam-collection-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:3em;overflow:hidden;font-size:14px;font-weight:550;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.dam-collection-body h3 a:hover{color:var(--gold)}
.dam-collection-body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.7;color:var(--dam-muted);margin:0 0 12px}
.dam-collection-bottom{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;margin-top:auto;border-top:1px solid var(--line);padding-top:12px;font-size:10px;color:var(--dam-muted)}
.dam-collection-bottom .status{font-size:9px;padding:3px 5px}
.dam-collection-open{display:inline-flex;align-items:center;gap:3px;margin-left:auto;color:#d9d6bf;font-size:11px}
.dam-collection-open svg{width:14px;height:14px}
.dam-collection-open:hover{color:var(--gold)}
.dam-collection-grid.is-home .dam-collection-cover{height:115px}
.dam-collection-grid.is-home .dam-collection-body{padding:12px}
.dam-collection-grid.is-home .dam-collection-body h3{font-size:12px}
.dam-collection-grid.is-home .dam-collection-body p{display:none}
.dam-collections-page .dam-library-header{margin-bottom:24px}
.dam-collection-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:23px}
.dam-collection-toolbar .dam-search{flex:1 1 250px;max-width:600px}
.dam-collections-page .dam-results-heading{margin-top:0}
@media(max-width:1200px){.dam-home-overview{align-items:flex-start;flex-direction:column;gap:17px}.dam-home-links{justify-content:flex-start}.dam-home-access{max-width:none}.dam-collection-grid.is-home{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dam-home-overview{padding:16px}.dam-home-stats{gap:18px}.dam-home-stats strong{font-size:20px}.dam-home-links{gap:12px}.dam-collection-grid.is-home{grid-template-columns:1fr}.dam-collection-grid.is-home .dam-collection-cover{height:135px}.dam-collection-toolbar{align-items:stretch}.dam-collection-toolbar .dam-control{flex:1 1 130px}.dam-collection-toolbar .dam-control select{width:100%}.dam-collection-toolbar .dam-search{max-width:none;flex-basis:100%}.dam-home-collections .dam-section-label{align-items:flex-start}.dam-home-collections .dam-section-label h2{font-size:14px}}

/* Staff discovery has one full-width search and an optional clear action. */
.dam-collections-page, .dam-collection-grid, .dam-collection-toolbar { min-width: 0; max-width: 100%; }
.dam-collection-toolbar .dam-search { min-width: 0; max-width: none; }
.dam-collection-toolbar .dam-control { display: flex; min-width: 0; max-width: 100%; }
.dam-collection-toolbar .dam-control select { min-width: 0; max-width: 100%; min-height: 44px; font-size: 12px; line-height: 1.5; }
.dam-collection-toolbar .btn { min-height: 44px; }
.dam-collection-toolbar.is-staff { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.dam-collection-toolbar.is-staff .dam-search { width: 100%; }
.dam-collection-toolbar.is-staff > .btn { justify-self: end; }
.dam-collection-bottom > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dam-collection-body p { overflow-wrap: anywhere; }
