.video-setup-progress{margin:14px 0 18px;padding:17px;border:1px solid #47406c;border-radius:14px;background:#201d2e;color:#eeeaf8}
.video-setup-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.video-setup-head>div{display:grid;gap:3px;min-width:0}
.video-setup-head small{font-size:10px;letter-spacing:1.5px;color:#bba7eb}
.video-setup-head b{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.video-setup-head strong{font:600 24px ui-monospace,SFMono-Regular,monospace;color:#c5aaff;white-space:nowrap}
.video-setup-track{height:8px;margin-top:15px;overflow:hidden;border-radius:99px;background:#39334b}
.video-setup-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8871e2,#c5aaff);transition:width .35s ease}
.video-setup-progress>p{margin:9px 0 0;font-size:12px;color:#bdb6cf;font-variant-numeric:tabular-nums}
.video-setup-models{display:grid;gap:6px;margin-top:12px;max-height:225px;overflow:auto}
.video-setup-model{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #383447;border-radius:8px;background:#181722;font-size:11px}
.video-setup-model span{min-width:0;overflow-wrap:anywhere}
.video-setup-model small{color:#bcabd9;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:520px){.video-setup-progress{padding:13px}.video-setup-head strong{font-size:20px}.video-setup-model{display:grid;gap:2px}.video-setup-model small{padding-left:13px}}
@media(prefers-reduced-motion:reduce){.video-setup-track span{transition:none}}

/* Compact, always-reachable video status and readable setup details. */
body.atelier .main #status{
  position:sticky;top:12px;z-index:12;margin:0 0 16px;padding:16px 18px;
  border:1px solid #70619f;border-radius:16px;
  background:linear-gradient(125deg,#29243ded,#1a1b2aef);
  box-shadow:0 16px 42px #09081455,inset 0 1px 0 #ffffff15;
  backdrop-filter:blur(18px);
}
body.atelier .main #status .video-status-main{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
body.atelier .main #status .video-status-copy{min-width:0;flex:1}
body.atelier .main #status .video-status-copy>small,
body.atelier .main #status .video-status-eta>small,
body.atelier .main #status .video-status-elapsed>small{display:block;margin-bottom:5px;font-size:10px;font-weight:700;letter-spacing:.12em;color:#a99ad5}
body.atelier .main #status #statusTitle{display:block;color:#f0ebff;font-size:15px;line-height:1.3}
body.atelier .main #status #statusText{margin:5px 0 0;color:#c3bdd5;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body.atelier .main #status .video-status-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:13px;padding-top:11px;border-top:1px solid #ffffff1b}
body.atelier .main #status .video-status-eta{display:grid;justify-items:start;gap:1px;min-width:0;font-variant-numeric:tabular-nums}
body.atelier .main #status .video-status-eta[hidden]{display:none}
body.atelier .main #status .video-status-elapsed{display:grid;justify-items:end;min-width:54px;font-variant-numeric:tabular-nums}
body.atelier .main #status #videoSetupEta{font-size:16px;line-height:1.25;color:#d8c5ff;white-space:nowrap}
body.atelier .main #status #timer{float:none;display:block;font-size:14px;font-weight:650;color:#d4cce7}
body.atelier .main #status #stop{margin:0;min-height:42px;padding:9px 13px;white-space:nowrap;border:1px solid #9c6276;border-radius:10px;background:#3b2735;color:#ffd7df;font-size:12px;font-weight:650}
body.atelier .main #status #stop:hover:not(:disabled){border-color:#cf8197;background:#4d2d40}
body.atelier .main .video-setup-progress{margin:0 0 19px;padding:19px;border:1px solid #514771;border-radius:16px;background:linear-gradient(150deg,#242036,#1a1b29);box-shadow:inset 0 1px 0 #ffffff0b}
body.atelier .main .video-setup-head small{color:#aa98d4}
body.atelier .main .video-setup-head b{font-size:14px;color:#f0eaff}
body.atelier .main .video-setup-head strong{font-size:22px;color:#c7aaff}
body.atelier .main .video-setup-track{height:7px;margin-top:17px;background:#3a3450}
body.atelier .main .video-setup-track span{background:linear-gradient(90deg,#7c6bd9,#cbb3ff)}
body.atelier .main .video-setup-progress>p{margin:10px 0 0;color:#bdb5d1;font-size:12px}
body.atelier .main .video-setup-details{margin-top:15px;border-top:1px solid #514964;padding-top:12px}
body.atelier .main .video-setup-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;color:#cdbfe9;font-size:12px;font-weight:600}
body.atelier .main .video-setup-details summary::-webkit-details-marker{display:none}
body.atelier .main .video-setup-details summary::before{content:'›';font-size:19px;line-height:12px;transition:transform .2s}
body.atelier .main .video-setup-details[open] summary::before{transform:rotate(90deg)}
body.atelier .main .video-setup-details summary span{margin-left:auto;color:#998dad;font-size:11px;font-weight:500}
body.atelier .main .video-setup-models{max-height:260px;margin-top:13px}
body.atelier .main .video-setup-model{border-color:#3f3a55;background:#191927;color:#ded9eb}
body.atelier .main .video-setup-model small{color:#baabd9}
html[data-studio-theme='light'] body.atelier .main #status{border-color:#cbbbec;background:linear-gradient(125deg,#f7f2ffed,#f1effaef);box-shadow:0 14px 35px #7560a11c,inset 0 1px 0 #fff}
html[data-studio-theme='light'] body.atelier .main #status .video-status-copy>small,
html[data-studio-theme='light'] body.atelier .main #status .video-status-eta>small,
html[data-studio-theme='light'] body.atelier .main #status .video-status-elapsed>small{color:#7664a5}
html[data-studio-theme='light'] body.atelier .main #status #statusTitle{color:#392d5d}
html[data-studio-theme='light'] body.atelier .main #status #statusText,
html[data-studio-theme='light'] body.atelier .main #status #timer{color:#766c87}
html[data-studio-theme='light'] body.atelier .main #status #videoSetupEta{color:#6543a7}
html[data-studio-theme='light'] body.atelier .main #status #stop{border-color:#dfbdc9;background:#fff6f8;color:#9b3853}
html[data-studio-theme='light'] body.atelier .main .video-setup-progress{border-color:#d8cbed;background:linear-gradient(150deg,#f9f6ff,#f3f1fa);box-shadow:inset 0 1px 0 #fff}
html[data-studio-theme='light'] body.atelier .main .video-setup-head b{color:#3b305e}
html[data-studio-theme='light'] body.atelier .main .video-setup-progress>p,
html[data-studio-theme='light'] body.atelier .main .video-setup-details summary{color:#675a82}
html[data-studio-theme='light'] body.atelier .main .video-setup-details{border-top-color:#ded4ed}
html[data-studio-theme='light'] body.atelier .main .video-setup-model{border-color:#e2d8ef;background:#fff;color:#4d4265}
@media(max-width:640px){body.atelier .main #status{top:6px;padding:13px}body.atelier .main #status .video-status-actions{gap:8px}body.atelier .main #status #videoSetupEta{font-size:14px}}

/* Video GPU session occupies the same full-width row as the photo GPU session. */
body.atelier .video-session{margin:0 0 22px}
body.atelier .video-session[hidden],body.atelier .video-session #status[hidden]{display:none!important}
body.atelier .video-session:has(#status:not([hidden])) .video-session-idle{display:none}
body.atelier .video-session-idle,body.atelier .video-session #status{min-height:108px;padding:19px 23px;border:1px solid #3e4051;border-radius:15px;background:#20222e;color:#e9e6f3}
body.atelier .video-session-idle,body.atelier .video-session #status .video-status-main{display:flex;align-items:center;justify-content:space-between;gap:28px}
body.atelier .video-session-idle-copy,body.atelier .video-session #status .video-status-copy{min-width:0;flex:1}
body.atelier .video-session-idle small,body.atelier .video-session #status small{display:block;margin-bottom:7px;color:#9995aa;font-size:10px;font-weight:700;letter-spacing:.1em}
body.atelier .video-session-idle-copy>strong{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650}
body.atelier .video-session-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#aaa7b9}
body.atelier .video-session-idle p,body.atelier .video-session #status #statusText{margin:5px 0 0;color:#a5a1b2;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
body.atelier .video-session-idle-time{text-align:center;font-variant-numeric:tabular-nums}
body.atelier .video-session-idle-time strong{font-size:20px}
body.atelier .video-session-idle button,body.atelier .video-session #stop{min-height:44px;margin:0;padding:9px 15px;border:1px solid #5b5269;border-radius:10px;background:#272535;color:#d2c9df;font-size:12px;font-weight:650;white-space:nowrap}
body.atelier .video-session-idle button:disabled{opacity:.55;cursor:not-allowed}
body.atelier .video-session #status{position:static;box-shadow:none;backdrop-filter:none}
body.atelier .video-session #status #statusTitle{display:block;color:#f0ebff;font-size:15px;line-height:1.3}
body.atelier .video-session #status .video-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:26px;flex:none;padding:0;border:0}
body.atelier .video-session #status .video-status-eta,body.atelier .video-session #status .video-status-elapsed{display:grid;gap:2px;min-width:0;font-variant-numeric:tabular-nums}
body.atelier .video-session #status .video-status-eta[hidden]{display:none}
body.atelier .video-session #status #videoSetupEta{font-size:16px;color:#c8b6f4;white-space:nowrap}
body.atelier .video-session #status #timer{float:none;display:block;font-size:15px;font-weight:650;color:#e9e3f4}
body.atelier .video-session #stop{border-color:#895a6b;background:#362631;color:#f4c7d4}
body.atelier .video-session #stop:hover:not(:disabled){border-color:#c2788d;background:#4b2d3c}
html[data-studio-theme='light'] body.atelier .video-session-idle,html[data-studio-theme='light'] body.atelier .video-session #status{border-color:#d8d1e6;background:#f4f1fa;color:#3d3750}
html[data-studio-theme='light'] body.atelier .video-session-idle small,html[data-studio-theme='light'] body.atelier .video-session #status small{color:#79718c}
html[data-studio-theme='light'] body.atelier .video-session-idle p,html[data-studio-theme='light'] body.atelier .video-session #status #statusText{color:#716a7e}
html[data-studio-theme='light'] body.atelier .video-session #status #statusTitle,html[data-studio-theme='light'] body.atelier .video-session #status #timer{color:#39304d}
html[data-studio-theme='light'] body.atelier .video-session #status #videoSetupEta{color:#6f4aa9}
html[data-studio-theme='light'] body.atelier .video-session-idle button{border-color:#dad3e3;background:#f6f4f9;color:#776e85}
html[data-studio-theme='light'] body.atelier .video-session #stop{border-color:#dfbdc9;background:#fff6f8;color:#9b3853}
@media(max-width:760px){body.atelier .video-session-idle,body.atelier .video-session #status .video-status-main{align-items:flex-start;flex-wrap:wrap;gap:15px}body.atelier .video-session-idle,body.atelier .video-session #status{padding:17px}body.atelier .video-session #status .video-status-actions{width:100%;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:12px;border-top:1px solid #ffffff1b}body.atelier .video-session-idle-time{margin-left:auto}}
body.atelier[data-studio-workflow]:not([data-studio-workflow='scail']) #comfyLiveProgress{display:none!important}
