@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #141b30;
  --bg-deep: #0d1324;
  --surface: #1c2440;
  --surface-2: #232c4b;
  --surface-3: #2d3658;
  --surface-hover: #293354;
  --stroke: rgba(165, 185, 225, 0.18);
  --stroke-strong: rgba(165, 185, 225, 0.32);
  --text: #f6f8fd;
  --muted: #aab6d0;
  --dim: #7d89a6;
  --brand: #7c6cf0;
  --brand-2: #66b2ff;
  --accent: #3ee6a8;
  --warn: #ffb26b;
  --danger: #ff6f86;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 12% -12%, rgba(124, 108, 240, 0.28), transparent 62%),
    radial-gradient(1000px 550px at 100% 0%, rgba(102, 178, 255, 0.2), transparent 58%),
    linear-gradient(160deg, #1b2540 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.danger { color: var(--danger); }
.warn { color: var(--warn); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; letter-spacing: .2px;
  background: var(--surface-3); border: 1px solid var(--stroke); color: var(--text);
  transition: .16s;
}
.btn:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #fff; }
.btn.ghost { background: transparent; }
.btn.accent { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); color: var(--accent); }
.btn.danger { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); color: var(--danger); }
.btn.sm { padding: 7px 12px; border-radius: 9px; font-size: 13px; }
.btn.block { width: 100%; }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; margin: 0 0 7px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--stroke); outline: none; transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,124,250,.15); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.select { appearance: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--stroke); background: rgba(18, 24, 42, 0.78); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 16px; color: #fff; box-shadow: 0 0 22px rgba(91,124,250,.45); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); font-size: 13px; font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.shell { display: flex; min-height: calc(100vh - 71px); }
.sidebar { width: 240px; flex: none; padding: 20px 14px; border-right: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; color: var(--muted); font-weight: 500; transition: .15s; cursor: pointer; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--text); background: linear-gradient(135deg, rgba(91,124,250,.18), rgba(138,92,246,.14)); border: 1px solid rgba(91,124,250,.25); }
.nav-item .ic { width: 20px; text-align: center; }
.content { flex: 1; padding: 28px 30px; min-width: 0; }
.page-title { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 22px; }
.hero { max-width: 1100px; margin: 0 auto; padding: 130px 24px 70px; text-align: center; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 6vw, 62px); line-height: 1.08; margin: 20px 0 16px; font-weight: 750; letter-spacing: -.5px; }
.hero .grad { background: linear-gradient(90deg, #7c9dff, #b18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }
.hero-tagline { margin-top: 18px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.hero-tagline em { font-style: italic; background: linear-gradient(90deg, #d7b36a, #f2d5a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pricing-preview { max-width: 1100px; margin: 70px auto 90px; padding: 0 24px; }
.pricing-head { text-align: center; margin-bottom: 24px; }
.pricing-head h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(28px, 4vw, 42px); }
.pricing-head p { margin: 0; color: var(--muted); }
.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tariff-card { padding: 26px 22px; border-radius: 20px; background: linear-gradient(145deg, rgba(34,40,54,.82), rgba(20,25,36,.82)); border: 1px solid var(--stroke); }
.tariff-card.featured { border-color: rgba(215,179,106,.42); background: linear-gradient(145deg, rgba(48,54,72,.88), rgba(22,27,40,.88)); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.tariff-label { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.tariff-price { margin-top: 16px; font-family: var(--display); font-size: 38px; font-weight: 750; }
.tariff-credits { color: var(--accent); font-size: 13px; font-weight: 600; }
.tariff-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.price-rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.price-rate { padding: 16px 14px; border-radius: 16px; background: rgba(20,25,36,.72); border: 1px solid var(--stroke); text-align: center; }
.price-rate span { display: block; color: var(--muted); font-size: 12px; }
.price-rate b { display: block; margin-top: 6px; font-size: 17px; }
.price-example { margin-top: 22px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(215,179,106,.14), rgba(139,124,247,.08)); border: 1px solid rgba(215,179,106,.28); text-align: center; }
.example-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(215,179,106,.16); color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.price-example p { margin: 12px 0 4px; color: var(--muted); }
.example-total { font-family: var(--display); font-size: 34px; font-weight: 750; }
@media (max-width: 900px) {
  .tariff-grid { grid-template-columns: 1fr; }
  .price-rates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-rates { grid-template-columns: 1fr; }
}
.pipeline { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 46px auto 0; color: var(--muted); font-size: 13px; }
.pipeline .step { padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--stroke); }
.pipeline .arrow { color: var(--dim); }
.features { max-width: 1100px; margin: 60px auto 80px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.feature h3 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
.metric { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); }
.metric .v { font-family: var(--display); font-size: 26px; font-weight: 700; }
.metric .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.table td { padding: 12px; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.done { background: rgba(52,211,153,.14); color: var(--accent); }
.badge.processing { background: rgba(91,124,250,.16); color: #8fb0ff; }
.badge.error { background: rgba(244,63,94,.14); color: var(--danger); }
.badge.queued { background: rgba(245,158,11,.14); color: var(--warn); }
.badge.draft { background: rgba(154,163,178,.14); color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--dim); background: var(--surface); border: 1px solid var(--stroke); }
.step-pill.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; }
.step-pill.done { color: var(--accent); border-color: rgba(52,211,153,.3); }
.step-pill .n { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 11px; }
.wizard-card { max-width: 760px; margin: 0 auto; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.split { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 13px; border: 1px solid var(--stroke); cursor: pointer; }
.radio-card.selected { border-color: var(--brand); background: rgba(91,124,250,.08); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg button { padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--stroke); font-weight: 600; color: var(--muted); }
.seg button.active { border-color: var(--brand); color: #fff; background: rgba(91,124,250,.16); }
.overlay { position: fixed; inset: 0; background: rgba(4,5,8,.7); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 70; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--stroke-strong); border-radius: 20px; padding: 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.modal h3 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--stroke); color: var(--muted); transition: background .16s, color .16s, border-color .16s; }
.modal-close:hover { background: var(--surface-3); color: var(--text); border-color: var(--stroke-strong); }
.modal-close .ic svg { width: 18px; height: 18px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); }
.toast { position: fixed; bottom: 22px; right: 22px; padding: 13px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--stroke-strong); z-index: 80; font-size: 14px; max-width: 360px; }
.toast.err { border-color: rgba(244,63,94,.5); }
.toast.ok { border-color: rgba(52,211,153,.5); }
.empty { text-align: center; color: var(--muted); padding: 46px 16px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }
.spacer { flex: 1; }
.hint { color: var(--dim); font-size: 13px; }
@media (max-width: 900px) {
  .features, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .sidebar .nav-label { display: none; }
}
@media (max-width: 640px) {
  .features, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .hero h1 { font-size: 34px; }
  .hero { padding-top: 112px; }
}

/* ---------- Рабочее пространство создания выпуска ---------- */
.workbench { display: flex; gap: 16px; align-items: stretch; min-height: calc(100vh - 190px); }
.wb-config { width: 356px; flex: none; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 190px); overflow-y: auto; padding-right: 4px; }
.wb-config::-webkit-scrollbar { width: 8px; }
.wb-config::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }
.wb-section { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px; }
.wb-section > .wb-title { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.wb-section .field { margin-bottom: 10px; }
.wb-section .field:last-child { margin-bottom: 0; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wb-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 16px; }
.wb-toolbar .name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.wb-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
.wb-metric { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stroke); }
.wb-metric .v { font-family: var(--display); font-size: 20px; font-weight: 700; }
.wb-metric .l { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.scene-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.scene-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.scene-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(140deg, #151a2a, #0b0f18); display: grid; place-items: center; color: var(--dim); font-weight: 700; }
.scene-thumb.portrait { aspect-ratio: 9/16; }
.scene-thumb .kind { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.5); }
.scene-thumb .kind.video { color: #ffb454; }
.scene-thumb .kind.image { color: #61e1ff; }
.scene-thumb .num { font-size: 22px; opacity: .6; }
.scene-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scene-body .stext { font-size: 11px; color: var(--muted); line-height: 1.4; max-height: 46px; overflow: hidden; }
.scene-body textarea { min-height: 54px; font-size: 11px; }
.scene-actions { display: flex; gap: 6px; }
.scene-actions .btn { flex: 1; padding: 6px 8px; font-size: 11px; }
.wb-progress-row { display: flex; align-items: center; gap: 12px; }
.wb-progress-row .progress { flex: 1; }
.wb-log { background: #0b0f18; border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: #c7d5e8; max-height: 180px; overflow-y: auto; white-space: pre-wrap; }
.wb-final { background: #000; border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; }
.wb-final video { width: 100%; display: block; }
.wb-actions { display: flex; gap: 8px; justify-content: flex-end; }
.wb-tabs { display: flex; gap: 6px; }
.wb-tabs button { padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--stroke); background: var(--surface-2); }
.wb-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; }
@media (max-width: 1100px) {
  .workbench { flex-direction: column; }
  .wb-config { width: 100%; max-height: none; }
}

/* ---------- Рабочая область по структуре desktop ---------- */
.step-btn { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--stroke); transition: .15s; }
.step-btn:hover { border-color: var(--stroke-strong); }
.step-btn .ic { flex: none; width: 28px; text-align: center; font-size: 17px; color: var(--muted); }
.step-btn .tx { min-width: 0; }
.step-btn .tx b { display: block; font-size: 12px; font-weight: 700; }
.step-btn .tx small { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-btn.primary { border-color: rgba(91,124,250,.5); background: linear-gradient(135deg, rgba(91,124,250,.16), rgba(138,92,246,.1)); }
.step-btn .ic.green { color: var(--accent); }
.step-btn .ic.amber { color: var(--warn); }
.wb-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wb-status { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wb-status-head { display: flex; align-items: flex-start; gap: 10px; }
.wb-status-head > div:first-child { flex: 1; min-width: 0; }
.wb-status-head h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.wb-status-head .sub { font-size: 10px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-status-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.status-row { display: flex; gap: 13px; align-items: center; padding: 15px 16px; border-radius: 15px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--stroke); transition: border-color .18s, box-shadow .18s, background .18s, transform .18s; }
.status-row .ic { width: 20px; height: 20px; color: var(--muted); }
.status-row .st { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.status-row .t { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.25; }
.status-row .d { font-size: 11px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.status-row:hover { border-color: var(--stroke-strong); }
.status-row.active { border-color: rgba(124,108,240,.42); background: linear-gradient(135deg, rgba(124,108,240,.14), rgba(102,178,255,.08)); box-shadow: inset 0 0 0 1px rgba(124,108,240,.10), 0 6px 18px rgba(124,108,240,.14); }
.status-row.active .ic { color: var(--brand); }
.status-row:hover { transform: translateY(-1px); border-color: var(--stroke-strong); }
.wb-montage { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr 170px; gap: 12px; align-items: end; }
.wb-montage .gpu { display: grid; place-items: center; text-align: center; padding: 10px; border-radius: 12px; background: rgba(91,124,250,.08); border: 1px solid var(--stroke); }
.wb-montage .gpu b { color: var(--accent); font-size: 12px; }
.wb-montage .gpu small { color: var(--muted); font-size: 8px; letter-spacing: .6px; }
.wb-logpanel { flex: 1; min-height: 260px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.wb-loghead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; }
.voice-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--stroke); cursor: pointer; }
.voice-item.selected { border-color: var(--brand); background: rgba(91,124,250,.1); }
.voice-item audio { width: 96px; height: 28px; }
.style-item { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--stroke); cursor: pointer; }
.style-item.selected { border-color: var(--brand); background: rgba(91,124,250,.1); }
.style-item b { display: block; font-size: 13px; }
.style-item small { color: var(--muted); font-size: 11px; }
.music-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--stroke); cursor: pointer; }
.music-item.selected { border-color: var(--brand); background: rgba(91,124,250,.1); }
.music-item audio { width: 120px; height: 28px; }

/* ---------- Premium-доработка и этапы прогресса ---------- */
.card, .wb-section, .wb-status, .wb-montage, .wb-logpanel, .metric, .scene-card, .voice-item, .style-item, .music-item {
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 28px rgba(4,8,20,.28);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 20px rgba(108,92,231,.35);
}
.btn.primary:hover { box-shadow: 0 9px 28px rgba(108,92,231,.5); transform: translateY(-1px); }
.step-btn.primary { border-color: rgba(108,92,231,.55); background: linear-gradient(135deg, rgba(108,92,231,.2), rgba(90,168,255,.12)); }
.step-btn:hover, .voice-item:hover, .style-item:hover, .music-item:hover { border-color: var(--stroke-strong); background: var(--surface-3); }
.stage-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-step { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--dim); background: var(--surface-2); border: 1px solid var(--stroke); }
.stage-step.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; box-shadow: 0 4px 14px rgba(108,92,231,.4); }
.stage-step.done { color: var(--accent); border-color: rgba(52,211,153,.3); }
.stage-step .ic { font-size: 12px; }
.confirm-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.confirm-bar .btn { padding: 14px 22px; font-size: 15px; }
.scene-card { transition: .18s; }
.scene-card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); box-shadow: 0 12px 30px rgba(4,8,20,.4); }
.scene-thumb { background: linear-gradient(150deg, #1a2138, #0d1220); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }

/* ---------- Стеклянные premium-кнопки и иконки ---------- */
.btn, .step-btn, .chip, .voice-item, .style-item, .music-item, .lang-btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 6px 18px rgba(8, 14, 30, 0.25);
}
.btn:hover, .step-btn:hover, .voice-item:hover, .style-item:hover, .music-item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(8, 14, 30, 0.34);
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px rgba(124, 108, 240, 0.42);
}
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 30px rgba(124,108,240,.55); }
.btn.accent { background: linear-gradient(180deg, rgba(62,230,168,.22), rgba(62,230,168,.06)); }
.btn.danger { background: linear-gradient(180deg, rgba(255,111,134,.2), rgba(255,111,134,.05)); }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic { color: inherit; }
.ic.green { color: var(--accent); }
.ic.amber { color: var(--warn); }
.ic.red { color: var(--danger); }
.ic.brand { color: var(--brand); }
.ic.blue { color: var(--brand-2); }
.ic.silver { color: var(--muted); }
.ic svg { width: 18px; height: 18px; display: block; }
.nav-item .ic svg, .step-btn .ic svg { width: 18px; height: 18px; }
.btn .ic svg { width: 18px; height: 18px; }
.card, .wb-section, .wb-status, .wb-montage, .wb-logpanel, .metric {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 34px rgba(8,14,30,.3);
}

