:root {
  --bg-1: #e9f0fb;
  --bg-2: #b9d0ee;
  --card: rgba(255, 255, 255, 0.62);
  --card-solid: #f7faff;
  --card-border: rgba(255, 255, 255, 0.85);
  --line: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --accent-1: #8b5cf6;
  --accent-2: #3b82f6;
  --accent: #5b6cf6;
  --accent-soft: rgba(91, 108, 246, 0.12);
  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.12);
  --warn: #c2410c;
  --warn-bg: #fff8e6;
  --warn-border: #fde68a;
  --err: #dc2626;
  --err-soft: rgba(220, 38, 38, 0.1);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(30, 64, 120, 0.08);
  --sidebar: 300px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-1) 0%, #d3e2f6 45%, var(--bg-2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 26px 18px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(240, 245, 253, 0.75); backdrop-filter: blur(18px);
  border-right: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: 14px; padding: 0 10px 22px; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 20px rgba(91, 108, 246, 0.35);
}
.brand-title { font-weight: 650; font-size: 19px; color: #3d4b8f; }
.brand-sub { font-size: 14px; color: var(--muted); }
.nav-group { font-size: 12px; font-weight: 650; letter-spacing: .08em; color: var(--muted); padding: 18px 12px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px;
  font-weight: 550; font-size: 16px; color: #1e293b; transition: background .15s;
}
.nav-item svg { width: 21px; height: 21px; flex: none; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, 0.7); }
.nav-item.active {
  color: #fff; background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 24px rgba(91, 108, 246, 0.35);
}
.nav-item.active svg { opacity: 1; }
.nav-badge { margin-left: auto; font-size: 12px; font-weight: 650; background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 99px; }
.nav-item.active .nav-badge { background: rgba(255,255,255,.25); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.sidebar-foot button { background: none; border: 0; text-align: left; padding: 0; cursor: pointer; color: var(--muted); font-size: 15px; }
.sidebar-foot button:hover { color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 40px 22px; border-bottom: 1px solid rgba(255,255,255,.6);
  background: rgba(233, 240, 251, 0.55); backdrop-filter: blur(12px);
}
.topbar h1 { font-size: 24px; font-weight: 650; }
.topbar .sub { color: var(--muted); margin-top: 4px; font-size: 16px; }
.btn.menu-btn { display: none; }
.content { padding: 32px 40px 60px; display: flex; flex-direction: column; gap: 22px; max-width: 1500px; width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); padding: 26px;
}
.card h2 { font-size: 19px; font-weight: 650; }
.card .hint { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.45; }
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 22px; align-items: start; }

