/* ===========================================================================
   VeraPlatform — «Creator Studio» theme
   Тёмная атмосферная тема, тёплый коралловый акцент.
   Дисплей: Unbounded · Текст: Golos Text (обе с кириллицей).
   =========================================================================== */
:root {
  --bg: #0a0b10;
  --bg-soft: #0f1118;
  --card: #14161f;
  --card-2: #1c1f2b;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f4f2ef;
  --muted: #9a9aa8;
  --accent: #ff5a4d;          /* коралл */
  --accent-2: #ff9b42;        /* тёплый янтарь (для градиентов) */
  --cool: #7c9cff;            /* холодный — выбор/ссылки */
  --ok: #46d39a;
  --grad: linear-gradient(135deg, #ff5a4d 0%, #ff8a3d 100%);
  --radius: 16px;
  --shadow: 0 18px 50px -12px rgba(0,0,0,.6);
  --shadow-sm: 0 6px 18px -8px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; letter-spacing: .1px;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(255,90,77,.16), transparent 62%),
    radial-gradient(800px 500px at 100% 0%, rgba(255,155,66,.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo { font-family: "Unbounded", sans-serif; letter-spacing: -.01em; }

/* ---- Reveal on load ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.container > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.container > *:nth-child(2) { animation-delay: .05s; }
.container > *:nth-child(3) { animation-delay: .10s; }
.container > *:nth-child(4) { animation-delay: .15s; }
.container > *:nth-child(5) { animation-delay: .20s; }
@media (prefers-reduced-motion: reduce) { .container > * { animation: none; } }

/* ---- Header ---- */
.topbar { padding: 16px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(10,11,16,.6); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo .ic { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--text);
  cursor: pointer; padding: 6px; border-radius: 10px; align-items: center; }
.nav-toggle:hover { background: var(--card-2); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav-link:hover { color: var(--text); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); }

.ic { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }

/* ---- Layout ---- */
.container { max-width: 860px; margin: 0 auto; padding: 40px 18px 72px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 28px; }

/* ---- Hero ---- */
.hero { text-align: center; margin-bottom: 30px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; font-weight: 800;
  margin: 0 0 16px; }
.hero h1 .acc { background: var(--grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 17px; }

/* ---- Steps strip ---- */
.steps-strip { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 160px; background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px;
  color: var(--text); display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-sm); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 13px; flex: 0 0 auto; box-shadow: 0 4px 12px -2px rgba(255,90,77,.5); }

/* ---- Cards ---- */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; display: flex;
  align-items: center; gap: 9px; }
.block { margin-bottom: 8px; }
.block-title { display: block; font-weight: 600; margin-bottom: 9px; font-family: "Unbounded"; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: 7px 0 0; }
.center { text-align: center; }
.or { text-align: center; color: var(--muted); margin: 16px 0; font-size: 13px;
  text-transform: uppercase; letter-spacing: .2em; }

/* ---- Inputs ---- */
input[type=url], input[type=text], .field select {
  width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-soft); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; }
input[type=url]:focus, input[type=text]:focus, .field select:focus, textarea.textbox:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,77,.15); }
.filedrop { display: flex; align-items: center; justify-content: center; min-height: 96px;
  border: 2px dashed var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--muted);
  transition: border-color .15s, background .15s; padding: 14px; text-align: center; }
.filedrop:hover { border-color: var(--accent); background: rgba(255,90,77,.04); }
.filedrop input { display: none; }

/* ---- Buttons ---- */
.btn-primary { display: block; width: 100%; margin-top: 20px; padding: 16px;
  background: var(--grad); color: #fff; border: none; border-radius: 12px;
  font-family: "Unbounded"; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; text-align: center; box-shadow: 0 10px 26px -8px rgba(255,90,77,.55);
  transition: transform .12s, box-shadow .12s, filter .12s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -8px rgba(255,90,77,.65); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: default; box-shadow: none; transform: none; }
.btn-primary.inline { display: inline-block; width: auto; }
.btn-secondary { color: var(--text); text-decoration: none; border: 1px solid var(--line-strong);
  padding: 9px 16px; border-radius: 10px; font-size: 14px; transition: border-color .15s, background .15s;
  display: inline-block; background: var(--card-2); }
.btn-secondary:hover { border-color: var(--cool); }
.btn-secondary.inline { width: auto; }
.btn-clip .ic, .btn-secondary .ic, .btn-primary .ic { margin-right: 6px; }

