.kd-video-workflows{width:min(840px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;background:var(--bg-panel,#10191a);color:var(--text-primary,#edf5f3);border:1px solid #314440;border-radius:18px;padding:24px;font-family:inherit}
.kd-video-workflows::backdrop{background:#000b}
.kd-video-workflows header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.kd-video-workflows h2{font:inherit;font-size:24px;margin:0}
.kd-video-workflows p{color:#acbdb7;line-height:1.6}
.kd-video-workflows button,.kd-video-workflows select{font:inherit;color:inherit;background:#1b2c27;border:1px solid #466157;border-radius:9px;padding:10px 14px}
.kd-video-workflows button:disabled{opacity:.55;cursor:not-allowed}
.kd-video-workflows :focus-visible{outline:2px solid #58dec0;outline-offset:4px}
.kd-workflow-status{color:#58dec0!important}
.kd-workflow-slots{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.kd-workflow-slot{display:flex;flex-direction:column;gap:14px;min-width:0;padding:18px;border:1px dashed #52645e;border-radius:12px;background:#0c1110}
.kd-workflow-slot strong{font-size:15px}.kd-workflow-slot span{font-size:12px;color:#acbdb7}
.kd-workflow-slot img,.kd-workflow-slot video{width:100%;max-height:210px;object-fit:contain;border-radius:8px;background:#080b0a}
.kd-workflow-slot input{max-width:100%;font:inherit;font-size:12px}
.kd-workflow-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;margin:18px 0}
.kd-workflow-field{display:flex;flex-direction:column;gap:8px;font-size:13px}.kd-workflow-field[hidden]{display:none}
.kd-workflow-field textarea,.kd-workflow-field input[type=number]{font:inherit;color:inherit;background:#0c1110;border:1px solid #466157;border-radius:9px;padding:12px;box-sizing:border-box;width:100%}
.kd-workflow-field textarea{resize:vertical;min-height:100px}.kd-workflow-field input[type=checkbox]{align-self:flex-start;accent-color:#20e0c0}
.kd-workflow-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.kd-workflow-actions button:last-child:not(:disabled){background:#20e0c0;color:#07120f}
@media(max-width:580px){.kd-workflow-slots{grid-template-columns:1fr}.kd-video-workflows{padding:18px}}

/* Match the active composer footprint; keep the larger controls scrollable. */
.kd-video-workflows{position:fixed;inset:auto;margin:0;background:linear-gradient(155deg,#242424,#111 65%,#090909);color:#f5f5f5;border:1px solid #484848;border-radius:20px;box-shadow:0 20px 65px #0009,0 1px 0 #ffffff12 inset;color-scheme:dark;padding:22px}
.kd-video-workflows::backdrop{background:#0006}
.kd-video-workflows h2{font-size:20px;font-weight:650;color:#fff}
.kd-video-workflows p,.kd-workflow-slot span{color:#b6b6b6}
.kd-video-workflows button,.kd-video-workflows select{background:#292929;border-color:#505050;color:#f5f5f5;min-height:44px}
.kd-video-workflows button:not(:disabled){cursor:pointer}
.kd-video-workflows button:not(:disabled):hover{background:#373737;border-color:#828282}
.kd-workflow-status{color:#cecece!important}
.kd-workflow-slot{background:#161616;border-color:#555;gap:10px;padding:14px}
.kd-workflow-slot img,.kd-workflow-slot video{background:#080808;max-height:150px}
.kd-workflow-field textarea,.kd-workflow-field input[type=number]{background:#101010;border-color:#505050;color:#fff}
.kd-workflow-field textarea::placeholder{color:#999;opacity:1}
.kd-video-workflows :focus-visible{outline-color:var(--teal,#20e0c0)}
.kd-workflow-field input[type=checkbox]{accent-color:var(--teal,#20e0c0)}
.kd-workflow-actions button:last-child:not(:disabled){background:var(--teal,#20e0c0);border-color:transparent;color:#07120f;font-weight:700}
.kd-workflow-actions button:last-child:not(:disabled):hover{filter:brightness(1.08)}
.kd-workflow-slots:empty{display:none}
@media(max-width:580px){.kd-video-workflows{padding:16px;border-radius:16px}.kd-workflow-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kd-workflow-actions button{flex:1}.kd-workflow-slots{gap:10px;margin:14px 0}}
