.vv-dialog{--vv-bg:#202323;width:min(960px,96vw);height:min(780px,92vh);height:min(780px,92dvh);max-width:100vw;max-height:100dvh;padding:0;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface);overflow:hidden;box-shadow:0 20px 80px #1116}
.vv-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}.vv-dialog::backdrop{background:#101413c9}
.vv-heading,.vv-dialog footer{padding:14px 20px}.vv-heading,.vv-pager,.vv-actions{display:flex;align-items:center;gap:8px}.vv-heading{justify-content:space-between;border-bottom:1px solid var(--line)}.vv-heading>div{min-width:0}.vv-heading h2{font-size:clamp(1.1rem,2.4vw,1.55rem);margin:3px 0 0;overflow-wrap:anywhere;line-height:1.2}.vv-heading small,.vv-dialog footer small{color:var(--muted)}
.vv-dialog .vv-close,.vv-pager button{width:42px;height:42px;flex:none;padding:0;font-size:1.7rem;line-height:1}.vv-dialog .vv-close{border-radius:50%}
.vv-stage{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;background:var(--vv-bg)}
.vv-stage img,.vv-stage canvas{display:block;object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto}
.vv-stage.vv-zoomed{display:block;text-align:center}.vv-stage.vv-zoomed img,.vv-stage.vv-zoomed canvas{width:190%;height:auto;max-width:none;max-height:none;display:inline-block}
.vv-stage.vv-has-pdf{display:block}.vv-stage object{display:block;border:0;width:100%;height:100%;color:white}
.vv-status{margin:0;padding:6px 18px;font-size:.95rem;color:var(--muted)}.vv-status:empty{display:none}.vv-status.vv-error{font-weight:650;color:var(--red)}
.vv-dialog footer{border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.vv-actions{flex-wrap:wrap;margin-left:auto}.vv-actions button,.vv-actions a{min-height:41px}.vv-actions a{display:inline-flex;align-items:center;font-size:.92em}.vv-pager span{font-variant-numeric:tabular-nums;font-size:.87em;white-space:nowrap}.vv-dialog footer small{flex-basis:100%;font-size:.77rem;overflow-wrap:anywhere}.vv-dialog footer small:empty{display:none}.vv-dialog.vv-wide{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;margin:0}
.vc-media-grid .vv-file-row{padding:9px 0;display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0}
.vv-file-row .vv-file-open,.vv-file-unavailable{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;color:var(--ink);text-align:left;padding:6px;line-height:1.3}.vv-file-row .vv-file-open{background:transparent;border:1px solid transparent;flex:1}.vv-file-row .vv-file-open:focus-visible,.vv-file-row .vv-file-open:hover{border-color:var(--accent);background:var(--soft)}.vv-file-row .vv-file-text{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}.vv-file-kind{display:grid;place-items:center;min-width:44px;height:43px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:.68rem;letter-spacing:.02em;font-weight:750}.vv-file-row .vv-file-open strong{color:var(--accent)}
@media(max-width:650px){.vv-dialog{width:100vw;height:100vh;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0}.vv-heading{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top))}.vv-dialog footer{padding:8px 12px max(10px,env(safe-area-inset-bottom))}.vv-actions{gap:5px}.vv-actions button{font-size:.86rem;padding:5px 8px}.vv-actions a{font-size:.83rem}.vv-dialog [data-vv-wide]{display:none}.vv-file-row .vc-light{font-size:.82rem;min-height:38px;padding:5px 7px}}
