:root {
  --bg: #0b0c10; --panel: #15171d; --line: #262a33; --text: #f2f3f5; --muted: #9aa0ab;
  --accent: #ffd400; --accent-ink: #111; --ok: #3ddc84; --bad: #ff5d5d; --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo b { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); padding: 10px 16px; border-radius: 10px; font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #3a3f4a; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* landing */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.steps, .plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 32px 0; }
.steps .num { color: var(--accent); font-weight: 800; font-size: 14px; }
.steps h3, .plans h3 { margin: 6px 0; }
.plan .price { font-size: 36px; font-weight: 800; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; color: var(--muted); }
.plan.best { border-color: var(--accent); }
section h2 { font-size: 28px; margin: 56px 0 0; text-align: center; }
footer { color: var(--muted); padding: 48px 0; text-align: center; font-size: 14px; }

/* cabinet */
.auth { max-width: 380px; margin: 64px auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; }
.tabs button.on { border-color: var(--accent); }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #0f1115; color: var(--text); font: inherit; }
.err { color: var(--bad); min-height: 22px; font-size: 14px; margin-top: 10px; }
.usage { font-size: 14px; color: var(--muted); }
.usage b { color: var(--text); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 16px; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--accent); background: #1a1c12; }
.drop strong { display: block; font-size: 18px; margin-bottom: 4px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.jobs { display: grid; gap: 16px; margin: 24px 0 64px; }
.job { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.job video { width: 180px; aspect-ratio: 9/16; background: #000; border-radius: 10px; object-fit: cover; }
.job .ph { width: 180px; aspect-ratio: 9/16; border-radius: 10px; background: #0f1115; display: grid;
  place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.job h3 { margin: 0 0 4px; font-size: 17px; word-break: break-word; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.badge.done { color: var(--ok); border-color: var(--ok); }
.badge.failed { color: var(--bad); border-color: var(--bad); }
.caption { background: #0f1115; border-radius: 10px; padding: 12px; white-space: pre-wrap; font-size: 14px; margin: 10px 0; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; display: inline-block; animation: s 1s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .job { grid-template-columns: 1fr; }
  .job video, .job .ph { width: 100%; max-width: 260px; }
}
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
label.check input { width: auto; }

/* Motion identity */
:root {
  --bg: #0c0b12; --panel: #17151f; --line: #35313f; --text: #f9f6ff;
  --muted: #b9b3c6; --accent: #d8ff3e; --accent-ink: #171a00;
  --violet: #a998ff; --radius: 20px;
  font-family: "Inter", system-ui, sans-serif;
}
body {
  background: radial-gradient(ellipse at 88% 4%, #25163c 0%, transparent 42rem), var(--bg);
  min-height: 100vh;
}
.wrap { width: min(100% - 48px, 1240px); max-width: none; padding: 0; }
header.top { min-height: 80px; border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; font-size: 24px; font-weight: 900; letter-spacing: -.06em; }
.logo-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 9px;
  color: var(--accent-ink); background: var(--accent); border-radius: 9px;
  font-size: 14px; transform: rotate(-8deg);
}
.btn { border-radius: 11px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.btn:hover:not(:disabled) { border-color: var(--violet); transform: translateY(-2px); }
.btn.primary:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 4px 24px #d8ff3e35; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 4vw, 64px); text-align: left; padding: 70px 0 55px;
}
.hero-copy { animation: enter .65s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { font-size: clamp(41px, 5.5vw, 83px); line-height: .99; letter-spacing: -.077em; margin: 23px 0 24px; }
.hero h1 em { color: var(--violet); }
.hero p { margin: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.eyebrow span, .stage-head i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero .hero-note { max-width: 475px; font-size: clamp(15px, 1.45vw, 19px); margin-bottom: 26px; }
.hero-cta { padding: 13px 18px; gap: 24px; }
.hero .trial { color: var(--muted); font-size: 12px; margin-top: 12px; }

.motion-stage {
  margin: 0; border: 1px solid #615078; border-radius: 22px; padding: 13px;
  background: #15111d; box-shadow: 0 24px 80px #05040899;
  animation: enter .8s .08s both;
}
.stage-head, .track-label { display: flex; justify-content: space-between; align-items: center; }
.stage-head { padding: 0 3px 9px; color: #dad0f0; font: 700 10px ui-monospace, monospace; letter-spacing: .08em; }
.stage-head i { width: 6px; height: 6px; margin-right: 5px; }
.motion-toggle { background: #292135; color: var(--text); border: 1px solid #4a3e5a; border-radius: 6px; min-width: 30px; min-height: 26px; cursor: pointer; }
.stage-screen {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  height: clamp(245px, 29vw, 390px); border-radius: 12px;
  background: repeating-linear-gradient(0deg, transparent 0 24px, #a998ff14 25px 26px),
              repeating-linear-gradient(90deg, transparent 0 24px, #a998ff14 25px 26px),
              radial-gradient(ellipse at center, #583d83, #1b142a 72%);
}
.edit-frame, .frame-ghost {
  position: absolute; height: 88%; aspect-ratio: 9 / 16; border-radius: 10px; border: 1px solid #d4c8f5;
}
.frame-ghost { transform: translateX(-12%) rotate(-10deg); background: #a998ff2c; }
.edit-frame {
  display: grid; align-items: end; padding-bottom: 15%; overflow: hidden;
  background: linear-gradient(0deg, #0b0619d9, transparent 55%),
    url("/static/motion-portrait.webp") center 44% / cover,
    radial-gradient(ellipse at 60% 32%, #ae83ff 0%, #3d205e 65%);
  animation: frame-cut 7s infinite;
}
.frame-format { position: absolute; top: 10px; left: 10px; background: #150f21cc; padding: 3px 6px; border-radius: 4px; font: 11px ui-monospace, monospace; }
.demo-caption { color: white; text-align: center; font-size: clamp(15px, 1.75vw, 24px); line-height: 1; font-weight: 950; text-shadow: 0 2px 7px black; animation: caption-pop 7s infinite; }
.demo-caption b { display: block; margin: 3px auto 0; padding: 4px 6px; width: fit-content; background: var(--accent); color: var(--accent-ink); text-shadow: none; transform: rotate(-5deg); }
.edit-tag, .cut-tag { position: absolute; font: 800 clamp(8px, 1vw, 11px) ui-monospace, monospace; padding: 7px 8px; border-radius: 5px; white-space: nowrap; }
.edit-tag { top: 22%; right: 4%; color: #1c1034; background: #c7b2ff; animation: float-tag 7s infinite; }
.cut-tag { bottom: 20%; left: 3%; color: #181b00; background: var(--accent); animation: float-tag 7s 1s infinite; }
.timeline { position: relative; padding: 11px 6px 2px; }
.track-label { color: #bcb1cd; font: 10px ui-monospace, monospace; margin-bottom: 6px; }
.track-clips { display: grid; grid-template-columns: 3fr 1fr 2fr 1.6fr; gap: 4px; height: 19px; }
.track-clips i { border-radius: 4px; background: repeating-linear-gradient(90deg, #7555bd 0 5px, #815fc5 5px 8px); border: 1px solid #a988ee; }
.track-clips i:nth-child(2) { background: #292137; border: 1px dashed #807292; animation: cut-beat 7s infinite; }
.track-audio { margin-top: 5px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, #a8ce41 0 2px, #475822 2px 5px, #728934 5px 7px); opacity: .7; }
.playhead { position: absolute; left: 2%; top: 24px; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: scan 7s linear infinite; }
.playhead::before { content: ""; position: absolute; top: 0; left: -3px; width: 8px; height: 5px; background: var(--accent); border-radius: 2px; }
.motion-stage.paused *, .motion-stage.paused *::before { animation-play-state: paused !important; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frame-cut { 0%, 29%, 100% { transform: scale(.96) rotate(-3deg); } 35%, 74% { transform: scale(1.02) rotate(2deg); } 81% { transform: scale(.98) rotate(-3deg); } }
@keyframes caption-pop { 0%, 30%, 100% { transform: translateY(3px) scale(.94); } 35%, 70% { transform: translateY(0) scale(1.04); } }
@keyframes float-tag { 0%, 100% { transform: translateY(0); } 48% { transform: translateY(-8px); } }
@keyframes cut-beat { 0%, 30%, 100% { opacity: 1; } 38%, 70% { opacity: .25; } }
@keyframes scan { from { left: 2%; } to { left: 98%; } }

.destinations {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px;
  padding: 20px 12px; border-block: 1px solid var(--line); color: var(--muted); font-weight: 650;
}
section h2, .library-title { font-size: clamp(27px, 4vw, 47px); letter-spacing: -.055em; text-align: left; }
.steps, .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.steps .card { transition: border-color .25s, transform .25s; }
.steps .card:hover { border-color: var(--violet); transform: translateY(-4px); }
.step-symbol { display: inline-grid; place-items: center; background: #ad8cfd24; color: #d0bcff; width: 39px; height: 39px; border-radius: 10px; font-size: 22px; }
.plan.best { border-color: var(--violet); background: linear-gradient(140deg, #291d3c, var(--panel) 80%); }
.auth { max-width: 420px; padding: clamp(20px, 4vw, 32px); animation: enter .45s both; }
.auth h1, .workspace-intro h1 { letter-spacing: -.065em; line-height: 1; margin: 0 0 20px; font-size: clamp(30px, 5vw, 57px); }
.auth h1 { font-size: clamp(25px, 5vw, 36px); }
.workspace .wrap { max-width: 1000px; }
.workspace-intro { padding: 44px 0 16px; animation: enter .45s both; }
.workspace-intro h1 { margin: 0; }
.workspace-intro p { margin: 9px 0 0; }
.upload-card { animation: enter .5s .08s both; }
.drop { background: radial-gradient(ellipse at center, #2c2141, #181520 75%); border: 1px dashed #79689a; transition: border-color .2s, box-shadow .2s; }
.drop:hover, .drop.over { border-color: var(--accent); box-shadow: inset 0 0 38px #d8ff3e19; background: radial-gradient(ellipse at center, #303327, #181520 75%); }
.upload-glyph { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; color: var(--accent); border: 1px solid #666e3a; border-radius: 12px; font-size: 24px; transition: transform .2s; }
.drop:hover .upload-glyph { transform: translateY(-4px); }
.library-title { margin: 30px 0 0; }
.job { animation: enter .35s both; min-width: 0; }
.job > div { min-width: 0; }
.job .ph { background: linear-gradient(145deg, #2a2040, #111018); }
.badge.processing { color: #cfbbff; border-color: #9c81db; }
.publish textarea { resize: vertical; }
details[data-tiktok-form] summary { cursor: pointer; color: var(--violet); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 32px; }
  .hero h1 { font-size: clamp(39px, 9vw, 69px); }
  .motion-stage { width: min(100%, 580px); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 28px); }
  .top nav { display: none; }
  .steps, .plans { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -.065em; }
  .stage-screen { height: 245px; }
  .destinations { font-size: 13px; }
  .workspace header .row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle { visibility: hidden; }
}

.style-picker { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.style-picker legend { margin-bottom: 12px; padding: 0; font-weight: 750; font-size: 19px; }
.legend-hint { font-size: 13px; font-weight: 500; margin-left: 8px; }
.reel-carousel { position: relative; }
.reel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px;
  padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.reel { position: relative; flex: 0 0 clamp(150px, 19vw, 210px); scroll-snap-align: start; cursor: pointer;
  transition: transform .2s; }
.reel:hover { transform: translateY(-3px); }
.reel video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 16px;
  background: #110d17; border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.reel.selected video { border-color: var(--accent); box-shadow: 0 0 0 4px #d8ff3e22; }
.reel-copy { padding: 10px 2px 0; pointer-events: none; }
.reel-copy strong { display: block; font-size: 16px; }
.reel-copy small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.reel.selected .reel-copy strong { color: var(--accent); }
.reel-sound { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: #000000a0; color: #fff; font-size: 15px; cursor: pointer; }
.reel-pick { position: absolute; top: 8px; right: 8px; margin: 0; }
.reel-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reel-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #ffffffb0; background: #00000070; color: transparent; font-weight: 900; }
.reel.selected .reel-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.reel-pick input:focus-visible + .reel-check { outline: 2px solid var(--violet); outline-offset: 2px; }
.reel-arrow { position: absolute; top: 36%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #15121bdd; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.reel-arrow.prev { left: -8px; }
.reel-arrow.next { right: -8px; }
.styles-showcase .reel { flex-basis: clamp(190px, 24vw, 290px); }
.section-lead { text-align: center; max-width: 620px; margin: 10px auto 0; }
.styles-showcase #style-showcase { margin-top: 22px; }
@media (max-width: 600px) {
  .reel-arrow { display: none; }
  .reel { flex-basis: 44vw; }
  .styles-showcase .reel { flex-basis: 62vw; }
}

.trend-panel { margin: 0 0 18px; }
.trend-tools { align-items: end; }
.trend-tools label { margin-bottom: 0; }
#trend-status, .trend-item small { color: var(--muted); font-size: 13px; }
#trend-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.trend-item { background: var(--bg); border-radius: 14px; padding: 16px; overflow-wrap: anywhere; }
.trend-item h3 { margin: 7px 0; }
.trend-item a { display: block; margin-top: 9px; color: var(--violet); font-size: 13px; }
.ai-note { text-align: center; font-size: 12px; margin: 6px auto 0; }
.ideas-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ideas-head h2 { margin: 0; font-size: 21px; }
.ideas-tabs { margin: 0; }
.viral-list { display: grid; gap: 14px; }
.viral { display: grid; grid-template-columns: 128px 1fr; gap: 16px; background: var(--bg); border-radius: 14px; padding: 14px; }
.viral-thumb { position: relative; display: block; width: 128px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #110d17; }
.viral-thumb img { width: 100%; height: 100%; object-fit: cover; }
.viral-badge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.viral h3 { margin: 0 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.viral-meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.viral-meta b { color: var(--accent); }
.viral dl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.viral dt { font-weight: 700; color: var(--violet); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.viral dd { margin: 2px 0 0; }
.viral ol { margin: 4px 0 0; padding-left: 18px; }
.viral .first-line { font-weight: 650; }
.viral-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.shoot-tip { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent); background: #1c1f12; font-size: 14px; }
.shoot-tip ol { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 600px) { .viral { grid-template-columns: 96px 1fr; } .viral-thumb { width: 96px; } }
.legal-page { max-width: 760px; padding-bottom: 64px; }
.legal-page h1 { font-size: 34px; margin: 24px 0 6px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 8px; text-align: left; }
.legal-page li { margin: 6px 0; }
.legal-page a, footer a, .cabinet-foot a { color: var(--violet); }
.cabinet-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 48px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--bad); cursor: pointer; text-decoration: underline; }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.strategy-card { background: var(--bg); border-radius: 14px; padding: 16px; }
.strategy-card.wide { grid-column: 1 / -1; }
.strategy-card h3, .ideas-title { margin: 0 0 8px; font-size: 16px; }
.strategy-card ul { margin: 0 0 12px; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 99px; background: #2a2340; color: var(--violet); font-size: 13px; }
.ideas-title { margin-top: 18px; }
.idea-list { display: grid; gap: 12px; }
.idea { display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: var(--bg); border-radius: 14px; padding: 14px; }
.idea-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.idea h4 { margin: 2px 0 4px; font-size: 16px; }
.idea .first-line { font-weight: 650; margin: 6px 0; }
.idea ol { margin: 4px 0 10px; padding-left: 18px; font-size: 14px; }
@media (max-width: 700px) { .strategy-grid { grid-template-columns: 1fr; } }
.onboarding { margin: 0 0 18px; border-color: #4a3d72; background: linear-gradient(140deg, #241c37, var(--panel) 70%); }
.onb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.onb-head h2 { margin: 0; font-size: 21px; }
.onb-head p { margin: 4px 0 0; }
.onb-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 14px 0 6px; }
.onb-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.onb-steps li.ok { opacity: .6; }
.onb-steps li p { margin: 2px 0 0; font-size: 13px; }
.onb-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--violet); color: var(--violet); }
.onb-steps li.ok .onb-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.onb-video { margin-top: 14px; display: flex; justify-content: center; }
.onb-video video { width: min(100%, 300px); aspect-ratio: 9/16; border-radius: 16px; background: #000; }
.pulse { animation: pulse-ring 1.6s ease-out 2; border-radius: 16px; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 #d8ff3e99; } 100% { box-shadow: 0 0 0 18px #d8ff3e00; } }
@media (max-width: 600px) { .onb-steps li { grid-template-columns: 28px 1fr; } .onb-steps li .btn { grid-column: 2; justify-self: start; } }
.onb-head .linklike { color: var(--muted); }
.help-link { display: inline-block; margin: 8px 0 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--violet); cursor: pointer; text-decoration: underline; }
.video-dialog { padding: 0; border: 0; border-radius: 20px; background: #000; max-width: min(92vw, 380px); overflow: visible; }
.video-dialog::backdrop { background: #000000c8; }
.video-dialog video { display: block; width: 100%; aspect-ratio: 9/16; border-radius: 20px; }
.video-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 900; cursor: pointer; }
.connect-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.connect-row .help-link { margin: 0; }
.parts { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.parts p { margin: 0 0 8px; }
.parts ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.parts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.part-tools { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* "Мои идеи": sources that will be analysed + channel search */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.source { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #1b1e25; font-size: 14px; }
.source.on { border-color: var(--ok); }
button.source { color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
button.source:hover:not(:disabled) { background: #222631; }
button.source:disabled { opacity: .6; cursor: progress; }
.source.on::before { content: "✓"; color: var(--ok); font-weight: 800; }
.source a { color: var(--accent); }
.find { position: relative; }
.suggest { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  max-height: 320px; overflow: auto; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #222631; }
.suggest img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.suggest small { display: block; color: var(--muted); }

/* storyboard */
.check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 12px; cursor: pointer; }
.check input { width: auto; margin: 0; }
.board { display: grid; gap: 10px; margin-top: 10px; }
.shot { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px; border-radius: 12px; background: #15170e; }
.shot-time { font-weight: 800; color: var(--accent); font-size: 13px; }
.shot-say { margin: 0 0 4px; font-size: 15px; }
.shot-text { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.stock-row { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.stock-row figure { margin: 0; flex: none; width: 92px; }
.stock-row video { width: 92px; height: 164px; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.stock-row figcaption { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-row a { color: inherit; }
@media (max-width: 520px) { .shot { grid-template-columns: 1fr; } }

.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-head h3 { margin-top: 0; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: #4a2a2a; flex: none; }
.btn.danger:hover { background: #2a1616; }

/* cabinet sections as tabs */
.views { position: sticky; top: 0; z-index: 30; display: flex; gap: 6px; margin: 0 0 20px; padding: 8px;
  background: rgba(11,12,16,.88); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px;
  overflow-x: auto; scrollbar-width: none; }
.views button, .subtabs button { flex: none; border: 0; background: transparent; color: var(--muted); font: inherit;
  font-weight: 700; padding: 10px 16px; border-radius: 11px; cursor: pointer; white-space: nowrap; }
.views button:hover, .subtabs button:hover { color: var(--text); background: #1b1e25; }
.views button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.views .count { font-weight: 600; opacity: .75; }
.views button:focus-visible, .subtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.subtabs { display: flex; gap: 6px; margin: 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs button { border-radius: 10px 10px 0 0; }
.subtabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.subpane .strategy-card { margin: 0; }
.socials { display: grid; gap: 10px; margin-top: 12px; }
.social-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #1b1e25; }
.social-row .help-link { display: block; margin-top: 4px; }
@media (max-width: 520px) { .views button { padding: 9px 12px; } }