/* Единый premium UI-kit для кнопок */
.btn.danger { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: var(--stroke); color: var(--muted); }
.btn.danger:hover { background: linear-gradient(180deg, rgba(255,111,134,.18), rgba(255,111,134,.06)); border-color: rgba(255,111,134,.5); color: var(--danger); box-shadow: 0 6px 18px rgba(255,111,134,.18); }
.btn:active, .step-btn:active, .voice-item:active, .style-item:active, .music-item:active { transform: translateY(0) scale(.99); filter: brightness(.96); }

/* ---------- Логотип бренда ---------- */
.logo-img { height: 34px; width: auto; max-width: 260px; object-fit: contain; display: block; flex: none; }
.logo-img.lg { height: 52px; width: auto; max-width: 380px; }
.logo-img.xl { height: 72px; width: auto; max-width: 500px; }
.preview-logo { width: 58px; height: 58px; object-fit: contain; opacity: .92; }
.lang-select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 10px; padding: 7px 9px; font-size: 13px; font-weight: 600; cursor: pointer; outline: none; }
.lang-select:hover { border-color: rgba(124,108,240,.45); }
.lumean-hl { color: var(--warn); font-weight: 600; }
.lang-select option { background: var(--surface-2); color: #fff; }
.scene-thumb::before { content: ""; position: absolute; inset: 0; background: url("/assets/logo.png") center/38% no-repeat; opacity: .12; z-index: 0; pointer-events: none; }
.scene-thumb .kind, .scene-thumb .badge { z-index: 1; }
.scene-thumb .num { position: relative; z-index: 1; }

/* Интерактивность: свечение иконок и disabled-состояние */
.step-btn:hover .ic, .btn:hover .ic, .voice-item:hover .ic, .style-item:hover .ic, .music-item:hover .ic { filter: drop-shadow(0 0 5px rgba(124,108,240,.42)); transition: filter .16s; }
.ic { transition: filter .16s, color .16s; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.25) saturate(.7); }
.btn:disabled:hover { transform: none; box-shadow: none; }
.step-btn:hover { border-color: rgba(124,108,240,.38); box-shadow: 0 8px 22px rgba(124,108,240,.16), inset 0 1px 0 rgba(255,255,255,.08); }