.kpi { display: flex; flex-direction: column; gap: 14px; position: relative; min-height: 170px; }
.kpi-label { font-weight: 600; font-size: 17px; color: #334155; }
.kpi-value { font-size: 46px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.kpi-foot { color: var(--muted); font-size: 15px; }
.kpi-icon {
  position: absolute; top: 22px; right: 22px; width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; background: rgba(255,255,255,.85); color: var(--accent);
}
.kpi-icon.warn { color: #d97706; background: #fff7e0; }
.kpi-icon svg { width: 24px; height: 24px; }

.row-link {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .12s, background .12s;
}
.row-link:hover { transform: translateY(-1px); background: rgba(255,255,255,.78); }
.row-icon { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--accent); }
.row-icon.warm { background: #fff3db; color: #c2410c; }
.row-icon svg { width: 24px; height: 24px; }
.row-title { font-weight: 650; font-size: 18px; }
.row-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.row-sub.warm { color: var(--warn); }
.row-chev { margin-left: auto; color: var(--muted); }

.banner {
  padding: 18px 24px; border-radius: 18px; border: 1px solid var(--warn-border); background: var(--warn-bg);
  color: #9a3412; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 16px;
}
.banner.info { background: rgba(255,255,255,.7); border-color: var(--card-border); color: #1e3a8a; }
.banner a, .banner button.linkish { font-weight: 650; text-decoration: underline; }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.85); color: var(--text);
  padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; transition: transform .1s, box-shadow .1s, opacity .1s;
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 6px 16px rgba(30,64,120,.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); box-shadow: 0 10px 22px rgba(91,108,246,.3); }
.btn.ok { border: 0; color: #fff; background: var(--ok); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { color: var(--err); }
.btn.lg { padding: 16px 26px; font-size: 17px; border-radius: 16px; }
.btn svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field > label { font-weight: 650; font-size: 16px; }
.field .opt { color: var(--muted); font-weight: 500; }
.input, .textarea, select.input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(15,23,42,.1);
  background: rgba(255,255,255,.9); font-size: 16px; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(91,108,246,.25); background: rgba(255,255,255,.8); color: #3f4fd1;
  padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 550; cursor: pointer;
}
.chip:hover { background: var(--accent-soft); }

.dropzone {
  border: 2px dashed rgba(91,108,246,.35); border-radius: 20px; padding: 34px 20px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.55); transition: background .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dropzone:hover, .dropzone.over { background: rgba(255,255,255,.85); border-color: var(--accent); }
.dropzone svg { width: 40px; height: 40px; color: var(--accent); }
.dropzone .dz-title { font-weight: 650; font-size: 17px; }
.dropzone .dz-sub { color: var(--muted); font-size: 14px; }
.dropzone video { max-height: 260px; max-width: 100%; border-radius: 14px; background: #000; }

.form-steps { display: flex; flex-direction: column; gap: 26px; }
.step-num {
  width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; margin-right: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
}

.style-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.style-opt { position: relative; cursor: pointer; border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: rgba(255,255,255,.8); }
.style-opt input { position: absolute; opacity: 0; }
.style-opt .thumb { aspect-ratio: 9 / 12; }
.style-opt .name { padding: 10px 12px; font-weight: 600; font-size: 14px; }
.style-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 8px 20px rgba(91,108,246,.25); }

.progress { height: 10px; background: rgba(15,23,42,.07); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); transition: width .2s; }

/* ---------- Thumbs, lists ---------- */
.thumb { width: 100%; background: linear-gradient(135deg, #dfe8f7, #c9d9f1); background-size: cover; background-position: center; display: grid; place-items: center; color: #7c8db5; }
.thumb svg { width: 34px; height: 34px; opacity: .6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tile { overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: transform .12s; }
.tile:hover { transform: translateY(-2px); }
.tile .thumb { aspect-ratio: 9 / 13; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tile-title { font-weight: 650; font-size: 16px; line-height: 1.3; }
.tile-meta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tile-add { display: grid; place-items: center; min-height: 300px; border-style: dashed; color: var(--accent); font-weight: 650; text-align: center; gap: 8px; }
.tile-add svg { width: 36px; height: 36px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 4px 11px; border-radius: 99px; background: rgba(15,23,42,.06); color: #334155; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.running, .pill.queued { background: var(--accent-soft); color: var(--accent); }
.pill.running::before { animation: pulse 1.2s infinite; }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.approved { background: var(--ok); color: #fff; }
.pill.error { background: var(--err-soft); color: var(--err); }
.pill.review { background: #fff3db; color: #c2410c; }
.thumb.contain { background-size: contain; background-repeat: no-repeat; background-color: #f1f4f9; }
@keyframes pulse { 50% { opacity: .2; } }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-thumb { width: 44px; height: 60px; border-radius: 10px; flex: none; overflow: hidden; }
.list-thumb .thumb { height: 100%; }
.list-main { min-width: 0; flex: 1; }
.list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { color: var(--muted); font-size: 14px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 110px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.55); color: var(--muted); font-weight: 600; font-size: 14px;
}
.step .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,42,.08); font-size: 12px; flex: none; }
.step.done { color: var(--ok); background: rgba(255,255,255,.85); }
.step.done .dot { background: var(--ok); color: #fff; }
.step.current { color: var(--accent); background: #fff; box-shadow: 0 6px 16px rgba(91,108,246,.18); }
.step.current .dot { background: var(--accent); color: #fff; animation: pulse 1.2s infinite; }

/* ---------- Player ---------- */
.player { display: flex; flex-direction: column; gap: 16px; }
.player video { width: 100%; max-height: 72vh; background: #0b1020; border-radius: 18px; }
.player-empty { aspect-ratio: 9 / 12; max-height: 60vh; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); background: rgba(255,255,255,.5); border: 2px dashed rgba(91,108,246,.2); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: rgba(255,255,255,.7); border-radius: 14px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; color: #475569; }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.chat-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; max-height: 58vh; overflow-y: auto; }
.msg { max-width: 92%; padding: 14px 16px; border-radius: 18px; line-height: 1.5; font-size: 15px; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.agent { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; overflow-x: auto; }
.msg.system { align-self: center; background: transparent; color: var(--muted); font-size: 14px; text-align: center; }
.msg.system.err { color: var(--err); }
.msg time { display: block; font-size: 12px; opacity: .65; margin-top: 6px; }
.msg.agent table { border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.msg.agent th, .msg.agent td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.msg.agent p { margin: 6px 0; }
.msg.agent ul, .msg.agent ol { margin: 6px 0; padding-left: 20px; }
.msg.agent code { background: rgba(15,23,42,.06); padding: 1px 5px; border-radius: 6px; font-size: 13px; }
.msg.agent h1, .msg.agent h2, .msg.agent h3 { font-size: 16px; margin: 8px 0 4px; }
.working { margin: 0 24px 16px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: #3442b8; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.working-top { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(52,66,184,.25); border-top-color: #3442b8; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.working .act { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log { max-height: 220px; overflow: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: rgba(255,255,255,.7); border-radius: 10px; padding: 10px; white-space: pre-wrap; color: #334155; }
.chat-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.compose { display: flex; gap: 10px; align-items: flex-end; }
.compose .textarea { min-height: 52px; max-height: 180px; }

/* ---------- Style page ---------- */
.md { line-height: 1.6; font-size: 15px; overflow-x: auto; }
.md h1 { font-size: 22px; margin: 0 0 12px; }
.md h2 { font-size: 18px; margin: 22px 0 8px; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md code { background: rgba(15,23,42,.06); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.6); border-radius: 8px; color: #475569; }
.palette { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-family: ui-monospace, Menlo, monospace; background: rgba(255,255,255,.8); padding: 6px 10px 6px 6px; border-radius: 10px; }
.swatch i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.media-small video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; }
details summary { cursor: pointer; font-weight: 600; color: #334155; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; padding: 36px; }
.login-card .brand { padding: 0; }
.error-text { color: var(--err); font-size: 14px; min-height: 18px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty svg { width: 46px; height: 46px; color: var(--accent); opacity: .7; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 15px; z-index: 50; box-shadow: var(--shadow); }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); background: #eef3fb; }
  .app.menu-open .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; padding: 10px 12px; }
  .topbar { padding: 16px; position: sticky; top: 0; z-index: 30; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 16px 16px 40px; gap: 16px; }
  .card { padding: 18px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { min-height: 130px; }
  .kpi-value { font-size: 34px; }
  .kpi-icon { width: 42px; height: 42px; top: 16px; right: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stepper .step { min-width: 0; flex: 1 1 30%; }
  .chat-body { max-height: none; }
}

/* =========================================================
   Qadamli sahifalar (Video montaj, Yangi uslub) — «Vision App» dizayni
   ========================================================= */
@keyframes wz-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wz-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wz-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.wz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.wz-st { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.45); border: 1px solid #fff; text-align: left; cursor: pointer; transition: .25s; }
.wz-st:hover { background: rgba(255,255,255,.75); }
.wz-st .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--accent-1); flex: none; transition: .25s; }
.wz-st b { display: block; font-size: 14px; }
.wz-st small { color: var(--muted); font-size: 12px; }
.wz-st.on { background: #fff; box-shadow: 0 10px 30px rgba(91,107,212,.18); }
.wz-st.on .n { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; animation: wz-pulse 2.2s infinite; }
.wz-st.done .n { background: var(--ok); color: #fff; }
.wz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.wz-card.anim { animation: wz-rise .4s cubic-bezier(.2,.8,.2,1) both; }
.wz-card h2 { font-size: 19px; font-weight: 800; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.wz-card h3 { font-size: 15px; font-weight: 800; margin: 18px 0 10px; display: flex; gap: 8px; align-items: center; }
.wz-drop { display: block; width: 100%; border: 2px dashed rgba(139,92,246,.4); border-radius: 18px; padding: 28px; text-align: center; background: rgba(255,255,255,.4); cursor: pointer; transition: .2s; }
.wz-drop:hover, .wz-drop.over { border-color: var(--accent-1); background: #fff; transform: translateY(-2px); }
.wz-drop .big { font-size: 36px; display: inline-block; animation: wz-pulse 2.4s infinite; }
.wz-drop b { display: block; font-size: 16px; margin-top: 4px; }
.wz-drop small { color: var(--muted); }
.wz-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wz-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; }
.wz-row .num { font-weight: 800; color: var(--accent-1); width: 20px; }
.wz-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-row .ic-btn { width: 30px; height: 30px; border-radius: 9px; border: 0; background: #f1f3f9; cursor: pointer; }
.wz-row .ic-btn:disabled { opacity: .35; cursor: default; }
.wz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.wz-tile { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid transparent; cursor: pointer; transition: .2s; text-align: left; }
.wz-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91,107,212,.15); }
.wz-tile.on { border-color: #c4b5fd; }
.wz-tile .e { font-size: 20px; }
.wz-tile .c { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent-1); background: #ede9fe; padding: 2px 9px; border-radius: 99px; }
.wz-panel { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.6); animation: wz-rise .3s both; }
.wz-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.wz-imgs .im { position: relative; display: flex; flex-direction: column; gap: 6px; }
.wz-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; }
.wz-imgs .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.wz-imgs .k { position: absolute; top: 6px; left: 6px; background: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.wz-imgs input { padding: 7px 9px; border-radius: 10px; border: 1px solid #e3e6ef; font-size: 12px; }
.wz-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wz-sc { border-radius: 18px; overflow: hidden; background: #fff; border: 2px solid transparent; cursor: pointer; transition: .25s; text-align: left; padding: 0; }
.wz-sc:hover { transform: translateY(-2px); }
.wz-sc.on { border-color: var(--accent-1); box-shadow: 0 12px 30px rgba(139,92,246,.25); transform: translateY(-3px); }
.wz-sc img, .wz-sc .ph { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.wz-sc .ph { display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.wz-sc .t { padding: 10px 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.wz-badge { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: #dcfce7; color: #15803d; font-weight: 700; }
.wz-vars { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.wz-vr { flex: none; width: 92px; text-align: center; font-size: 12px; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; color: var(--text); }
.wz-vr img, .wz-vr .ph { width: 92px; height: 124px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; transition: .2s; display: block; margin-bottom: 5px; }
.wz-vr .ph { display: grid; place-items: center; background: #fff; font-size: 12px; color: var(--muted); padding: 8px; }
.wz-vr.on img, .wz-vr.on .ph { border-color: var(--accent-1); transform: scale(1.04); }
.wz-vr.on { color: var(--accent-1); }
.wz-opt { display: flex; gap: 14px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.wz-opt:last-child { border-bottom: 0; }
.wz-opt .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #f1edff; flex: none; }
.wz-opt b { display: block; }
.wz-opt small { color: var(--muted); }
.wz-opt .r { margin-left: auto; }
.wz-toggle { width: 48px; height: 28px; border-radius: 99px; background: #cfd3dc; position: relative; transition: .25s; flex: none; border: 0; cursor: pointer; padding: 0; }
.wz-toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.wz-toggle.on { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
.wz-toggle.on::after { left: 24px; }
.wz-seg { display: inline-flex; padding: 4px; border-radius: 12px; gap: 4px; background: #eef0f7; flex-wrap: wrap; }
.wz-seg button { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 0; background: none; cursor: pointer; transition: .2s; }
.wz-seg button.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); color: var(--accent-1); }
.wz-nav { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }
.wz-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 36px); }
.wz-pv { border-radius: 18px; overflow: hidden; aspect-ratio: 9/14; max-height: 34vh; width: auto; margin: 0 auto; background: #0f1220; position: relative; }
.wz-pv img, .wz-pv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-pv .lbl { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.wz-pv .empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff9; font-size: 40px; }
.wz-li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed rgba(15,23,42,.12); }
.wz-li span { color: var(--muted); }
.wz-li b { text-align: right; }
.wz-cta { width: 100%; padding: 16px; border-radius: 16px; border: 0; cursor: pointer; color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-1)); background-size: 200%; animation: wz-shift 4s infinite; box-shadow: 0 14px 30px rgba(109,92,246,.35); }
.wz-cta:disabled { opacity: .55; animation: none; cursor: default; }
.wz-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-md { padding: 14px; border-radius: 16px; background: #fff; border: 2px solid #fff; cursor: pointer; text-align: left; transition: .2s; position: relative; }
.wz-md:hover { transform: translateY(-2px); }
.wz-md.on { border-color: #c4b5fd; background: #faf8ff; }
.wz-md:not(.on) { opacity: .55; }
.wz-md .e { font-size: 22px; }
.wz-md b { display: block; margin-top: 6px; }
.wz-md small { color: var(--muted); font-size: 12px; }
.wz-md .chk { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #e5e7eb; color: #fff; }
.wz-md.on .chk { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.wz-md select { margin-top: 8px; width: 100%; padding: 6px 8px; border-radius: 9px; border: 1px solid #e3e6ef; font-size: 12px; background: #fff; }
.wz-modchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-modchips span { padding: 6px 10px; border-radius: 99px; background: #fff; font-size: 12px; font-weight: 600; }
@media (max-width: 1100px) { .wz-grid { grid-template-columns: 1fr; } .wz-side { position: static; } }
@media (max-width: 700px) { .wz-steps, .wz-tiles, .wz-mods { grid-template-columns: 1fr 1fr; } }
.wz-cta svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.wz-panel .btn svg { width: 18px; height: 18px; }