/* Google / login button */
.btn-google { background: #fff; color: #14161f; text-decoration: none; padding: 10px 18px;
  border-radius: 11px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center;
  gap: 8px; transition: transform .12s, box-shadow .12s; box-shadow: var(--shadow-sm); }
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); }
.btn-google .ic { color: var(--accent); }
.btn-google.big { padding: 15px 30px; font-size: 16px; margin: 18px 0 4px; font-family: "Unbounded"; }

/* ---- Login gate / CTA ---- */
.login-gate { text-align: center; background:
   radial-gradient(600px 200px at 50% 0%, rgba(255,90,77,.10), transparent 70%), var(--card); }
.login-gate h3 { font-size: 22px; margin-bottom: 8px; justify-content: center; }
.gate-privacy { font-size: 13px; color: var(--muted); max-width: 480px; margin: 8px auto 0; line-height: 1.5; }
.gate-privacy .ic { color: var(--ok); vertical-align: -0.12em; margin-right: 4px; }
.gate-benefits { list-style: none; padding: 0; margin: 20px auto 0; max-width: 480px; text-align: left; }
.gate-benefits li { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0;
  color: var(--text); font-size: 14.5px; border-top: 1px solid var(--line); }
.gate-benefits .ic { color: var(--ok); flex: 0 0 auto; margin-top: 2px; }
.login-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-color: var(--cool); flex-wrap: wrap; margin-top: 18px; }
.login-cta-text { flex: 1; min-width: 200px; }
.login-cta-text b { display: block; margin-bottom: 4px; }

/* ---- Status ---- */
.status-card { padding: 36px 30px; }
.status-card h2 { margin: 0 0 6px; font-size: 22px; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 26px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 13px; padding: 11px 0; color: var(--muted); position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 32px;
  width: 2px; height: 22px; background: var(--line); }
.steps .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line);
  flex: 0 0 auto; background: var(--bg); z-index: 1; }
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); }
.steps li.done .dot::after { content: "✓"; color: #06281c; font-size: 12px; display: block;
  text-align: center; line-height: 16px; font-weight: 700; }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.steps li.pending { opacity: .5; }
.progress-wrap { margin-top: 24px; }
.progress-bar { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 2%; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 13px; color: var(--muted); }

/* ---- Result ---- */
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.result-head h1 { font-size: 26px; margin: 0; display: inline-flex; align-items: center; gap: 11px; }
.tag { font-size: 11px; color: var(--muted); font-weight: 400; font-family: "Golos Text";
  text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; }