/* ============ Единый компонент WorkflowStep ============ */
.ic svg { stroke-width: 1.75; }
.step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 14px;
  min-height: 60px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(6, 10, 24, 0.22);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}
.step-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(124, 108, 240, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(6, 10, 24, 0.30), 0 0 0 1px rgba(124, 108, 240, 0.08);
  transform: translateY(-1px);
}
.step-btn .ic {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.step-btn .ic svg { width: 18px; height: 18px; }
.step-btn .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.step-btn .tx b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: .1px; color: #fff; }
.step-btn .tx small { display: block; font-size: 11px; line-height: 1.35; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
}
.step-btn.primary .ic, .step-btn.primary .tx b { color: #fff; }
.step-btn.primary .tx small { color: rgba(255, 255, 255, 0.80); }
.step-btn.primary:hover {
  box-shadow: 0 10px 28px rgba(124, 108, 240, 0.42);
  border-color: transparent;
}
.step-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.step-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: saturate(0.6) brightness(0.94); }
.step-btn:disabled:hover { background: var(--surface-2); border-color: var(--stroke); box-shadow: none; }
.step-btn.primary:disabled:hover { background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: none; }
.wb-config .btn .ic { width: 24px; height: 24px; }

/* Деликатный ambient glow в верхней части рабочего пространства */
.workbench { background: radial-gradient(900px 180px at 22% 0%, rgba(124, 108, 240, 0.07), transparent 62%), radial-gradient(820px 170px at 78% 0%, rgba(102, 178, 255, 0.05), transparent 60%); }

/* ---------- Окно выбора стиля ---------- */
.modal.style-modal { width: min(1040px, calc(100vw - 48px)); }
.style-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.style-modal-head h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.style-modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-card { position: relative; background: var(--surface-2); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.style-card:hover { transform: translateY(-3px); border-color: rgba(124, 108, 240, 0.4); box-shadow: 0 14px 34px rgba(6, 10, 24, 0.42); }
.style-card.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 12px 30px rgba(124, 108, 240, 0.28); }
.style-thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(150deg, #222b49, #12182a); overflow: hidden; }
.style-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.style-card:hover .style-thumb img { transform: scale(1.06); }
.style-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.style-placeholder .ic { width: 36px; height: 36px; }
.style-placeholder .ic svg { width: 36px; height: 36px; }
.style-placeholder.own { flex-direction: column; gap: 8px; }
.style-placeholder.own .own-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); }
.style-meta { padding: 13px 14px; }
.style-meta b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.style-meta small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.style-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(124, 108, 240, 0.5); }
.style-check .ic { width: 15px; height: 15px; }
.style-check .ic svg { width: 15px; height: 15px; }
.style-view-btn { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 9px; background: rgba(8, 12, 24, 0.72); color: #fff; font-size: 11px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s ease; }
.style-card:hover .style-view-btn { opacity: 1; }
.style-own { border-style: dashed; }
.style-own .style-thumb { background: linear-gradient(150deg, #1b2239, #141a2c); }
.subtitle-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #000; padding: 0; }
.subtitle-thumb img, .subtitle-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subtitle-none-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 16px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.sub-preview-video { background: #101423; }
.sub-play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(8,12,24,.66); color: #fff; font-size: 12px; font-weight: 650; backdrop-filter: blur(10px); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; z-index: 2; }
.sub-play-btn .ic { width: 16px; height: 16px; }
.sub-play-btn .ic svg { width: 16px; height: 16px; }
.sub-play-btn:hover { background: var(--brand); border-color: var(--brand); transform: translate(-50%,-50%) scale(1.03); }
.sub-lang-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -2px 0 16px; }
.sub-lang-row .muted { font-size: 12px; color: var(--muted); }
.sub-lang { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--stroke); background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 650; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.sub-lang:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.sub-lang.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.subtitle-big { width: min(1100px, 94vw); }
.subtitle-big-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.subtitle-big-head h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.subtitle-big-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.subtitle-big-video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.subtitle-big-video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.style-custom-field { margin-top: 16px; }
.style-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.style-detail img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; background: linear-gradient(150deg, #222b49, #12182a); }
.style-detail h3 { margin: 0 0 6px; font-size: 20px; }
.style-detail .desc { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Список фоновой музыки */
.music-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.music-list::-webkit-scrollbar { width: 8px; }
.music-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.music-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--stroke); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.music-row:hover { border-color: rgba(124,108,240,.4); background: var(--surface-3); }
.music-row.selected { border-color: var(--brand); background: rgba(124,108,240,.10); }
.music-row audio { width: 118px; height: 30px; flex: none; }
.music-row .mm { flex: 1; min-width: 0; }
.music-row .mm b { display: block; font-size: 13px; color: #fff; }
.music-row .mm small { display: block; font-size: 11px; color: var(--muted); }
.music-check { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(124,108,240,.5); }
.music-check .ic svg { width: 15px; height: 15px; }
.music-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.music-num:empty { display: none; }
input[type="range"] { accent-color: var(--brand); width: 100%; cursor: pointer; }

.voice-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.voice-list::-webkit-scrollbar { width: 8px; }
.voice-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.voice-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--stroke); cursor: pointer; transition: border-color .16s, background .16s; }
.voice-row:hover { border-color: rgba(124,108,240,.4); background: var(--surface-3); }
.voice-row.selected { border-color: var(--brand); background: rgba(124,108,240,.10); }
.voice-row audio { width: 118px; height: 30px; flex: none; }
.voice-row .mm { flex: 1; min-width: 0; }
.voice-row .mm b { display: block; font-size: 13px; color: #fff; }
.voice-row .mm small { display: block; font-size: 11px; color: var(--muted); }

/* Анимированный фон главной страницы */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-bg .bg-icon { position: absolute; color: var(--brand-2); opacity: .16; filter: blur(12px); animation: floaty 14s ease-in-out infinite; }
.hero-bg .bg-icon svg { width: 56px; height: 56px; }
.hero-bg .bg-icon:nth-child(2) { animation-duration: 18s; animation-delay: 1s; color: var(--brand); }
.hero-bg .bg-icon:nth-child(3) { animation-duration: 16s; animation-delay: 2s; }
.hero-bg .bg-icon:nth-child(4) { animation-duration: 20s; animation-delay: .5s; color: var(--accent); }
.hero-bg .bg-icon:nth-child(5) { animation-duration: 15s; animation-delay: 1.5s; }
.hero-bg .bg-icon:nth-child(6) { animation-duration: 17s; animation-delay: 2.5s; color: var(--brand); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-28px) rotate(8deg); } }
.hero h1, .hero p, .hero .hero-actions, .hero .pipeline { position: relative; z-index: 1; }

#bgCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,240,.16), rgba(102,178,255,.07) 45%, transparent 70%); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; mix-blend-mode: screen; }
main { position: relative; z-index: 1; }

.landing-topbar { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: none; backdrop-filter: none; box-shadow: none; }

.tg-icon { animation: tg-float 2.4s ease-in-out infinite; }
.btn:hover .tg-icon { animation-play-state: paused; filter: drop-shadow(0 0 6px rgba(102,178,255,.7)); }
@keyframes tg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 1000px) {
  .style-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .style-detail { grid-template-columns: 1fr; }
}

.voice-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--surface-2, rgba(255,255,255,.035));
  border: 1px solid var(--stroke, rgba(255,255,255,.09));
}
.voice-admin-row .input { flex: 1; min-width: 0; }
.voice-admin-row audio { width: 150px; height: 30px; flex: none; }
.voice-admin-row .btn.sm { flex: none; }
.voice-prev-wrap { display: flex; align-items: center; gap: 8px; flex: none; }
.voice-prev-wrap audio { width: 150px; height: 30px; }

