.panel-scroll[data-certificate-lookup] > :not(.certificate-panel) { display: none !important; }
.certificate-panel { color: #e8e5de; padding-bottom: 24px; }
.certificate-panel h2 { font-size: clamp(23px, 2vw, 32px); font-weight: 500; line-height: 1.35; }
.certificate-panel .cert-intro, .certificate-panel .cert-note { font-size: 13px; line-height: 1.75; color: #a8a9b3; }
.cert-form { display: grid; gap: 14px; margin-top: 28px; }
.certificate-panel .cert-form label { font-size: 12px; letter-spacing: .12em; color: #bfb49a; }
.certificate-panel .cert-form input { width: 100%; box-sizing: border-box; border: 1px solid #666172; border-radius: 8px; background: #ffffff06; color: #f9f6ed; font: inherit; font-size: 16px; padding: 14px 12px; min-width: 0; }
.certificate-panel .cert-form input:focus-visible { outline: 2px solid #dfca9b; outline-offset: 3px; }
.cert-primary, .cert-button { cursor: pointer; font: inherit; border-radius: 8px; padding: 11px 15px; min-height: 42px; }
.certificate-panel .cert-primary { background: #d8c299; color: #1b1820; border: 1px solid #d8c299; font-weight: 600; }
.cert-primary:disabled { opacity: .6; cursor: wait; }
.cert-button { background: transparent; border: 1px solid #67616c; color: #e8e5de; }
.certificate-panel .cert-status { font-size: 13px; line-height: 1.7; min-height: 22px; margin: 18px 0; color: #deccaa; }
.cert-result-heading { border-top: 1px solid #ffffff20; padding-top: 18px; }
.cert-result-heading h3 { margin: 0 0 6px; font-size: 18px; }
.certificate-panel .cert-number { overflow-wrap: anywhere; font-size: 12px; color: #a8a9b3; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.cert-card { min-width: 0; padding: 10px; background: #ffffff05; border: 1px solid #ffffff20; border-radius: 10px; }
.cert-card h4 { margin: 0 0 10px; font-weight: 500; font-size: 13px; }
.certificate-panel .cert-image-button { display: grid; place-items: center; width: 100%; height: 170px; border: 0; padding: 0; background: #101018; cursor: zoom-in; border-radius: 5px; overflow: hidden; }
.certificate-panel .cert-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cert-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cert-links a { color: #dfca9b; text-underline-offset: 4px; font-size: 12px; }
dialog.certificate-viewer { position: fixed; box-sizing: border-box; inset: 0; width: min(1280px, 96vw); max-width: 96vw; height: 92dvh; max-height: 92dvh; padding: 16px; margin: auto; background: #10111a; border: 1px solid #615e70; border-radius: 12px; color: #f6f1e5; }
.certificate-viewer::backdrop { background: #04050dea; }
.cert-viewer-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cert-viewer-toolbar > span { margin-right: auto; font-size: 14px; }
.cert-viewer-viewport { height: calc(100% - 62px); overflow: auto; display: flex; align-items: center; justify-content: center; touch-action: pan-x pan-y pinch-zoom; }
.cert-viewer-viewport img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cert-viewer-viewport.cert-zoomed { display: block; }
.cert-viewer-viewport.cert-zoomed img { width: 180%; max-width: none; max-height: none; margin: 0 auto; }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } .certificate-panel .cert-image-button { height: 230px; } .cert-viewer-toolbar > span { width: 100%; } .cert-viewer-toolbar .cert-button { font-size: 12px; padding: 9px 11px; } .cert-viewer-viewport { height: calc(100% - 100px); } }
@media (prefers-reduced-motion: reduce) { .certificate-panel *, .certificate-viewer * { animation: none !important; transition: none !important; } }
