html.certificate-is-open{overflow:hidden}
#bioshi-certificate-dialog{width:min(60rem,calc(100vw - 2.5rem));height:min(56.25rem,90dvh);max-width:none;max-height:90dvh;margin:auto;padding:0;border:1px solid #e5e4dc;border-radius:1.375rem;background:#f1f1ed;color:#393735;box-shadow:0 1.5rem 5.625rem #0003;overflow:hidden}
#bioshi-certificate-dialog[open]{display:flex;flex-direction:column}
#bioshi-certificate-dialog::backdrop{background:#22272099;backdrop-filter:blur(0.25rem)}
#bioshi-certificate-dialog .certificate-dialog-header{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;background:#fff;border-bottom:1px solid #e5e4dc;flex-shrink:0}
#bioshi-certificate-dialog h2{font-size:1.3125rem;margin:0;line-height:1.25}
#bioshi-certificate-dialog .certificate-dialog-header p{font-size:0.75rem;color:#717568;margin:0.3125rem 0 0}
#bioshi-certificate-dialog .certificate-download{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:0.5625rem;min-height:2.75rem;padding:0.625rem 1.0625rem;border-radius:1.5rem;background:#393735;color:white;font-size:0.8125rem;font-weight:600;text-decoration:none;white-space:nowrap}
#bioshi-certificate-dialog .certificate-download svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#bioshi-certificate-dialog .certificate-close{display:grid;place-items:center;flex:0 0 2.75rem;height:2.75rem;border:1px solid #e5e4dc;border-radius:50%;background:#fff;font-size:1.6875rem;color:#393735;cursor:pointer}
#bioshi-certificate-dialog .certificate-pages{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0.5rem 1.75rem 1.75rem}
#bioshi-certificate-dialog figure{margin:0 auto 1.5rem;max-width:51.25rem}
#bioshi-certificate-dialog figcaption{font-size:0.6875rem;color:#6b7064;padding:0.875rem 0;text-align:center}
#bioshi-certificate-dialog figure img{width:100%;height:auto;display:block;background:#fff;box-shadow:0 0.125rem 0.75rem #00000012}
@media(max-width:760px){#bioshi-certificate-dialog{width:calc(100vw - 1rem);height:94dvh;max-height:94dvh;border-radius:1rem}#bioshi-certificate-dialog .certificate-dialog-header{padding:0.875rem 0.75rem;gap:0.5625rem;flex-wrap:wrap}#bioshi-certificate-dialog h2{font-size:1.125rem}#bioshi-certificate-dialog .certificate-download{font-size:0.75rem;padding:0.625rem 0.75rem}#bioshi-certificate-dialog .certificate-pages{padding:0 0.625rem 1rem}#bioshi-certificate-dialog .certificate-close{flex-basis:2.375rem;height:2.375rem}}

.bio-documents .bioshi-company-certificate{display:flex;gap:1rem;padding:1.25rem 0;align-items:center}
.bioshi-company-certificate .certificate-thumb{flex:0 0 4.25rem;padding:0;border:1px solid #e5e4dc;background:white;box-shadow:0 0.1875rem 0.625rem #0000000d;cursor:pointer}
.bioshi-company-certificate .certificate-thumb img{display:block;width:100%;height:auto}
.bioshi-company-certificate strong{display:block;font-size:0.875rem;line-height:1.5}
.bioshi-company-certificate p{margin:0.3125rem 0;font-size:0.6875rem;line-height:1.6;color:#606557}
.bioshi-company-certificate small{font-size:0.625rem;color:#606557;line-height:1.6}
.bio-documents .certificate-actions{display:flex;flex-wrap:wrap;gap:0.625rem;align-items:center;margin-bottom:1.125rem}
.bio-documents .certificate-actions button,.bio-documents .certificate-actions a{min-height:2.625rem;padding:0.625rem 0.875rem;border-radius:1.375rem;font-size:0.6875rem;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;text-decoration:none;cursor:pointer}
.bio-documents .certificate-actions button{background:#393735;color:#fff;border:1px solid #393735}
.bio-documents .certificate-actions a{background:#fff;color:#393735;border:1px solid #dddccc}

.bioshi-company-certificate .certificate-summary{flex:1;min-width:0}
.bioshi-company-certificate .certificate-actions{margin:0;gap:0.5rem}
.bioshi-company-certificate .certificate-actions button,.bioshi-company-certificate .certificate-actions a{padding:0.625rem 0.75rem}

.bio-documents-card{container-type:inline-size;container-name:certificate-card}
.bio-documents .bioshi-company-certificate{display:grid;grid-template-columns:3.75rem minmax(0,1fr) 8rem;gap:0.75rem;align-items:center}
.bioshi-company-certificate .certificate-actions{display:flex;flex-direction:column;align-items:stretch}
.bioshi-company-certificate .certificate-actions button,.bioshi-company-certificate .certificate-actions a{padding:0.625rem 0.5rem;font-size:0.625rem;gap:0.375rem;white-space:nowrap}
@container certificate-card (max-width:320px){.bio-documents .bioshi-company-certificate{grid-template-columns:3.75rem minmax(0,1fr);gap:1rem}.bioshi-company-certificate .certificate-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.bioshi-company-certificate .certificate-actions button,.bioshi-company-certificate .certificate-actions a{padding:0.625rem 0.75rem;font-size:0.6875rem}}
