.vpc-dialog{box-sizing:border-box;border:1px solid var(--line);color:var(--ink);background:var(--surface);padding:0;border-radius:18px;width:min(590px,calc(100% - 24px));max-width:100%;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}
.vpc-dialog::backdrop{background:rgba(13,21,18,.78)}
.vpc-shell{padding:clamp(14px,3vw,24px);display:grid;gap:12px}
.vpc-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.vpc-head small{font-size:.78rem;color:var(--muted);font-weight:650}
.vpc-head h2{margin:.15rem 0 0;font-weight:700;font-size:1.55rem;line-height:1.15}
.vpc-head button{width:42px;height:42px;padding:0;border-radius:50%;font-size:1.4rem;font-weight:500}
.vpc-stage{position:relative;display:grid;place-items:center;background:#121815;border-radius:12px;overflow:hidden;min-height:120px;aspect-ratio:4/3;max-height:54vh;max-height:54dvh}
.vpc-stage>img,.vpc-stage>video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.vpc-guides{position:absolute;inset:10%;pointer-events:none;border:1px solid #ffffff45;border-radius:12px}
.vpc-dialog:not([data-mode=live]) .vpc-guides{display:none}
.vpc-dialog:is([data-mode=fallback],[data-mode=paused],[data-mode=processing]) .vpc-stage{display:none}
.vpc-state{color:var(--muted);font-size:.91rem;margin:0}
.vpc-state:empty{display:none}
.vpc-actions,.vpc-alternatives{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.vpc-actions button,.vpc-alternatives label{font-weight:650;min-height:44px;padding:9px 14px}
.vpc-actions [data-use],.vpc-actions [data-take]{color:var(--on-accent);background:var(--accent);border-color:var(--accent);flex:1}
.vpc-alternatives label{position:relative;overflow:hidden;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.vpc-alternatives input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.vpc-alternatives label:focus-within{outline:3px solid var(--accent)}
.vpc-dialog [hidden]{display:none!important}
@media(max-width:550px){.vpc-dialog{width:calc(100% - 16px);margin:auto}.vpc-stage{max-height:48dvh}.vpc-shell{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