.note { background: linear-gradient(180deg, rgba(255,155,66,.10), transparent), #1a1710;
  border: 1px solid rgba(255,155,66,.3); color: #f0d29a; padding: 13px 15px;
  border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.note .ic { vertical-align: -0.18em; margin-right: 4px; }
.ok-msg { color: var(--ok); font-weight: 600; }
.ok-msg .ic { vertical-align: -0.18em; margin-right: 4px; color: var(--ok); }
.hint.err { color: #ff9b9b; }
.publish-card { border-color: rgba(255,90,77,.35); background:
   radial-gradient(500px 160px at 0% 0%, rgba(255,90,77,.08), transparent 70%), var(--card); }
.publish-running { display: flex; align-items: center; gap: 12px; color: var(--text); margin-top: 8px; }
.spinner.small { width: 22px; height: 22px; border-width: 3px; margin: 0; }

.copyrow { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.copyrow:last-child { border-bottom: none; }
.copytext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.radio-line { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; cursor: pointer; }
.radio-line input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.js-copy { background: var(--card-2); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 8px 13px; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s; font-family: inherit; }
.js-copy:hover { border-color: var(--cool); }
.js-copy.copied { color: var(--ok); border-color: var(--ok); }
.js-copy.right { margin-left: auto; }

.textbox { background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 15px; white-space: pre-wrap; word-wrap: break-word; font-family: inherit;
  font-size: 14px; margin: 0; max-height: 420px; overflow: auto; color: var(--text); }
.textbox.small { max-height: 160px; }
.transcript { max-height: 300px; color: var(--muted); font-size: 13px; }
textarea.textbox { width: 100%; font-family: inherit; color: var(--text); background: var(--bg-soft);
  caret-color: var(--accent); -webkit-text-fill-color: var(--text); }
.textbox.edit { resize: vertical; outline: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.pill { display: inline-block; background: var(--card-2); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 15px; margin: 4px 6px 4px 0; font-size: 14px; }
.kv { padding: 5px 0; color: var(--muted); }
.kv b { color: var(--text); }
.subtitle { color: var(--muted); font-size: 13px; margin: 16px 0 9px; }
.text-variants { display: flex; flex-wrap: wrap; }

/* ---- Shorts ---- */
.short { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.short:last-child { border-bottom: none; }
.short.teaser { background: rgba(124,156,255,.06); border-radius: 10px; padding: 13px; }
.short-time { min-width: 110px; color: var(--cool); font-weight: 600; font-size: 14px; }
.short-title { font-weight: 600; }
.short-hook { color: var(--muted); font-size: 14px; margin: 3px 0; }
.short-snippet { font-size: 13px; color: var(--text); background: var(--bg-soft);
  border-left: 3px solid var(--accent); border-radius: 8px; padding: 9px 11px; margin: 7px 0;
  font-style: italic; opacity: .92; }
.short-tags { font-size: 13px; color: var(--cool); }
.short-actions { display: flex; align-items: center; gap: 12px; margin-top: 11px; flex-wrap: wrap; }
.clip-preview { display: block; width: 170px; max-width: 60%; height: auto; aspect-ratio: 9/16;
  object-fit: cover; border-radius: 10px; background: #000; }
.btn-clip { background: var(--card-2); border: 1px solid var(--line-strong); color: var(--text);
  text-decoration: none; padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: border-color .15s; }
.btn-clip:hover { border-color: var(--cool); }

/* ---- Frames / thumbnails ---- */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.frame { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .15s, transform .15s; }
.frame:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.frame img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.frame figcaption { display: flex; justify-content: space-between; padding: 9px 11px; font-size: 13px; color: var(--muted); }
.frame .dl { color: var(--cool); text-decoration: none; }

/* ---- Cover builder ---- */
.builder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.builder-preview img { width: 100%; border-radius: 12px; display: block; background: #000;
  aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.builder-preview .btn-secondary.inline, .builder-preview .btn-primary.inline { margin-top: 12px; width: 100%; text-align: center; }
.ctrl-label { font-weight: 600; margin: 14px 0 8px; font-size: 13px; font-family: "Unbounded";
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-frame { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; transition: border-color .12s; }
.choice-frame:hover { border-color: var(--line-strong); }
.choice-frame.sel { border-color: var(--cool); }
.choice-text, .choice-layout { background: var(--card-2); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 9px; padding: 8px 13px; cursor: pointer; font-size: 13px;
  font-family: inherit; transition: border-color .12s, background .12s; }
.choice-text { text-align: left; max-width: 100%; }
.choice-text.sel, .choice-layout.sel { border-color: var(--cool); background: rgba(124,156,255,.16); }
@media (max-width: 640px) { .builder { grid-template-columns: 1fr; } }

/* ---- Brand-book ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
.field input[type=color] { width: 58px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--bg-soft); cursor: pointer; vertical-align: middle; }
.field input[type=file] { color: var(--muted); font-size: 13px; }

.error-box { background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 15px; white-space: pre-wrap; color: #ff9b9b; font-size: 13px; text-align: left; }
details summary { cursor: pointer; color: var(--muted); font-weight: 500; }
details summary:hover { color: var(--text); }

/* ---- Мои видео ---- */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { display: flex; align-items: center; gap: 14px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s; }
.job-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.job-thumb { position: relative; width: 96px; flex: 0 0 96px; aspect-ratio: 16/9;
  border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #2a2230, #161821);
  display: flex; align-items: center; justify-content: center; }
.job-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-thumb-ic { color: var(--muted); opacity: .5; }
.job-info { flex: 1; min-width: 0; }
.job-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-bottom: 8px; }
.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-go { color: var(--muted); font-size: 20px; flex: 0 0 auto; padding-right: 6px; transition: color .15s, transform .15s; }
.job-card:hover .job-go { color: var(--accent); transform: translateX(3px); }
.badge { font-size: 12px; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; }
.badge .ic { vertical-align: -.12em; }
.badge.ok { background: rgba(70,211,154,.15); color: var(--ok); }
.badge.err { background: rgba(255,90,77,.15); color: #ff9b9b; }
.badge.run { background: rgba(124,156,255,.15); color: var(--cool); }
.badge.ytb { background: rgba(255,90,77,.12); color: var(--accent); }

/* ===== Мобильная адаптация ===== */
@media (max-width: 600px) {
  .topbar { padding: 13px 16px; }
  .logo { font-size: 15px; }
  .container { padding: 26px 14px 56px; }
  .sub { font-size: 15px; }
  .card { padding: 16px; border-radius: 14px; }
  .card h3 { font-size: 15px; flex-wrap: wrap; }

  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--card);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60; }
  .nav.open { display: flex; }
  .topbar { position: sticky; }
  .nav .nav-link, .nav .user-chip { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 15px; width: 100%; }
  .nav .btn-google { margin: 12px 18px; justify-content: center; }

  .js-copy, .choice-text, .choice-layout, .btn-secondary { min-height: 42px; padding: 10px 14px; }
  .copyrow { flex-wrap: wrap; }
  .js-copy.right { margin-left: 0; }
  .card h3 .js-copy.right { margin-left: auto; }

  .short { flex-direction: column; gap: 6px; }
  .short-time { min-width: 0; }
  .short-actions { gap: 8px; flex-direction: column; align-items: stretch; }
  .clip-preview { width: 200px; max-width: 70%; }
  .btn-clip { text-align: center; }

  .result-head { flex-wrap: wrap; gap: 10px; }
  .result-head h1 { font-size: 21px; }
  .builder-preview .btn-secondary.inline { width: 100%; }
  .choice-frame { width: 80px; }
  .field input[type=color] { width: 64px; height: 44px; }
  .job-thumb { width: 76px; flex-basis: 76px; }
  .job-name { font-size: 14px; }
  .frames { grid-template-columns: 1fr 1fr; gap: 8px; }
  .textbox { font-size: 13px; padding: 13px; }
}
@media (max-width: 380px) { .frames { grid-template-columns: 1fr; } }

/* =================== Лендинг гостя (редакторский) =================== */
.app-head { margin-bottom: 18px; }
.app-head h1 { font-size: 28px; margin: 0 0 6px; }
.sub-left { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; margin: 16px 0 56px; }
.hero-copy { text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  border: 1px solid rgba(255,90,77,.3); background: rgba(255,90,77,.07);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow .ic { color: var(--accent); }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; font-weight: 800; margin: 0 0 20px; }
.hero-copy .acc { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy .sub-left { font-size: 17px; margin-bottom: 26px; }
.hero-copy .btn-google.big { margin: 0 0 12px; }

/* ---- Product preview (money shot) ---- */
.hero-preview { position: relative; }
.pv-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; text-align: center; }
.pv-input { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; }
.pv-input .ic { color: var(--cool); }
.pv-input span { color: var(--muted); }
.pv-flow { font-size: 12px; color: var(--muted); margin: 8px 0 8px 14px;
  padding-left: 14px; border-left: 2px dashed var(--line-strong); }
.pv-flow .ic { color: var(--accent); vertical-align: -.12em; margin-right: 4px; }
.preview-card { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--card);
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); }
.pv-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(0,0,0,.05) 30%, rgba(8,9,14,.72) 100%), url(/static/demo.jpg);
  background-size: cover; background-position: center;
  display: flex; align-items: center; }
.pv-wordmark { position: absolute; top: 14px; left: 16px; font-family: "Unbounded"; font-weight: 700;
  font-size: 17px; color: #2ed9c4; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pv-thumb-text { margin-left: auto; margin-right: 18px; padding-left: 16px;
  border-left: 6px solid #2ed9c4; font-family: "Unbounded"; font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.04; color: #fff; text-align: left;
  text-shadow: 0 3px 14px rgba(0,0,0,.7); }
.pv-row { margin-top: 14px; }
.pv-title { font-weight: 600; font-size: 14px; color: var(--text); }
.pv-section { font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 14px 0 7px; }
.pv-line { font-size: 13px; color: var(--text); padding: 3px 0; }
.pv-line b { color: var(--accent); font-family: "Golos Text"; margin-right: 8px; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pv-tags span { font-size: 12px; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.pv-shorts { display: flex; gap: 8px; }
.pv-short { width: 46px; aspect-ratio: 9/16; border-radius: 7px;
  background: linear-gradient(160deg, #3a2a4a, #1a1d2b); border: 1px solid var(--line-strong); }
.pv-short:nth-child(2) { background: linear-gradient(160deg, #2a3a4a, #1a1d2b); }
.pv-short:nth-child(3) { background: linear-gradient(160deg, #4a2a2a, #1a1d2b); }

/* ---- How it works ---- */
.how { margin: 8px 0 28px; }
.how-title { text-align: center; font-size: 24px; margin: 0 0 22px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 18px; box-shadow: var(--shadow-sm); }
.how-card .step-num { margin-bottom: 12px; }
.how-card b { display: block; font-family: "Unbounded"; font-size: 15px; margin-bottom: 6px; }

.final-cta { text-align: center; background:
  radial-gradient(600px 200px at 50% 0%, rgba(255,90,77,.10), transparent 70%), var(--card); }
.final-cta h3 { justify-content: center; font-size: 21px; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 44px); }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-copy .sub-left { margin-left: auto; margin-right: auto; }
  .how-grid { grid-template-columns: 1fr; }
}

/* Пустой экран / внутренние eyebrow */
.empty-state { padding: 44px 24px; text-align: center; }
.empty-ic { color: var(--muted); opacity: .45; margin-bottom: 12px; }
.empty-state h3 { justify-content: center; font-size: 18px; margin-bottom: 6px; }
.empty-state .btn-primary.inline { margin-top: 18px; }
.result-head + .note, .eyebrow + .result-head { margin-top: 0; }
.status-card .eyebrow { margin-bottom: 14px; }

/* ===== Результат: 2 колонки + липкая панель (Opus/Creator вайб) ===== */
.result-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 24px; align-items: start;
  width: min(1180px, 94vw); position: relative; left: 50%; transform: translateX(-50%); }
.result-main { min-width: 0; }
.result-aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.result-aside .card { margin-bottom: 0; }
/* В узкой панели конструктор обложки складываем вертикально, превью крупно */
.result-aside .builder { grid-template-columns: 1fr; gap: 14px; }
.result-aside .builder-preview img { box-shadow: 0 24px 60px -18px rgba(255,90,77,.35); }
.result-aside .choice-frame { width: 72px; }
/* Публикация — акцентная панель действия */
.publish-card { border-color: rgba(255,90,77,.45);
  background: radial-gradient(440px 220px at 50% -10%, rgba(255,90,77,.16), transparent 70%), var(--card);
  box-shadow: 0 18px 50px -16px rgba(255,90,77,.25); }
.publish-card .btn-primary.inline { width: 100%; margin-top: 14px; }

@media (max-width: 920px) {
  .result-layout { grid-template-columns: 1fr; width: auto; left: auto; transform: none; }
  .result-aside { position: static; }
}

/* Липкая мобильная кнопка публикации */
.mobile-publish-bar { display: none; }
@media (max-width: 920px) {
  .mobile-publish-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); z-index: 70;
    background: linear-gradient(180deg, transparent, rgba(10,11,16,.92) 30%);
    backdrop-filter: blur(10px); }
  .mobile-publish-bar .btn-primary { margin: 0; box-shadow: 0 8px 30px -6px rgba(255,90,77,.7); }
  body { padding-bottom: 78px; }
}

/* Мобильный конструктор обложки: превью «прилипает» вверху, пока крутишь настройки */
@media (max-width: 920px) {
  #cover-builder .builder-preview {
    position: sticky; top: 54px; z-index: 6;
    background: var(--card); padding: 8px 0 12px; margin-bottom: 6px;
    box-shadow: 0 14px 18px -14px rgba(0,0,0,.7); }
  #cover-builder .builder-preview img { max-height: 40vh; width: auto; max-width: 100%;
    margin: 0 auto; }
  #cover-builder .builder-preview .btn-secondary.inline { width: 100%; }
}

/* Шаги «как взять ссылку» */
.how-steps { list-style: none; padding: 0; margin: 0; }
.how-steps li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; font-size: 15px; }
.how-steps .step-num { margin-top: 1px; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: 13px; font-family: ui-monospace, monospace; }

/* Пикер видео из папки */
.pick-form { margin: 0; }
.pick-card { width: 100%; text-align: left; cursor: pointer; font: inherit; }
button.job-card { font-family: inherit; }

.upload-progress { margin-top: 14px; }
