/* The member list scrolls independently of the card preview. */
.rst-cards-page { gap: 12px; min-width: 0; width: 100%; }
.rst-cards-page .rst-collection-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: 24px; align-items: stretch; height: clamp(520px, calc(100dvh - 360px), 720px); min-width: 0; width: 100%; max-width: 100%; }
.rst-cards-page .rst-cards-gallery { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: #080d11; border: 1px solid var(--tool-border); border-radius: 6px; }
.rst-cards-page .rst-card-viewer { display: block; flex: 1 1 auto; width: 100%; max-width: none; min-height: 0; height: 100% !important; border: 0; border-radius: 0; }
.rst-cards-page .rst-card-fullscreen { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 44px; padding: 10px 14px; margin: 0; border: 0; border-top: 1px solid var(--tool-border); border-radius: 0; background: var(--tool-surface); color: var(--text); font: 500 13px/1.4 Inter, system-ui, sans-serif; text-decoration: none; }
.rst-cards-page .rst-card-fullscreen:hover { background: var(--tool-raised); text-decoration: underline; text-underline-offset: 3px; }
.rst-cards-page .rst-card-fullscreen:focus-visible { outline: 2px solid var(--tool-highlight); outline-offset: -3px; }
.rst-cards-page .rst-collection-browser { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 1px solid var(--tool-border); border-radius: 6px; background: var(--tool-base); overflow: hidden; }
.rst-cards-page .rst-alliance-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 15px; margin: 0; padding: 16px 16px 12px; }
.rst-cards-page .rst-alliance-wordmark { display: block; width: 128px; max-width: 42%; height: auto; filter: none; }
.rst-cards-page .rst-collection-heading { display: block; margin: 0; min-width: 0; }
.rst-cards-page .rst-collection-heading h1 { margin: 0 0 4px; color: var(--text); font: 650 20px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.025em; text-transform: none; }
.rst-cards-page .rst-collection-heading > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; letter-spacing: 0; opacity: 1; }
.rst-member-search { display: block; flex: 0 0 auto; margin: 0; padding: 0 14px 12px; }
.rst-member-search input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--tool-border); border-radius: 4px; background: var(--tool-surface); color: var(--text); font: 400 13px/1.4 Inter, system-ui, sans-serif; }
.rst-member-search input::placeholder { color: var(--muted); opacity: 1; }
.rst-member-search input:focus-visible { outline: 2px solid var(--tool-highlight); outline-offset: 2px; }
.rst-cards-page .rst-collection-browser .rst-card-grid { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0; min-width: 0; min-height: 0; margin: 0; padding: 0 8px 8px; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; scroll-padding: 8px; scrollbar-width: thin; scrollbar-color: var(--tool-border) transparent; }
.rst-cards-page .rst-collection-browser .rst-card-choice { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 0; min-height: 88px; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--text); text-decoration: none; transition: background .15s; }
.rst-cards-page .rst-collection-browser .rst-card-choice:last-child { border-bottom-color: transparent; }
.rst-cards-page .rst-collection-browser .rst-card-choice:hover { background: var(--tool-surface); transform: none; }
.rst-cards-page .rst-collection-browser .rst-card-choice.is-selected { background: var(--tool-tint); border-left-color: var(--tool-highlight); box-shadow: none; }
.rst-cards-page .rst-collection-browser .rst-card-choice:focus-visible { outline: 2px solid var(--tool-highlight); outline-offset: -2px; }
.rst-cards-page .rst-collection-browser .rst-card-choice[hidden] { display: none; }
.rst-cards-page .rst-collection-browser .rst-card-grid[hidden] { display: none; }
.rst-cards-page .rst-collection-browser .rst-card-choice-art { display: block; flex: 0 0 64px; width: 64px; height: 64px; aspect-ratio: auto; overflow: hidden; border-radius: 4px; background: var(--tool-surface); }
.rst-cards-page .rst-collection-browser .rst-card-choice-art img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.rst-cards-page .rst-collection-browser .rst-card-number { display: none; }
.rst-cards-page .rst-collection-browser .rst-card-choice-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 0; }
.rst-cards-page .rst-collection-browser .rst-card-choice-copy strong { color: var(--text); font-size: 15px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rst-cards-page .rst-collection-browser .rst-card-choice-description { color: var(--muted); font-size: 12px; line-height: 1.35; }
.rst-cards-page .rst-collection-browser .rst-card-choice-rank { color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rst-member-empty { padding: 8px 16px 20px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rst-member-empty[hidden] { display: none; }
@media (min-width: 1500px) { .rst-cards-page .rst-collection-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); } }
@media (max-width: 800px) {
  .rst-cards-page .rst-collection-layout { display: flex; flex-direction: column; height: auto; gap: 18px; }
  .rst-cards-page .rst-collection-browser { order: -1; width: 100%; max-width: 100%; height: auto; border: 0; border-radius: 0; background: none; overflow: visible; }
  .rst-cards-page .rst-alliance-header { min-height: 44px; padding: 0; margin-bottom: 10px; }
  .rst-cards-page .rst-alliance-wordmark { display: none; }
  .rst-cards-page .rst-collection-heading { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; }
  .rst-cards-page .rst-collection-heading h1 { margin: 0; font-size: 22px; }
  .rst-member-search { padding: 0; margin-bottom: 10px; }
  .rst-cards-page .rst-collection-browser .rst-card-grid { flex-direction: row; flex: none; width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 2px 1px 10px; scroll-snap-type: x proximity; scroll-padding: 1px; }
  .rst-cards-page .rst-collection-browser .rst-card-choice { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 126px; min-height: 0; gap: 0; padding: 0; border: 1px solid var(--tool-border); border-radius: 4px; scroll-snap-align: center; background: var(--tool-base); }
  .rst-cards-page .rst-collection-browser .rst-card-choice.is-selected { border-color: var(--tool-highlight); background: var(--tool-tint); }
  .rst-cards-page .rst-collection-browser .rst-card-choice-art { flex: none; width: 100%; height: 86px; border-radius: 3px 3px 0 0; }
  .rst-cards-page .rst-collection-browser .rst-card-choice-copy { min-height: 78px; padding: 9px; gap: 4px; }
  .rst-cards-page .rst-collection-browser .rst-card-choice-copy strong { font-size: 14px; }
  .rst-cards-page .rst-collection-browser .rst-card-choice-description { display: none; }
  .rst-cards-page .rst-collection-browser .rst-card-choice-rank { font-size: 11px; }
  .rst-cards-page .rst-cards-gallery { width: 100%; max-width: 100%; height: auto; }
  .rst-cards-page .rst-card-viewer { flex: none; height: clamp(500px, 150vw, 640px) !important; }
  .rst-member-empty { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { .rst-cards-page .rst-collection-browser .rst-card-choice { transition: none; } }
