/* Shared catalog: Toymori's presentation, Collectdex's records and assets. */
.catalog-message { grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: var(--muted); line-height: 1.9; }
.catalog-message button { margin: 12px; }
.product-card:hover .product-media img { transform: none; }
.product-media-wrap { background: #fff; }
.product-media img { aspect-ratio: 4 / 5; padding: 11%; object-fit: contain; mix-blend-mode: normal; }
.product-info { flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.product-info h3 { font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.product-series, .product-en { overflow-wrap: anywhere; }
.product-en { margin: 0; max-width: none; text-align: left; line-height: 1.6; }
.museum-label { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hero-stats { display: block; }
.museum-scope { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.collection-stories { border-top: 1px solid var(--line); background: var(--paper); }
.story-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.story-note { display: flex; flex-direction: column; padding: 28px 0; border-block: 1px solid var(--line); }
.story-note h3 { margin: 0 0 16px; font-size: 24px; line-height: 1.5; letter-spacing: -.03em; }
.story-note > p:not(.section-index) { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.story-note .text-link { align-self: flex-start; margin-top: auto; }
.story-source-note { margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.product-no { max-width: calc(100% - 75px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-media:focus-visible { outline-offset: -4px; }
.float-card img, .vibe-photo { mix-blend-mode: normal; object-fit: contain; }
.full-catalog { background: var(--cream); border-block: 1px solid var(--line); }
.full-catalog[hidden], .library-actions button[hidden], #dialog-source[hidden] { display: none; }
.library-controls { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.library-controls label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 700; }
.library-controls input, .library-controls select, #verification-answer { width: 100%; min-width: 0; min-height: 52px; padding: 12px 15px; border: 1.5px solid var(--ink); border-radius: 14px; color: var(--ink); background: var(--paper); font: inherit; font-size: 14px; }
.library-controls select { text-overflow: ellipsis; }
.library-controls .btn { min-height: 52px; }
.library-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 25px 0; }
.library-toolbar .result-count { margin-right: auto; white-space: normal; line-height: 1.8; }
.library-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.library-grid[aria-busy="true"] { opacity: .65; }
.library-grid .product-series { letter-spacing: .02em; }
.library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.library-grid .product-info h3 { font-size: 17px; }
.library-grid .product-card { border-radius: 22px; }
.image-fallback { margin: 12px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dialog-media { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; padding: 28px; background: #fff; }
.dialog-media > img { width: 100%; height: auto; max-height: 62svh; object-fit: contain; mix-blend-mode: normal; }
.dialog-images { display: flex; flex: 0 0 auto; gap: 8px; width: 100%; overflow-x: auto; margin-top: 18px; padding: 3px; }
.dialog-images button { width: 68px; height: 74px; flex: 0 0 68px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.dialog-images button[aria-pressed="true"] { border: 2px solid var(--coral); }
.dialog-images button img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-kicker, .dialog-en, .dialog-meta strong { overflow-wrap: anywhere; }
.dialog-meta strong { text-align: right; }
.dialog-processing { font-size: 12px; color: var(--muted); line-height: 1.8; }
.dialog-share { margin-top: 12px; min-height: 48px; }
.dialog-copy > .text-link { display: inline-block; margin-top: 16px; }
.verification-dialog { width: min(440px, calc(100vw - 32px)); padding: 36px 28px 28px; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); color: var(--ink); }
.verification-dialog::backdrop { background: rgba(31,31,31,.58); }
.verification-dialog h2 { font-size: 26px; }
.verification-dialog p { line-height: 1.8; font-size: 13px; }
.verification-dialog label { display: block; margin: 15px 0 8px; font-size: 13px; }
#verification-image { display: block; width: 230px; height: 76px; margin: 16px 0 10px; background: var(--cream); }
.verification-dialog .dialog-close { width: 32px; height: 32px; top: 10px; right: 10px; }
#verification-submit { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }
@media (max-width: 1040px) { .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .story-notes { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story-note { padding: 24px 0; }
  .story-note h3 { font-size: 22px; }
  .library-controls { grid-template-columns: minmax(0,1fr); }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .library-grid .product-card { padding: 6px; border-radius: 18px; }
  .library-grid .product-info { padding: 12px 5px 8px; }
  .library-grid .product-info h3 { font-size: 14px; }
  .library-grid .product-no { top: 10px; left: 8px; font-size: 8px; padding: 3px 6px; }
  .library-grid .like-button { width: 30px; height: 30px; right: 8px; top: 8px; }
  .library-grid .like-button svg { width: 15px; height: 15px; }
  .library-grid .product-en { font-size: 9px; }
  .dialog-media { padding: 24px 18px; }
  .dialog-media > img { max-height: 44svh; }
  .dialog-copy { padding: 24px; }
  .product-info h3 { font-size: 20px; }
}
