/* The viewer is a larger shared modal with a fixed image area across slides. */
.account-dialog.account-screenshot-viewer {
    --dialog-width: 1120px;
    --dialog-padding: clamp(14px, 3vw, 24px);
    padding: clamp(8px, 2vw, 24px);
}

.account-screenshot-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.account-screenshot-viewer-header h2 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.account-screenshot-viewer-close {
    flex-shrink: 0;
    width: auto;
    min-height: 44px;
}

/* Use the dynamic viewport when supported and retain a viewport-height fallback. */
.account-screenshot-viewer-stage {
    height: min(64vh, 740px);
    height: min(64dvh, 740px);
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #edf2f8;
}

.account-screenshot-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-screenshot-viewer-navigation {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.account-screenshot-viewer-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-navy);
    cursor: pointer;
}

.account-screenshot-viewer-arrow:hover:not(:disabled) {
    background: #eff7ff;
}

.account-screenshot-viewer-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.account-screenshot-viewer-count {
    margin: 0;
    color: var(--color-muted);
    text-align: center;
}