/* RoyalTechno — читаемый компактный блок */
.royal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke); }
.royal-account { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.royal-balance { font-family: var(--display); font-size: 30px; font-weight: 750; line-height: 1.1; }
.royal-balance-label { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .7px; margin-top: 4px; }
.royal-section { padding: 14px 0; border-bottom: 1px solid var(--stroke); }
.royal-section:last-of-type { border-bottom: none; }
.royal-title { color: var(--warn); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.royal-plan { padding: 5px 0; }
.royal-plan-name { color: var(--text); font-size: 15px; font-weight: 600; }
.royal-plan-meta { color: var(--muted); font-size: 13px; }
.royal-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 3px 0; }
.royal-line .k { color: var(--dim); font-size: 13px; }
.royal-line .v { color: var(--text); font-size: 15px; font-weight: 600; text-align: right; }
.royal-big { color: var(--text); font-size: 22px; font-weight: 700; }
.royal-muted { color: var(--dim); font-size: 12px; }

/* Финальный расчёт и проверка материалов */
.wb-final-price { margin-top: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(124,108,240,.16), rgba(102,178,255,.10)); border: 1px solid rgba(124,108,240,.35); font-family: var(--display); font-size: 18px; font-weight: 750; }
.wb-final-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--muted); font-size: 14px; }
.wb-final-row b { color: var(--text); font-weight: 650; }
.materials-review { max-height: 78vh; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-right: 4px; }
.material-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; }
.material-media { aspect-ratio: 16/9; background: #05070c; display: grid; place-items: center; }
.material-media img, .material-media video { width: 100%; height: 100%; object-fit: cover; }
.material-body { padding: 12px; }
.material-body .mtext { color: var(--text); font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
.material-body textarea { min-height: 90px; margin-bottom: 8px; }

/* Стеклянные кнопки левой панели Workspace */
.step-btn {
  background: linear-gradient(135deg, rgba(124,108,240,.32), rgba(102,178,255,.18));
  border: 1px solid rgba(150,170,230,.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(8,14,30,.22);
}
.step-btn:hover {
  background: linear-gradient(135deg, rgba(124,108,240,.45), rgba(102,178,255,.28));
  border-color: rgba(165,185,225,.42);
}
.step-btn.active {
  border-color: rgba(62,230,168,.55);
  background: linear-gradient(180deg, rgba(62,230,168,.18), rgba(62,230,168,.04));
  box-shadow: inset 0 0 0 1px rgba(62,230,168,.22), 0 0 20px rgba(62,230,168,.18);
}
.step-btn.active .ic,
.step-btn.active .tx b,
.step-btn.active .tx small {
  color: var(--accent);
}

.step-btn.primary {
  background: linear-gradient(135deg, #ff5f6d, #ff2e4d);
  border: none;
  color: #fff;
}
.step-btn.primary:hover {
  background: linear-gradient(135deg, #ff7480, #ff3b5a);
  box-shadow: 0 10px 28px rgba(255,46,77,.36);
}
.step-btn.primary .ic,
.step-btn.primary .tx b,
.step-btn.primary .tx small {
  color: #fff;
}

/* ---------- WEB REDESIGN: premium graphite/smoke ---------- */
:root {
  --bg: #12161f;
  --bg-deep: #0b0e15;
  --surface: rgba(28, 33, 45, 0.78);
  --surface-2: rgba(35, 41, 55, 0.74);
  --surface-3: rgba(45, 52, 69, 0.86);
  --surface-hover: rgba(52, 60, 80, 0.82);
  --stroke: rgba(182, 192, 210, 0.12);
  --stroke-strong: rgba(182, 192, 210, 0.22);
  --text: #f2f4f7;
  --muted: #9aa6b2;
  --dim: #727d8b;
  --brand: #8b7cf7;
  --brand-2: #6d78c9;
  --accent: #d7b36a;
  --warn: #d7b36a;
  --danger: #a4475c;
}

body {
  background:
    radial-gradient(1100px 650px at 10% -8%, rgba(139, 124, 247, 0.12), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(109, 120, 201, 0.08), transparent 58%),
    linear-gradient(155deg, #161c28 0%, var(--bg) 50%, var(--bg-deep) 100%);
}

.topbar {
  background: rgba(14, 17, 25, 0.72);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
}

.topbar,
.top-nav {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.topbar {
  padding-top: 14px;
  padding-bottom: 8px;
}

.top-nav {
  position: sticky;
  top: 66px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 24px;
  padding-top: 4px;
  padding-bottom: 10px;
}

.top-nav .nav-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.top-nav .nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}

.top-nav .nav-item.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(139, 124, 247, 0.16), rgba(109, 120, 201, 0.08));
  border-color: rgba(139, 124, 247, 0.22);
}

.shell {
  display: block;
}

.content {
  max-width: 1560px;
  margin: 0 auto;
}

.card,
.wb-section,
.wb-status,
.wb-logpanel,
.wb-montage {
  background: linear-gradient(145deg, rgba(34, 40, 54, 0.82), rgba(20, 25, 36, 0.82));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.workbench {
  flex-direction: column;
}

.wb-config {
  width: auto;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.config-card {
  min-height: 116px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(34, 40, 54, 0.82), rgba(20, 25, 36, 0.82));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.config-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 192, 210, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 42px rgba(0, 0, 0, 0.24);
}

.config-card .ic {
  width: 34px;
  height: 34px;
}

.config-card .ic svg {
  width: 22px;
  height: 22px;
}

.config-card .tx {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.config-card .tx b {
  font-size: 14px;
  font-weight: 650;
}

.config-card .tx small {
  font-size: 11px;
}

.config-cta-wrap {
  margin-top: 14px;
}

.config-cta-wrap .step-btn {
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  font-size: 16px;
}

.create-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-head {
  width: 100%;
}

.create-project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.create-project-card .input {
  min-width: 280px;
  flex: 1;
}

.create-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.create-steps {
  width: 100%;
}

.step-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.config-card {
  position: relative;
}

.create-primary-action {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.create-primary-action .step-btn {
  width: 100%;
  min-height: 68px;
  border-radius: 20px;
  font-size: 16px;
}

.create-status-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(460px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.release-card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(31, 37, 51, 0.9), rgba(18, 23, 34, 0.9));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.24);
}

.release-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.release-title {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.5px;
}

.page-title,
.wb-section > .wb-title {
  font-family: var(--display);
  letter-spacing: .1px;
}

.release-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.release-head-actions,
.production-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.release-project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.release-project-row .label {
  margin: 0;
}

.release-project-row .input {
  max-width: 520px;
}

.release-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.release-launch {
  margin-top: 18px;
}

.release-launch .step-btn {
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  font-size: 16px;
}

.production-controls {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(31, 37, 51, 0.78), rgba(18, 23, 34, 0.78));
  border: 1px solid var(--stroke);
}

.production-controls .control {
  min-width: 220px;
  flex: 1;
}

.production-controls .label {
  margin-bottom: 6px;
}

.production-panel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 37, 51, 0.86), rgba(18, 23, 34, 0.86));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px rgba(0, 0, 0, 0.2);
}

.production-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 900px) {
  .release-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

@media (max-width: 640px) {
  .release-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .release-card-head,
  .production-head {
    flex-direction: column;
  }

  .production-controls {
    flex-direction: column;
  }
}

.wb-status,
.wb-montage,
.wb-logpanel {
  grid-column: auto;
}

/* Compact one-screen production layout */
.release-card,
.production-controls,
.production-panel {
  max-width: none;
  width: min(1560px, 94%);
  margin-left: auto;
  margin-right: auto;
}

.release-card {
  padding: 16px 18px;
  position: relative;
}

.production-panel,
.production-controls {
  position: relative;
}

.release-card::before,
.production-panel::before,
.production-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%);
  opacity: .7;
  pointer-events: none;
}

