.builder-lightbox { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(1260px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #363842; border-radius: 14px; background: #101115; color: #ededf3; }
.builder-lightbox::backdrop { background: #050609e8; backdrop-filter: blur(5px); }
.builder-lightbox[open] { animation: screenshot-lightbox-appear .2s ease-out; }
.builder-lightbox__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #2b2d35; }
.builder-lightbox__header p { margin: 0; color: #ededf3; font-size: 14px; }
.builder-lightbox__header > div { display: flex; gap: 8px; flex-shrink: 0; }
.builder-lightbox__header button { min-height: 44px; padding: 0 14px; border: 1px solid #363842; border-radius: 8px; background: #1b1c24; color: #ededf3; cursor: pointer; font-size: 13px; }
.builder-lightbox__header [data-lightbox-close] { width: 44px; padding: 0; font-size: 26px; }
.builder-lightbox__header button:hover { background: #2b2d3a; }
.builder-lightbox__header button:focus-visible { outline: 2px solid #a8adf1; outline-offset: 2px; }
.builder-lightbox__stage { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); padding: 16px; overflow: auto; overscroll-behavior: contain; }
.builder-lightbox__stage img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 142px); max-height: calc(100dvh - 142px); height: auto; margin: 0 auto; border-radius: 6px; }
.builder-lightbox__stage.is-zoomed img { max-width: none; max-height: none; margin: 0; }
@keyframes screenshot-lightbox-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .builder-lightbox__header { flex-wrap: wrap; gap: 8px; }
    .builder-lightbox__header > div { margin-left: auto; }
    .builder-lightbox__stage { max-height: calc(100dvh - 160px); padding: 8px; }
    .builder-lightbox__stage img { max-height: calc(100dvh - 176px); }
}
@media (prefers-reduced-motion: reduce) { .builder-lightbox[open] { animation: none; } }
