.video-launcher{display:none}
.video-studio{width:min(960px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;color:#39343f;background:#fff;border:1px solid #e3dcec;border-radius:20px;box-shadow:0 16px 70px #2b1c4626;font:14px/1.5 Inter,"Microsoft YaHei",sans-serif}
.video-studio::backdrop{background:#2f26394d}
.video-studio header,.video-studio footer{padding:16px 22px;background:#faf8fc}
.video-studio header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ece6f2}
.video-studio h1{margin:0 0 2px;font-size:22px}
.video-studio h2{margin:0 0 10px;font-size:16px}
.video-studio p{margin:0;color:#6e627e}
.video-studio footer{border-top:1px solid #ece6f2;overflow-wrap:anywhere}
.video-studio .video-error{color:#a32c41}
.video-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;padding:20px 22px}
.video-body aside{min-width:0;border-left:1px solid #ece6f2;padding-left:20px}
.video-editor form{display:grid;gap:10px;margin-top:14px}
.video-editor details{border:1px solid #e8e1ef;border-radius:11px;padding:8px 12px}
.video-editor details[open] summary{margin-bottom:8px}
.video-studio label{display:grid;gap:4px;font-size:13px}
.video-studio label[data-audio-option]:not([hidden]){display:flex;align-items:center;gap:8px}
.video-studio summary{cursor:pointer;color:#6d5387}
.video-studio input:not([type=checkbox]),.video-studio textarea,.video-studio select,.video-studio button{max-width:100%;min-width:0;border:1px solid #e3daed;border-radius:9px;padding:8px 10px;color:inherit;background:#fff;font:inherit}
.video-studio button{cursor:pointer}.video-studio button:disabled{opacity:.55;cursor:default}
.video-studio button:hover:not(:disabled){background:#f4eef9}
.video-studio button.video-primary{color:#4c3365;background:#e9ddf6;font-weight:600}
.video-studio textarea{resize:vertical}
.video-params{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.video-studio .video-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}
.video-actions a{color:#6d5387;text-decoration:underline}
.video-studio .video-muted{font-size:12px}
.video-studio ol{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.video-studio ol li{display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}
.video-studio [data-tasks]{display:grid;gap:9px;margin-top:10px;overflow-wrap:anywhere}
.video-studio article{display:grid;gap:5px;padding:10px;border:1px solid #ece6f2;border-radius:11px}
.video-studio article div{display:flex;flex-wrap:wrap;gap:6px}
.video-studio video{display:block;width:100%;max-height:300px;background:#15111a;border-radius:10px}
.video-studio [hidden]{display:none!important}
@media(max-width:720px){.video-body{grid-template-columns:minmax(0,1fr)}.video-body aside{border:0;border-top:1px solid #ece6f2;padding:12px 0 0}}

/* The native video composer shares the visual treatment of the image composer. */
[data-video-panel] {
  --video-composer-width: min(680px, calc(100vw - 24px));
  width: var(--video-composer-width) !important;
  min-width: 0 !important;
  max-width: var(--video-composer-width) !important;
  margin-left: calc((640px - var(--video-composer-width)) / 2);
}
:root [data-video-panel] > div {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 2px 0 4px;
  color: #393640;
  background: #fff !important;
  border: 1px solid #e6e3eb !important;
  border-radius: 28px;
  box-shadow: 0 4px 16px #27223008;
}
[data-video-panel] > div > [class~="pt-3"] { padding: 14px 18px 6px; }
[data-video-panel] > div > [class~="pt-3"] button[class~="size-[38px]"]:not([title]),
[data-video-panel] > div > [class~="pt-3"] img[class~="size-[38px]"] {
  width: 70px;
  height: 76px;
  border-radius: 18px;
}
:root [data-video-panel] > div > [class~="pt-3"] button[class~="size-[38px]"] {
  color: #5e536d;
  background: #f2eff5;
  border-color: #e6e1eb;
}
:root [data-video-panel] > div > [class~="pt-3"] button[class~="size-[38px]"]:hover,
:root [data-video-panel] > div > [class~="pt-3"] button[class~="bg-white/[0.16]"] { background: #eae3f2; }
[data-video-panel] > div > [class~="pt-3"] button svg { color: currentColor; }
[data-video-panel] textarea {
  min-height: 76px;
  padding: 10px 20px 12px;
  color: #393640;
  font-size: 16px;
  line-height: 1.6;
}
[data-video-panel] textarea::placeholder { color: #aaa6af; }
[data-video-panel] [data-native-generation-footer] { height: auto; min-height: 54px; padding: 5px 14px 8px; flex-wrap: wrap; }
:root [data-video-panel] button[data-video-submit] {
  width: 40px;
  height: 40px;
  color: #554765;
  background: #e9e2f0 !important;
}
:root [data-video-panel] button[data-video-submit]:hover { background: #e1d6ec !important; }
[data-video-panel] button:focus-visible { outline: 2px solid #a58bc3; outline-offset: 2px; }

button:is([title="添加图片节点"], [title="添加视频节点"]) > span:first-child {
  color: #393640;
  background: #ece8f2;
}
@media(max-width:500px) {
  :root [data-video-panel] > div { border-radius: 22px; }
  [data-video-panel] textarea { padding-inline: 14px; font-size: 15px; }
}
