.cv-page-preview {
    width: min(100%, 360px);
    justify-self: center;
}
.cv-page-preview a {
    cursor: zoom-in;
}
.cv-viewer {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    color: #101e3d;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.cv-viewer[open] {
    display: flex;
    flex-direction: column;
}
.cv-viewer::backdrop {
    background: rgba(16, 30, 61, .8);
}
.cv-viewer-toolbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #d6deeb;
}
.cv-viewer-toolbar h2 {
    margin: 0;
    font-size: 1rem;
}
.cv-viewer-toolbar > div {
    display: flex;
    gap: 8px;
}
.cv-viewer-toolbar button {
    min-height: 44px;
    padding: 8px 14px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: #174fb5;
    background: #f0f4fa;
    border: 1px solid #d6deeb;
    border-radius: 6px;
    cursor: pointer;
}
.cv-viewer-toolbar button:focus-visible,
.cv-viewer-scroll:focus-visible {
    outline: 2px solid #174fb5;
    outline-offset: -3px;
}
.cv-viewer-scroll {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: #e8edf5;
}
.cv-viewer-scroll img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}
html.cv-viewer-open {
    overflow: hidden;
}
@media (max-width: 480px) {
    .cv-viewer-toolbar {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
}
