.collection-panel { margin-bottom:24px; }
.collection-title,.collection-tools,.collection-filters,.collection-drawer-header { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.collection-title,.collection-drawer-header { justify-content:space-between; }
.collection-title h2 { margin:0; }
.collection-tools label { cursor:pointer; }
.collection-tools label:focus-visible { outline:3px solid #b87500;outline-offset:3px; }
.collection-filters { margin:20px 0 12px; }
.collection-filters [aria-pressed=true] { background:#102235;color:white;border-color:#102235; }
.collection-row { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:17px 0;border-top:1px solid #dce2e7; }
.collection-row p { margin:6px 0 0;color:#52606d;font-size:.85rem; }
.collection-row strong,.collection-name { overflow-wrap:anywhere; }
.collection-name { border:0;background:none;color:#102235;font-weight:700;text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer; }
.collection-badge { display:inline-block;border-radius:30px;padding:5px 10px;background:#fff2d9;color:#805300;font-size:.82rem;white-space:nowrap; }
.collection-local { border-left:3px solid #b87500;padding-left:12px; }
.collection-error,[role=alert] { color:#9d2c23; }
.collection-empty { padding:30px 0; }
.collection-drawer { position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;padding:26px;overflow:auto;background:#fff;color:#102235; }
.collection-drawer::backdrop { background:rgb(16 34 53 / 45%); }
.collection-drawer h2 { max-width:80%;overflow-wrap:anywhere; }
.collection-preview img { max-width:100%;max-height:55vh;object-fit:contain; }
.collection-preview iframe { width:100%;height:50vh;border:1px solid #dce2e7; }
.collection-association { display:grid;gap:14px;margin:24px 0; }
.collection-association select { min-width:0;width:100%;padding:12px; }
.collection-association button { justify-self:start; }
.collection-drawer a { display:block;margin:10px 0; }
body:has(#document-collection) #syncBanner { display:none; }
@media(max-width:600px){.collection-row { grid-template-columns:minmax(0,1fr) auto;gap:12px; }.collection-row>div { grid-column:1/-1; }.collection-drawer { padding:18px; }.collection-title h2 { font-size:1.3rem; }.collection-tools { width:100%; }.collection-tools>* { flex:1;text-align:center; }}
