/* YM Pilot — кабинет собственника. Токены из app.css. */
.cs { min-height: 100vh; background: var(--bg); }
.cs-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cs-brand { white-space: nowrap; display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.cs-brand .logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); }
.cs-proj { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 7px 12px; display: flex; gap: 8px; align-items: center; color: var(--ink); cursor: pointer; max-width: 260px; }
.cs-proj b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cs-proj:disabled { cursor: default; }
.cs-tabs { display: flex; gap: 4px; margin: 0 auto; }
.cs-tabs a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; position: relative; white-space: nowrap; }
.cs-tabs a svg { width: 17px; height: 17px; }
.cs-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.cs-tabs a.on { background: var(--accent-soft); color: var(--accent); }
.cs-tabs a i { font-style: normal; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 6px; }
.cs-me { display: flex; align-items: center; gap: 4px; }
.cs-me .btn span { font-size: 13px; }
.cs-main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; }
.cs-main > * + * { margin-top: 18px; }
.cs-main section > * + * { margin-top: 12px; }

.cs-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 8px 0 4px; }
.cs-hero h1 { font-size: 30px; letter-spacing: -.02em; margin: 4px 0 8px; }
.cs-hero p { color: var(--ink-2); max-width: 680px; margin: 0; font-size: 15px; line-height: 1.55; }
.cs-hero.slim h1 { font-size: 24px; }
.cs-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cs-h2 { font-size: 18px; margin: 0; }
.cs-h2 .muted { font-weight: 600; }
.cs-perrow { margin-top: 22px !important; }
.cs-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-foot { text-align: center; }

