*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --accent:#A5F3C4;--accent-hover:#7EE8A8;
  --bg:#EDEAE4;--surface:#FAF8F5;--surface2:#E6E2DC;--surface3:#DAD6D0;
  --border:#DDD8D2;--text:#1A1A1A;--muted:#78746E;
  --danger:#C0392B;--success:#2D8A4E;--warn:#B87800;
  --blue:#2563EB;--purple:#7C3AED;--sidebar:248px;
}
[data-theme="dark"]{
  --bg:#111110;--surface:#1C1C1A;--surface2:#252422;--surface3:#2E2C29;
  --border:#363330;--text:#F0EDE6;--muted:#8C8880;
  --danger:#E05C4B;--success:#3AAD63;--warn:#D4960A;
  --blue:#4B8EF0;--purple:#9D6FF5;
}
/* Dark mode fixes for elements using hardcoded white/black */
[data-theme="dark"] .hero-cta{background:var(--text);color:var(--bg)}
[data-theme="dark"] .hero-cta:hover{background:#ffffff}
[data-theme="dark"] .step-next.active{background:var(--text);color:var(--bg)}
[data-theme="dark"] .step-number{background:var(--text);color:var(--bg)}
[data-theme="dark"] .platform-pill.selected{border-color:transparent}
[data-theme="dark"] .nnode{background:var(--surface3);border-color:var(--border)}
[data-theme="dark"] .net-line{stroke:rgba(165,243,196,.22)}
[data-theme="dark"] .idx-tempo.selected{border-color:transparent}
[data-theme="dark"] .idx-tempo.selected *{color:#1a1a1a!important}
/* Logo mark: always use dark icon on accent green background */
.logo-mark svg{stroke:#0f172a!important}
/* Editable main-action counter: green background, dark text */
input.ctr-main-inp{width:26px!important;min-width:0;flex-shrink:0;box-sizing:border-box;text-align:center;font-size:12px;font-weight:700;border-left:1px solid rgba(0,0,0,.15);border-right:1px solid rgba(0,0,0,.15);border-top:none;border-bottom:none;height:26px;padding:0;font-family:inherit;cursor:text;background:var(--accent);color:#0f172a;line-height:26px}
input.ctr-main-inp:focus{outline:none;background:var(--accent-hover)}
input.ctr-main-inp::selection{background:#0f172a;color:var(--accent)}
/* Custom range slider — big yellow thumb */
input[type=range]{-webkit-appearance:none;appearance:none;height:5px;border-radius:3px;background:var(--surface3);outline:none;cursor:pointer;width:100%;display:block}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:var(--accent);border:2px solid rgba(0,0,0,.2);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--accent);border:2px solid rgba(0,0,0,.2);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18);border-style:solid}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);display:block;min-height:100vh;font-size:15px}

/* ── SIDEBAR hidden ── */
#sidebar{display:none!important}

