/* Full-screen zoom of the rendered preview (assets/js/zoom.js). */
.vv-root .preview-zoom-btn { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #ffffffe8; color: #111; box-shadow: 0 4px 14px #0f172a26; cursor: zoom-in; transition: transform .15s ease, background .15s ease; }
.vv-root .preview-zoom-btn:hover { transform: scale(1.06); background: #fff; }
.vv-root .preview-zoom-btn:focus-visible { outline: 2px solid var(--vv-accent, #7a00df); outline-offset: 2px; }
.vv-root .preview-zoom-btn[hidden] { display: none; }
.vv-root .preview-zoom-btn:disabled { cursor: progress; opacity: .6; }
.vv-root .preview-zoom-btn svg,
.vv-root .vv-zoom-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.vv-root .vv-zoom { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0f17; color: #fff; overflow: hidden; }
.vv-root .vv-zoom::backdrop { background: #0b0f17; }
.vv-root .vv-zoom-viewport { position: absolute; inset: 0; overflow: hidden; cursor: zoom-in; touch-action: none; user-select: none; }
.vv-root .vv-zoom-viewport.is-zoomed { cursor: grab; }
.vv-root .vv-zoom-viewport.is-dragging { cursor: grabbing; }
.vv-root .vv-zoom-viewport img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.vv-root .vv-zoom-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #ffffffeb; color: #111; font: 28px/1 var(--vv-font-body, sans-serif); cursor: pointer; }
.vv-root .vv-zoom-bar { position: absolute; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #ffffffeb; color: #111; transform: translateX(-50%); box-shadow: 0 8px 24px #0006; }
.vv-root .vv-zoom-bar button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 600 22px/1 var(--vv-font-body, sans-serif); cursor: pointer; }
.vv-root .vv-zoom-bar button:hover { background: #0f172a14; }
.vv-root .vv-zoom-level { min-width: 52px; text-align: center; font: 600 13px/1 var(--vv-font-body, sans-serif); }
.vv-root .vv-zoom-hint { position: absolute; left: 50%; bottom: 76px; margin: 0; padding: 6px 12px; border-radius: 999px; background: #0f172ab3; color: #fff; font: 500 12px/1.3 var(--vv-font-body, sans-serif); transform: translateX(-50%); white-space: nowrap; pointer-events: none; animation: vv-zoom-hint 4s ease forwards; }
@keyframes vv-zoom-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vv-root .vv-zoom-hint { animation: none; } }

/* Preview-only size of the picture on the wall (state.visualScale in assets/js/app.js). */
.vv-root .preview-scale { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); pointer-events: none; }
.vv-root .preview-scale[hidden] { display: none; }
.vv-root .preview-scale-bar { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 999px; background: #ffffffe8; color: #111; box-shadow: 0 4px 14px #0f172a26; pointer-events: auto; }
.vv-root .preview-scale-bar button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .vv-root .preview-scale-bar button:hover:not(:disabled) { background: #0f172a14; } }
.vv-root .preview-scale-bar button:focus-visible { outline: 2px solid var(--vv-accent, #7a00df); outline-offset: 1px; }
.vv-root .preview-scale-bar button:disabled { opacity: .35; cursor: default; background: transparent; }
.vv-root .preview-scale-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vv-root .preview-scale-value { min-width: 46px; text-align: center; font: 600 13px/1 var(--vv-font-body, sans-serif); font-variant-numeric: tabular-nums; }
.vv-root .preview-scale .preview-scale-reset { display: none; }
.vv-root .preview-scale.is-scaled .preview-scale-reset { display: grid; }
.vv-root .preview-scale-hint,
.vv-root .preview-scale-note { margin: 0; padding: 5px 11px; border-radius: 12px; background: #0f172ad9; color: #fff; font: 500 12px/1.35 var(--vv-font-body, sans-serif); text-align: center; }
.vv-root .preview-scale-hint[hidden],
.vv-root .preview-scale-note:empty { display: none; }
