#collection-picker { width:min(820px,94vw); max-width:94vw; max-height:84vh; max-height:84dvh; margin:auto; overflow:auto; padding:0; color:inherit; background:#161519; border:1px solid #44363c; border-radius:16px; overscroll-behavior:contain; box-shadow:0 24px 80px #0009 }
#collection-picker::backdrop { background:#08080bba }
body:has(#collection-picker[open]) { overflow:hidden }
#collection-picker header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; padding:18px 22px; background:#1b191e; border-bottom:1px solid #39343a }
#picker-title { margin:0; font-size:clamp(22px,3vw,32px); line-height:1.2 }
#picker-count { color:#bfb5be }
#collection-picker header button { width:42px; height:42px; border:1px solid #51474d; border-radius:50%; font-size:24px; background:#28252a }
.picker-list { padding:18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px }
.picker-list a { display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding:10px 10px 15px; border:1px solid #39353a; border-radius:10px; background:#201e22; line-height:1.35 }
.picker-list a:is(:hover,:focus-visible) { border-color:var(--accent) }
.picker-list img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#131215; border-radius:6px }
.picker-list small { color:#ded3d8; margin-top:auto }
@media(max-width:600px) { .picker-list { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:8px } }
@media(prefers-reduced-motion:no-preference) { #collection-picker[open] { animation:picker-in .22s ease-out } @keyframes picker-in { from { opacity:0; transform:translateY(9px) } } }
.picker-art { display:block; position:relative; width:100%; overflow:hidden; border-radius:6px }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .picker-list a { transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out }
  .picker-list a:hover { transform:translateY(-3px); box-shadow:0 6px 16px #0005,0 0 12px #f329411a }
  .picker-art img { transition:filter .25s ease-out }
  .picker-list a:hover img { filter:brightness(1.09) }
  .picker-art::after { content:""; position:absolute; inset:-35% -65%; pointer-events:none; opacity:0; background:linear-gradient(112deg,transparent 42%,#ffb7bf12 47%,#ffe8df42 50%,transparent 55%) }
  .picker-list a:hover .picker-art::after { animation:picker-glint .62s ease-out }
  @keyframes picker-glint {
    from { opacity:0; transform:translateX(-55%) }
    25%,70% { opacity:1 }
    to { opacity:0; transform:translateX(55%) }
  }
}

:is(.picker-list,.status-overview) .badge {
  --indicator:#82e6ad;
  display:inline-flex; align-items:center; gap:7px;
  min-height:24px; padding:3px 9px; border-radius:999px;
  font-family:inherit; font-size:11px; font-weight:700; line-height:1.3;
  color:var(--indicator); background:#17251f; border:1px solid #335242;
}
:is(.picker-list,.status-overview) .badge::before {
  content:""; flex:none; width:6px; height:6px; border-radius:50%;
  background:currentColor; box-shadow:0 0 0 3px #82e6ad12;
}
:is(.picker-list,.status-overview) .badge.updating { --indicator:#ffd184; background:#2b231a; border-color:#614a2c }
:is(.picker-list,.status-overview) .badge.updating::before {
  width:9px; height:9px; box-sizing:border-box; background:transparent;
  border:1.5px solid currentColor; border-right-color:transparent; box-shadow:none;
}
:is(.picker-list,.status-overview) .badge.available { --indicator:#a9caff; background:#1b2432; border-color:#374c68 }
:is(.picker-list,.status-overview) .badge.available::before { background:transparent; border:1.5px solid currentColor; box-shadow:none }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :is(.picker-list,.status-overview) a:hover .badge.updating::before { animation:picker-status-turn .8s ease-out }
  @keyframes picker-status-turn { to { transform:rotate(1turn) } }
}

.status-overview .stats { gap:8px }
.status-overview .stat { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px; min-height:44px; font-size:14px; border-radius:9px }
.status-overview .stat strong { font-size:15px; font-variant-numeric:tabular-nums }
.status-overview .stat.available { color:#a9caff }
.status-overview .stat[aria-pressed=true] { border-color:#ff5055; background:#251b20 }
.status-overview .group-summary { margin-left:auto; color:#c8bec3; font-size:13px }
@media(max-width:680px) {
  .status-overview .stats { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .status-overview .grouphead { flex-wrap:wrap }
  .status-overview .group-summary { width:100%; margin:0 }
}