.cs-status { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.cs-status > div { flex: 1; }
.cs-status b { display: block; font-size: 15px; }
.cs-status span { color: var(--ink-2); font-size: 13px; }
.cs-status.good { background: var(--good-soft); border-color: transparent; }
.cs-status.trial { background: var(--accent-soft); border-color: transparent; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(18,161,80,.5); animation: csPulse 2s infinite; flex: none; }
@keyframes csPulse { 70% { box-shadow: 0 0 0 10px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }

.cs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cs-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-kpi .t { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cs-kpi b { font-size: 24px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-kpi small { color: var(--ink-2); font-size: 12px; }
.cs-kpi .d { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cs-kpi .d.up { color: var(--good); }
.cs-kpi .d.down { color: var(--bad); }
.cs-kpi.hero { background: var(--btn); border-color: transparent; color: var(--btn-ink); }
.cs-kpi.hero .t, .cs-kpi.hero small, .cs-kpi.hero .d { color: var(--btn-ink); opacity: .85; }

.cs-funnel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-funnel .f { flex: 1; min-width: 74px; background: var(--surface-2); border-radius: 12px; padding: 12px 8px 10px; text-align: center; position: relative; }
.cs-funnel .f b { display: block; font-size: 17px; white-space: nowrap; }
.cs-funnel .f > span:last-child { font-size: 12px; color: var(--ink-2); }
.cs-funnel .f .c { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.cs-funnel .arr { color: var(--ink-3); }

.cs-feed .it { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.cs-feed .it:first-child { border-top: 0; padding-top: 0; }
.cs-feed .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.cs-feed .ic svg { width: 16px; height: 16px; }
.cs-feed .it.would .ic { background: var(--accent-soft); color: var(--accent); }
.cs-feed .it.skip .ic { background: var(--surface-2); color: var(--ink-3); }
.cs-feed p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }
.cs-feed p.note { color: var(--ink-3); font-size: 12px; }
.cs-feed .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.cs-leaks .lk { border-radius: 12px; padding: 14px; background: var(--surface-2); }
.cs-leaks .lk.bad { background: var(--bad-soft); }
.cs-leaks .lk.warn { background: var(--warn-soft); }
.cs-leaks .lk .ic { font-size: 18px; margin-right: 6px; }
.cs-leaks .lk .big { font-size: 22px; font-weight: 800; margin: 6px 0; letter-spacing: -.02em; }
.cs-leaks .lk p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cs-lost { font-size: 13px; color: var(--ink-2); }
.cs-lost b { color: var(--bad); font-size: 18px; }

.cs-steps { display: grid; gap: 10px; }
.cs-step { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
a.cs-step:hover { border-color: var(--accent); }
.cs-step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
.cs-step.done .n { background: var(--good); color: #fff; }
.cs-step.done .n svg { width: 18px; height: 18px; }
.cs-step small { display: block; color: var(--ink-2); margin-top: 2px; }
.cs-step .who { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cs-step.client:not(.done) .who { color: var(--accent); }
.cs-step.done .who { color: var(--good); }
.cs-teambox { border-style: dashed; background: var(--surface-2); box-shadow: none; }
.cs-empty { text-align: center; padding: 48px 20px; }
.cs-empty .big { font-size: 42px; }

.cs-styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cs-styles .st { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.cs-styles .st.like { border-color: var(--good); }
.cs-styles .st.dis { opacity: .45; }
.cs-styles .im { position: relative; aspect-ratio: 9 / 13; background: var(--surface-2); overflow: hidden; }
.cs-styles .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-styles .kind { position: absolute; top: 8px; left: 8px; background: rgba(24,24,27,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.cs-styles .sb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cs-styles .sb p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.cs-styles .sb small { color: var(--ink-3); font-size: 11.5px; flex: 1; }
.cs-styles .sb .row { margin-top: 6px; gap: 6px; }
.cs-styles .sb .row .btn { flex: 1; font-size: 15px; }
.cs-styles .st.like .lk { background: var(--good); color: #fff; border-color: transparent; }
.cs-styles .st.dis .dk { background: var(--bad); color: #fff; border-color: transparent; }
.cs-likes { font-size: 15px; color: var(--ink-2); white-space: nowrap; }

.cs-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.cs-calc > div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.cs-calc b { display: block; font-size: 26px; letter-spacing: -.02em; }
.cs-calc span { font-size: 12px; color: var(--ink-2); }
.cs-pack h2 { font-size: 26px; margin: 4px 0; }
.cs-price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.cs-price span { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.cs-inc { padding-left: 0; list-style: none; margin: 14px 0 18px; }
.cs-inc li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; border-top: 1px solid var(--line); }
.cs-inc li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }

.cs-creos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cs-creos .cr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cs-creos .cr img, .cs-creos .cr video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; }
.cs-creos.small .cr img, .cs-creos.small .cr video { aspect-ratio: 1; }
.cs-creos .cr-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cs-creos .cr-b .row { width: 100%; }
.cs-creos .cr-b .row .btn { flex: 1; }
.cs-task .row { margin-top: 10px; }
.cs-script { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; margin-top: 10px; max-height: 320px; overflow: auto; }
.cs-hist summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: 8px 0; }

.cs-chat { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cs-chat-main { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; overflow: hidden; }
.cs-chat-h { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cs-chat-h b { display: block; }
.cs-chat-h span { font-size: 12px; color: var(--ink-3); }
.cs-chat-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cs-chat-main .cw-in { border-top: 1px solid var(--line); }
.cs-chat .cw-m.mgr .cw-b { background: var(--good-soft); }
.cs-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cs-tags span { font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 8px; }
.cs-mem { position: sticky; top: 76px; max-height: calc(100vh - 150px); overflow: auto; }
.cs-mem h3 { margin: 0 0 4px; }
.cs-mem .mi { position: relative; padding: 10px 28px 10px 0; border-top: 1px solid var(--line); }
.cs-mem .mi p { margin: 0; font-size: 13px; line-height: 1.45; }
.cs-mem .mi span { font-size: 11px; color: var(--ink-3); }
.cs-mem .mi .icon-btn { position: absolute; right: -4px; top: 6px; opacity: .4; }
.cs-mem .mi .icon-btn:hover { opacity: 1; }
.cs-mem .mi .icon-btn svg { width: 14px; height: 14px; }
.inp.sm { padding: 6px 10px; font-size: 13px; }


/* ── Деньги под контролем ── */
.cs-status.stop { background: var(--bad-soft); }
.cs-status .cs-stopbtn { margin-left: auto; flex: none; }
.cs-own { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.cs-own b { display: block; margin-bottom: 2px; } .cs-own span { font-size: 13px; color: var(--ink-3); }
.cs-own .btn { flex: none; }
.cs-truth { margin: 14px 0 0; }
.cs-over { margin: 12px 0 0; }

/* ── Цена покупателя ── */
.cs-cac { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; margin: 14px 0 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-cac span, .cs-cac small { display: block; color: var(--ink-3); font-size: 13px; }
.cs-cac b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.15; }
.cs-cac-r { text-align: right; }
.cs-cac em { font-style: normal; font-weight: 800; font-size: 15px; }
.cs-cac.good { border-color: var(--good); } .cs-cac.warn { border-color: var(--warn); } .cs-cac.bad { border-color: var(--bad); }
.cs-verdict .btn { margin-left: auto; flex: none; }
.cs-cold { color: var(--bad); font-weight: 700; }
.cs-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cs-pre { border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 10px; text-align: left; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.cs-pre b { font-size: 20px; } .cs-pre span { font-weight: 700; font-size: 13px; } .cs-pre small { color: var(--ink-3); font-size: 11.5px; }
.cs-pre.on { border-color: var(--accent); background: var(--accent-soft); }
.cs-own-sum { margin: 10px 0 4px; } .cs-own-sum summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.cs-split { margin: 12px 0; } .cs-split .bar { height: 10px; border-radius: 99px; background: var(--warn); overflow: hidden; margin-bottom: 6px; }
.cs-split .bar i { display: block; height: 100%; background: var(--good); }

/* ── Вердикт одной фразой ── */
.cs-verdict { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--radius); margin: 14px 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-verdict .ic { font-size: 28px; line-height: 1; }
.cs-verdict p { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.4; }
.cs-verdict.good { background: var(--good-soft); border-color: transparent; }
.cs-verdict.warn { background: var(--warn-soft); border-color: transparent; }
.cs-verdict.bad { background: var(--bad-soft); border-color: transparent; }

/* ── Деньги → деньги ── */
.cs-flow-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 6px 0 18px; }
.cs-flow-top > div > span { display: block; font-size: 12.5px; color: var(--ink-3); }
.cs-flow-top b { font-size: 28px; letter-spacing: -.02em; }
.cs-flow-top .ret { text-align: right; }
.cs-flow-top .ret em { display: inline-block; margin-left: 8px; font-style: normal; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 99px; vertical-align: 6px; }
.cs-flow-top .ret.good em { background: var(--good-soft); color: var(--good); }
.cs-flow-top .ret.bad em { background: var(--bad-soft); color: var(--bad); }
.cs-flow-top .arrow { display: flex; gap: 4px; }
.cs-flow-top .arrow i { width: 10px; height: 10px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); animation: cs-arr 1.4s infinite; opacity: .2; }
.cs-flow-top .arrow i:nth-child(2) { animation-delay: .2s; } .cs-flow-top .arrow i:nth-child(3) { animation-delay: .4s; }
@keyframes cs-arr { 50% { opacity: 1; } }
.cs-pipe { display: flex; flex-direction: column; gap: 8px; }
.cs-pipe .pr { display: grid; grid-template-columns: 150px 1fr 70px 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.cs-pipe .t { color: var(--ink-2); }
.cs-pipe .bar { height: 22px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.cs-pipe .bar i { display: block; height: 100%; background: var(--ink); border-radius: 6px; position: relative; overflow: hidden; animation: cs-grow .9s ease-out both; transform-origin: left; }
.cs-pipe .pr:nth-child(n+5) .bar i { background: var(--accent); }
.cs-pipe .bar s { position: absolute; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .8; animation: cs-run 2.4s linear infinite; }
.cs-pipe .bar s:nth-child(2) { animation-delay: .8s; } .cs-pipe .bar s:nth-child(3) { animation-delay: 1.6s; }
@keyframes cs-run { from { left: -6px; } to { left: 100%; } }
@keyframes cs-grow { from { transform: scaleX(0); } }
.cs-pipe b { text-align: right; }
.cs-pipe .c { font-size: 12px; color: var(--ink-3); text-align: right; }
@media (prefers-reduced-motion: reduce) { .cs-pipe .bar s, .cs-flow-top .arrow i, .cs-pipe .bar i { animation: none; opacity: 1; } }

/* ── Реклама сейчас ── */
.cs-ads { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.cs-ads .ad { flex: 0 0 150px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.cs-ads img, .cs-ads video, .cs-ads .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #000; }
.cs-ads .ph { display: grid; place-items: center; font-size: 32px; background: var(--surface-2); }
.cs-ads .ab { padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.cs-ads .ab b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-ads .ab span { color: var(--ink-3); } .cs-ads .ab span.good { color: var(--good); font-weight: 700; }

/* ── Команде: менеджер и сводка ── */
details.cs-teambox summary { cursor: pointer; }
.cs-wa { background: #e7ffdb; color: #111b21; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.cs-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; flex: none; }

/* ── Демо и пакет ── */
.cs-demo { background: var(--accent); color: #fff; text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.cs-demo a { color: #fff; text-decoration: underline; margin-left: 6px; font-weight: 800; }
.cs-packlink svg { width: 16px; height: 16px; }

/* ── Голос ── */
.cs-mic { flex: none; font-size: 18px; padding: 0 12px; }
.cs-mic.on { background: var(--bad); color: #fff; border-color: var(--bad); animation: cs-pulse 1.2s infinite; }
@keyframes cs-pulse { 50% { box-shadow: 0 0 0 6px var(--bad-soft); } }
.cs-why { display: flex; gap: 8px; align-items: stretch; }
.cs-why textarea { flex: 1; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-swipe-go { margin: 4px 0 10px; }

/* ── Свайп креативов ── */
.cs-sw { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 22, .94); display: flex; flex-direction: column; align-items: center; padding: 16px; color: #fff; }
.cs-sw-top { width: 100%; max-width: 420px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.cs-sw-top .icon-btn { color: #fff; }
.cs-sw-stage { flex: 1; width: 100%; max-width: 380px; display: grid; place-items: center; min-height: 0; }
.cs-card { position: relative; width: 100%; max-height: 100%; background: #000; border-radius: 18px; overflow: hidden; touch-action: none; user-select: none; cursor: grab; transition: transform .25s ease, opacity .25s; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cs-card img, .cs-card video { width: 100%; max-height: calc(100vh - 240px); object-fit: contain; display: block; pointer-events: none; }
.cs-card-b { padding: 10px 14px 14px; font-size: 14px; background: #111; }
.cs-card-b p { margin: 4px 0 0; opacity: .7; font-size: 13px; }
.cs-card .stamp { position: absolute; top: 24px; padding: 6px 12px; border: 4px solid; border-radius: 10px; font-weight: 900; font-size: 22px; opacity: 0; transition: opacity .1s; }
.cs-card .stamp.ok { left: 18px; color: #3ccf7d; transform: rotate(-12deg); }
.cs-card .stamp.no { right: 18px; color: #ff6b6f; transform: rotate(12deg); }
.cs-card.r .stamp.ok, .cs-card.l .stamp.no { opacity: 1; }
.cs-card.fly-r { transform: translateX(140%) rotate(20deg) !important; opacity: 0; }
.cs-card.fly-l { transform: translateX(-140%) rotate(-20deg) !important; opacity: 0; }
.cs-sw-btns { display: flex; gap: 28px; padding: 14px 0 4px; }
.cs-sw-b { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 28px; cursor: pointer; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.cs-sw-hint { font-size: 12px; opacity: .6; margin: 6px 0 0; }
.cs-sw-end { text-align: center; } .cs-sw-end .big { font-size: 56px; }

/* ── Неделя историями ── */
.cs-stov { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 22, .92); display: grid; place-items: center; padding: 16px; }
.cs-stov.pub { position: static; min-height: 100vh; background: #f6f5f1; align-content: center; gap: 14px; }
.cs-stov .st-x { position: absolute; top: 14px; right: 14px; color: #fff; z-index: 3; }
.st-made { color: #8a8990; font-size: 12.5px; text-align: center; }
.st-host { width: min(400px, 100%); height: min(720px, calc(100vh - 32px)); }
.st { position: relative; height: 100%; border-radius: 22px; overflow: hidden; color: #fff; background: #18181b; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.st-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.st-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.st-bars i.done b { width: 100%; }
.st-bars i.on b { animation: st-fill 6s linear forwards; }
@keyframes st-fill { to { width: 100%; } }
.st-body { height: 100%; }
.st-s { height: 100%; padding: 44px 26px 70px; display: flex; flex-direction: column; justify-content: center; gap: 16px; animation: st-in .35s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(12px); } }
.st-s small { opacity: .65; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.st-s h1 { font-size: 40px; line-height: 1.05; margin: 0; letter-spacing: -.03em; }
.st-s h2 { font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.st-s p { margin: 0; font-size: 16px; line-height: 1.45; opacity: .9; }
.st-v { display: flex; gap: 12px; background: rgba(255,255,255,.12); border-radius: 16px; padding: 16px; }
.st-v span { font-size: 30px; } .st-v p { font-size: 18px; font-weight: 650; }
.st-big b { display: block; font-size: 38px; letter-spacing: -.03em; line-height: 1.05; }
.st-big span { opacity: .8; font-size: 15px; }
.st-big em { display: inline-block; margin: 6px 0 0 8px; font-style: normal; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.st-big em.up { background: #3ccf7d; color: #062b16; } .st-big em.down { background: #ff6b6f; color: #3a0608; }
.st-l { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.st-l li { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.st-l li span { font-size: 13.5px; opacity: .8; line-height: 1.4; }
.st-img { width: 60%; max-height: 300px; object-fit: cover; border-radius: 14px; align-self: center; }
.st-todo { background: #ffd34d; color: #2b2000; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.st-mg { display: flex; gap: 10px; align-items: center; margin-top: auto; } .st-mg small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.st-nav { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 2fr; z-index: 1; }
.st-nav button { background: none; border: 0; cursor: pointer; }
.st-share { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; background: #fff; color: #18181b; border: 0; white-space: nowrap; }

@media (max-width: 1100px) {
  .cs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-two, .cs-chat { grid-template-columns: 1fr; }
  .cs-mem { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .cs-top { padding: 8px 16px; gap: 8px; flex-wrap: wrap; backdrop-filter: none; background: var(--surface); }  /* фильтр ломает fixed у нижнего меню */
  .cs-brand span:last-child, .cs-me .btn span { display: none; }
  .cs-proj { flex: 1; max-width: none; }
  .cs-tabs { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .cs-tabs a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; }
  .cs-tabs a i { position: absolute; top: 0; right: 6px; }
  .cs-main { padding: 16px 16px 96px; }
  .cs-hero { flex-direction: column; align-items: flex-start; }
  .cs-hero h1 { font-size: 24px; }
  .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-kpi b { font-size: 20px; }
  .cs-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-status { flex-direction: column; align-items: flex-start; }
  .cs-perrow { flex-direction: column; align-items: flex-start !important; }
  .cs-funnel .arr { display: none; }
  .cs-flow-top { grid-template-columns: 1fr; gap: 8px; } .cs-flow-top .arrow { display: none; } .cs-flow-top .ret { text-align: left; }
  .cs-flow-top b { font-size: 24px; }
  .cs-pipe .pr { grid-template-columns: 1fr 64px 46px; } .cs-pipe .bar { grid-column: 1 / -1; grid-row: 2; height: 14px; } .cs-pipe .bar s { top: 4px; }
  .cs-verdict p { font-size: 15px; }
  .cs-verdict { flex-wrap: wrap; } .cs-verdict .btn { margin-left: 42px; }
  .cs-cac { flex-direction: column; align-items: flex-start; } .cs-cac-r { text-align: left; } .cs-cac b { font-size: 28px; }
  .cs-own { flex-direction: column; align-items: flex-start; }
  .cs-pre { padding: 10px 8px; } .cs-pre b { font-size: 17px; } .cs-pre small { display: none; }
  .cs-demo { font-size: 12.5px; }
  .cs-funnel .f { min-width: calc(33% - 6px); }
  .cs-calc { grid-template-columns: 1fr 1fr 1fr; }
  .cs-calc b { font-size: 20px; }
  .cs-chat-main { height: calc(100vh - 190px); }
  .cs-step { grid-template-columns: 32px 1fr; }
  .cs-step .who { grid-column: 2; }
}

/* ── Дизайн 30.10: спокойнее и теплее ── */
.card { box-shadow: none; }
.cs-kicker { color: var(--accent); letter-spacing: .04em; }
.cs-tabs a.on { background: var(--ink); color: var(--bg); }
.cs-pipe .bar s { background: var(--bg); }
.cs-flow-top .arrow i { border-color: var(--accent); }
.st-v { background: rgba(255,255,255,.08); }
.st-s h1 em, .st-big b { color: #fff; }
.st-bars i b { background: var(--accent-2); }
.st-todo { background: var(--accent); color: #fff; }
.cs-verdict, .cs-cac { box-shadow: none; }
.cs-verdict.good, .cs-verdict.warn, .cs-verdict.bad { border: 0; }
.cs-cac { border-width: 1px; }
.cs-cac b { font-weight: 700; }
.cs-fresh { margin: 12px 0 0; }
.cs-plan30 summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.cs-plan30 summary::-webkit-details-marker { display: none; }
.cs-plan30 summary span { color: var(--ink-3); font-size: 13px; }
.cs-tl { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.cs-tl li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); opacity: .75; }
.cs-tl li i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.cs-tl li p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.cs-tl li.done { opacity: .45; } .cs-tl li.done b::before { content: '✓ '; color: var(--good); }
.cs-tl li.now { opacity: 1; } .cs-tl li.now i { color: var(--accent); } .cs-tl li.now b { color: var(--accent); }
.cs-rp { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.cs-paym { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.cs-paym button { border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink); }
.cs-paym button b { display: block; font-size: 16px; } .cs-paym button span { font-size: 12px; color: var(--ink-3); }
.cs-paym button.on { border-color: var(--ink); }

/* Подключения */
.cs-conn { margin-bottom: 16px; }
.cs-conn .alert { margin: 10px 0; }
.cs-conn .howto { margin: 10px 0 14px; padding-left: 20px; line-height: 1.6; }
.cs-conn .howto li { margin-bottom: 6px; }
.tl-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.tl-list li { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); line-height: 1.5; }
.tl-list li.tl-ok { background: var(--good-soft); }
.tl-list li.tl-no { background: var(--warn-soft, #fdf3e1); }
.cs-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cs-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cs-more[open] summary { margin-bottom: 8px; }
.cs-connlink { display: block; text-align: center; margin: 20px 0 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.cs-connlink:hover { color: var(--ink); border-color: var(--ink-3); }

/* ── Неделя за 30 секунд v2 ── */
.st-bg { position: absolute; inset: 0; transition: background .6s ease; background: linear-gradient(160deg, #3b2cff, #8a2be2 60%, #ff4fa3); }
.st[data-bg="g2"] .st-bg { background: linear-gradient(160deg, #0f9b6c, #10b3a3 55%, #2463ff); }
.st[data-bg="g3"] .st-bg { background: linear-gradient(160deg, #1d1d3b, #3a2a8c 60%, #6b4dff); }
.st[data-bg="g4"] .st-bg { background: linear-gradient(160deg, #ff8a00, #ff4f6d 60%, #b62bff); }
.st[data-bg="g5"] .st-bg { background: linear-gradient(160deg, #11131f, #20325f 60%, #2f6bff); }
.st-bg::after { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255,255,255,.14), transparent 45%); animation: st-float 9s ease-in-out infinite alternate; }
@keyframes st-float { to { transform: translate(6%, -4%) rotate(8deg); } }
.st-body, .st-bars, .st-nav { position: relative; } .st-bars { position: absolute; } .st-nav { position: absolute; }
.st-s { position: relative; animation: none; }
.st-s > *, .st-l li { opacity: 0; animation: st-up .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes st-up { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.st-emoji { font-size: 64px; line-height: 1; animation: st-pop .7s cubic-bezier(.3,1.6,.5,1) forwards !important; }
@keyframes st-pop { from { opacity: 0; transform: scale(.3) rotate(-20deg); } to { opacity: 1; transform: none; } }
.st-s h1 { font-size: 44px; }
.st-v { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.st-big b { font-size: 46px; font-variant-numeric: tabular-nums; }
.st-camp b { font-size: 24px; }
.st-tap { animation: st-up .55s forwards, st-blink 1.6s 1.2s ease-in-out infinite !important; }
@keyframes st-blink { 50% { opacity: .35; } }
.st-cmp { display: grid; gap: 6px; } .st-cmp > span { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.st-cmp div { display: grid; gap: 6px; }
.st-cmp i { display: block; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); width: 0; animation: st-grow 1.1s .5s cubic-bezier(.2,.8,.2,1) forwards; position: relative; min-width: 0; }
.st-cmp i.now { background: #fff; }
.st-cmp i small { position: absolute; left: 10px; top: 5px; font-size: 12px; white-space: nowrap; text-transform: none; letter-spacing: 0; opacity: 1; color: #fff; }
.st-cmp i.now small { color: #0b3b5c; }
@keyframes st-grow { to { width: max(var(--w), 120px); } }
.st-l li { background: rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.st-imgw { position: relative; align-self: center; width: 62%; }
.st-imgw .st-img { width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.35); animation: st-tilt 3s ease-in-out infinite alternate; }
@keyframes st-tilt { from { transform: rotate(-2deg); } to { transform: rotate(2deg) translateY(-4px); } }
.st-imgw i { position: absolute; top: -10px; right: -10px; background: #ffd34d; color: #2b2000; font-style: normal; font-weight: 800; border-radius: 99px; padding: 6px 10px; font-size: 13px; }
.st-conf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.st-conf i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation-name: st-fall; animation-timing-function: cubic-bezier(.3,.6,.6,1); animation-fill-mode: forwards; }
@keyframes st-fall { to { top: 105%; transform: rotate(720deg) translateX(40px); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .st-s > *, .st-l li, .st-cmp i { animation: none !important; opacity: 1; width: max(var(--w), 120px); } .st-conf { display: none; } }

/* ── Цена одного клиента: шкала ── */
.cs-cac2 { margin: 14px 0 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.cs-cac2 .cc-t span { display: block; font-weight: 700; font-size: 14px; }
.cs-cac2 .cc-t b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.15; }
.cs-cac2 .cc-t small { color: var(--ink-3); font-size: 13px; }
.cs-cac2.bad .cc-t b { color: var(--bad); } .cs-cac2.good .cc-t b { color: var(--good); } .cs-cac2.warn .cc-t b { color: var(--warn); }
.cc-bar { position: relative; display: flex; height: 12px; border-radius: 99px; overflow: visible; background: var(--surface-2); }
.cc-bar i { display: block; height: 100%; } .cc-bar i.g { background: #3ccf7d; border-radius: 99px 0 0 99px; } .cc-bar i.y { background: #ffc94d; } .cc-bar i.r { flex: 1; background: #ff6b6f; border-radius: 0 99px 99px 0; }
.cc-bar em { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.3); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.cc-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.cc-say { margin: 4px 0 0; font-size: 14px; } .cc-say a { color: var(--accent); font-weight: 600; }

/* ── Что исправить ── */
.cs-fix .cs-lost { font-size: 13px; color: var(--bad); }
.fx-list { display: grid; gap: 10px; }
.fx { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--line); }
.fx.bad { border-left-color: var(--bad); } .fx.warn { border-left-color: var(--warn); } .fx.good { border-left-color: var(--good); }
.fx-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 800; }
.fx-tag { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.fx h4 { margin: 2px 0 8px; font-size: 17px; }
.fx-nums { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fx-nums span { display: grid; background: var(--surface); border-radius: 10px; padding: 6px 12px; }
.fx-nums small { font-size: 11px; color: var(--ink-3); } .fx-nums b { font-size: 16px; }
.fx-nums .to b { color: var(--good); } .fx-nums i { font-style: normal; color: var(--ink-3); font-size: 18px; }
.fx p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.fx details { margin-top: 6px; font-size: 13px; } .fx summary { cursor: pointer; color: var(--ink-3); }
.fx-go { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--accent); align-self: center; }
.cs-feed-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cs-ads .ad.click { cursor: pointer; transition: transform .15s, box-shadow .15s; } .cs-ads .ad.click:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
tr.an-click { cursor: pointer; } tr.an-click:hover td { background: var(--surface-2); }
.adm { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 20px; }
.adm-pv iframe { border: 0; border-radius: 12px; width: 100%; } .adm-pv img { width: 100%; border-radius: 12px; }
.adm-st { font-weight: 700; margin-bottom: 10px; } .adm-st.off { color: var(--ink-3); }
.adm-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.adm-g div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; } .adm-g span { font-size: 12px; color: var(--ink-3); } .adm-g b { font-size: 18px; }
.adm-g .good b { color: var(--good); }
.cs-need0-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.cs-need0-g div { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 4px; } .cs-need0-g span { font-size: 26px; } .cs-need0-g small { color: var(--ink-3); }
@media (max-width: 720px) { .fx { grid-template-columns: 28px 1fr; } .fx-go { grid-column: 2; justify-self: start; } .adm, .cs-need0-g { grid-template-columns: 1fr; } }

/* заказ креативов */
.cs-order { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; background: linear-gradient(120deg, #fff, #fff1f1); }
.cs-order b { display: block; font-size: 16px; } .cs-order span { font-size: 13.5px; color: var(--muted); display: block; max-width: 560px; }
.cs-ordst { display: flex; flex-wrap: wrap; gap: 8px 14px; } .cs-ordst label { font-size: 13.5px; display: flex; gap: 6px; align-items: center; }

/* Стратегия: всё о компании (страница сервера в рамке, высота по содержимому) */
.rz-head h1 { font-size: 26px; margin: 0 0 4px; }
.rz-head { margin-bottom: 10px; }
.rz-frame { display: block; width: 100%; min-height: 70vh; border: 0; background: transparent; }

/* Стратегия: анализ идёт */
.rz-wait h2 { margin: 0 0 4px; }
.rz-steps { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 8px; }
.rz-steps li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); }
.rz-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); }
.rz-steps li.done { color: var(--ink); }
.rz-steps li.done span { background: var(--good-soft); border-color: transparent; color: var(--good); }
.rz-steps li.now { color: var(--ink); font-weight: 600; }
.rz-steps li.now span { border-color: var(--accent); color: var(--accent); }
.rz-spin { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: rzspin 1s linear infinite; }
@keyframes rzspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rz-spin { animation: none; } }
.rz-bar { margin: 0 0 12px; gap: 12px; flex-wrap: wrap; }
.rz-meta { margin: 4px 0 0; }
.rz-wait { margin-bottom: 16px; }
.rz-wait > .row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
