:root {
  --rose-50: #f1f5f9;
  --rose-100: #eef4ff;
  --rose-200: #bfdbfe;
  --rose-600: #0f766e;
  --rose-700: #115e59;
  --teal: #14b8a6;
  --wine: #0b1220;
  --ink: #0f172a;
  --blue: #1447e6;
  --blue-dark: #1039bc;
  --paper: #f8fafc;
  --surface: #ffffff;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --line: #e8edf4;
  --line-input: #e2e8f0;
  --green: #0f8a5f;
  --amber: #b45309;
  --red: #c81e3a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 18px 55px rgba(15, 23, 42, .12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --sidebar: 250px;
  --ease: 220ms cubic-bezier(.22,1,.36,1);
  --ease-press: 100ms cubic-bezier(.32,.72,0,1);
  --surface-2: #fbfcfe;
  --line-soft: #eef2f7;
  --line-strong: #cbd5e1;
  --text-2: #475569;
  --seg-bg: #eef2f7;
  --header-bg: rgba(248, 250, 252, .92);
  --ok-bg: #e7f8f3;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --err-bg: #fee2e2;
  --err-text: #b91c1c;
  color-scheme: light;
}

/* Тёмная тема: переопределяются только токены, компоненты берут цвета из них */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1220;
  --surface: #111a2e;
  --surface-2: #0e1627;
  --rose-50: #1a2438;
  --rose-100: #172a55;
  --rose-200: #23345c;
  --rose-600: #2dd4bf;
  --rose-700: #5eead4;
  --teal: #2dd4bf;
  --wine: #16213a;
  --ink: #e6ebf5;
  --blue: #4d7cff;
  --blue-dark: #3c6cf5;
  --muted: #94a3b8;
  --muted-soft: #7a8aa3;
  --text-2: #b6c2d6;
  --line: #1f2a40;
  --line-input: #2a3650;
  --line-soft: #1a2438;
  --line-strong: #3a4763;
  --seg-bg: #1a2438;
  --header-bg: rgba(11, 18, 32, .88);
  --ok-bg: rgba(45, 212, 191, .14);
  --warn-bg: rgba(251, 191, 36, .14);
  --warn-text: #fcd34d;
  --err-bg: rgba(248, 113, 113, .14);
  --err-text: #fca5a5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
}
:root[data-theme="dark"] .network-logo, :root[data-theme="dark"] .cookie-banner, :root[data-theme="dark"] .help-card-dark, :root[data-theme="dark"] .cta-block { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 12px 18px; background: var(--blue); color: #fff; border-radius: 8px; transition: top var(--ease); }
.skip-link:focus { top: 16px; }

/* Brand and buttons */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; letter-spacing: .09em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; display: block; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(20, 71, 230, .9); transition: background var(--ease), box-shadow var(--ease), transform var(--ease-press); }
.button:hover { background: var(--blue-dark); box-shadow: 0 12px 26px -12px rgba(20, 71, 230, .8); }
.button:active { transform: scale(.97); transition: transform var(--ease-press); }
.button-secondary { background: var(--ink); box-shadow: none; }
.button-secondary:hover { background: var(--wine); box-shadow: 0 10px 24px rgba(15, 23, 42, .20); }
.button-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-input); box-shadow: none; }
.button-ghost:hover { background: var(--rose-50); box-shadow: none; }
.button-sm { min-height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
.button svg, .icon-text-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--blue-dark); }
.text-link svg { display: inline-block; width: 14px; height: 14px; margin-left: 2px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Public */
.public-header { position: sticky; z-index: 50; top: 0; padding: 14px 32px; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.public-nav { width: min(1180px, 100%); min-height: 44px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-nav .brand { font-size: 15px; letter-spacing: .02em; }
.public-nav nav { display: flex; gap: 24px; }
.public-nav nav a { color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.public-nav nav a:hover { color: var(--ink); }
.public-actions { display: flex; align-items: center; gap: 14px; }
.public-actions .text-link { color: var(--ink); font-size: 14px; }
.public-main { position: relative; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding: 22px 32px; border-top: 1px solid var(--line); }
.public-footer a { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.public-footer a:hover { color: var(--ink); }
.landing-wrap { width: min(1180px, calc(100% - 64px)); margin: auto; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: 48px; padding: 72px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: var(--rose-100); color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.landing-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.landing-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 46ch; margin: 22px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin: 22px 0 0; color: var(--muted-soft); font-size: 13px; }
.product-stage { position: relative; min-width: 0; }
.product-window { overflow: hidden; background: var(--surface); border: 1px solid var(--line-input); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.window-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.window-bar i { width: 9px; height: 9px; background: var(--line-input); border-radius: 50%; }
.window-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.window-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; background: var(--surface-2); border-right: 1px solid var(--line-soft); }
.window-nav span { display: block; width: 26px; height: 8px; background: var(--line-input); border-radius: 4px; }
.window-nav span:first-child { background: var(--blue); }
.window-content { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.mock-title { width: 52%; height: 12px; background: var(--line-input); border-radius: 6px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { height: 52px; background: var(--rose-50); border-radius: 12px; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 13px; }
.mock-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mock-badge.done { color: var(--rose-600); background: var(--ok-bg); }
.mock-badge.sending { color: var(--blue); background: var(--rose-100); }
.mock-badge.queued { color: var(--muted); background: var(--rose-50); }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line-input); border-radius: 999px; box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .35); font-size: 13px; font-weight: 600; }
.floating-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2; }
.chip-one { top: -14px; left: -10px; }
.chip-two { bottom: -16px; right: -8px; }
.chip-two svg { stroke: var(--blue); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.logo-strip p { margin: 0; color: var(--muted-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-pill { padding: 7px 14px; background: var(--rose-50); border-radius: 999px; font-size: 13px; font-weight: 600; }
.landing-section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.centered { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h1, .section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-card h3 { margin: 16px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); background: var(--rose-100); border-radius: 14px; }
.step-card:nth-child(2) .step-icon { color: var(--rose-600); background: var(--ok-bg); }
.step-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cta-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 44px; color: #f8fafc; background: var(--wine); border-radius: var(--radius-lg); }
.cta-block h2 { max-width: 22ch; margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }

.pricing-wrap { width: min(960px, calc(100% - 64px)); }
.pricing-section .plan-grid { max-width: 896px; margin: 0 auto; }
#how, #platforms, #pricing { scroll-margin-top: 90px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px; }
.plan-card.featured { border: 2px solid var(--blue); box-shadow: 0 20px 40px -28px rgba(20, 71, 230, .6); }
.plan-card-top { display: flex; align-self: stretch; align-items: center; justify-content: space-between; min-height: 44px; }
.plan-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--rose-50); border-radius: 14px; font-weight: 800; }
.plan-card.featured .plan-icon { color: var(--blue); background: var(--rose-100); }
.plan-card h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.plan-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.plan-card p.plan-price { margin: 8px 0; color: var(--ink); font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: var(--muted-soft); font-size: 14px; font-weight: 600; letter-spacing: 0; }

/* Auth */
.auth-layout { display: grid; place-items: center; padding: 64px 32px 80px; }
.auth-card { width: min(440px, 100%); padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .4); }
.auth-card h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-links a { white-space: nowrap; }

/* App shell */
.sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px; color: var(--ink); background: var(--surface); border-right: 1px solid var(--line); }
.sidebar .brand { margin: 6px 8px 22px; color: var(--ink); }
.nav-label { margin: 0 8px 8px; padding: 0 4px; color: var(--muted-soft); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--text-2); border-radius: 12px; font-weight: 500; font-size: 14px; text-decoration: none; transition: color var(--ease), background var(--ease), transform var(--ease-press); }
.side-nav a:hover { color: var(--ink); background: var(--rose-50); }
.side-nav a:active { transform: scale(.98); }
.side-nav a.active { color: var(--blue); background: var(--rose-100); font-weight: 700; }
.side-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-switcher { display: flex; gap: 2px; width: fit-content; margin: 0 8px 12px; padding: 3px; background: var(--seg-bg); border-radius: 999px; }
.lang-switcher form { margin: 0; }
.lang-btn { padding: 4px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--ease), color var(--ease); }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.lang-switcher-compact { margin: 0; }
.prefs-row { display: flex; align-items: center; gap: 8px; margin: 0 8px 12px; }
.prefs-row .lang-switcher { margin: 0; }
.theme-toggle { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; color: var(--text-2); background: var(--seg-bg); border: 0; border-radius: 999px; transition: color var(--ease), background var(--ease), transform var(--ease-press); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); border-radius: 12px; font-weight: 700; }
.user-chip div { min-width: 0; }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--muted-soft); font-size: 11px; }
.icon-text-btn { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 0 10px; color: var(--muted); background: none; border: 0; border-radius: 9px; font-weight: 600; font-size: 13px; }
.icon-text-btn:hover { color: var(--ink); background: var(--rose-50); }
.mobile-bar { display: none; }
.nav-scrim { display: none; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); padding: 32px clamp(24px, 3vw, 40px) 64px; }
.app-main > * { width: min(1280px, 100%); margin-left: auto; margin-right: auto; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-head .eyebrow { margin: 0; padding: 0; background: none; letter-spacing: .08em; }
.page-head h1 { margin: 8px 0 0; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.page-head p { max-width: 58ch; margin: 8px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards and data */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
.network-card:hover, .active-card:hover { box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .25); transform: translateY(-2px); border-color: var(--line-input); }
.network-card:active, .active-card:active { transform: translateY(0) scale(.99); transition: transform var(--ease-press); }
.card-pad { padding: 24px; }
.card-pad h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.card-pad > p { margin: 0 0 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px; border-radius: var(--radius); }
.stat-label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-value { display: block; font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.stat-meta { display: flex; align-items: center; gap: 6px; color: var(--muted-soft); font-size: 12px; }
.stat-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.logs-table td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; white-space: nowrap; }
.log-time { color: var(--muted); font-size: 12.5px; }
.log-network { display: flex; align-items: center; gap: 10px; min-width: 0; }
.log-network-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); max-width: 260px; }
.log-network-name strong { color: var(--ink); text-transform: capitalize; }
.log-detail { max-width: 360px; white-space: normal; }
.log-detail small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.4; cursor: help; }
th { padding: 13px 20px; color: var(--muted-soft); background: var(--surface-2); font-size: 12px; font-weight: 700; text-align: left; }
td { padding: 14px 20px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 14px; }
tbody tr { transition: background var(--ease); }
tbody tr:hover { background: var(--surface-2); }
.post-cell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.post-index { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: var(--rose-100); border-radius: 12px; font-size: 12px; font-weight: 800; }
.post-cell strong, .post-cell small { display: block; }
.post-cell small { max-width: 390px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-published, .status-success { color: var(--rose-600); background: var(--ok-bg); }
.status-scheduled, .status-pending, .status-processing { color: var(--warn-text); background: var(--warn-bg); }
.status-failed, .status-gave_up, .status-fail { color: var(--err-text); background: var(--err-bg); }
.status-partial { color: var(--blue); background: var(--rose-100); }
.empty-state { padding: 56px 24px; text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--blue); background: var(--rose-100); border-radius: 16px; }
.empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.empty-state h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.form-card { padding: 26px; }
.form-section + .form-section { margin: 26px -26px 0; padding: 26px 26px 0; border-top: 1px solid var(--line-soft); }
.form-section h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.form-section > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label, .field-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.field-label small, .field label small { color: var(--muted-soft); font-weight: 500; }
input, textarea, select { width: 100%; min-height: 46px; padding: 12px 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-input); border-radius: var(--radius-sm); outline: none; font-size: 15px; transition: border 140ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out; }
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 71, 230, .12); }
button:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 71, 230, .25); }
.file-drop { position: relative; display: grid; place-items: center; min-height: 150px; padding: 32px; color: var(--muted-soft); background: var(--surface-2); border: 1.5px dashed var(--line-strong); border-radius: 16px; text-align: center; font-size: 12px; cursor: pointer; transition: background var(--ease), border var(--ease); }
.file-drop strong { display: block; color: var(--ink); font-size: 15px; }
.file-drop:hover { background: var(--rose-100); border-color: var(--blue); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { width: 44px; height: 44px; margin: 0 auto 12px; padding: 12px; color: var(--blue); background: var(--rose-100); border-radius: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.channel-list { display: grid; gap: 8px; }
.channel-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border var(--ease), background var(--ease); }
.channel-option:hover { background: var(--surface); border-color: var(--line-input); }
.channel-option input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.network-dot { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink); background: var(--rose-50); border-radius: 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.network-dot .network-letters { font-size: 11px; }
.form-aside { position: sticky; top: 24px; }
.help-card { padding: 22px; color: var(--ink); background: var(--surface); }
.help-card h3 { margin: 12px 0 10px; font-size: 17px; }
.help-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.help-card .eyebrow { margin: 0; padding: 0; background: none; color: var(--rose-600); letter-spacing: .08em; }
.help-card-dark { color: #f8fafc; background: var(--wine); border: 0; }
.help-card-dark p { color: #cbd5e1; }
.help-card-dark .eyebrow { color: #2dd4bf; }
.help-card-dark a { color: #fff; }
.help-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.help-list li { display: flex; gap: 10px; font-size: 14px; }
.help-list svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; fill: none; stroke: var(--teal); stroke-width: 2; }
.help-card-dark .help-list svg { stroke: #2dd4bf; }

/* Connections */
.connection-section { margin-top: 32px; }
.connection-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.connection-section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.connection-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.connection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.network-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); }
.network-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.network-logo { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: #1e293b; border-radius: 13px; font-weight: 800; }
.network-logo .network-letters { font-size: 14px; letter-spacing: .01em; }
.network-logo.youtube { background: #ff0033; }.network-logo.vk { background: #2787f5; }.network-logo.pinterest { background: #bd081c; }.network-logo.whatsapp { background: #128c7e; }.network-logo.automation { background: #0f766e; }
.network-logo.instagram { background: #c1327a; }.network-logo.facebook { background: #1877f2; }.network-logo.threads { background: #111; }.network-logo.tiktok { background: #111; }.network-logo.x { background: #111; }.network-logo.telegram { background: #27a7e7; }
.network-letters { font-weight: 800; text-transform: uppercase; line-height: 1; user-select: none; }
.network-card h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.network-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.network-card > form { margin-top: auto; }
.button-block { width: 100%; }
.connection-grid.wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.download-card { color: #fff; background: var(--wine); border: 0; }
.download-card p { color: #cbd5e1; }
.download-card .button-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.active-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 12px; }
.active-card { padding: 18px; border-radius: var(--radius); }
.active-card-head { display: flex; align-items: center; gap: 11px; }
.active-card h3 { margin: 0; font-size: 15px; }
.active-card p { margin: 10px 0 16px; color: var(--muted); font-size: 12px; }

/* Alerts */
.flash-stack { position: fixed; z-index: 110; top: 20px; right: 22px; width: min(440px, calc(100vw - 32px)); display: grid; gap: 10px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .35); }
.flash.success { border-left-color: var(--teal); }
.flash.danger { border-left-color: #dc2626; }
.flash svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.code-reveal { padding: 16px; overflow-wrap: anywhere; color: #e0f2fe; background: var(--wine); border-radius: 12px; font: 13px/1.7 ui-monospace, monospace; }
code { padding: 2px 6px; color: var(--text-2); background: var(--rose-50); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; }
  .product-stage { width: min(560px,100%); margin-top: 16px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

@media (max-width: 760px) {
  .public-header { padding: 12px 16px; }.public-nav nav { display: none; }.public-actions .text-link { display: none; }
  .landing-wrap { width: calc(100% - 32px); }.landing-hero { padding: 48px 0 56px; }
  .chip-one { left: 4px; }.chip-two { right: 4px; }
  .landing-section { padding: 56px 0; }.cta-block { padding: 34px 25px; }
  .auth-layout { padding: 40px 16px 56px; }.auth-card { padding: 26px; }
  .sidebar { transform: translateX(-102%); transition: transform 220ms ease; }.sidebar.open { transform: translateX(0); }
  .mobile-bar { position: sticky; z-index: 70; top: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .menu-button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 10px; }.menu-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .nav-scrim { position: fixed; z-index: 75; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(15,23,42,.52); transition: opacity 220ms ease, visibility 220ms ease; }.nav-scrim.open { visibility: visible; opacity: 1; }.menu-open { overflow: hidden; }
  .app-main { margin-left: 0; padding: 28px 16px 64px; }.page-head { align-items: flex-start; flex-direction: column; }.page-actions, .page-actions .button { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.stat-card { padding: 16px; }.stat-value { font-size: 32px; }
  .field-grid { grid-template-columns: 1fr; }.connection-section-head { align-items: flex-start; flex-direction: column; }
  th, td { padding: 12px 14px; }.post-cell { min-width: 210px; }.flash-stack { top: 74px; right: 16px; }
}

.cookie-banner { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; color: #fff; background: var(--wine); border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .55); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; color: #cbd5e1; }
.cookie-banner a { color: #fff; }
.cookie-banner .button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