/* ── SITE HEADER ── */
.site-header{position:sticky;top:0;z-index:200;background:var(--surface);border-bottom:1px solid var(--border)}
.site-header-inner{max-width:1320px;margin:0 auto;padding:0 40px;height:60px;display:flex;align-items:center;gap:16px}
.site-logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0;cursor:pointer}
.logo-mark{width:34px;height:34px;background:var(--accent);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.logo-text{font-size:15px;font-weight:700;color:var(--text);letter-spacing:0.1px}
.logo-sub{font-size:11px;color:var(--muted);margin-top:1px}
.site-nav{display:flex;align-items:center;gap:2px;margin-left:16px}
.site-nav-link{padding:7px 13px;border-radius:8px;font-size:14px;color:var(--muted);text-decoration:none;transition:all .15s;font-weight:500;cursor:pointer;border:none;background:transparent;font-family:inherit}
.site-nav-link:hover{color:var(--text);background:var(--surface2)}
.site-nav-link.active{color:var(--text);font-weight:700;background:var(--surface2)}

/* ── Theme toggle switch ── */
.theme-switch{display:flex;align-items:center;gap:7px;cursor:pointer;padding:5px 10px;border-radius:20px;border:1px solid var(--border);background:var(--surface);transition:border-color .15s;flex-shrink:0}
.theme-switch:hover{border-color:var(--muted)}
.theme-track{width:32px;height:18px;border-radius:9px;background:var(--surface3);position:relative;transition:background .25s;flex-shrink:0}
[data-theme="dark"] .theme-track{background:#444}
.theme-thumb{width:14px;height:14px;border-radius:50%;background:var(--text);position:absolute;top:2px;left:2px;transition:transform .25s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
[data-theme="dark"] .theme-thumb{transform:translateX(14px)}
.site-header-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.balance-pill{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:8px;background:var(--bg);border:1px solid var(--border);font-size:13px;cursor:pointer;transition:border-color .15s}
.balance-pill:hover{border-color:#999}
.balance-amt{font-weight:700;color:var(--text)}
.topbar-task{display:none;align-items:center;gap:7px;padding:4px 10px;border-radius:6px;background:rgba(255,230,0,.15);border:1px solid rgba(180,160,0,.3);font-size:12px}
.topbar-task.show{display:flex}
.topbar-time{font-size:12px;color:var(--muted)}

/* ── MAIN ── */
#main{display:block;min-height:calc(100vh - 60px)}
#topbar-container{position:sticky;top:0;z-index:200}
.content{max-width:1320px;margin:0 auto;padding:32px 40px}
.section{display:none}
.section.active{display:block}
@media(max-width:900px){.content{padding:20px 16px}.site-header-inner{padding:0 16px}.site-nav{display:none}}
@media(max-width:480px){.content{padding:12px 8px}.modal{padding:16px!important;margin:8px}.site-header-inner{padding:0 8px}}

/* ── SITE FOOTER ── */
.site-footer{background:var(--surface2);border-top:1px solid var(--border);margin-top:64px}
.site-footer-inner{max-width:1320px;margin:0 auto;padding:48px 40px 32px}
.site-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:36px}
@media(max-width:900px){.site-footer-grid{grid-template-columns:1fr 1fr;gap:28px}}
@media(max-width:560px){.site-footer-grid{grid-template-columns:1fr 1fr;gap:20px}}
.site-footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.site-footer-desc{font-size:13px;color:var(--muted);line-height:1.7;max-width:260px}
.site-footer-col-title{font-size:11px;text-transform:uppercase;letter-spacing:.8px;font-weight:700;color:var(--muted);margin-bottom:14px}
.site-footer-link{display:block;font-size:14px;color:var(--muted);text-decoration:none;margin-bottom:9px;transition:color .15s;cursor:pointer}
.site-footer-link:hover{color:var(--text)}
.site-footer-tg-btn{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:9px 16px;background:var(--accent);color:#000;font-size:13px;font-weight:600;border-radius:8px;text-decoration:none;transition:background .15s}
.site-footer-tg-btn:hover{background:var(--accent-hover)}
.site-footer-bottom{border-top:1px solid var(--border);padding-top:20px;font-size:12px;color:var(--muted);line-height:1.7}
.site-footer-bottom-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.site-footer-requisites{font-size:11px;color:var(--muted);opacity:.7}
.site-footer-bottom a{color:var(--muted);text-decoration:none}
.site-footer-bottom a:hover{color:var(--text)}

/* ── FAQ ── */
.faq-section{margin-top:56px;margin-bottom:16px}
.faq-title{font-size:28px;font-weight:700;color:var(--text);margin-bottom:6px}
.faq-subtitle{font-size:15px;color:var(--muted);margin-bottom:32px}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 48px}
@media(max-width:900px){.faq-grid{grid-template-columns:1fr}}
.faq-item{border-bottom:1px solid var(--border);padding:18px 0;cursor:pointer}
.faq-item:last-child{border-bottom:none}
.faq-q{font-size:15px;font-weight:600;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:16px;user-select:none}
.faq-q-icon{font-size:18px;color:var(--muted);flex-shrink:0;transition:transform .2s;line-height:1}
.faq-item.open .faq-q-icon{transform:rotate(45deg)}
.faq-a{font-size:14px;color:var(--muted);line-height:1.75;padding-top:10px;display:none}
.faq-item.open .faq-a{display:block}

/* ── COMPONENTS ── */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:16px}
.panel-header{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;flex-wrap:wrap;background:var(--surface2);border-radius:14px 14px 0 0;color:var(--text)}
.panel-body{padding:20px}

.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border-radius:8px;border:none;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn-accent{background:var(--accent);color:#000}
.btn-accent:hover:not(:disabled){background:var(--accent-hover)}
.btn-ghost{background:var(--surface);color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover:not(:disabled){border-color:#999;background:var(--surface2)}
.btn-danger{background:rgba(192,57,43,.07);color:var(--danger);border:1px solid rgba(192,57,43,.2)}
.btn-blue{background:rgba(37,99,235,.07);color:var(--blue);border:1px solid rgba(37,99,235,.2)}
.btn-success{background:rgba(45,138,78,.08);color:var(--success);border:1px solid rgba(45,138,78,.2)}
.btn-sm{padding:6px 14px;font-size:13px}
.btn-xs{padding:3px 9px;font-size:12px}
.btn-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}

.stat-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-bottom:16px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 18px}
.sc-label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:6px;font-weight:600}
.sc-val{font-size:26px;font-weight:700;line-height:1}
.c-accent{color:#8B7200}.c-success{color:var(--success)}.c-danger{color:var(--danger)}.c-warn{color:var(--warn)}.c-blue{color:var(--blue)}.c-purple{color:var(--purple)}.c-muted{color:var(--muted)}

/* Table */
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;padding:11px 16px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);border-bottom:1px solid var(--border);white-space:nowrap;background:var(--surface2);font-weight:700}
td{padding:12px 16px;border-bottom:1px solid var(--border);vertical-align:middle}
tr:last-child td{border-bottom:none}
tr:hover td{background:var(--surface2)}
tr.selected td{background:rgba(255,230,0,.08)}
input[type=checkbox]{width:14px;height:14px;accent-color:var(--accent);cursor:pointer}

/* Status pills */
.sp{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;transition:opacity .15s;user-select:none;white-space:nowrap}
.sp:hover{opacity:.75}
.sp-new{background:rgba(37,99,235,.08);color:var(--blue)}
.sp-sent{background:rgba(184,120,0,.1);color:var(--warn)}
.sp-replied{background:rgba(45,138,78,.1);color:var(--success)}
.sp-not_interested{background:rgba(192,57,43,.08);color:var(--danger)}
.sp-error,.sp-no_form{background:rgba(184,120,0,.1);color:var(--warn)}
.sp-active{background:rgba(45,138,78,.1);color:var(--success)}
.sp-running{background:rgba(37,99,235,.08);color:var(--blue)}
.sp-done{background:rgba(45,138,78,.1);color:var(--success)}
.sp-pending{background:rgba(184,120,0,.1);color:var(--warn)}
.src{display:inline-block;padding:2px 6px;border-radius:4px;font-size:10px;font-weight:600;background:var(--surface3);color:var(--muted)}

/* Filters */
.filters{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px;border-bottom:1px solid var(--border);align-items:center;background:var(--surface)}
.fsel{background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:7px 11px;font-size:14px;font-family:inherit;outline:none;cursor:pointer;height:36px}
.fsel:focus{border-color:#888}
.fsearch{background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:7px 11px;font-size:14px;font-family:inherit;outline:none;width:180px;height:36px}
.fsearch:focus{border-color:#888}
.fsearch::placeholder{color:var(--muted)}

/* Bulk bar */
.bulk-bar{display:none;align-items:center;gap:8px;padding:8px 14px;background:rgba(255,230,0,.1);border:1px solid rgba(180,160,0,.25);border-radius:8px;margin-bottom:10px;font-size:14px}
.bulk-bar.show{display:flex}

/* Form */
.fg{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.fg label{font-size:12px;color:var(--muted);font-weight:600;letter-spacing:.2px}
input[type=text],input[type=email],input[type=number],input[type=password],input[type=url],textarea,select.full{background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:9px 13px;font-size:14px;font-family:inherit;outline:none;transition:border-color .2s;width:100%}
input:focus,textarea:focus,select.full:focus{border-color:#B0A89E;box-shadow:none}
textarea{resize:vertical;min-height:70px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fgrid .full-col{grid-column:1/-1}

/* Toast */
#toasts{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:6px;z-index:9999}
.toast{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:11px 16px;font-size:14px;min-width:220px;animation:tin .2s ease;box-shadow:0 4px 16px rgba(0,0,0,.1)}
.toast.ok{border-left:3px solid var(--success)}.toast.err{border-left:3px solid var(--danger)}.toast.info{border-left:3px solid #888}
@keyframes tin{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.spinner{width:12px;height:12px;border:2px solid rgba(0,0,0,.1);border-top-color:#888;border-radius:50%;animation:spin .6s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.empty{text-align:center;padding:36px 16px;color:var(--muted);font-size:14px}
.divider{height:1px;background:var(--border);margin:14px 0}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:var(--surface2)}
::-webkit-scrollbar-thumb{background:#C0BAB3;border-radius:3px}
a.lnk{color:var(--blue);text-decoration:none}a.lnk:hover{text-decoration:underline}

/* Tabs */
.section-tabs{display:flex;border-bottom:1px solid var(--border);margin-bottom:16px}
.stab{padding:10px 18px;font-size:14px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;transition:all .15s;margin-bottom:-1px;font-weight:500}
.stab:hover{color:var(--text)}
.stab.active{color:var(--text);border-bottom-color:var(--text);font-weight:700}

/* Modal */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:1000;align-items:center;justify-content:center}
.modal-overlay.show{display:flex}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;width:480px;max-width:95vw;max-height:90vh;overflow-y:auto;box-shadow:0 8px 40px rgba(0,0,0,.12)}
.modal-title{font-size:18px;font-weight:700;margin-bottom:18px;color:var(--text)}
.modal-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}

/* ── DASHBOARD specific ── */
.dash-section-label{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:700;margin-bottom:10px}

/* Dashboard platform tiles */
.dash-ptile{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:12px 8px;cursor:pointer;text-align:center;transition:all .15s;user-select:none;position:relative}
.dash-ptile:hover{border-color:#999;transform:translateY(-1px)}
.dash-ptile.selected{border-color:transparent;background:var(--accent)}
.dash-ptile.planned{opacity:.5}
.dash-ptile-icon{font-size:22px;margin-bottom:5px}
.dash-ptile-name{font-size:11px;font-weight:700;color:var(--text)}
.dash-ptile-badge{position:absolute;top:-5px;right:-5px;font-size:9px;font-weight:700;padding:2px 6px;border-radius:8px}
.badge-hit{background:var(--danger);color:#fff}
.badge-new{background:var(--blue);color:#fff}
.badge-beta{background:var(--surface3);color:var(--muted);border:1px solid var(--border)}

/* Chain preview */
.chain-preview-box{background:rgba(255,230,0,.12);border:1.5px solid rgba(180,160,0,.3);border-radius:12px;padding:16px;margin-top:10px}
.chain-steps{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-bottom:12px}
.chain-step{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:7px 10px;font-size:12px;flex-shrink:0;min-width:0}
.chain-step-num{font-size:9px;font-weight:700;color:var(--muted);margin-bottom:2px}
.chain-step-text{font-weight:600;color:var(--text)}
.chain-step.key-step{border-color:rgba(180,160,0,.4);background:rgba(255,230,0,.1)}
.chain-arrow{color:var(--muted);font-size:14px;padding:0 6px;flex-shrink:0}
.chain-action-btn{padding:6px 13px;border-radius:8px;border:1px solid var(--border);background:var(--surface);font-size:13px;color:var(--text);cursor:pointer;transition:all .15s;font-family:inherit}
.chain-action-btn:hover,.chain-action-btn.selected{border-color:transparent;background:var(--accent);color:#000}

/* Директ AI infographic */
.direct-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}
.direct-stat{text-align:center;padding:6px 0}
.direct-stat-val{font-size:20px;font-weight:700;color:var(--text)}
.direct-stat-label{font-size:10px;color:var(--muted);margin-top:2px;line-height:1.4}

/* AI model tabs */
.ai-model-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:0}
.ai-model-tab{padding:6px 14px;border-radius:20px;border:1px solid var(--border);background:var(--surface);font-size:13px;color:var(--muted);cursor:pointer;transition:all .15s;white-space:nowrap}
.ai-model-tab:hover{border-color:#888;color:var(--text)}
.ai-model-tab.active{border-color:transparent;color:#000;background:var(--accent);font-weight:600}

/* Project cards */
.project-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.project-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px}
.project-card.clr-yellow::before{background:var(--accent)}
.project-card.clr-blue::before{background:var(--blue)}
.project-card.clr-green::before{background:var(--success)}
.project-card.clr-purple::before{background:var(--purple)}
.project-card.clr-grey::before{background:var(--surface3)}
.project-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(165,243,196,.3);border-color:rgba(100,200,140,.5)}
.project-card.clr-yellow:hover{border-color:rgba(100,200,140,.5)}
.project-card.clr-blue:hover{border-color:rgba(100,200,140,.5)}
.project-card.clr-green:hover{border-color:rgba(100,200,140,.5)}
.project-card.clr-purple:hover{border-color:rgba(100,200,140,.5)}
.project-card.inactive{opacity:.6}
.project-card.inactive:hover{opacity:.8;transform:none}
.pc2-icon{font-size:26px;margin-bottom:8px}
.pc2-title{font-size:15px;font-weight:700;margin-bottom:5px;color:var(--text)}
.pc2-desc{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:14px}
.pc2-foot{display:flex;align-items:center;justify-content:space-between}
.pc2-stat{font-size:13px;color:var(--muted)}
.pc2-stat strong{font-weight:700;color:var(--text)}
.pc2-open{font-size:12px;font-weight:600;padding:6px 14px;border-radius:7px;border:1px solid var(--border);cursor:pointer;font-family:inherit;background:var(--surface2);color:var(--muted);transition:all .15s}
.project-card:hover .pc2-open{background:var(--accent);color:#000;border-color:transparent}
.project-card.clr-yellow:hover .pc2-open{background:var(--accent);border-color:transparent;color:#000}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:6px}

/* Activity feed */
.activity-item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.activity-item:last-child{border-bottom:none}
.activity-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}
.activity-body{flex:1}
.activity-title{font-size:14px;font-weight:500;margin-bottom:2px;color:var(--text)}
.activity-meta{font-size:12px;color:var(--muted)}
.activity-action{font-size:13px;color:var(--blue);cursor:pointer;white-space:nowrap;font-weight:500}

/* ── ДИРЕКТ AI specific ── */
#sec-direct{display:none}
#sec-direct.active{display:flex;flex-direction:column;height:100%}
.direct-layout{display:flex;gap:0;flex:1;overflow:hidden;min-height:0}
.direct-chat-area{flex:1;display:flex;flex-direction:column;min-width:0}
.direct-right{width:280px;flex-shrink:0;border-left:1px solid var(--border);display:flex;flex-direction:column;overflow-y:auto;padding:16px;background:var(--surface2)}
.chat-messages{flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:14px}
.chat-msg{display:flex;gap:10px;max-width:680px}
.chat-msg.user{align-self:flex-end;flex-direction:row-reverse}
.chat-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;margin-top:2px}
.chat-avatar.bot{background:var(--accent);color:#000;font-size:11px;font-weight:700}
.chat-avatar.user{background:var(--surface3);font-size:14px}
.chat-bubble{padding:12px 16px;border-radius:12px;font-size:14px;line-height:1.6}
.chat-msg.bot .chat-bubble{background:var(--surface);border:1px solid var(--border);color:var(--text)}
.chat-msg.user .chat-bubble{background:var(--accent);border:1px solid rgba(100,200,140,.3);color:#000}
.chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:0 24px 14px}
.chat-chip{padding:7px 14px;border-radius:20px;border:1px solid var(--border);background:var(--surface);font-size:13px;color:var(--muted);cursor:pointer;transition:all .15s}
.chat-chip:hover{border-color:#888;color:var(--text)}
.chat-input-area{padding:14px 20px;border-top:1px solid var(--border);background:var(--surface)}
.chat-input-row{display:flex;gap:8px;align-items:flex-end;background:var(--bg);border:1.5px solid var(--border);border-radius:12px;padding:9px 12px;transition:border-color .15s}
.chat-input-row:focus-within{border-color:#888}
.chat-textarea{flex:1;background:transparent;border:none;outline:none;color:var(--text);font-family:inherit;font-size:14px;resize:none;min-height:22px;max-height:120px;line-height:1.5}
.chat-textarea::placeholder{color:var(--muted)}
.chat-send{width:34px;height:34px;border-radius:8px;background:var(--text);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}
.chat-send:hover{background:#333}
.chat-send svg{width:14px;height:14px;color:white;stroke:white}
.direct-right-title{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:700;margin-bottom:10px}
.brief-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:8px;cursor:pointer;transition:border-color .15s}
.brief-card:hover{border-color:#888}
.brief-title{font-size:14px;font-weight:600;margin-bottom:4px;color:var(--text)}
.brief-desc{font-size:12px;color:var(--muted)}
.empty-chat{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;padding:40px 24px;text-align:center}
.empty-chat-icon{font-size:44px;margin-bottom:16px}
.empty-chat-title{font-size:20px;font-weight:700;margin-bottom:10px;color:var(--text)}
.empty-chat-desc{font-size:14px;color:var(--muted);max-width:400px;line-height:1.6;margin-bottom:24px}
.empty-chat-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:500px}
.empty-chip{padding:9px 18px;border-radius:20px;border:1px solid var(--border);background:var(--surface);font-size:13px;color:var(--text);cursor:pointer;transition:all .15s;text-align:left}
.empty-chip:hover{border-color:#888;background:var(--surface2)}

/* ── GEO specific ── */
.geo-checklist-item{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:8px;overflow:hidden}
.geo-cl-head{display:flex;align-items:center;gap:12px;padding:14px 18px;cursor:pointer;transition:background .15s}
.geo-cl-head:hover{background:var(--surface2)}
.geo-cl-icon{font-size:18px;flex-shrink:0}
.geo-cl-text{flex:1}
.geo-cl-title{font-size:14px;font-weight:600;margin-bottom:2px;color:var(--text)}
.geo-cl-desc{font-size:12px;color:var(--muted)}
.geo-cl-badge{font-size:10px;font-weight:600;padding:2px 8px;border-radius:10px}
.geo-cl-body{display:none;padding:0 18px 16px;border-top:1px solid var(--border)}
.geo-cl-body.open{display:block}
.geo-cl-task{background:var(--surface2);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.6;color:var(--muted);margin:10px 0}

/* GEO monitor */
.monitor-query-row{display:flex;align-items:center;gap:10px;padding:12px;background:var(--surface);border-radius:8px;margin-bottom:7px;border:1px solid var(--border)}
.monitor-query-text{flex:1;font-size:14px;color:var(--text)}
.geo-results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:12px}
.geo-result-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px}
.geo-result-model{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:6px;display:flex;align-items:center;gap:6px}
.geo-result-text{font-size:13px;line-height:1.6;color:var(--text)}
.geo-mention{background:rgba(255,230,0,.3);color:#6B5900;border-radius:4px;padding:1px 4px;font-weight:700}

/* Platform cards (for Биржа) */
.platform-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.platform-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px;cursor:pointer;transition:all .15s;user-select:none}
.platform-card:hover{border-color:#AAA29A;transform:translateY(-1px)}
.platform-card.selected-platform{border-color:transparent;background:var(--accent)}
.platform-card.planned{opacity:.55}
.pc-icon{font-size:22px;margin-bottom:6px}
.pc-title{font-size:14px;font-weight:700;margin-bottom:3px;color:var(--text)}
.pc-desc{font-size:12px;color:var(--muted);line-height:1.4}
.pc-tag{font-size:10px;padding:2px 7px;border-radius:3px;background:var(--surface3);color:var(--muted);display:inline-block}
.pcs-active{font-size:10px;font-weight:600;padding:2px 7px;border-radius:4px;background:rgba(45,138,78,.1);color:var(--success)}
.pcs-planned{font-size:10px;font-weight:600;padding:2px 7px;border-radius:4px;background:rgba(184,120,0,.1);color:var(--warn)}

/* Slider */
.slider-row{display:flex;align-items:center;gap:12px;margin:8px 0}
input[type=range]{flex:1;accent-color:var(--text);height:4px;cursor:pointer}
.slider-val{font-size:20px;font-weight:700;color:var(--text);min-width:80px;text-align:right}
.calc-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin-top:12px}
.calc-action{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between}
.calc-action-name{font-size:13px;font-weight:500;color:var(--text)}
.calc-action-count{font-size:14px;font-weight:700;color:var(--text)}
.calc-action-price{font-size:11px;color:var(--muted)}

/* Campaign card */
.campaign-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:10px;display:flex;align-items:center;gap:12px}
.cc-num{width:32px;height:32px;border-radius:50%;background:var(--surface3);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--text);flex-shrink:0}
.cc-body{flex:1}
.cc-title{font-size:14px;font-weight:600;margin-bottom:3px;color:var(--text)}
.cc-meta{font-size:12px;color:var(--muted)}
.cc-actions{display:flex;gap:6px}

/* Wizard steps */
.xstep{display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--muted);transition:all .15s}
.xstep.active{color:var(--text);font-weight:600}
.xstep-num{width:26px;height:26px;border-radius:50%;background:var(--surface3);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;color:var(--muted)}
.xstep.active .xstep-num{background:var(--text);color:#fff}
.xstep-line{flex:1;height:1px;background:var(--border);min-width:20px}

/* Platform tabs */
.ptab{background:var(--surface);border:1.5px solid var(--border);border-radius:10px;padding:12px;cursor:pointer;transition:all .15s;text-align:center}
.ptab:hover{border-color:#888}
.ptab.selected{border-color:transparent;background:var(--accent)}

/* Action type buttons */
.xtype-btn{padding:6px 14px;border:none;background:transparent;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;border-radius:6px;font-family:inherit;transition:all .15s}
.xtype-btn.active{background:var(--accent);color:#000;font-weight:600}

/* Action rows */
.action-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.action-row:last-child{border-bottom:none}
.action-icon{font-size:17px;flex-shrink:0;width:24px;text-align:center}
.action-name{flex:1;font-size:14px;font-weight:500;line-height:1.4;min-width:0;color:var(--text)}
.action-price{font-size:12px;color:var(--muted);margin-top:1px}
.action-counter{display:flex;align-items:center;gap:5px;flex-shrink:0}
.cnt-btn{width:30px;height:30px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .15s}
.cnt-btn:hover{border-color:#888;background:var(--surface3)}
.cnt-val{min-width:30px;text-align:center;font-size:14px;font-weight:700;color:var(--muted);background:var(--surface3);border-radius:6px;padding:3px 6px}
.cnt-val.active{color:#fff;background:#1A7A3A}

/* Action row (exchange / campaign unified) */
.act-row{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--border);transition:background .1s}
.act-row:last-child{border-bottom:none}
.act-row:hover{background:var(--surface2)}
.act-icon{font-size:18px;flex-shrink:0;width:24px;text-align:center}
.act-info{flex:1;min-width:0}
.act-name{font-size:14px;font-weight:500;color:var(--text)}
.act-price{font-size:12px;color:var(--muted);margin-top:1px}
.act-badge{font-size:10px;font-weight:700;padding:2px 6px;border-radius:8px;margin-right:4px;white-space:nowrap;vertical-align:middle}
.act-cnt{display:flex;align-items:center;gap:5px;flex-shrink:0}
.act-cnt-btn{width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:17px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .15s;flex-shrink:0}
.act-cnt-btn:hover{border-color:#888;background:var(--surface3)}
.act-cnt-val{min-width:34px;text-align:center;font-size:15px;font-weight:700;color:var(--muted);padding:4px 7px;border-radius:6px;background:var(--surface3)}
.act-cnt-val.active{color:#fff;background:#1A7A3A}
/* Breakdown list */
.bdown-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:13px;border-bottom:1px solid var(--border)}
.bdown-row:last-child{border-bottom:none}
.bdown-name{color:var(--muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdown-val{font-weight:700;color:var(--text);flex-shrink:0;margin-left:8px}

/* Group labels in action list */
.act-group-label{font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:700;padding:10px 20px 6px;display:flex;align-items:center;gap:7px;background:var(--surface2);border-bottom:1px solid var(--border);color:var(--muted)}
.act-group-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}

/* Tempo cards */
.tempo-card{background:var(--surface);border:2px solid var(--border);border-radius:12px;padding:16px;cursor:pointer;text-align:center;transition:all .15s}
.tempo-card:hover{border-color:#888}
.tempo-card.selected{border-color:transparent;background:var(--accent)}

/* Executor map */
.exec-map{background:linear-gradient(135deg,#1a2744 0%,#0f1729 50%,#1a2744 100%);border-radius:12px;position:relative;overflow:hidden}
.exec-avatar{position:absolute;width:32px;height:32px;border-radius:50%;background:rgba(165,243,196,.2);border:2px solid rgba(165,243,196,.5);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--accent);animation:float 3s ease-in-out infinite}
.exec-icon{position:absolute;font-size:14px;animation:float 2.5s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* ── AI SEO / GEO section ── */
.seo-score-ring{display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;border:3px solid var(--border);background:var(--surface);font-size:22px;font-weight:800;flex-shrink:0}
.seo-score-ring.good{border-color:var(--success);color:var(--success)}
.seo-score-ring.mid{border-color:var(--warn);color:var(--warn)}
.seo-score-ring.bad{border-color:var(--danger);color:var(--danger)}
.agent-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 16px}
.agent-card-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.agent-logo{width:22px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.agent-name{font-size:13px;font-weight:700;color:var(--text)}
.agent-mention{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px}
.agent-mention.yes{background:rgba(45,138,78,.1);color:var(--success)}
.agent-mention.no{background:rgba(192,57,43,.08);color:var(--danger)}
.agent-text{font-size:12px;line-height:1.6;color:var(--muted)}
.geo-check-item{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border)}
.geo-check-item:last-child{border-bottom:none}
.geo-check-cb{width:16px;height:16px;accent-color:var(--text);cursor:pointer;flex-shrink:0;margin-top:2px}
.geo-check-body{flex:1;min-width:0}
.geo-check-title{font-size:14px;font-weight:600;margin-bottom:2px;color:var(--text)}
.geo-check-desc{font-size:12px;color:var(--muted);line-height:1.5}
.geo-check-tag{font-size:10px;padding:2px 6px;border-radius:4px;font-weight:700;margin-right:5px}
.tag-tech{background:rgba(37,99,235,.08);color:var(--blue)}
.tag-content{background:rgba(124,58,237,.08);color:var(--purple)}
.tag-schema{background:rgba(184,120,0,.1);color:var(--warn)}
.tag-geo{background:rgba(45,138,78,.1);color:var(--success)}
.seo-monitor-row{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}
.seo-monitor-row:last-child{border-bottom:none}
.seo-monitor-row:hover{background:var(--surface2)}
.seo-monitor-row.selected{background:rgba(255,230,0,.12)}
.seo-mention-dots{display:flex;gap:4px}
.seo-dot{width:8px;height:8px;border-radius:50%}

/* Progress bars */
.progress-bar{height:5px;background:var(--surface3);border-radius:3px;overflow:hidden}
.progress-fill{height:100%;background:var(--text);border-radius:3px;transition:width .4s ease}

/* ── HERO section ── */
.hero{background:var(--surface);padding:52px 44px;border-radius:16px;margin-bottom:28px;position:relative;overflow:hidden;border:1px solid var(--border)}
.hero-title{font-size:38px;font-weight:700;line-height:1.18;color:var(--text);margin-bottom:14px}
.hero-sub{font-size:16px;color:var(--muted);line-height:1.65;margin-bottom:30px;max-width:520px}
.hero-metrics{display:flex;gap:48px;margin-bottom:30px;flex-wrap:wrap}
.hero-metric-val{font-size:28px;font-weight:700;color:var(--text);line-height:1}
.hero-metric-label{font-size:13px;color:var(--muted);margin-top:4px}
.hero-cta{display:inline-flex;align-items:center;gap:8px;background:var(--text);color:#fff;font-weight:700;font-size:15px;padding:14px 30px;border-radius:10px;border:none;cursor:pointer;transition:background .15s;font-family:inherit}
.hero-cta:hover{background:#333}
.hero-avatars{display:flex;align-items:center}
.hero-avatar{width:36px;height:36px;border-radius:50%;border:2px solid var(--surface);object-fit:cover;background:var(--surface3);margin-left:-8px;flex-shrink:0}
.hero-avatar:first-child{margin-left:0}

/* Step cards */
.step-header{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.step-number{width:38px;height:38px;border-radius:50%;background:var(--text);color:white;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.step-title{font-size:18px;font-weight:700;color:var(--text)}
.step-sub{font-size:13px;color:var(--muted)}

/* Platform pills */
.platform-pill{display:flex;align-items:center;gap:8px;padding:8px 15px;border:1px solid var(--border);border-radius:50px;background:var(--surface);cursor:pointer;transition:all .15s;font-size:14px;font-weight:500;color:var(--text);white-space:nowrap}
.platform-pill:hover{border-color:#AAA29A}
.platform-pill.selected{border-color:transparent;background:var(--accent);color:#000;font-weight:600}
.platform-pill-icon{flex-shrink:0;width:16px;height:16px;border-radius:3px;object-fit:contain}
.platform-pills-grid{display:flex;flex-wrap:wrap;gap:8px}

/* Executor type toggle */
.exec-toggle{display:flex;gap:6px;margin-bottom:14px}
.exec-toggle-btn{display:flex;align-items:center;gap:6px;padding:8px 16px;border-radius:50px;border:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:14px;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit}
.exec-toggle-btn:hover{border-color:#AAA29A;color:var(--text)}
.exec-toggle-btn.selected{border-color:transparent;background:var(--accent);color:#000;font-weight:600}

/* Service cards */
.service-card{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);cursor:pointer;transition:all .15s}
.service-card:hover{border-color:#AAA29A}
.service-card.selected{border-color:transparent;background:var(--accent)}
.service-icon{width:38px;height:38px;border-radius:8px;background:var(--surface3);display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}
.service-name{font-size:14px;font-weight:500;color:var(--text)}
.service-desc{font-size:12px;color:var(--muted)}
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}

/* Step CTA */
.step-next{display:inline-flex;align-items:center;gap:8px;padding:14px 24px;border-radius:10px;font-weight:700;font-size:15px;border:none;cursor:pointer;width:100%;justify-content:center;transition:all .15s;font-family:inherit}
.step-next:disabled,.step-next.inactive{background:var(--surface3);color:var(--muted);cursor:not-allowed}
.step-next.active{background:var(--text);color:#fff}
.step-next.active:hover{background:#333}

/* Campaigns type tabs */
.camp-type-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.camp-type-tab{padding:7px 16px;border-radius:50px;border:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}
.camp-type-tab:hover{border-color:#888;color:var(--text)}
.camp-type-tab.active{border-color:transparent;background:var(--accent);color:#000}

/* ── Custom picker (svc-picker) — global ── */
.svc-picker{position:relative}
.svc-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--surface);border:1.5px solid var(--border);border-radius:8px;color:var(--muted);padding:9px 12px;font-size:13px;font-family:inherit;cursor:pointer;text-align:left;transition:border-color .15s;box-sizing:border-box}
.svc-trigger:hover{border-color:#888}
.svc-trigger.open{border-color:var(--text);color:var(--text)}
.svc-trigger.selected .svc-val{color:var(--text)}
.svc-trigger .svc-chev{flex-shrink:0;transition:transform .2s;color:var(--muted)}
.svc-trigger.open .svc-chev{transform:rotate(180deg)}
.svc-trigger .svc-val{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.svc-trigger-sm{padding:0 10px;height:28px;font-size:12px}
.svc-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface);border:1.5px solid var(--border);border-radius:10px;box-shadow:0 6px 24px rgba(0,0,0,.13);z-index:60;max-height:260px;overflow-y:auto;display:none}
.svc-dropdown.open{display:block}
.svc-opt{padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--border)}
.svc-opt:last-child{border-bottom:none}
.svc-opt:hover{background:var(--surface2)}
.svc-opt-name{font-size:13px;font-weight:600;color:var(--text);line-height:1.3}
.svc-opt-desc{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.4}
