/* Video Invites */
#pvi-app{--vm-ac:#8a1c3c;--vm-line:#e6dccf;max-width:1080px;margin:0 auto;font-family:inherit;color:#2b2230}
.vm-wrap{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:24px;align-items:start}
.vm-stage{position:sticky;top:12px}
.vm-cv{background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.2);overflow:hidden;line-height:0;touch-action:none}
.vm-cv canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab}
.vm-hint{min-height:20px;margin:8px 2px 4px;font-size:14px}.vm-hint.err{color:#b00020}
.vm-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.vm-bar button{flex:1 1 auto;min-height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--vm-line);background:#fff;font:600 14px inherit;cursor:pointer;color:#2b2230}
.vm-bar .vm-hd{background:var(--vm-ac);border-color:var(--vm-ac);color:#fff;flex:2 1 160px}
.vm-small{font-size:12px;opacity:.7;margin:6px 2px 0}
.vm-panel{background:#fff;border:1px solid var(--vm-line);border-radius:16px;overflow:hidden}
.vm-tabs{display:flex;border-bottom:1px solid var(--vm-line);background:#fffaf3}
.vm-tabs button{flex:1;min-height:48px;border:0;background:none;font:600 14px inherit;cursor:pointer;color:#6b5a60;border-bottom:3px solid transparent}
.vm-tabs button.on{color:var(--vm-ac);border-bottom-color:var(--vm-ac);background:#fff}
.vm-body{padding:14px;max-height:78vh;overflow:auto}
.vm-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:8px}
.vm-chips button{flex:0 0 auto;padding:8px 14px;min-height:38px;border-radius:999px;border:1px solid var(--vm-line);background:#fff;font:600 13px inherit;cursor:pointer;white-space:nowrap}
.vm-chips button.on{background:var(--vm-ac);color:#fff;border-color:var(--vm-ac)}
.vm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.vm-th{border:2px solid transparent;border-radius:12px;background:#f7f2ea;padding:6px;cursor:pointer;text-align:center;font:inherit}
.vm-th.on{border-color:var(--vm-ac)}
.vm-th canvas{width:100%;height:auto;display:block;border-radius:8px;background:#eee}
.vm-th span{display:block;font-size:12px;margin-top:5px;line-height:1.2}
.vm-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0;font-size:14px}
.vm-note{font-size:13px;opacity:.7;margin:10px 0 0}
.vm-addrow{display:flex;gap:8px;margin-bottom:12px}
.vm-addrow button{flex:1;min-height:52px;border-radius:12px;border:1px dashed var(--vm-ac);background:#fff7fa;color:var(--vm-ac);font:700 15px inherit;cursor:pointer}
.vm-body h4{margin:12px 0 4px;font-size:15px}.vm-body h5{margin:12px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.6}
.vm-stg{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.vm-stg button{aspect-ratio:1;border:1px solid var(--vm-line);border-radius:10px;background:#7a1632;padding:6px;cursor:pointer;min-height:56px}
.vm-stg img{width:100%;height:100%;object-fit:contain;display:block}
.vm-f{display:block;margin:0 0 12px;font-size:13px}.vm-f>span{display:flex;justify-content:space-between;font-weight:600;margin-bottom:5px}
.vm-f textarea,.vm-f select{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--vm-line);border-radius:10px;font:inherit;font-size:16px;background:#fff}
.vm-f input[type=range]{width:100%;min-height:32px}
.vm-row input[type=color]{width:46px;height:36px;padding:2px;border:1px solid var(--vm-line);border-radius:8px;background:#fff;vertical-align:middle}
.vm-row button,.vm-pos button{min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--vm-line);background:#fff;font:600 13px inherit;cursor:pointer}
.vm-seg{display:inline-flex}.vm-seg button{border-radius:0;min-width:44px}.vm-seg button:first-child{border-radius:10px 0 0 10px}.vm-seg button:last-child{border-radius:0 10px 10px 0}.vm-seg button.on{background:var(--vm-ac);color:#fff;border-color:var(--vm-ac)}
.vm-ck{display:inline-flex;gap:6px;align-items:center}
.vm-pos{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.vm-pos .dn{color:#b00020;border-color:#e8b3bc}
.vm-layers{list-style:none;margin:0;padding:0}
.vm-layers li{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid var(--vm-line);border-radius:10px;margin-bottom:6px;background:#fff}
.vm-layers li.on{border-color:var(--vm-ac);background:#fff7fa}
.vm-layers li>button{flex:1;text-align:left;min-height:46px;border:0;background:none;font:inherit;font-size:14px;cursor:pointer;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vm-layers li span{display:flex}.vm-layers li span button{min-width:40px;min-height:46px;border:0;background:none;cursor:pointer;font-size:15px}
.vm-layers i{font-style:normal;margin-right:4px}
@media (max-width:860px){
 .vm-body{max-height:none}
}
.vm-paid{max-width:640px;margin:12px auto;padding:10px 14px;border-radius:10px;background:#e8f7ec;border:1px solid #9fd5ae;color:#16502a;font-size:15px;text-align:center}
.vm-paid.wait{background:#fff6dc;border-color:#e6cf8a;color:#6b5311}
.vm-mine{max-width:1080px;margin:18px auto 0;padding:0 4px}.vm-mine h3{margin:0 0 8px;font-size:17px}
.vm-mine a{display:inline-block;margin:0 8px 8px 0;padding:10px 14px;min-height:44px;box-sizing:border-box;border:1px solid #e6dccf;border-radius:10px;background:#fff;color:#8a1c3c;text-decoration:none;font-size:14px}
.pvi-auth{max-width:440px;margin:0 auto;padding:0 4px;color:#2b2230}
.pvi-auth-tabs{display:flex;gap:6px;margin:14px 0}
.pvi-auth-tabs button{flex:1;min-height:44px;border-radius:999px;border:1px solid #8a1c3c;background:#fff;color:#8a1c3c;font:600 15px inherit;cursor:pointer}
.pvi-auth-tabs button.on{background:#8a1c3c;color:#fff}
.pvi-auth-form{display:none}.pvi-auth-form.on{display:block}
.pvi-auth-form label{display:block;margin:0 0 12px;font-size:14px}
.pvi-auth-form input{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:11px 12px;min-height:44px;border:1px solid #e6dccf;border-radius:10px;font:inherit;font-size:16px;background:#fff}
.pvi-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.pvi-msg{min-height:20px;margin:4px 0 8px;color:#b3261e;font-size:14px}
.pvi-btn{display:inline-block;min-height:44px;padding:0 22px;border:0;border-radius:999px;background:#8a1c3c;color:#fff;font:600 15px inherit;cursor:pointer;text-decoration:none;line-height:44px}
.pvi-btn:disabled{opacity:.6}.pvi-alt{font-size:13px;margin-top:10px}
/* video editor additions */
.vm-cv{background:#000}
.vm-stage .vm-cv{max-width:360px;margin:0 auto}
.vm-play{display:flex;align-items:center;gap:8px;max-width:360px;margin:8px auto 0}
.vm-pp{width:46px;height:46px;border-radius:50%;border:0;background:var(--vm-ac);color:#fff;font-size:18px;cursor:pointer;flex:0 0 auto}
.vm-seek{flex:1;min-width:0;min-height:32px}
.vm-time{font-size:12px;opacity:.7;min-width:62px;text-align:right;font-variant-numeric:tabular-nums}
.vm-strip{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 6px;max-width:360px;margin:0 auto;-webkit-overflow-scrolling:touch}
.vm-sc{position:relative;flex:0 0 auto;width:54px;padding:0;border:2px solid var(--vm-line);border-radius:8px;background:#222;cursor:pointer;overflow:hidden;line-height:0}
.vm-sc.on{border-color:var(--vm-ac);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--vm-ac)}
.vm-sc canvas{width:100%;height:auto;display:block}
.vm-sc b{position:absolute;left:3px;bottom:3px;font:700 11px sans-serif;color:#fff;background:rgba(0,0,0,.6);border-radius:6px;padding:1px 5px;line-height:1.3}
.vm-scadd{flex:0 0 auto;width:54px;min-height:96px;border:2px dashed var(--vm-ac);border-radius:8px;background:#fff7fa;color:var(--vm-ac);font:700 20px inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center}
.vm-scadd small{font:600 10px sans-serif}
.vm-stage{max-width:420px;margin:0 auto;width:100%}
.vm-bar .vm-prev{flex:1 1 100%}
.vm-bgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.vm-bgs button{aspect-ratio:9/16;border:2px solid var(--vm-line);border-radius:8px;padding:0;overflow:hidden;background:#eee;cursor:pointer}
.vm-bgs button.on{border-color:var(--vm-ac)}
.vm-bgs img{width:100%;height:100%;object-fit:cover;display:block}
.vm-songs{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.vm-song{display:flex;gap:8px;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--vm-line);border-radius:10px;font-size:14px;cursor:pointer}
.vm-modal{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.vm-modal[hidden]{display:none}
.vm-box{background:#fff;border-radius:16px;padding:22px;max-width:360px;width:100%;text-align:center}
.vm-mt{font-weight:700;margin-bottom:12px}
.vm-bar-bg{height:12px;border-radius:6px;background:#eee;overflow:hidden}
.vm-bar-in{height:100%;width:0;background:var(--vm-ac);transition:width .2s}
.vm-cancel{margin-top:10px;min-height:44px;padding:0 22px;border-radius:10px;border:1px solid var(--vm-line);background:#fff;font:600 14px inherit;cursor:pointer}
.vm-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}
.vm-tabs button{flex:0 0 auto;padding:0 14px;white-space:nowrap}
.vm-bar .vm-fast,.vm-bar .vm-share,.vm-bar .vm-save,.vm-bar .vm-undo{flex:1 1 auto}
.vm-bar .vm-hd{flex:2 1 100%}
.vm-th canvas{aspect-ratio:9/16}

.vm-th small{display:block;opacity:.6;font-size:11px}

/* undo / size buttons in the play row */
.vm-undo,.vm-size{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--vm-line);background:#fff;font-size:18px;cursor:pointer;padding:0;color:#2b2230}
.vm-hint{font-size:13px}
/* phones: preview pinned on top, tools scroll underneath */
@media (max-width:860px){
 .vm-wrap{display:flex;flex-direction:column;gap:10px;--vm-h:30vh}
 .vm-wrap.vm-big{--vm-h:48vh}
 .vm-stage{display:contents}
 .vm-top{order:0;position:-webkit-sticky;position:sticky;top:var(--vm-top,0px);z-index:60;background:#fff;padding:6px 8px 2px;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:0;box-sizing:border-box;box-shadow:0 6px 12px -6px rgba(0,0,0,.35)}
 .vm-wrap>*,.vm-panel,.vm-body{min-width:0;max-width:100%;box-sizing:border-box}
 .vm-panel{order:1}
 .vm-bar{order:2}
 .vm-small{order:3}
 .vm-stage .vm-cv{width:calc(var(--vm-h) * 9 / 16);max-width:100%;margin:0 auto;border-radius:10px}
 .vm-play{max-width:340px;margin:6px auto 0;gap:6px}
 .vm-pp{width:40px;height:40px;font-size:16px}
 .vm-time{min-width:52px;font-size:11px}
 .vm-strip{max-width:340px;padding:6px 2px 2px}
 .vm-sc{width:38px;border-radius:6px}
 .vm-sc b{font-size:9px}
 .vm-scadd{width:38px;min-height:68px;font-size:16px}
 .vm-scadd small{font-size:8px}
 .vm-hint{min-height:16px;margin:2px 2px 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
}
