/* Isolated black/champagne-gold video editor. No global theme overrides. */
#panel-video-edit{--ve-line:rgba(220,194,137,.18);--ve-dim:#b3ab99;--ve-panel:rgba(18,20,24,.9);color:#f1ecdf;padding-bottom:28px}
#panel-video-edit [hidden]{display:none!important}
#panel-video-edit .ve-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 23px}
#panel-video-edit .ve-eyebrow{font-size:10px;letter-spacing:.22em;color:#c4ac79;font-weight:600}
#panel-video-edit h2{display:flex;align-items:center;gap:14px;font-size:28px;letter-spacing:.04em;margin:9px 0 8px;color:#f6efdf}
#panel-video-edit .ve-heading p{font-size:13px;color:var(--ve-dim);margin:0;line-height:1.7}
#panel-video-edit .ve-pill{font-size:10px;font-weight:500;letter-spacing:.03em;border:1px solid var(--ve-line);border-radius:5px;padding:5px 8px;color:#dcc086;background:rgba(218,192,137,.05)}
#panel-video-edit .ve-steps{display:flex;list-style:none;gap:24px;border-block:1px solid var(--ve-line);padding:14px 4px;margin:0 0 22px}
#panel-video-edit .ve-steps li{display:flex;align-items:center;gap:10px;font-size:12px;color:#d0c8b7;flex:1}
#panel-video-edit .ve-steps b{font-size:11px;font-variant-numeric:tabular-nums;color:#dfc18b;border:1px solid var(--ve-line);width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:rgba(227,196,130,.04)}
#panel-video-edit .ve-layout{display:grid;grid-template-columns:minmax(310px,.87fr) minmax(360px,1.13fr);gap:20px;align-items:start}
#panel-video-edit .ve-card{border:1px solid var(--ve-line);background:linear-gradient(145deg,rgba(29,29,28,.76),rgba(13,15,20,.94));border-radius:14px;padding:21px;min-width:0;box-shadow:0 10px 26px rgba(0,0,0,.1)}
#panel-video-edit .ve-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
#panel-video-edit .ve-card-head h3{font-size:15px;margin:0;color:#f1ecdf;font-weight:600}
#panel-video-edit .ve-card-head>span{font-size:10px;color:#a99c80}
#panel-video-edit fieldset{border:0;padding:0;margin:0;min-width:0}
#panel-video-edit .field-label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:500;margin:16px 0 10px;color:#dcd4c3}
#panel-video-edit #vePromptCount{font-size:10px;color:#aaa08c;font-weight:400}
#panel-video-edit .ve-drop{width:100%;background:rgba(231,201,143,.035);border:1px dashed rgba(211,183,126,.32);padding:24px 16px;color:#e7dec9;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
#panel-video-edit .ve-drop:hover,#panel-video-edit .ve-drop.ve-drag{border-color:#d8b976;background:rgba(231,201,143,.075)}
#panel-video-edit .ve-drop svg{width:30px;height:30px;fill:none;stroke:currentColor;color:#d5b983;margin-bottom:3px}
#panel-video-edit .ve-drop strong{font-size:13px;font-weight:500}#panel-video-edit .ve-drop span{font-size:11px;color:#aea38a}#panel-video-edit .ve-drop small{font-size:10px;color:#a69b87;line-height:1.6}
#panel-video-edit .ve-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px;color:#e9d5a9}#panel-video-edit #veFileName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#panel-video-edit .ve-help{font-size:11px;color:var(--ve-dim);line-height:1.8;margin:9px 0;overflow-wrap:anywhere}
#panel-video-edit .ve-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
#panel-video-edit .ve-two label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#cfc5b1;min-width:0}
#panel-video-edit input[type=number],#panel-video-edit select,#panel-video-edit textarea{width:100%;box-sizing:border-box;background:#11141a!important;border:1px solid rgba(215,190,139,.23)!important;color:#eee6d4!important;border-radius:7px;padding:10px 11px;font-size:12px;min-height:39px}
#panel-video-edit textarea{resize:vertical;line-height:1.85;min-height:123px}
#panel-video-edit :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid #e5c47e!important;outline-offset:3px}
#panel-video-edit .ve-range-info{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:10px;line-height:1.7;color:#ae9d7b;align-items:center}
#panel-video-edit .ve-text-button{border:0;background:none;color:#dfc183;font-size:11px;padding:4px 0;cursor:pointer;white-space:nowrap}
#panel-video-edit .ve-presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
#panel-video-edit .ve-presets button{border:1px solid var(--ve-line);background:rgba(255,255,255,.015);color:#bcb29d;border-radius:6px;padding:7px 9px;font-size:10px;cursor:pointer}
#panel-video-edit .ve-presets button[aria-pressed=true]{color:#ecd7a8;background:rgba(218,183,116,.12);border-color:rgba(230,198,133,.4)}
#panel-video-edit .ve-advanced{border-block:1px solid var(--ve-line);padding:14px 0;margin:17px 0}
#panel-video-edit .ve-advanced summary{cursor:pointer;color:#d5c8aa;font-size:12px}#panel-video-edit .ve-advanced summary span{float:right;font-size:10px;color:#9e927b}
#panel-video-edit .ve-consent{display:flex;gap:9px;align-items:flex-start;line-height:1.7;font-size:11px;color:#bcb19c;margin:14px 0}#panel-video-edit .ve-consent input{width:15px;height:15px;accent-color:#d5b776;flex-shrink:0;margin-top:3px}
#panel-video-edit .ve-submit{width:100%;min-height:46px;font-size:14px;font-weight:650;border-radius:9px}
#panel-video-edit .ve-right{display:grid;gap:18px;min-width:0}#panel-video-edit .ve-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}#panel-video-edit figure{margin:0;min-width:0}
#panel-video-edit figcaption{display:flex;gap:7px;align-items:center;font-size:11px;color:#c9bea7;margin:0 0 10px}#panel-video-edit figcaption i{width:5px;height:5px;border-radius:50%;background:#af9668}
#panel-video-edit .ve-screen{aspect-ratio:4/5;background:radial-gradient(ellipse at 50% 30%,#1b1c1e,#0a0c0f 85%);border:1px solid rgba(226,205,161,.12);border-radius:10px;overflow:hidden;display:flex;position:relative;align-items:center;justify-content:center}
#panel-video-edit .ve-screen video{width:100%;height:100%;object-fit:contain;background:#090b0d;max-height:430px}
#panel-video-edit .ve-empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px;text-align:center;color:#c2b294;font-size:12px}#panel-video-edit .ve-empty svg{width:37px;height:37px;fill:none;stroke:currentColor;color:#927950;opacity:.7}#panel-video-edit .ve-empty small{font-size:10px;color:#9a8f7b}
#panel-video-edit .ve-output-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px}#panel-video-edit .ve-output-actions .btn{font-size:11px}
#panel-video-edit .ve-task-body{display:flex;gap:16px;align-items:center}#panel-video-edit .ve-task-body strong{font-size:14px;color:#e7d8b7;display:block}#panel-video-edit .ve-task-body p{font-size:12px;line-height:1.8;color:#bdb29b;margin:6px 0 0;overflow-wrap:anywhere}
#panel-video-edit .ve-task-mark{flex:0 0 49px;height:49px;display:grid;place-items:center;border-radius:12px;border:1px solid rgba(224,190,117,.23);background:linear-gradient(145deg,rgba(239,206,138,.1),transparent);color:#d6b975}#panel-video-edit .ve-task-mark svg{width:23px;height:23px;fill:none;stroke:currentColor}
#panel-video-edit .ve-task-track{height:2px;background:rgba(219,189,131,.08);margin-top:21px;border-radius:2px;overflow:hidden}#panel-video-edit .ve-task-track span{display:block;width:35%;height:100%;opacity:0;background:linear-gradient(90deg,transparent,#d9bd80,transparent)}
#panel-video-edit [data-state=active] .ve-task-track span{opacity:1;animation:ve-sweep 2.4s ease-in-out infinite}#panel-video-edit [data-state=success] .ve-task-track span{width:100%;opacity:1;background:#c6ae7c}#panel-video-edit [data-state=error] #veStateTitle{color:#e5a68c}
#panel-video-edit .ve-task-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}#panel-video-edit #veTaskId{font-size:10px;color:#a59678;overflow-wrap:anywhere;user-select:text}
#panel-video-edit .ve-history-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--ve-line);background:none;color:inherit;text-align:left;cursor:pointer}#panel-video-edit .ve-history-row>div{min-width:0;flex:1}#panel-video-edit .ve-history-row strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}#panel-video-edit .ve-history-row small{font-size:10px;display:block;color:#a69a82;margin-top:5px}#panel-video-edit .ve-history-row>span{font-size:10px;color:#cfb782;white-space:nowrap}
#panel-video-edit .ve-notice{padding:12px 16px;border:1px solid #705938;background:rgba(184,140,63,.08);border-radius:8px;font-size:12px;line-height:1.8;color:#e3c896;margin-bottom:18px}
#panel-video-edit :disabled{opacity:.5;cursor:not-allowed!important}#panel-video-edit .ve-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes ve-sweep{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
@media(max-width:1150px){#panel-video-edit .ve-layout{grid-template-columns:1fr}#panel-video-edit .ve-screen{aspect-ratio:16/10}#panel-video-edit .ve-heading{align-items:flex-start}#panel-video-edit .ve-card{padding:18px}}
@media(max-width:540px){#panel-video-edit .ve-heading{flex-direction:column}#panel-video-edit h2{font-size:23px;flex-wrap:wrap}#panel-video-edit .ve-steps{gap:6px}#panel-video-edit .ve-steps li{font-size:10px;gap:5px}#panel-video-edit .ve-steps b{width:22px;height:22px}#panel-video-edit .ve-two{grid-template-columns:1fr}#panel-video-edit .ve-screen{aspect-ratio:3/4}#panel-video-edit .ve-card{padding:14px}#panel-video-edit .ve-compare{gap:8px}#panel-video-edit .ve-card-head>span{max-width:45%;text-align:right;line-height:1.7}}
@media(prefers-reduced-motion:reduce){#panel-video-edit *,#panel-video-edit *::before,#panel-video-edit *::after{animation:none!important;transition:none!important}#panel-video-edit [data-state=active] .ve-task-track span{transform:none;width:100%;opacity:.55}}

#panel-video-edit .ve-heading{margin:0 0 18px}#panel-video-edit .ve-heading>p{margin:0;font-size:12px;color:#b9ae99;line-height:1.8}#panel-video-edit .ve-drop{padding:20px 14px}#panel-video-edit #veTitle.ve-sr{margin:0;padding:0}

/* Video mode switch + local background replacement showcase. */
#panel-video-edit .ve-mode-switch{display:flex;gap:10px;margin:0 0 12px;border-bottom:1px solid var(--ve-line);padding-bottom:14px}
#panel-video-edit .ve-mode-btn{position:relative;flex:0 1 245px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:13px 16px;border:1px solid var(--ve-line);border-radius:10px;background:rgba(255,255,255,.018);color:#d7cfbe;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
#panel-video-edit .ve-mode-btn:hover{border-color:rgba(230,198,133,.45);background:rgba(218,192,137,.06);transform:translateY(-1px)}
#panel-video-edit .ve-mode-btn.active{border-color:rgba(229,196,126,.72);background:linear-gradient(145deg,rgba(211,174,94,.16),rgba(255,255,255,.025));box-shadow:0 6px 18px rgba(0,0,0,.16)}
#panel-video-edit .ve-mode-btn span{font-size:13px;font-weight:650;color:#f0e5cf;letter-spacing:.02em}
#panel-video-edit .ve-mode-btn small{font-size:10px;color:#a99d87;line-height:1.5}
#panel-video-edit .ve-mode-btn b{position:absolute;top:10px;right:12px;font-size:9px;letter-spacing:.08em;color:#f0d492;border:1px solid rgba(230,198,133,.34);padding:3px 5px;border-radius:4px;font-weight:600}
#panel-video-edit .ve-mode-note{font-size:11px;color:#bdb29f;line-height:1.75;margin:0 0 18px;padding-left:2px}
#panel-video-edit .ve-background-options{border:1px solid rgba(223,188,119,.2);background:rgba(210,172,89,.045);border-radius:9px;padding:12px 13px;margin:16px 0 2px}
#panel-video-edit .ve-background-options .ve-two{margin-top:0}
#panel-video-edit .ve-background-options .ve-help{margin:10px 0 0;color:#b9a984}
#panel-video-edit .ve-case-card{overflow:hidden}
#panel-video-edit .ve-case-intro{font-size:10px;color:#9f947f;line-height:1.6;margin:5px 0 0;max-width:440px}
#panel-video-edit .ve-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px 14px}
#panel-video-edit .ve-case-grid figure{min-width:0;margin:0}
#panel-video-edit .ve-case-grid .ve-case-wide{grid-column:1/-1}
#panel-video-edit .ve-case-grid video{display:block;width:100%;height:auto;min-height:160px;max-height:360px;aspect-ratio:auto;object-fit:contain;background:#080a0d;border:1px solid rgba(226,205,161,.14);border-radius:8px;box-sizing:border-box}
#panel-video-edit .ve-case-grid figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 1px 0;font-size:11px;color:#a99f8d;line-height:1.5}
#panel-video-edit .ve-case-grid figcaption>div{display:flex;flex-direction:column;gap:3px;min-width:0}
#panel-video-edit .ve-case-grid figcaption i{display:none}
#panel-video-edit .ve-case-grid figcaption strong{font-size:11px;color:#e5d5b6;font-weight:600}
#panel-video-edit .ve-case-card>.ve-help{margin:12px 0 0}

@media(max-width:680px){#panel-video-edit .ve-mode-switch{flex-direction:column}#panel-video-edit .ve-mode-btn{flex-basis:auto;width:100%}#panel-video-edit .ve-case-grid{grid-template-columns:1fr}}

#panel-video-edit .ve-case-card{order:-1}


/* Case previews are read-only: no upload, task, or form state changes. */
#panel-video-edit .ve-case-expand,#panel-video-edit .ve-case-close{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:34px;padding:7px 10px;border:1px solid rgba(226,205,161,.28);border-radius:7px;color:#ead4a6;background:rgba(218,183,116,.07);font:inherit;font-size:11px;cursor:pointer}
#panel-video-edit .ve-case-expand:hover,#panel-video-edit .ve-case-close:hover{background:rgba(218,183,116,.16);border-color:#d4b77c}
#panel-video-edit .ve-case-expand .ico{width:13px;height:13px;stroke:currentColor;fill:none}
#panel-video-edit .ve-case-error{margin:8px 0 0;color:#e1bb86;font-size:11px;line-height:1.65}
#panel-video-edit .ve-case-preview{padding:0;border:1px solid rgba(226,205,161,.3);border-radius:14px;background:#111315;color:#f1ecdf;box-shadow:0 28px 90px rgba(0,0,0,.6);overflow:auto}
#panel-video-edit .ve-case-preview[open]{display:flex;flex-direction:column;width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto}
#panel-video-edit .ve-case-preview::backdrop{background:rgba(0,0,0,.82)}
#panel-video-edit .ve-case-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;flex-shrink:0}
#panel-video-edit .ve-case-preview-head h3{font-size:16px;line-height:1.5;margin:5px 0 0;color:#f1e5cc;overflow-wrap:anywhere}
#panel-video-edit .ve-case-close{min-width:66px;min-height:38px;font-size:12px}
#panel-video-edit .ve-case-close span{font-size:20px;line-height:1}
#panel-video-edit #veCasePreviewVideo{display:block;flex-shrink:0;box-sizing:border-box;width:100%;height:auto;min-height:140px;max-height:calc(100dvh - 180px);aspect-ratio:var(--ve-case-ratio,16/9);object-fit:contain;background:#050607;border:0;border-radius:0}
#panel-video-edit .ve-case-preview-note{margin:0;padding:12px 20px;color:#b6aa91;font-size:11px;line-height:1.7;flex-shrink:0}
@media(max-width:540px){#panel-video-edit .ve-case-preview-head{padding:12px;gap:10px}#panel-video-edit .ve-case-preview-head h3{font-size:13px}#panel-video-edit .ve-case-preview-note{padding:10px 12px}#panel-video-edit .ve-case-expand{min-height:38px}}
