.catalog-library{max-width:1200px;margin:40px auto;padding:24px}.catalog-library h1{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:700;margin:0 0 16px}.catalog-intro{margin-bottom:24px;color:#475569}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.catalog-card{border:1px solid #dbe2ea;border-radius:16px;overflow:hidden;background:white;display:flex;flex-direction:column}.catalog-cover{height:320px;display:flex;align-items:center;justify-content:center;padding:20px;background:#f1f5f9;color:#475569}.catalog-cover canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 5px 16px #0f172a26}.catalog-card-body{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:12px}.catalog-card h2{font-size:1.2rem;font-weight:700;margin:0}.catalog-card-body p{margin:0 0 8px;color:#64748b}.catalog-open{margin-top:auto;display:inline-block;border:1px solid currentColor;border-radius:12px;padding:12px 20px;font-weight:600}.catalog-links{display:flex;flex-wrap:wrap;gap:16px 24px;margin-bottom:20px}.catalog-links a{text-decoration:underline;text-underline-offset:3px}.catalog-viewer{background:#e2e8f0;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden}.catalog-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:12px;background:#f8fafc;color:#0f172a}.catalog-toolbar button,.catalog-toolbar select,.catalog-toolbar input{font:inherit;color:#0f172a;background:white;border:1px solid #94a3b8;border-radius:6px;padding:8px;min-height:42px}.catalog-toolbar button:disabled{opacity:.4}.catalog-toolbar input{width:65px}.catalog-toolbar label{display:flex;align-items:center;gap:8px}.catalog-viewer [data-status]{padding:6px 16px;margin:0;text-align:center;font-size:.875rem;color:#334155}.catalog-stage{height:70vh;height:70svh;min-height:280px;overflow:auto;padding:16px;text-align:center}.catalog-stage canvas{display:block;margin:0 auto;background:white;box-shadow:0 2px 12px #0002;max-width:none}.catalog-viewer:fullscreen{display:flex;flex-direction:column;border-radius:0}.catalog-viewer:fullscreen .catalog-stage{flex:1;height:auto}.catalog-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.catalog-library a:focus-visible,.catalog-library button:focus-visible,.catalog-stage:focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:900px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.catalog-library{padding:16px;margin:24px auto}.catalog-grid{grid-template-columns:1fr}.catalog-cover{height:300px}.catalog-toolbar{gap:6px}.catalog-toolbar button,.catalog-toolbar select{font-size:.875rem}.catalog-stage{height:60vh;height:60svh}}

.catalog-library .catalog-native-viewer{display:block;width:100%;height:80vh;min-height:500px;border:1px solid #dbe1e8;border-radius:12px;background:#f1f3f5}