.release-grid {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(185px, 1fr));
}

.config-card {
  min-height: 82px;
  padding: 11px 13px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(42, 49, 70, 0.86), rgba(24, 29, 43, 0.86));
}

.config-card .ic {
  width: 30px;
  height: 30px;
}

.config-card .ic svg {
  width: 19px;
  height: 19px;
}

.config-card .tx {
  gap: 3px;
}

.config-card .tx b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
}

.config-card .tx small {
  font-size: 10px;
  line-height: 1.25;
}

.config-card.active {
  border-color: rgba(52, 211, 153, 0.42);
  background: linear-gradient(145deg, rgba(42, 148, 112, 0.32), rgba(20, 72, 58, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(52, 211, 153, 0.14);
}

.config-card.active .ic,
.config-card.active .tx b,
.config-card.active .tx small,
.config-card.active .step-num {
  color: #c9f7e5;
}

.config-cta-card {
  min-height: 82px;
}

.config-cta-card:disabled {
  background: linear-gradient(145deg, rgba(28, 33, 45, 0.72), rgba(18, 22, 32, 0.72));
  border-color: var(--stroke);
  box-shadow: none;
  color: var(--muted);
}

.config-cta-card:disabled .ic,
.config-cta-card:disabled .tx b,
.config-cta-card:disabled .tx small {
  color: var(--muted);
}

.production-controls {
  gap: 10px;
  padding: 10px 12px;
}

.production-controls .control {
  min-width: 180px;
}

.review-control {
  min-width: 200px;
}

.review-control .btn {
  width: 100%;
  justify-content: center;
}

.production-panel {
  gap: 10px;
  padding: 14px 16px;
}

.production-panel .wb-log {
  max-height: 190px;
  overflow-y: auto;
}

.wb-right {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: start;
}

.wb-status {
  grid-row: span 2;
}

.wb-montage,
.wb-logpanel {
  grid-column: 2;
}

.btn.primary,
.step-btn.primary {
  background: linear-gradient(135deg, #8b7cf7, #6d78c9);
  box-shadow: 0 12px 30px rgba(139, 124, 247, 0.22);
}

.btn.primary:hover,
.step-btn.primary:hover {
  background: linear-gradient(135deg, #9b8cff, #7c87d8);
}

.step-btn.active {
  border-color: rgba(215, 179, 106, 0.42);
  background: linear-gradient(180deg, rgba(215, 179, 106, 0.14), rgba(215, 179, 106, 0.03));
  box-shadow: inset 0 0 0 1px rgba(215, 179, 106, 0.18);
}

.step-btn.active .ic,
.step-btn.active .tx b,
.step-btn.active .tx small {
  color: var(--accent);
}
