﻿.vs-page { padding: 20px 24px 40px; animation: pageEnter .35s ease; }
.vs-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.vs-kicker { font-size:10px; letter-spacing:.12em; color:#0284c7; font-weight:700; margin-bottom:4px; }
.vs-head h2 { margin:0 0 6px; font-size:24px; color:#0f172a; }
.vs-head p { margin:0; font-size:12px; color:#64748b; }
.vs-head-actions { display:flex; align-items:center; gap:8px; }
.vs-model-badge { font-size:11px; color:#0369a1; background:#e0f2fe; border:1px solid #bae6fd; border-radius:99px; padding:5px 10px; }
.vs-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:16px; align-items:start; }
.vs-products, .vs-studio { background:#fff; border:1px solid #e2e8f0; border-radius:10px; box-shadow:0 2px 10px rgba(15,23,42,.03); }
.vs-products { padding:14px; position:sticky; top:16px; max-height:calc(100vh - 130px); overflow:auto; }
.vs-studio { padding:18px; min-height:520px; }
.vs-panel-title { font-size:11px; font-weight:700; color:#334155; letter-spacing:.04em; margin-bottom:9px; display:flex; justify-content:space-between; }
.vs-panel-title span { color:#94a3b8; font-weight:500; }
.vs-search { width:100%; height:32px; font-size:12px; margin-bottom:10px; }
.vs-product-list { display:flex; flex-direction:column; gap:5px; }
.vs-product { width:100%; display:flex; align-items:center; gap:8px; border:1px solid transparent; background:#f8fafc; border-radius:7px; padding:7px; text-align:left; cursor:pointer; transition:.15s; }
.vs-product:hover { border-color:#bae6fd; background:#f0f9ff; }
.vs-product.active { border-color:#38bdf8; background:#e0f2fe; }
.vs-thumb { width:38px; height:38px; flex:0 0 38px; border-radius:6px; background:#e2e8f0; overflow:hidden; display:grid; place-items:center; color:#64748b; }
.vs-thumb.big { width:54px; height:54px; flex-basis:54px; }
.vs-thumb img { width:100%; height:100%; object-fit:cover; }
.vs-product-main { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.vs-product-main b { font-size:11px; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-product-main small { font-size:9px; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-empty { padding:24px 10px; text-align:center; color:#94a3b8; font-size:11px; }
.vs-empty-big { min-height:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.vs-empty-big p { margin:0; color:#64748b; font-size:13px; }
.vs-empty-big small { color:#94a3b8; }
.vs-studio-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid #f1f5f9; }
.vs-studio-title { display:flex; align-items:center; gap:10px; min-width:0; }
.vs-studio-title > div { min-width:0; }
.vs-studio-title b { display:block; font-size:13px; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-studio-title small { display:block; margin-top:4px; font-size:10px; color:#94a3b8; }
.vs-ozon-state { flex:0 0 auto; font-size:10px; color:#047857; background:#ecfdf5; border-radius:99px; padding:4px 8px; }
.vs-image-picker { display:flex; gap:6px; overflow:auto; padding:12px 0; }
.vs-image-choice { width:54px; height:54px; flex:0 0 54px; padding:0; border:2px solid transparent; border-radius:6px; overflow:hidden; background:#f1f5f9; cursor:pointer; }
.vs-image-choice.active { border-color:#0ea5e9; box-shadow:0 0 0 2px #e0f2fe; }
.vs-image-choice img { width:100%; height:100%; object-fit:cover; }
.vs-form-grid { display:grid; grid-template-columns:1.5fr .7fr .8fr .8fr; gap:8px; margin:4px 0 10px; }
.vs-form-grid label, .vs-prompt-label { display:flex; flex-direction:column; gap:4px; font-size:10px; color:#64748b; }
.vs-form-grid .form-input { height:32px; font-size:11px; }
.vs-prompt-label textarea { font-size:11px; line-height:1.5; resize:vertical; }
.vs-actions { display:flex; align-items:center; gap:10px; margin-top:10px; }
.vs-hint { font-size:10px; color:#94a3b8; }
.vs-task-panel { margin-top:14px; }
.vs-live { border:1px solid #e2e8f0; border-radius:8px; padding:12px; background:#f8fafc; }
.vs-live.running { border-color:#bae6fd; background:#f0f9ff; }
.vs-live.failed { border-color:#fecdd3; background:#fff1f2; }
.vs-live-head { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:#0369a1; }
.vs-live-head span { color:#94a3b8; font-family:monospace; font-size:9px; }
.vs-progress { height:5px; border-radius:99px; background:#e0f2fe; overflow:hidden; margin:9px 0; }
.vs-progress i { display:block; height:100%; background:linear-gradient(90deg,#0ea5e9,#6366f1); border-radius:inherit; transition:width .4s; }
.vs-video { width:100%; max-height:360px; background:#0f172a; border-radius:7px; margin-top:8px; }
.vs-video-meta { margin-top:7px; font-size:10px; color:#64748b; }
.vs-video-actions { display:flex; gap:7px; margin-top:9px; }
.vs-error { margin-top:8px; font-size:10px; color:#be123c; background:#fff1f2; border-radius:5px; padding:7px; }
.vs-history { margin-top:16px; border-top:1px solid #f1f5f9; padding-top:12px; }
.vs-history-list { display:flex; flex-direction:column; gap:4px; }
.vs-history-row { display:flex; justify-content:space-between; gap:8px; width:100%; border:0; background:#f8fafc; border-radius:5px; padding:7px 8px; font-size:10px; cursor:pointer; text-align:left; }
.vs-history-row span { color:#334155; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-history-row b { flex:0 0 auto; font-weight:500; color:#64748b; }
.vs-history-row b.success { color:#047857; }
.vs-history-row b.failed { color:#be123c; }
@media (max-width: 900px) {
  .vs-layout { grid-template-columns:1fr; }
  .vs-products { position:static; max-height:340px; }
  .vs-form-grid { grid-template-columns:1fr 1fr; }
  .vs-head { flex-direction:column; }
}

/* AI video inside collect edit modal */
.ai-video-modal { display:flex; flex-direction:column; gap:12px; }
.ai-video-hint { font-size:11px; color:#64748b; line-height:1.6; }
.ai-video-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; max-height:190px; overflow:auto; padding:2px; position:relative; z-index:0; }
.ai-video-tile { position:relative; aspect-ratio:1/1; border:2px solid #e2e8f0; border-radius:7px; overflow:hidden; cursor:pointer; background:#f8fafc; }
.ai-video-tile.selected { border-color:#0ea5e9; box-shadow:0 0 0 3px #e0f2fe; }
.ai-video-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.ai-video-index { position:absolute; left:4px; top:4px; background:rgba(15,23,42,.72); color:#fff; border-radius:3px; font-size:9px; padding:1px 4px; }
.ai-video-check { position:absolute; right:4px; top:4px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:#0ea5e9; color:#fff; font-size:10px; display:grid; place-items:center; }
.ai-video-tile:not(.selected) .ai-video-check { background:rgba(255,255,255,.7); color:transparent; }
.ai-video-controls { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; position:relative; z-index:1; }
.ai-video-controls label, .ai-video-prompt { display:flex; flex-direction:column; gap:4px; font-size:10px; color:#64748b; }
.ai-video-controls .form-input { height:32px; font-size:11px; color:#0f172a; background:#fff; }
.ai-video-prompt textarea { font-size:11px; line-height:1.5; resize:vertical; }
.ai-video-actions { display:flex; align-items:center; gap:9px; }
.ai-video-task { border:1px solid #e2e8f0; border-radius:7px; padding:10px; background:#f8fafc; }
.ai-video-task.running { border-color:#bae6fd; background:#f0f9ff; }
.ai-video-task.failed { border-color:#fecdd3; background:#fff1f2; }
.ai-video-task-head { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:#0369a1; }
.ai-video-task-head span { font-family:monospace; font-size:9px; color:#94a3b8; }
.ai-video-progress { height:5px; border-radius:99px; background:#e0f2fe; overflow:hidden; margin:8px 0; }
.ai-video-progress i { display:block; height:100%; background:linear-gradient(90deg,#0ea5e9,#6366f1); transition:width .4s; }
.ai-video-preview { width:100%; max-height:280px; background:#0f172a; border-radius:6px; margin-top:7px; display:block; }
.ai-video-error { margin-top:7px; padding:6px; border-radius:4px; background:#fff1f2; color:#be123c; font-size:10px; }
.ai-video-task-actions { display:flex; gap:7px; margin-top:8px; }
.ai-video-empty { padding:16px; text-align:center; font-size:11px; color:#94a3b8; border:1px dashed #e2e8f0; border-radius:6px; }
@media (max-width: 720px) {
  .ai-video-grid { grid-template-columns:repeat(3,1fr); max-height:220px; }
  .ai-video-controls { grid-template-columns:1fr 1fr; }
}



