/* Kasanie v2 — Stylesheet v3: GitHub Primer Design System (как github.com/settings/billing) */

:root {
  /* GitHub Dark Mode tokens */
  --canvas-default: #0d1117;
  --canvas-subtle: #161b22;
  --canvas-inset: #010409;
  --canvas-overlay: #161b22;

  --border-default: #30363d;
  --border-muted: #21262d;

  --fg-default: #e6edf3;
  --fg-muted: #7d8590;
  --fg-subtle: #6e7681;
  --fg-on-emphasis: #ffffff;

  --accent-fg: #2f81f7;
  --accent-emphasis: #1f6feb;
  --accent-subtle: rgba(56, 139, 253, 0.15);
  --accent-muted: rgba(56, 139, 253, 0.4);

  --success-fg: #3fb950;
  --success-emphasis: #238636;
  --success-subtle: rgba(46, 160, 67, 0.15);

  --attention-fg: #d29922;
  --attention-emphasis: #9e6a03;
  --attention-subtle: rgba(187, 128, 9, 0.15);

  --danger-fg: #f85149;
  --danger-emphasis: #da3633;
  --danger-subtle: rgba(248, 81, 73, 0.15);

  --done-fg: #a371f7;
  --done-subtle: rgba(163, 113, 247, 0.15);

  --neutral-emphasis: #6e7681;
  --neutral-muted: rgba(110, 118, 129, 0.4);
  --neutral-subtle: rgba(110, 118, 129, 0.1);

  /* aliases used in markup */
  --bg: var(--canvas-default);
  --bg-surface: var(--canvas-default);
  --bg-elevated: var(--canvas-subtle);
  --bg-strip: var(--canvas-subtle);
  --border: var(--border-default);
  --border-thin: var(--border-default);
  --border-strong: var(--border-default);
  --text: var(--fg-default);
  --text-muted: var(--fg-muted);
  --text-faint: var(--fg-subtle);
  --accent: var(--accent-fg);
  --accent-hover: #0860c9;
  --accent-soft: var(--accent-subtle);

  --success: var(--success-fg);
  --success-soft: var(--success-subtle);
  --warning: var(--attention-fg);
  --warning-soft: var(--attention-subtle);
  --danger: var(--danger-fg);
  --danger-soft: var(--danger-subtle);

  --test-mode: var(--accent-fg);
  --test-mode-soft: var(--accent-subtle);
  --real-mode: var(--danger-fg);
  --real-mode-soft: var(--danger-subtle);

  --radius: 6px;
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  /* ЦА — маркетологи и продажники, не программисты. Моноширинный НЕ используем для UI/данных, только для буквального кода. */
  --font-mono: var(--font-ui);
  --font-code: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 0 rgba(31,35,40,0.04);
  --shadow-md: 0 3px 6px rgba(140,149,159,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-default);
  background: var(--canvas-default);
  -webkit-font-smoothing: antialiased;
}

code, .mono, .data {
  font-family: var(--font-mono);
  font-size: 13px;
}

a { color: var(--accent-fg); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul, ol { list-style: none; }
hr { border: none; border-top: 1px solid var(--border-default); margin: var(--space-5) 0; }

/* === Layout === */
.app-layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  min-height: 100vh;
  background: var(--canvas-default);
}

.sidebar {
  background: var(--canvas-default);
  border-right: 1px solid var(--border-muted);
  padding: var(--space-5) var(--space-4);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar__logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-default);
  padding: 0 var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar__logo-icon {
  width: 24px; height: 24px;
  background: var(--fg-default);
  color: var(--canvas-inset);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border-radius: 6px;
  color: var(--fg-default);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  position: relative;
}
.sidebar__item:hover {
  background: var(--canvas-subtle);
  text-decoration: none;
}
.sidebar__item--active {
  background: var(--canvas-subtle);
  font-weight: 600;
}
.sidebar__item--active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent-fg);
  border-radius: 6px;
}
.sidebar__item-icon {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
}
.sidebar__user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-fg);
  color: white;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-default);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-plan {
  font-size: 12px;
  color: var(--fg-muted);
}

.main {
  padding: var(--space-6);
  max-width: 1012px;
  width: 100%;
}
.main--narrow { max-width: 768px; margin: 0 auto; }
.main--center { display: flex; flex-direction: column; align-items: center; }

/* === Page Header === */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
  gap: var(--space-4);
}
.page-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--fg-default);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.page-subtitle {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 2px;
}

/* === Buttons (GitHub Primer style) === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid var(--border-default);
  background: #21262d;
  color: var(--fg-default);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #30363d;
  border-color: #8b949e;
  text-decoration: none;
}
.btn--primary {
  background: var(--success-emphasis);
  color: white;
  border-color: rgba(240,246,252,0.1);
}
.btn--primary:hover { background: #2ea043; color: white; border-color: rgba(240,246,252,0.1); }
.btn--secondary {
  background: #21262d;
  color: var(--fg-default);
}
.btn--danger {
  background: #21262d;
  color: var(--danger-fg);
}
.btn--danger:hover {
  background: var(--danger-emphasis);
  color: white;
  border-color: var(--danger-emphasis);
}
.btn--ghost {
  background: transparent;
  color: var(--accent-fg);
  border-color: transparent;
}
.btn--ghost:hover {
  background: rgba(177,186,196,0.12);
  color: var(--accent-fg);
}
.btn--yellow {
  background: #ffd33d;
  color: #1f2328;
}
.btn--large {
  padding: 8px 20px;
  font-size: 16px;
  line-height: 22px;
}
.btn--block { width: 100%; justify-content: center; }

/* === Tab navigation (Underline_nav style) === */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-5);
}
.tab {
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--fg-default);
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover { border-bottom-color: var(--border-default); }
.tab--active {
  font-weight: 600;
  border-bottom-color: #fd8c73;
}
.tab__count {
  display: inline-block;
  padding: 0 7px;
  background: var(--neutral-muted);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-default);
  line-height: 18px;
}

/* === Cards (Box style) === */
.card {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-4);
}
.card--strip { background: var(--canvas-subtle); }
.card--yellow { background: var(--attention-subtle); border-color: rgba(212, 167, 44, 0.4); }
.card--hover { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.card--hover:hover { border-color: var(--accent-fg); }
.card--padless { padding: 0; }
.card__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-2);
}
.card__meta {
  color: var(--fg-muted);
  font-size: 12px;
}

/* === Stats === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.stat {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-4);
}
.stat__label {
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.stat__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-default);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.stat__delta {
  font-size: 12px;
  color: var(--success-fg);
  margin-top: var(--space-2);
}
.stat__delta--down { color: var(--danger-fg); }

/* === Tables === */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  overflow: hidden;
}
.table thead {
  background: var(--canvas-subtle);
}
.table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-default);
}
.table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-default);
  font-size: 14px;
  vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--canvas-subtle); }

/* === Badges (State labels GH) === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border-radius: 2em;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  border: 1px solid transparent;
}
.badge--success { background: var(--success-subtle); color: var(--success-fg); border-color: rgba(74,194,107,0.4); }
.badge--warning { background: var(--attention-subtle); color: var(--attention-fg); border-color: rgba(212,167,44,0.4); }
.badge--danger { background: var(--danger-subtle); color: var(--danger-fg); border-color: rgba(255,129,130,0.4); }
.badge--accent { background: var(--canvas-subtle); color: var(--fg-default); border-color: var(--border-default); }
.badge--test { background: var(--canvas-subtle); color: var(--fg-default); border-color: var(--border-default); }
.badge--real { background: var(--danger-subtle); color: var(--danger-fg); border-color: rgba(255,129,130,0.4); }
.badge--neutral { background: var(--neutral-muted); color: var(--fg-default); }

/* === Forms === */
.field { margin-bottom: var(--space-4); }
.field__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-default);
  margin-bottom: var(--space-2);
}
.field__hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: var(--space-2);
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 14px;
  background: var(--canvas-default);
  color: var(--fg-default);
  line-height: 20px;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent-fg);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.field__textarea { min-height: 100px; resize: vertical; }

/* === Mode toggle === */
.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--canvas-default);
  padding: 2px;
  gap: 2px;
}
.mode-toggle__btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  color: var(--fg-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}
.mode-toggle__btn--active-test {
  background: var(--fg-default);
  color: white;
  font-weight: 600;
}
.mode-toggle__btn--active-real {
  background: var(--danger-emphasis);
  color: white;
  font-weight: 600;
}

/* === Progress === */
.progress {
  height: 6px;
  background: var(--canvas-subtle);
  border-radius: 6px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--success-emphasis);
  border-radius: 6px;
}
.progress__bar--success { background: var(--success-emphasis); }
.progress__bar--yellow { background: var(--attention-emphasis); }

/* === Wizard === */
.wizard {
  max-width: 768px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
}
.wizard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}
.wizard__logo { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.wizard__logo-icon {
  width: 24px; height: 24px;
  background: var(--fg-default);
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.wizard__steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}
.wizard__step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-default);
}
.wizard__step-dot--filled { background: var(--success-emphasis); }
.wizard__title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.wizard__lead {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
  max-width: 600px;
}
.wizard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

/* === Provider cards === */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.provider-card {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-4);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.15s, background-color 0.15s;
}
.provider-card:hover {
  border-color: var(--accent-fg);
  background: var(--canvas-subtle);
}
.provider-card__icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 6px;
  background: var(--canvas-subtle);
  margin-bottom: var(--space-2);
}
.provider-card__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-default);
}
.provider-card__desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === Landing === */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: var(--canvas-inset);
  border-bottom: 1px solid var(--border-muted);
  position: sticky;
  top: 0;
  z-index: 10;
}
.landing-hero {
  text-align: center;
  padding: var(--space-10) var(--space-5) calc(var(--space-10) * 1.5);
  max-width: 1200px;
  margin: 0 auto;
  background: radial-gradient(ellipse at 50% 30%, #1a1a3e 0%, #0d1117 60%);
}
.landing-hero h1 {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: var(--space-5);
  color: #ffffff;
  font-family: 'Mona Sans', var(--font-ui);
}
.landing-hero h1 span { color: #ffffff; background: none; padding: 0; border: none; }
.landing-hero .lead {
  font-size: 18px;
  color: #c9d1d9;
  margin-bottom: var(--space-6);
  line-height: 1.5;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero .cta-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}
.landing-hero .btn {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(240, 246, 252, 0.1);
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.landing-hero .btn:hover {
  background: rgba(13, 17, 23, 0.9);
  border-color: rgba(240, 246, 252, 0.2);
}
.landing-hero .btn--primary {
  background: var(--success-emphasis);
  border-color: rgba(240, 246, 252, 0.1);
  color: white;
}
.landing-hero .btn--primary:hover {
  background: #2ea043;
}

/* === Hero animated demo (как GitHub Copilot чат) === */
.hero-demo {
  max-width: 1100px;
  margin: var(--space-8) auto 0;
  background: #010409;
  border: 1px solid rgba(240, 246, 252, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 80px rgba(110, 76, 240, 0.25);
}
.hero-demo__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #010409;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
}
.hero-demo__chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #30363d;
}
.hero-demo__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.hero-demo__tab {
  padding: 4px 10px;
  background: #161b22;
  border-radius: 6px 6px 0 0;
  color: #8b949e;
}
.hero-demo__tab--active {
  background: #0d1117;
  color: #e6edf3;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-bottom: none;
}
.hero-demo__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 380px;
}
.hero-demo__sidebar {
  background: #010409;
  border-right: 1px solid rgba(240, 246, 252, 0.08);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7d8590;
}
.hero-demo__sidebar h4 {
  color: #e6edf3;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero-demo__chat-msg {
  background: #161b22;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  color: #c9d1d9;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
}
.hero-demo__chat-msg:nth-child(2) { animation-delay: 0.4s; }
.hero-demo__chat-msg:nth-child(3) { animation-delay: 1.0s; }
.hero-demo__chat-msg:nth-child(4) { animation-delay: 1.6s; }
.hero-demo__chat-msg--user { background: rgba(56, 139, 253, 0.15); border-color: rgba(56, 139, 253, 0.3); }

.hero-demo__main {
  padding: 20px 24px;
  background: #0d1117;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e6edf3;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.hero-demo__line {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  animation: typeIn 0.4s forwards;
}
.hero-demo__line-num {
  color: #484f58;
  width: 24px;
  text-align: right;
  font-size: 12px;
  flex-shrink: 0;
}
.hero-demo__line-text { color: #c9d1d9; }
.hero-demo__keyword { color: #ff7b72; }
.hero-demo__string { color: #a5d6ff; }
.hero-demo__number { color: #79c0ff; }
.hero-demo__comment { color: #8b949e; font-style: italic; }
.hero-demo__success { color: #3fb950; }

.hero-demo__line:nth-child(1) { animation-delay: 0.2s; }
.hero-demo__line:nth-child(2) { animation-delay: 0.5s; }
.hero-demo__line:nth-child(3) { animation-delay: 0.8s; }
.hero-demo__line:nth-child(4) { animation-delay: 1.1s; }
.hero-demo__line:nth-child(5) { animation-delay: 1.4s; }
.hero-demo__line:nth-child(6) { animation-delay: 1.8s; }
.hero-demo__line:nth-child(7) { animation-delay: 2.2s; }
.hero-demo__line:nth-child(8) { animation-delay: 2.6s; }
.hero-demo__line:nth-child(9) { animation-delay: 3.0s; }
.hero-demo__line:nth-child(10) { animation-delay: 3.4s; }
.hero-demo__line:nth-child(11) { animation-delay: 3.8s; }
.hero-demo__line:nth-child(12) { animation-delay: 4.2s; }

.hero-demo__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #58a6ff;
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes typeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* === Hero stack: 3 окна с наложением === */
.hero-stack {
  position: relative;
  max-width: 1100px;
  margin: 56px auto 0;
  height: 540px;
}
.mock-window {
  position: absolute;
  background: #0d1117;
  border: 1px solid rgba(240, 246, 252, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.mock-window--back-1 {
  top: 0; left: 0; right: 30%;
  transform: translateY(0) rotate(-1.5deg);
  z-index: 1;
  opacity: 0.7;
}
.mock-window--back-2 {
  top: 60px; left: 18%; right: 8%;
  transform: rotate(1deg);
  z-index: 2;
  opacity: 0.85;
}
.mock-window--front {
  top: 110px; left: 4%; right: 4%; bottom: 0;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.3),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(139, 92, 246, 0.45),
    0 0 160px rgba(56, 139, 253, 0.25);
}
.hero-stack::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.4) 0%, rgba(56, 139, 253, 0.2) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.hero-stack > * { position: relative; z-index: 1; }
.mock-window__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
}
.mock-window__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #30363d;
}
.mock-window__title {
  font-size: 13px;
  font-weight: 500;
  color: #c9d1d9;
  margin-left: 12px;
}
.mock-window__badge {
  margin-left: auto;
  font-size: 11px;
  color: #3fb950;
  font-weight: 600;
}
.mock-window__body {
  padding: 16px 20px;
  color: #e6edf3;
}

/* Word document mock */
.mock-word .mock-word__line {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.9;
  color: #e6edf3;
}
.mock-placeholder {
  background: rgba(255, 224, 27, 0.15);
  color: #f0d96b;
  padding: 1px 8px;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 14px;
}

/* Excel table mock */
.mock-excel__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--font-mono);
}
.mock-excel__table th {
  text-align: left;
  padding: 6px 10px;
  background: #161b22;
  color: #7d8590;
  font-weight: 600;
  border: 1px solid #21262d;
  font-size: 11px;
  text-transform: uppercase;
}
.mock-excel__table td {
  padding: 6px 10px;
  border: 1px solid #21262d;
  color: #c9d1d9;
}
.mock-excel__table tbody tr:nth-child(even) td { background: #0d1117; }
.mock-excel__table tbody tr:nth-child(odd) td { background: rgba(110, 118, 129, 0.05); }

/* Campaign live mock */
.mock-campaign__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.mock-campaign__count {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.mock-campaign__sub {
  font-size: 12px;
  color: #7d8590;
  margin-top: 4px;
}
.mock-campaign__stats {
  display: flex;
  gap: 24px;
}
.mock-campaign__stats > div { display: flex; flex-direction: column; align-items: flex-end; }
.mock-campaign__num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #e6edf3;
}
.mock-campaign__lbl {
  font-size: 11px;
  color: #7d8590;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-campaign__bar {
  height: 6px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.mock-campaign__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #238636, #3fb950);
  border-radius: 3px;
  animation: fillBar 2s ease-out forwards;
}
@keyframes fillBar {
  from { width: 0% !important; }
}
.mock-campaign__log {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mock-campaign__log th {
  text-align: left;
  padding: 8px 10px;
  background: #161b22;
  color: #7d8590;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #21262d;
}
.mock-campaign__log td {
  padding: 8px 10px;
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
  font-size: 12px;
}
.mock-row-in {
  opacity: 0;
  transform: translateY(8px);
  animation: rowIn 0.4s forwards;
}
.mock-row-in:nth-child(1) { animation-delay: 0.3s; }
.mock-row-in:nth-child(2) { animation-delay: 0.7s; }
.mock-row-in:nth-child(3) { animation-delay: 1.1s; }
.mock-row-in:nth-child(4) { animation-delay: 1.5s; }
.mock-row-in:nth-child(5) { animation-delay: 1.9s; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}
.mock-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
}
.mock-status--sent { background: rgba(110,118,129,0.15); color: #8b949e; }
.mock-status--open { background: rgba(56,139,253,0.15); color: #58a6ff; }
.mock-status--reply { background: rgba(63,185,80,0.15); color: #3fb950; }

/* === Mock runs (как workflow runs у GitHub) === */
.mock-runs__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 18px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
  margin-bottom: 14px;
}
.mock-runs__title {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
}
.mock-runs__filters {
  display: flex;
  gap: 6px;
}
.mock-runs__filter {
  font-size: 12px;
  color: #7d8590;
  padding: 4px 10px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.mock-run-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.mock-run-item:hover { background: rgba(255, 255, 255, 0.04); }
.mock-run-item__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}
.mock-run-item__dot--reply {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.5);
}
.mock-run-item__dot--reply::after { content: "✓"; color: #3fb950; }
.mock-run-item__dot--open {
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.5);
}
.mock-run-item__dot--open::after { content: "●"; color: #58a6ff; font-size: 8px; }
.mock-run-item__dot--sent {
  background: rgba(110, 118, 129, 0.15);
  border: 1px solid rgba(110, 118, 129, 0.5);
}
.mock-run-item__dot--sent::after { content: "✓"; color: #8b949e; }
.mock-run-item__body { flex: 1; min-width: 0; }
.mock-run-item__title {
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 2px;
}
.mock-run-item__sub {
  font-size: 11px;
  color: #7d8590;
}
.mock-run-item__meta {
  text-align: right;
  flex-shrink: 0;
}
.mock-run-item__date {
  font-size: 12px;
  color: #c9d1d9;
}
.mock-run-item__time {
  font-size: 11px;
  color: #7d8590;
  margin-top: 2px;
}

/* === Feature icon SVG (заменяет эмодзи) === */
.feature__icon-svg {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #58a6ff;
  margin-bottom: 16px;
}
.feature__icon-svg svg { width: 20px; height: 20px; }
.hl {
  background: rgba(255, 224, 27, 0.15);
  color: #f0d96b;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
  font-family: 'Georgia', serif;
  font-size: 13px;
}

/* === Compare grid (как окно у GitHub workflow runs) === */
.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}
.compare-wrap::before {
  content: "";
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.35) 0%, rgba(56, 139, 253, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.compare-grid {
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: var(--canvas-subtle);
  table-layout: fixed;
  width: 100%;
  display: table;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.15), 0 0 80px rgba(139, 92, 246, 0.3);
}
.compare-row {
  display: table-row;
}
.compare-row--head .compare-col {
  background: #161b22;
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
  color: var(--fg-default);
  vertical-align: middle;
  height: 56px;
}
.compare-col {
  display: table-cell;
  padding: 18px 20px;
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--fg-default);
  line-height: 1.55;
  vertical-align: top;
  width: 25%;
}
.compare-row:first-child .compare-col { border-top: none; }
.compare-row:last-child .compare-col { border-bottom: none; }
.compare-col:first-child {
  width: 30%;
  font-weight: 500;
  color: var(--fg-default);
}
.compare-col:last-child { border-right: none; }
.compare-col--us {
  background: rgba(56, 139, 253, 0.06);
  border-right-color: rgba(56, 139, 253, 0.2);
  border-left: 2px solid #58a6ff;
  width: 22%;
}
.compare-row--head .compare-col--us {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border-left-color: #58a6ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.check, .cross {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
}
.check { color: #3fb950; }
.cross { color: #7d8590; }
.check::before, .cross::before {
  flex-shrink: 0;
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.check::before {
  content: "✓";
  color: #3fb950;
}
.cross::before {
  content: "—";
  color: #6e7681;
  font-size: 16px;
}
.compare-note {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.4;
}

/* === Final CTA === */
.final-cta {
  background: radial-gradient(ellipse at 50% 50%, #1a1a3e 0%, #0d1117 70%);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--border-muted);
}
.final-cta__inner { max-width: 720px; margin: 0 auto; }
.final-cta__title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #ffffff;
}
.final-cta__lead {
  font-size: 16px;
  color: #c9d1d9;
  line-height: 1.6;
  margin-bottom: 28px;
}
.final-cta__form {
  display: inline-flex;
  align-items: center;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(240,246,252,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.final-cta__input {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  width: 320px;
  color: #1f2328;
  outline: none;
}
.final-cta__form .btn--primary {
  font-weight: 600;
}

/* === Footer === */
.site-footer {
  background: #010409;
  border-top: 1px solid var(--border-muted);
  padding: 56px 24px 0;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer__brand { max-width: 280px; }
.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.site-footer__tagline {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.site-footer__newsletter {
  padding: 16px;
  background: #0d1117;
  border: 1px solid var(--border-default);
  border-radius: 8px;
}
.site-footer__newsletter-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-default);
  margin-bottom: 4px;
}
.site-footer__newsletter-sub {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.site-footer__col-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-default);
  margin-bottom: 12px;
}
.site-footer__col a {
  display: block;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--accent-fg); }
.site-footer__bottom {
  border-top: 1px solid var(--border-default);
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer__legal {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.site-footer__legal a {
  color: var(--fg-muted);
  text-decoration: none;
}
.site-footer__legal a:hover { color: var(--accent-fg); }
.site-footer__legal-sep { color: var(--fg-subtle); }

/* === Pill tabs (GitHub style Code/Plan/Collaborate) === */
.pill-tabs {
  display: inline-flex;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 100px;
  padding: 6px;
  gap: 2px;
  backdrop-filter: blur(8px);
}
.pill-tab {
  padding: 8px 20px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pill-tab:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.pill-tab--active {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.12);
}

.landing-section {
  padding: var(--space-10) var(--space-5);
  max-width: 1080px;
  margin: 0 auto;
}
.landing-section--strip { background: var(--canvas-inset); border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); max-width: 100%; }
.landing-section__title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
}

/* 3D mascot перед заголовком секции — крупные, как у GitHub */
.section-mascot {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 20px 60px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 32px rgba(139, 92, 246, 0.4));
  animation: floatY 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.section-mascot--small {
  width: 100px;
  height: 100px;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.section-glow {
  position: relative;
  padding-top: 100px;
}
.section-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100%;
  height: 360px;
  background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.35) 0%, rgba(56, 139, 253, 0.15) 30%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section-glow > * { position: relative; z-index: 1; }

/* === Scale section: pill-toggle + cases + logo strip === */
.scale-section { padding-top: 80px; padding-bottom: 80px; }
.scale-toggle {
  display: inline-flex;
  margin: 0 auto 40px;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 100px;
  padding: 6px;
  gap: 2px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.scale-toggle__btn {
  padding: 8px 22px;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.scale-toggle__btn--active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.15);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 48px;
}
.case-card {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.case-card:hover {
  border-color: rgba(56, 139, 253, 0.4);
  transform: translateY(-2px);
}
.case-card__industry {
  font-size: 11px;
  font-weight: 600;
  color: #58a6ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.case-card__company {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-default);
  margin-bottom: 20px;
}
.case-card__metric {
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 16px 0;
  margin-bottom: 16px;
}
.case-card__num {
  font-size: 36px;
  font-weight: 700;
  color: #3fb950;
  line-height: 1;
  letter-spacing: -0.02em;
}
.case-card__lbl {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.case-card__story {
  font-size: 14px;
  color: var(--fg-default);
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}
.case-card__footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

.logo-strip {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-muted);
  max-width: 1100px;
  margin: 0 auto;
}
.logo-strip__title {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 20px;
}
.logo-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}
.logo-strip__item {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity 0.15s;
  font-family: 'Georgia', serif;
  font-style: italic;
}
.logo-strip__item:hover { opacity: 1; color: var(--fg-default); }
.landing-section__lead {
  text-align: center;
  color: var(--fg-muted);
  font-size: 16px;
  margin-bottom: var(--space-6);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.feature {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: var(--space-4);
}
.feature__icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--canvas-subtle);
  color: var(--fg-default);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: var(--space-3);
}
.feature__title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: var(--space-2);
}
.feature__desc {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-5);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--fg-default);
  border-width: 2px;
}
.pricing-card__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--fg-default);
  color: white;
  padding: 0 8px;
  border-radius: 2em;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}
.pricing-card__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}
.pricing-card__price {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-default);
}
.pricing-card__price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
}
.pricing-card__lead {
  color: var(--fg-muted);
  font-size: 14px;
  margin: var(--space-3) 0 var(--space-4);
  line-height: 1.5;
}
.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-card__features li {
  font-size: 14px;
  color: var(--fg-default);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.pricing-card__features li::before {
  content: "✓";
  color: var(--success-fg);
  font-weight: 600;
  flex-shrink: 0;
}

/* === Mock bar === */
.mock-bar {
  background: #1f2328;
  color: #f6f8fa;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-bar a {
  color: #adbac7;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
}
.mock-bar a:hover { background: #2d333b; color: white; }
.mock-bar__title { color: white; font-weight: 600; }
.mock-bar__nav { display: flex; gap: 4px; }

/* === Helpers === */
.gap-2 { display: flex; gap: var(--space-2); }
.gap-3 { display: flex; gap: var(--space-3); }
.gap-4 { display: flex; gap: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.text-muted { color: var(--fg-muted); }
.text-small { font-size: 12px; }
.text-large { font-size: 16px; }
.text-mono { font-family: var(--font-mono); }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

/* === Index overview === */
.overview-body {
  background: var(--canvas-inset);
  color: var(--fg-default);
  min-height: 100vh;
  font-family: var(--font-ui);
}
.overview-hero {
  padding: 32px 24px 16px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}
.overview-hero h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.overview-hero h1 span { color: var(--accent-fg); }
.overview-hero p {
  font-size: 14px;
  color: var(--fg-muted);
}
.overview-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.overview-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 24px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.overview-preview {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: var(--fg-default);
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.overview-preview:hover {
  border-color: var(--accent-fg);
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(140,149,159,0.15);
}
.overview-preview__num {
  display: inline-block;
  padding: 2px 8px;
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  border-radius: 6px;
}
.overview-preview__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--fg-default);
}
.overview-preview__path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.overview-preview__desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.overview-preview__status {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
}
.overview-status--ready { color: var(--success-fg); }
.overview-status--pending { color: var(--fg-muted); }

.overview-legend {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--fg-default);
  line-height: 1.6;
}
.overview-legend strong { color: var(--fg-default); }

/* ============================================================
   === GitHub Feature planning style for COMPARE section ===
   Адаптированный синий (GitHub Dark), не жёлтый
   ============================================================ */

.proj-wrap {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0 0;
}

.proj-wrap::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 320px;
  background: radial-gradient(ellipse at center top,
    rgba(139, 92, 246, 0.5) 0%,
    rgba(56, 139, 253, 0.25) 30%,
    transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.proj-wrap > * { position: relative; z-index: 1; }

.proj-card {
  background: var(--canvas-subtle);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.12),
    0 0 80px rgba(139, 92, 246, 0.22);
}

/* Header проекта */
.proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted);
  background: var(--canvas-subtle);
}
.proj-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-default);
}
.proj-header__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}
.proj-header__icon svg { width: 100%; height: 100%; }
.proj-header__actions {
  display: flex;
  gap: 2px;
}
.proj-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.proj-icon-btn:hover {
  background: var(--canvas-overlay);
  color: var(--fg-default);
  border-color: var(--border-default);
}
.proj-icon-btn svg { width: 14px; height: 14px; }

/* Views (табы) */
.proj-views {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 0;
  border-bottom: 1px solid var(--border-muted);
  background: var(--canvas-subtle);
}
.proj-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
  transition: background 0.1s, color 0.1s;
}
.proj-view:hover {
  background: var(--canvas-overlay);
  color: var(--fg-default);
}
.proj-view--active {
  background: var(--canvas-default);
  color: var(--fg-default);
  font-weight: 600;
  border-color: var(--border-muted);
  border-bottom-color: var(--canvas-default);
  position: relative;
  z-index: 1;
}
.proj-view__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: currentColor;
}
.proj-view__icon svg { width: 100%; height: 100%; }
.proj-view__caret {
  width: 10px;
  height: 10px;
  margin-left: 2px;
  opacity: 0.7;
}
.proj-view--ghost {
  color: var(--fg-subtle);
  padding-left: 8px;
}
.proj-view--ghost svg {
  width: 12px;
  height: 12px;
}

/* Grid */
.proj-grid {
  background: var(--canvas-default);
}

.proj-grid__header {
  display: grid;
  grid-template-columns: 36px 1.6fr 1fr 1.4fr 1.4fr;
  border-bottom: 1px solid var(--border-muted);
  background: var(--canvas-default);
  position: sticky;
  top: 0;
  z-index: 2;
}
.proj-grid__header .proj-cell--head:first-child {
  grid-column: 1 / span 2;
  padding-left: 14px;
}
.proj-grid__us-dot {
  width: 8px;
  height: 8px;
  background: #58a6ff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

.proj-cell--head {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  border-right: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.proj-cell--head:last-child { border-right: none; }
.proj-cell--head.proj-cell--us { color: #58a6ff; }

/* Группы */
.proj-group {
  border-bottom: 1px solid var(--border-muted);
}
.proj-group:last-child { border-bottom: none; }

.proj-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-muted);
  cursor: pointer;
  color: var(--fg-default);
  text-align: left;
}
.proj-group__head:hover { background: var(--canvas-subtle); }
.proj-group__caret {
  width: 10px;
  height: 10px;
  color: var(--fg-muted);
  transform: rotate(90deg);
  transition: transform 0.15s;
}
.proj-group__title-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}
.proj-group__title-icon svg { width: 100%; height: 100%; }
.proj-group__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-default);
}
.proj-group__count {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--canvas-overlay);
  padding: 1px 7px;
  border-radius: 100px;
  border: 1px solid var(--border-muted);
}

/* Row */
.proj-row {
  display: grid;
  grid-template-columns: 36px 1.6fr 1fr 1.4fr 1.4fr;
  border-bottom: 1px solid var(--border-muted);
  transition: background 0.08s;
}
.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: rgba(110, 118, 129, 0.06); }

.proj-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--border-muted);
  font-size: 13px;
  color: var(--fg-default);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  vertical-align: middle;
}
.proj-cell:last-child { border-right: none; }

.proj-cell--idx {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
  text-align: center;
  padding: 10px 0;
  align-items: center;
  justify-content: center;
}

.proj-cell--title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--fg-default);
  font-weight: 500;
}

.proj-cell__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--fg-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proj-cell__dot--done {
  border-color: #3fb950;
  background: rgba(63, 185, 80, 0.15);
  position: relative;
}
.proj-cell__dot--done::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #3fb950;
  border-radius: 50%;
}
.proj-cell__dot--building {
  border-color: #d29922;
}
.proj-cell__dot--building::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #d29922;
  border-radius: 50%;
}
.proj-cell__dot--launch {
  border-color: #a78bfa;
}
.proj-cell__dot--launch::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #a78bfa;
  border-radius: 50%;
}

.proj-cell--us {
  background: rgba(56, 139, 253, 0.06);
  border-left: 2px solid rgba(56, 139, 253, 0.5);
}
.proj-grid__header .proj-cell--us {
  border-left: 2px solid #58a6ff;
}

.proj-cell__note {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Pills */
.proj-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--canvas-overlay);
  color: var(--fg-default);
  width: fit-content;
  max-width: 100%;
  line-height: 18px;
}
.proj-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.proj-pill--success {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.4);
}
.proj-pill--warning {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border-color: rgba(210, 153, 34, 0.4);
}
.proj-pill--danger {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.4);
}
.proj-pill--off {
  background: rgba(110, 118, 129, 0.15);
  color: var(--fg-subtle);
  border-color: var(--border-muted);
}
.proj-pill--accent {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border-color: rgba(56, 139, 253, 0.4);
  font-weight: 700;
}

/* Add item */
.proj-add {
  padding: 10px 14px 10px 54px;
  font-size: 13px;
  color: var(--fg-subtle);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}
.proj-add:hover {
  color: #58a6ff;
  background: var(--canvas-subtle);
}

/* ============================================================
   === HERO (как github.com скриншот 2) ===
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/@fontsource/mona-sans@5.0.0/index.css');

.landing-hero {
  background: radial-gradient(ellipse at 50% 110%, #2e1a78 0%, #1a1a3e 35%, #0d1117 70%);
  text-align: center;
  padding: 80px 24px 0;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.landing-hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1400px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.55) 0%, rgba(99, 102, 241, 0.3) 30%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.landing-hero > * { position: relative; z-index: 1; }

.hero-h1 {
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: #ffffff;
  margin: 0 auto 24px;
  max-width: 1100px;
}
.hero-h1 span {
  background: linear-gradient(90deg, #c4b5fd 0%, #a78bfa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 18px;
  color: #c9d1d9;
  line-height: 1.55;
  margin: 0 auto 36px;
  max-width: 620px;
  font-weight: 400;
}

.hero-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
}

/* Email input + зелёная кнопка inline */
.hero-form {
  display: inline-flex;
  align-items: stretch;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.hero-form__input {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 15px;
  width: 280px;
  color: #1f2328;
  outline: none;
  font-family: var(--font-ui);
}
.hero-form__input::placeholder { color: #6e7681; }
.hero-form__btn {
  background: #238636;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--font-ui);
}
.hero-form__btn:hover { background: #2ea043; }

/* Тёмная "Демо" кнопка справа */
.hero-cta-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(240, 246, 252, 0.2);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}
.hero-cta-dark:hover {
  background: rgba(13, 17, 23, 0.95);
  border-color: rgba(240, 246, 252, 0.4);
  text-decoration: none;
}

.hero-footnote {
  margin-top: 22px;
  font-size: 13px;
  color: #8b949e;
  font-weight: 400;
}

/* Override старого .landing-hero h1 для совместимости */
.landing-hero h1.hero-h1 { font-family: 'Mona Sans', var(--font-ui); }

/* Hero-stack под текстом — больше purple glow */
.landing-hero .hero-stack {
  margin: 56px auto 0;
  position: relative;
}
.landing-hero .hero-stack::before {
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.6) 0%, rgba(99, 102, 241, 0.3) 30%, transparent 70%);
}

/* ============================================================
   === Hero demo (Вариант A: автосклонение ФИО) ===
   Одно центральное окно как у github.com Copilot Chat
   ============================================================ */

.hero-demo-card {
  max-width: 1180px;
  margin: 56px auto -120px;
  background: #0d1117;
  border: 1px solid rgba(240, 246, 252, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(139, 92, 246, 0.5),
    0 0 200px rgba(99, 102, 241, 0.35);
  position: relative;
  z-index: 2;
}

.hero-demo-card__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
}
.hero-demo-card__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #30363d;
}
.hero-demo-card__title {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  color: #c9d1d9;
  margin-left: 14px;
}
.hero-demo-card__badge {
  margin-left: auto;
  font-size: 11px;
  color: #3fb950;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-demo-card__badge-dot {
  width: 6px; height: 6px;
  background: #3fb950;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2);
}

.hero-demo-card__body {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 420px;
}

.hero-demo-card__pane {
  padding: 20px 22px;
}
.hero-demo-card__pane--template {
  background: #0d1117;
  border-right: 1px solid rgba(240, 246, 252, 0.08);
}
.hero-demo-card__pane--feed {
  background: #010409;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-demo-card__pane-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6e7681;
  margin-bottom: 14px;
}

/* === Word document mock === */
.hero-demo-doc {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.75;
  color: #e6edf3;
}
.hero-demo-doc p {
  margin-bottom: 12px;
}
.hero-demo-doc__sign {
  margin-top: 20px;
  color: #c9d1d9;
  font-style: italic;
  font-size: 13px;
}
.hero-demo-ph {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 1px 8px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

/* === Feed of substitutions === */
.hero-demo-row {
  display: grid;
  grid-template-columns: 1fr 22px 1.4fr;
  gap: 12px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: heroDemoRowIn 0.5s forwards;
}
.hero-demo-row:nth-of-type(1) { animation-delay: 0.4s; }
.hero-demo-row:nth-of-type(2) { animation-delay: 0.9s; }
.hero-demo-row:nth-of-type(3) { animation-delay: 1.4s; }
.hero-demo-row:nth-of-type(4) { animation-delay: 1.9s; }
@keyframes heroDemoRowIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-demo-row__src {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-demo-row__src-label {
  font-family: var(--font-code);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6e7681;
}
.hero-demo-row__src-val {
  font-family: var(--font-code);
  font-size: 12px;
  color: #c9d1d9;
  line-height: 1.4;
}

.hero-demo-row__arrow {
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 700;
  color: #6e7681;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-demo-row__out {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-demo-row__out-text {
  font-family: 'Georgia', serif;
  font-size: 13px;
  line-height: 1.5;
  color: #e6edf3;
}
.hero-demo-row__out-text mark {
  background: rgba(63, 185, 80, 0.18);
  color: #3fb950;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
  font-style: normal;
}
.hero-demo-row__tag {
  font-family: var(--font-code);
  font-size: 10px;
  color: #3fb950;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-demo-row--more {
  border-style: dashed;
  border-color: rgba(240, 246, 252, 0.1);
  text-align: center;
  font-size: 12px;
  color: #6e7681;
  font-weight: 500;
  padding: 10px;
  display: block;
  background: transparent;
}

/* Padding для landing-hero чтобы окно "выходило" вниз */
.landing-hero { padding-bottom: 180px; }

/* ============================================================
   === Финальные правки v0.5 ===
   ============================================================ */

/* 1) Убираем все 3D-Fluent эмодзи-маскоты со всех секций */
.section-mascot { display: none !important; }

/* 2) compare-таблица — текст всегда по левому краю */
.proj-cell {
  align-items: flex-start;
  text-align: left;
}
.proj-cell--idx {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.proj-cell--title {
  align-items: center;
  text-align: left;
  flex-direction: row;
}
.proj-cell--head {
  align-items: center;
  text-align: left;
}
.proj-cell--head.proj-cell--us {
  text-align: left;
}
.proj-grid__us-dot { margin-right: 4px; }

/* 3) section-glow padding-top уменьшаем т.к. маскота больше нет */
.section-glow { padding-top: 60px; }

/* 4) Features-grid из 12 квадратов → выставленный по очереди список */
.features-grid {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  background: var(--canvas-subtle);
  counter-reset: feat;
}
.feature {
  display: grid !important;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 24px !important;
  background: var(--canvas-default) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-muted) !important;
  border-radius: 0 !important;
  align-items: flex-start;
  position: relative;
  transition: background 0.1s;
}
.feature:hover { background: var(--canvas-subtle) !important; }
.feature:last-child { border-bottom: none !important; }

/* Номер 01, 02, 03... — в первой колонке */
.feature::before {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  font-family: var(--font-code);
  font-size: 18px;
  font-weight: 700;
  color: #58a6ff;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 2px;
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* Title и desc — обе во второй колонке, друг под другом */
.feature__title { grid-column: 2; grid-row: 1; }
.feature__desc { grid-column: 2; grid-row: 2; }

/* SVG-иконки внутри features делаем компактными и убираем "выпуклый" квадрат */
.feature__icon-svg {
  display: none !important;
}
.feature__title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--fg-default) !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.01em;
}
.feature__desc {
  font-size: 13px !important;
  color: var(--fg-muted) !important;
  line-height: 1.55 !important;
}

/* Подсветка плейсхолдеров .hl внутри desc */
.feature__desc .hl {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0 6px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-style: normal;
  font-size: 12px;
}

/* ============================================================
   === GitHub-style 2-column feature section (.gh-feature) ===
   ============================================================ */

.gh-section-title {
  font-family: 'Mona Sans', var(--font-ui);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.gh-section-lead {
  font-size: 17px;
  color: #8b949e;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.gh-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
}

/* Левая колонка */
.gh-feature__left { max-width: 520px; }
.gh-feature__h3 {
  font-family: 'Mona Sans', var(--font-ui);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 18px;
}
.gh-feature__lead {
  font-size: 17px;
  color: #c9d1d9;
  line-height: 1.55;
  margin-bottom: 20px;
}
.gh-feature__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 32px;
}
.gh-feature__link:hover { color: #a78bfa; text-decoration: none; }

/* Accordion */
.gh-accordion {
  border-top: 1px solid rgba(240, 246, 252, 0.1);
}
.gh-acc {
  border-bottom: 1px solid rgba(240, 246, 252, 0.1);
}
.gh-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.1s;
}
.gh-acc summary::-webkit-details-marker { display: none; }
.gh-acc summary:hover { color: #c4b5fd; }
.gh-acc summary::after {
  content: "+";
  color: #a78bfa;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.gh-acc[open] summary::after {
  content: "−";
}
.gh-acc__body {
  padding: 0 0 18px;
  font-size: 14px;
  color: #8b949e;
  line-height: 1.6;
  max-width: 460px;
}
.gh-acc__body code {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 12px;
}

/* Правая колонка — UI mockup card */
.gh-feature__right {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-feature__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.55) 0%, rgba(99, 102, 241, 0.25) 35%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.gh-feature__card {
  position: relative;
  z-index: 1;
  background: #0d1117;
  border: 1px solid rgba(240, 246, 252, 0.14);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(139, 92, 246, 0.35);
}
.gh-feature__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
}
.gh-feature__card-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
}
.gh-feature__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3fb950;
  font-weight: 600;
}
.gh-feature__card-badge-dot {
  width: 6px; height: 6px;
  background: #3fb950;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2);
}

.gh-feature__card-body {
  padding: 20px 18px;
}
.gh-feature__card-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.06);
}
.gh-feature__card-row:last-of-type { border-bottom: none; }
.gh-feature__card-key {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 600;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 1px;
}
.gh-feature__card-val {
  font-family: var(--font-code);
  font-size: 12px;
  color: #c9d1d9;
  line-height: 1.4;
}

.gh-feature__card-result {
  margin-top: 16px;
  padding: 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
}
.gh-feature__card-result-label {
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a78bfa;
  margin-bottom: 6px;
}
.gh-feature__card-result-text {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.6;
  color: #e6edf3;
}
.gh-feature__card-result-text mark {
  background: rgba(63, 185, 80, 0.18);
  color: #3fb950;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
  font-style: normal;
}

/* ============================================================
   === ФИНАЛЬНЫЙ ПОЛИШ 2026-05-28 ночь ===
   - Manrope для маркетологов
   - Усиление фиолетового сияния
   - Менее тёмный hero
   - Циклические анимации подстановок
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Подменяем все большие заголовки на Manrope (теплее, маркетинг-friendly) */
.hero-h1, .gh-section-title, .gh-feature__h3, .landing-section__title, .final-cta__title {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
}
.hero-lead, .gh-section-lead, .gh-feature__lead {
  font-family: 'Manrope', 'Inter', -apple-system, sans-serif !important;
}

/* === Фон лендинга менее тёмный + сильнее purple === */
.landing-hero {
  background:
    radial-gradient(ellipse 1100px 600px at 50% 100%, rgba(139, 92, 246, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(99, 102, 241, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #131330 0%, #1a1a3e 50%, #0d1129 100%) !important;
}
.landing-hero::after {
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.75) 0%, rgba(99, 102, 241, 0.4) 30%, transparent 65%) !important;
  filter: blur(60px) !important;
  height: 700px !important;
}

/* Усиление glow на feature-секциях */
.gh-feature__glow {
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.7) 0%, rgba(99, 102, 241, 0.3) 35%, transparent 70%) !important;
  filter: blur(40px) !important;
}
.gh-feature__card {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(167, 139, 250, 0.5),
    0 0 200px rgba(99, 102, 241, 0.35) !important;
}

/* Hero-demo-card glow усиление */
.hero-demo-card {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 140px rgba(167, 139, 250, 0.55),
    0 0 240px rgba(99, 102, 241, 0.4) !important;
}

/* === Циклическая анимация подстановок === */
.hero-demo-row {
  animation: heroRowCycle 12s ease-in-out infinite !important;
}
.hero-demo-row:nth-of-type(1) { animation-delay: 0s !important; }
.hero-demo-row:nth-of-type(2) { animation-delay: 0.5s !important; }
.hero-demo-row:nth-of-type(3) { animation-delay: 1.0s !important; }
.hero-demo-row:nth-of-type(4) { animation-delay: 1.5s !important; }

@keyframes heroRowCycle {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
  5% { opacity: 1; transform: translateY(0) scale(1); }
  90% { opacity: 1; transform: translateY(0) scale(1); }
  95% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* Pulse подсветки mark в подстановках */
.hero-demo-row__out mark,
.gh-feature__card-result-text mark {
  animation: markPulse 2.5s ease-in-out infinite;
}
.hero-demo-row__out mark:nth-of-type(2) { animation-delay: 0.2s; }
.hero-demo-row__out mark:nth-of-type(3) { animation-delay: 0.4s; }
.hero-demo-row__out mark:nth-of-type(4) { animation-delay: 0.6s; }

@keyframes markPulse {
  0%, 100% { background: rgba(63, 185, 80, 0.18); }
  50% { background: rgba(63, 185, 80, 0.45); box-shadow: 0 0 12px rgba(63, 185, 80, 0.4); }
}

/* Плейсхолдеры в шаблоне пульсируют — типа "ищем подстановку" */
.hero-demo-ph {
  animation: phPulse 2s ease-in-out infinite;
}
.hero-demo-ph:nth-child(2) { animation-delay: 0.3s; }
@keyframes phPulse {
  0%, 100% { background: rgba(139, 92, 246, 0.18); border-color: rgba(139, 92, 246, 0.4); }
  50% { background: rgba(139, 92, 246, 0.35); border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
}

/* Финальная правка типографики в gh-feature: размер заголовка более маркетинговый */
.gh-feature__h3 { font-size: 36px !important; }
.gh-section-title { font-size: 44px !important; }
.hero-h1 { font-size: 84px !important; }

/* ============================================================
   === HERO STORY — 5-актный сторителлинг ===
   Цикл 25 секунд, каждая сцена 5s, последовательно
   ============================================================ */

.hero-story {
  max-width: 1180px;
  margin: 56px auto -120px;
  background: linear-gradient(180deg, rgba(26, 26, 62, 0.75) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.3),
    0 30px 100px rgba(0, 0, 0, 0.55),
    0 0 160px rgba(167, 139, 250, 0.55),
    0 0 280px rgba(99, 102, 241, 0.4);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
}

/* Stepper сверху */
.hero-story__stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: rgba(13, 17, 23, 0.6);
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
}
.hero-story__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid rgba(240, 246, 252, 0.06);
  color: #6e7681;
  transition: color 0.4s, background 0.4s;
}
.hero-story__step:last-child { border-right: none; }
.hero-story__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(110, 118, 129, 0.2);
  color: #8b949e;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.hero-story__step b {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* Активный step (по сцене) — cyclic */
.hero-story__step--1 { animation: heroStep 25s 0s infinite; }
.hero-story__step--2 { animation: heroStep 25s 5s infinite; }
.hero-story__step--3 { animation: heroStep 25s 10s infinite; }
.hero-story__step--4 { animation: heroStep 25s 15s infinite; }
.hero-story__step--5 { animation: heroStep 25s 20s infinite; }

@keyframes heroStep {
  0%, 20% {
    color: #f0f6fc;
    background: rgba(167, 139, 250, 0.15);
  }
  20.01%, 100% {
    color: #6e7681;
    background: transparent;
  }
}
.hero-story__step--1 span { animation: heroStepNum 25s 0s infinite; }
.hero-story__step--2 span { animation: heroStepNum 25s 5s infinite; }
.hero-story__step--3 span { animation: heroStepNum 25s 10s infinite; }
.hero-story__step--4 span { animation: heroStepNum 25s 15s infinite; }
.hero-story__step--5 span { animation: heroStepNum 25s 20s infinite; }

@keyframes heroStepNum {
  0%, 20% {
    background: #a78bfa;
    color: #0d1117;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25);
  }
  20.01%, 100% {
    background: rgba(110, 118, 129, 0.2);
    color: #8b949e;
    box-shadow: none;
  }
}

/* Stage — где сцены наслаиваются */
.hero-story__stage {
  position: relative;
  min-height: 380px;
  padding: 32px;
}

.hero-scene {
  position: absolute;
  inset: 32px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.hero-scene--1 { animation: heroScene 25s 0s infinite; }
.hero-scene--2 { animation: heroScene 25s 5s infinite; }
.hero-scene--3 { animation: heroScene 25s 10s infinite; }
.hero-scene--4 { animation: heroScene 25s 15s infinite; }
.hero-scene--5 { animation: heroScene 25s 20s infinite; }

@keyframes heroScene {
  0% { opacity: 0; transform: translateY(20px); }
  2%, 18% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-10px); }
}

.hero-scene__title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

/* === Сцена 1: Загрузка файлов === */
.hero-scene__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hero-file {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 10px;
  padding: 20px;
}
.hero-file__icon {
  width: 56px;
  height: 64px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}
.hero-file__icon::after { content: attr(data-ext); }
.hero-file:nth-child(2) .hero-file__icon {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}
.hero-file__name {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 4px;
}
.hero-file__meta {
  font-family: var(--font-code);
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 14px;
}
.hero-file__bar {
  height: 4px;
  background: rgba(110, 118, 129, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hero-file__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a78bfa, #6366f1);
  border-radius: 2px;
  animation: heroFileBar 2s 0.3s forwards;
}
@keyframes heroFileBar {
  to { width: 100%; }
}
.hero-file__status {
  font-family: var(--font-code);
  font-size: 11px;
  color: #3fb950;
  font-weight: 600;
  opacity: 0;
  animation: heroFileStatus 0.4s 2.3s forwards;
}
@keyframes heroFileStatus { to { opacity: 1; } }

/* === Сцена 2: Магия — Word + Excel → PDF === */
.hero-magic {
  display: grid;
  grid-template-columns: auto auto auto auto 1fr;
  gap: 18px;
  align-items: center;
}
.hero-magic__src {
  width: 70px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 700;
}
.hero-magic__src--word { background: linear-gradient(135deg, #2563eb, #6366f1); }
.hero-magic__src--excel { background: linear-gradient(135deg, #16a34a, #22c55e); }
.hero-magic__plus, .hero-magic__arrow {
  font-size: 22px;
  font-weight: 700;
  color: #a78bfa;
}
.hero-magic__pdf {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  color: #1f2328;
  font-family: 'Georgia', serif;
  position: relative;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.6);
  overflow: hidden;
  max-height: 260px;
}
.hero-magic__pdf-head {
  font-family: var(--font-code);
  font-size: 10px;
  color: #6e7681;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.hero-magic__pdf-body p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #1f2328;
}
.hero-magic__pdf-body mark {
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}
.hero-magic__pdf-sig {
  font-size: 11px !important;
  color: #6e7681 !important;
  font-style: italic;
  margin-top: 10px;
}

/* === Сцена 3: Email + AI + PDF === */
.hero-email {
  background: #161b22;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.hero-email__row {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.05);
  font-family: var(--font-code);
  font-size: 12px;
  color: #c9d1d9;
}
.hero-email__row span {
  color: #8b949e;
  font-weight: 600;
  margin-right: 8px;
}
.hero-email__body {
  padding: 16px;
  font-size: 13px;
  color: #e6edf3;
  line-height: 1.6;
  font-family: 'Georgia', serif;
}
.hero-email__body p { margin-bottom: 10px; }
.hero-email__cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #a78bfa;
  margin-left: 2px;
  animation: blink 1s infinite;
}
.hero-email__attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #c4b5fd;
}
.hero-email__attach-ico {
  background: #a78bfa;
  color: #0d1117;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
}
.hero-email__attach-name { color: #e6edf3; font-weight: 500; }
.hero-email__attach-size { color: #6e7681; font-family: var(--font-code); font-size: 11px; }
.hero-email__sendbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(13, 17, 23, 0.6);
  border-top: 1px solid rgba(240, 246, 252, 0.05);
}
.hero-email__ai {
  font-family: var(--font-code);
  font-size: 11px;
  color: #a78bfa;
}
.hero-email__send {
  background: #238636;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* === Сцена 4: Результаты === */
.hero-results__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.hero-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
}
.hero-metric b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #f0f6fc;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-metric span {
  display: block;
  font-size: 11px;
  color: #8b949e;
  margin-top: 6px;
  font-weight: 500;
}
.hero-metric--accent {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.45);
}
.hero-metric--accent b { color: #c4b5fd; }

.hero-results__feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-reply {
  background: rgba(63, 185, 80, 0.08);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #c9d1d9;
}
.hero-reply b {
  font-weight: 600;
  color: #3fb950;
  margin-right: 6px;
}

/* === Сцена 5: CRM колонки === */
.hero-crm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-crm__col {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-crm__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #c9d1d9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.hero-crm__col-head span {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  font-family: var(--font-code);
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0;
}
.hero-crm__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #e6edf3;
}
.hero-crm__card small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: #8b949e;
  font-style: italic;
}
.hero-crm__card--hot {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.4);
}

/* ============================================================
   === STORY-ONLY режим: скрыть ВСЁ кроме hero и step-block ===
   ============================================================ */
.story-only > section:not(.landing-hero):not(.step-block),
.story-only .pill-tabs,
.story-only #features,
.story-only .gh-feature,
.story-only #how,
.story-only .proj-wrap,
.story-only .scale-section,
.story-only .final-cta,
.story-only .site-footer,
.story-only .hero-story,
.story-only .hero-demo-card,
.story-only .hero-stack {
  display: none !important;
}
.story-only .step-block { display: block !important; }

/* ============================================================
   === STEP-BLOCK: 5 вертикальных секций сторителлинга ===
   Маркетинговый стиль — НЕ IT, НЕ Mona Sans, без кода/моно
   ============================================================ */

.step-block {
  position: relative;
  padding: 110px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1129 0%, #131330 100%);
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}
.step-block--alt {
  background: linear-gradient(180deg, #1a1a3e 0%, #131330 100%);
}
.step-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 20% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.step-block--alt::before {
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 80% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

.step-block__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.step-block--alt .step-block__inner {
  grid-template-columns: 1.1fr 1fr;
}
.step-block--alt .step-block__left { order: 2; }
.step-block--alt .step-block__right { order: 1; }

/* === Левая колонка: текст === */
.step-block__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.step-block__h2 {
  font-family: 'Manrope', sans-serif !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  margin-bottom: 22px !important;
}
.step-block__lead {
  font-family: 'Manrope', sans-serif !important;
  font-size: 18px;
  color: #c9d1d9;
  line-height: 1.55;
  margin-bottom: 28px;
}
.step-block__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-block__bullets li {
  position: relative;
  padding-left: 30px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #c9d1d9;
}
.step-block__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}
.step-block__bullets li::after {
  content: "✓";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.step-block__bullets b {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.25), rgba(236, 72, 153, 0.15));
  padding: 1px 6px;
  border-radius: 4px;
}

/* === Правая колонка: визуал === */
.step-block__right {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Визуал 01: Загрузка файлов ===== */
.vis-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.vis-file {
  background: linear-gradient(180deg, #1a1f3a 0%, #131330 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 80px rgba(167, 139, 250, 0.2);
}
.vis-file__badge {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.vis-file--word .vis-file__badge { background: linear-gradient(135deg, #2563eb, #6366f1); }
.vis-file--excel .vis-file__badge { background: linear-gradient(135deg, #16a34a, #22c55e); }
.vis-file__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.vis-file__meta {
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 18px;
}
.vis-file__bar {
  height: 8px;
  background: rgba(110, 118, 129, 0.2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.vis-file__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ec4899 0%, #4c1d95 100%);
  border-radius: 100px;
  animation: visBar 2.4s ease-out forwards;
}
.vis-file--excel .vis-file__bar-fill { animation-delay: 0.4s; }
@keyframes visBar { to { width: 100%; } }
.vis-file__check {
  font-size: 13px;
  font-weight: 600;
  color: #3fb950;
  opacity: 0;
  animation: visCheck 0.4s 2.6s forwards;
}
.vis-file--excel .vis-file__check { animation-delay: 3s; }
@keyframes visCheck { to { opacity: 1; } }

/* ===== Визуал 02: PDF стопкой ===== */
.vis-magic {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 380px;
}
.vis-magic__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.55) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: visGlow 3s ease-in-out infinite;
}
@keyframes visGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.vis-magic__pdf {
  position: absolute;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 22px;
  font-family: 'Manrope', sans-serif;
}
.vis-magic__pdf--back-2 {
  top: 0; left: 30%; right: 0;
  height: 80px;
  transform: rotate(-5deg);
  opacity: 0.65;
}
.vis-magic__pdf--back-1 {
  top: 40px; left: 15%; right: 5%;
  height: 90px;
  transform: rotate(2deg);
  opacity: 0.8;
}
.vis-magic__pdf--front {
  top: 90px; left: 0; right: 0; bottom: 0;
  z-index: 2;
  animation: visPdfPop 0.6s ease-out;
}
@keyframes visPdfPop {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.vis-magic__pdf-ribbon {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.vis-magic__pdf-head {
  font-size: 11px;
  font-weight: 700;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.vis-magic__pdf-body p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2328;
  margin-bottom: 10px;
}
.vis-magic__pdf-body mark {
  background: linear-gradient(180deg, transparent 60%, rgba(167, 139, 250, 0.4) 60%);
  color: #4c1d95;
  font-weight: 700;
  padding: 0 2px;
}
.vis-magic__sig {
  font-size: 12px !important;
  font-style: italic;
  color: #6e7681 !important;
  margin-top: 14px;
}

/* ===== Визуал 03: Email + ИИ ===== */
.vis-email {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 100px rgba(167, 139, 250, 0.3);
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}
.vis-email__head {
  padding: 14px 20px;
  background: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
}
.vis-email__row {
  font-size: 13px;
  color: #1f2328;
  padding: 4px 0;
}
.vis-email__row span {
  color: #6e7681;
  font-weight: 600;
  margin-right: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vis-email__body {
  padding: 20px;
  font-size: 14px;
  color: #1f2328;
  line-height: 1.65;
}
.vis-email__body p { margin-bottom: 10px; }
.vis-email__cursor {
  display: inline-block;
  width: 2px; height: 16px;
  background: #a78bfa;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}
.vis-email__attach {
  margin: 0 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}
.vis-email__attach-ico {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.vis-email__attach-text { font-size: 13px; color: #1f2328; }
.vis-email__attach-text b { display: block; font-weight: 700; }
.vis-email__attach-text small { color: #6e7681; font-size: 11px; }
.vis-email__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f6f8fa;
  border-top: 1px solid #e1e4e8;
}
.vis-email__ai-pill {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(236, 72, 153, 0.12));
  color: #6b21a8;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.vis-email__send {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.5);
}

/* ===== Визуал 04: Гигантские цифры ===== */
.vis-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}
.vis-stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  font-family: 'Manrope', sans-serif;
}
.vis-stat b {
  display: block;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vis-stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #8b949e;
  font-weight: 500;
}
.vis-stat--xl { padding: 32px; }
.vis-stat--xl b { font-size: 88px; }
.vis-stats__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vis-stats__row .vis-stat b { font-size: 40px; }
.vis-stat--accent {
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.12), rgba(63, 185, 80, 0.04));
  border-color: rgba(63, 185, 80, 0.4);
}
.vis-stat--accent b { background: linear-gradient(135deg, #ffffff 0%, #3fb950 100%); -webkit-background-clip: text; background-clip: text; }
.vis-stat--save {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(167, 139, 250, 0.12));
  border-color: rgba(236, 72, 153, 0.45);
  display: flex;
  align-items: center;
  gap: 24px;
}
.vis-stat--save b {
  font-size: 64px;
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.vis-stat--save span { font-size: 13px; line-height: 1.4; }

/* Валидация — наша фишка */
.vis-stat--filter {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
  border-color: rgba(99, 102, 241, 0.4);
  padding: 18px 22px;
}
.vis-stat-filter__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.vis-stat-filter__head b {
  font-size: 36px !important;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  display: inline !important;
  margin: 0;
}
.vis-stat-filter__head span:not(.vis-stat-filter__ico) {
  font-size: 13px;
  color: #c9d1d9;
  font-weight: 500;
  flex: 1;
  margin-top: 0 !important;
  display: inline-block !important;
  line-height: 1.4;
}
.vis-stat-filter__ico {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16px !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.vis-stat-filter__sub {
  font-size: 12px;
  color: #a5b4fc;
  font-weight: 500;
  padding-left: 44px;
  line-height: 1.4;
}

/* ============================================================
   === Корпоративный PDF (бланк делового КП) ===
   ============================================================ */

.vis-magic__pdf--bz {
  font-family: 'Manrope', 'Inter', sans-serif !important;
  padding: 28px 26px !important;
  color: #1f2328 !important;
  max-height: none !important;
  height: auto;
  min-height: 380px;
}

.bz-letter__head {
  border-bottom: 2px solid #1f2328;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.bz-letter__head b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1f2328 !important;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.bz-letter__head small {
  display: block;
  font-size: 10px;
  color: #4b5563 !important;
  line-height: 1.5;
  font-weight: 500;
}

.bz-letter__to {
  font-size: 11px;
  font-weight: 600;
  color: #1f2328 !important;
  text-align: right;
  margin-bottom: 14px;
  line-height: 1.5;
}
.bz-letter__to mark {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #4338ca !important;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700 !important;
  font-style: normal;
}

.bz-letter__date {
  font-size: 10px;
  color: #6e7681 !important;
  margin-bottom: 14px;
}

.bz-letter__body {
  margin-bottom: 18px;
}
.bz-letter__body p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #1f2328 !important;
  margin-bottom: 10px;
  font-weight: 500;
}
.bz-letter__body p b {
  font-weight: 700;
  color: #1f2328 !important;
}
.bz-letter__body mark {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #4338ca !important;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700 !important;
  font-style: normal;
}

.bz-letter__sig {
  border-top: 1px solid #d1d5db;
  padding-top: 12px;
}
.bz-letter__sig span {
  display: block;
  font-size: 12px;
  color: #1f2328 !important;
  font-weight: 500;
  margin-bottom: 4px;
}
.bz-letter__sig b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1f2328 !important;
  margin-bottom: 2px;
}
.bz-letter__sig small {
  display: block;
  font-size: 10px;
  color: #4b5563 !important;
  line-height: 1.5;
  font-weight: 500;
}

/* Поднимаем PDF выше — нужно больше места для бланка */
.vis-magic {
  height: 480px !important;
}
.vis-magic__pdf--front {
  top: 70px !important;
}

/* ============================================================
   === FIX: CRM карточки крупнее ===
   ============================================================ */

.vis-crm__col {
  padding: 18px !important;
  gap: 14px !important;
}
.vis-crm__col-head {
  font-size: 13px !important;
  padding-bottom: 12px !important;
}
.vis-crm__col-head em {
  font-size: 12px !important;
  padding: 2px 10px !important;
}
.vis-crm__card {
  padding: 16px 18px !important;
  border-radius: 12px !important;
}
.vis-crm__card b {
  font-size: 15px !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
.vis-crm__card p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.vis-crm__phone {
  width: 34px !important; height: 34px !important;
  font-size: 14px !important;
  top: -12px !important; right: -12px !important;
}

/* ============================================================
   === FIX: Footer чётко выделяется — почти чёрный ===
   ============================================================ */

.site-footer,
.story-only .site-footer {
  background: #050511 !important;
  border-top: 2px solid rgba(167, 139, 250, 0.5) !important;
}
.site-footer::before {
  opacity: 0.5 !important;
  top: -120px !important;
}

/* === Email body — подсветка фрагментов inline === */
.vis-email__body p mark {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  font-style: normal;
}
.vis-email__body p i {
  font-style: italic;
  color: #4338ca;
  font-weight: 500;
}
.vis-email__head mark {
  background: rgba(99, 102, 241, 0.18);
  color: #4338ca;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  font-style: normal;
}

/* ============================================================
   === ФИНАЛЬНЫЕ ПРАВКИ: тёмный gradient + Hero 2-кол ===
   ============================================================ */

/* === Замена розового gradient #a78bfa→#ec4899 на тёмный indigo→violet === */

/* Logo-icons (top nav + footer + sidebar) — розовый → тёмный фиолетовый */
.landing-nav .sidebar__logo-icon,
.site-footer__logo .sidebar__logo-icon {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5) !important;
}

/* Primary buttons (nav + final-cta + email-send) — розовый → тёмный фиолетовый */
.landing-nav .btn--primary,
.final-cta__form .btn--primary,
.vis-email__send {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}
.landing-nav .btn--primary:hover,
.final-cta__form .btn--primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #3b0764 100%) !important;
}

/* Step-block номера 01-05 */
.step-block__num {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Bullets круги */
.step-block__bullets li::before {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.5) !important;
}
.step-block__bullets b {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), rgba(139, 92, 246, 0.18)) !important;
}

/* File-bar fill */
.vis-file__bar-fill {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%) !important;
}

/* PDF ribbon */
.vis-magic__pdf-ribbon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

/* PDF highlight в карточке */
.vis-magic__pdf-body mark {
  background: linear-gradient(180deg, transparent 60%, rgba(139, 92, 246, 0.4) 60%) !important;
  color: #3730a3 !important;
}

/* Email attach iko */
.vis-email__attach-ico {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

/* Email AI pill — менее розовый */
.vis-email__ai-pill {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(139, 92, 246, 0.12)) !important;
  color: #4338ca !important;
  border-color: rgba(79, 70, 229, 0.4) !important;
}

/* save-stat ×12 */
.vis-stat--save {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(139, 92, 246, 0.12)) !important;
  border-color: rgba(79, 70, 229, 0.5) !important;
}
.vis-stat--save b {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* CRM hot card */
.vis-crm__card--hot {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(79, 70, 229, 0.12) 100%) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3) !important;
}
.vis-crm__phone {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 50px rgba(124, 58, 237, 0.6); }
}

/* Newsletter card в footer */
.site-footer__newsletter {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(139, 92, 246, 0.08)) !important;
  border-color: rgba(79, 70, 229, 0.35) !important;
}

/* Stepper active dot в hero-story */
@keyframes heroStepNum {
  0%, 20% {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }
  20.01%, 100% {
    background: rgba(110, 118, 129, 0.2);
    color: #8b949e;
    box-shadow: none;
  }
}

/* === HERO 2-колоночный layout (как Mailchimp) === */
.landing-hero {
  text-align: left !important;
  padding: 100px max(56px, calc((100vw - 1320px) / 2)) 60px !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.landing-hero::before { display: none; }

.landing-hero > .hero-h1,
.landing-hero > .hero-lead,
.landing-hero > .hero-cta-row,
.landing-hero > .hero-footnote {
  max-width: 560px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.hero-h1 {
  font-size: 68px !important;
  text-align: left !important;
}
.hero-lead {
  text-align: left !important;
  font-size: 17px !important;
}
.hero-cta-row {
  justify-content: flex-start !important;
}

/* Hero превращаем в grid */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Текстовая колонка слева */
.landing-hero > .hero-h1 { grid-column: 1; grid-row: 1; align-self: end; }
.landing-hero > .hero-lead { grid-column: 1; grid-row: 2; }
.landing-hero > .hero-cta-row { grid-column: 1; grid-row: 3; }
.landing-hero > .hero-footnote { grid-column: 1; grid-row: 4; }

/* Возвращаем hero-story под hero полноширинно */
.landing-hero > .hero-story {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
  margin-top: 60px !important;
  margin-bottom: -120px !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ============================================================
   === Hero VIS — Mailchimp-стиль: центр + floating tooltips ===
   ============================================================ */

.hero-vis {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-vis__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.6) 0%, rgba(79, 70, 229, 0.3) 35%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: visGlow 4s ease-in-out infinite;
}

/* Центральный PDF mockup */
.hero-vis__center {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 16px;
  width: 360px;
  padding: 24px 26px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(167, 139, 250, 0.3),
    0 0 100px rgba(124, 58, 237, 0.4);
  font-family: 'Manrope', sans-serif;
  color: #1f2328;
  animation: visFloat 6s ease-in-out infinite;
}

.hero-vis__pdf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.hero-vis__pdf-tag {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
}
.hero-vis__pdf-body p {
  font-size: 13px;
  line-height: 1.6;
  color: #1f2328;
  margin-bottom: 10px;
  font-weight: 500;
}
.hero-vis__pdf-body mark {
  background: linear-gradient(180deg, transparent 60%, rgba(139, 92, 246, 0.4) 60%);
  color: #3730a3;
  font-weight: 700;
  padding: 0 2px;
}
.hero-vis__pdf-sig {
  font-size: 11px !important;
  font-style: italic;
  color: #6e7681 !important;
  margin-top: 14px;
}

/* Floating tooltips */
.hero-vis__float {
  position: absolute;
  z-index: 3;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(167, 139, 250, 0.2);
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1f2328;
}

.hero-vis__float--1 {
  top: 20px;
  left: 0;
  max-width: 230px;
  animation: visFloat1 5s ease-in-out infinite;
}
.hero-vis__float--2 {
  top: 80px;
  right: 0;
  max-width: 210px;
  flex-direction: column;
  gap: 6px;
  animation: visFloat2 5.5s 0.5s ease-in-out infinite;
}
.hero-vis__float--3 {
  bottom: 20px;
  right: 20px;
  max-width: 220px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  animation: visFloat3 5s 1s ease-in-out infinite;
}

/* Центральный mockup чуть уже чтобы место для tooltips */
.hero-vis__center { width: 320px !important; padding: 20px 22px !important; }

/* Hero и body не должны обрезать floating tooltips */
.landing-hero, .hero-vis { overflow: visible !important; }
body { overflow-x: hidden; }

.hero-vis__float b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 2px;
}
.hero-vis__float small {
  font-size: 11px;
  color: #6e7681;
  line-height: 1.4;
  font-style: italic;
}
.hero-vis__float-ico {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-vis__float-phone {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.hero-vis__check {
  font-size: 11px;
  font-weight: 600;
  color: #1f6f37;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Floating анимация — лёгкое покачивание */
@keyframes visFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes visFloat1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes visFloat2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes visFloat3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@media (max-width: 1024px) {
  .hero-vis { grid-column: 1 !important; grid-row: 5 !important; margin-top: 40px; }
  .hero-vis__float--1, .hero-vis__float--2, .hero-vis__float--3 { display: none; }
}

/* ===== Визуал 05: CRM канбан ===== */
.vis-crm {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.vis-crm__col {
  background: rgba(13, 17, 41, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vis-crm__col-head {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #c9d1d9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}
.vis-crm__col-head em {
  font-style: normal;
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.vis-crm__col-head--hot { color: #f85149; }
.vis-crm__col-head--hot em { background: rgba(248, 81, 73, 0.18); color: #f85149; }
.vis-crm__card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Manrope', sans-serif;
}
.vis-crm__card b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 4px;
}
.vis-crm__card p {
  font-size: 12px;
  color: #8b949e;
  margin: 0;
  font-style: italic;
}
.vis-crm__card--hot {
  background: linear-gradient(135deg, rgba(248, 81, 73, 0.18) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-color: rgba(248, 81, 73, 0.45);
  position: relative;
  box-shadow: 0 0 30px rgba(248, 81, 73, 0.3);
  animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(248, 81, 73, 0.3); }
  50% { box-shadow: 0 0 50px rgba(248, 81, 73, 0.6); }
}
.vis-crm__phone {
  position: absolute;
  top: -10px; right: -10px;
  background: linear-gradient(135deg, #f85149, #ec4899);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  filter: grayscale(0);
}
.vis-crm__card--meeting {
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.12), rgba(34, 197, 94, 0.06));
  border-color: rgba(63, 185, 80, 0.4);
}

/* Responsive: на узких ширинах — колонки в одну */
@media (max-width: 900px) {
  .step-block__inner { grid-template-columns: 1fr; gap: 40px; }
  .step-block--alt .step-block__left { order: 1; }
  .step-block--alt .step-block__right { order: 2; }
}

/* ============================================================
   === Маркетинговые NAV и FOOTER в стиле step-блоков ===
   ============================================================ */

/* === TOP NAV: glassmorphism + gradient CTA === */
.story-only .landing-nav,
.landing-nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px !important;
  background: rgba(13, 17, 41, 0.65) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.18) !important;
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: 'Manrope', sans-serif;
}
.landing-nav .sidebar__logo-icon {
  width: 36px !important; height: 36px !important;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.5);
}
.landing-nav > div:first-child > span {
  font-family: 'Manrope', sans-serif;
  font-weight: 800 !important;
  font-size: 20px !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}
.landing-nav a {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 600;
  font-size: 14px;
  color: #c9d1d9 !important;
  transition: color 0.15s;
}
.landing-nav a:hover { color: #c4b5fd !important; text-decoration: none; }
.landing-nav .btn {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-size: 14px !important;
}
.landing-nav .btn--secondary {
  background: transparent !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  color: #ffffff !important;
}
.landing-nav .btn--secondary:hover {
  background: rgba(167, 139, 250, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.7) !important;
}
.landing-nav .btn--primary {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4) !important;
}
.landing-nav .btn--primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #3b0764 100%) !important;
  transform: translateY(-1px);
}

/* === FOOTER: показать заново + маркетинговый стиль === */
.story-only .site-footer { display: block !important; }
.site-footer {
  background: linear-gradient(180deg, #131330 0%, #0a0a1f 100%) !important;
  border-top: 1px solid rgba(167, 139, 250, 0.2) !important;
  padding: 80px 40px 0 !important;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.3) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 60px !important;
  padding-bottom: 56px !important;
  font-family: 'Manrope', sans-serif;
}
.site-footer__brand { max-width: 320px; }
.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px !important;
}
.site-footer__logo .sidebar__logo-icon {
  width: 38px !important; height: 38px !important;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}
.site-footer__logo > span:not(.sidebar__logo-icon) {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}
.site-footer__tagline {
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  color: #8b949e !important;
  line-height: 1.55 !important;
  margin-bottom: 24px !important;
}
.site-footer__newsletter {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(236, 72, 153, 0.08)) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  border-radius: 14px !important;
  padding: 18px !important;
}
.site-footer__newsletter-title {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
}
.site-footer__newsletter-sub {
  font-size: 12px !important;
  color: #c9d1d9 !important;
}
.site-footer__col-title {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 16px !important;
}
.site-footer__col a {
  display: block !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  color: #8b949e !important;
  padding: 5px 0 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
.site-footer__col a:hover { color: #c4b5fd !important; }
.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(167, 139, 250, 0.15) !important;
  padding: 24px 0 32px !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}
.site-footer__legal {
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  color: #6e7681 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}
.site-footer__legal a { color: #6e7681 !important; }
.site-footer__legal a:hover { color: #c4b5fd !important; }
.site-footer__legal-sep { color: #4c1d95 !important; }

/* CTA внутри futeрa перед колонками — мини final CTA */
.story-only .final-cta {
  display: block !important;
  background: radial-gradient(ellipse at 50% 100%, rgba(167, 139, 250, 0.25) 0%, transparent 60%), linear-gradient(180deg, #1a1a3e 0%, #131330 100%) !important;
  padding: 100px 40px !important;
  border-top: 1px solid rgba(167, 139, 250, 0.15) !important;
}
.final-cta__title {
  font-family: 'Manrope', sans-serif !important;
  font-size: 56px !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.final-cta__lead {
  font-family: 'Manrope', sans-serif !important;
  font-size: 18px !important;
  color: #c9d1d9 !important;
  margin-bottom: 32px !important;
}
.final-cta__form {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(167, 139, 250, 0.4) !important;
}
.final-cta__input {
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important;
}
.final-cta__form .btn--primary {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.5) !important;
}

/* ============================================================
   === AUTH SCREENS (signup / login / recover / verify) ===
   Префикс .auth-* — изолированные стили, не конфликтуют с лендингом.
   ============================================================ */

.auth-body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 10% 10%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 95% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #05060f 0%, #020308 100%);
  color: #e6e8f0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* === ЛЕВАЯ ПОЛОВИНА: форма === */
.auth-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 72px;
  min-height: 100vh;
}

.auth-pane__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-logo-text {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  padding: 32px 0;
}

.auth-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.auth-card__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.auth-card__title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #f6f7fb;
}

.auth-card__title span {
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card__lead {
  font-size: 16.5px;
  color: #a8b1c5;
  line-height: 1.6;
  margin: 0 0 36px;
}

/* Форма */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field__label {
  font-size: 13px;
  font-weight: 600;
  color: #c9d1d9;
  letter-spacing: 0.01em;
}

.auth-field__input-wrap {
  position: relative;
}

.auth-field__input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #f0f2fa;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.auth-field__input::placeholder {
  color: #4a5070;
  font-weight: 400;
}

.auth-field__input:hover {
  border-color: rgba(167, 139, 250, 0.28);
}

.auth-field__input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1), 0 6px 24px rgba(124, 58, 237, 0.15);
  background: #0d0f1d;
}

.auth-field__input--has-toggle {
  padding-right: 50px;
}

.auth-field__toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #8b94ac;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-field__toggle:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.auth-field__hint {
  font-size: 12px;
  color: #7a8499;
  line-height: 1.5;
  margin-top: 2px;
}

.auth-field__hint--strength {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  overflow: hidden;
  position: relative;
}

.auth-strength-bar__fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
  border-radius: 999px;
  transition: width 0.3s;
}

/* Чекбокс */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  font-size: 13px;
  color: #a8b1c5;
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  background: #0a0c18;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.auth-check input:hover {
  border-color: rgba(236, 72, 153, 0.7);
}

.auth-check input:checked {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  border-color: transparent;
}

.auth-check input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-check a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196, 181, 253, 0.4);
}

.auth-check a:hover {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.6);
}

/* Кнопка */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  border: none;
  border-radius: 14px;
  padding: 17px 26px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #db2777 0%, #3b0764 100%);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.auth-btn--ghost {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.18);
  box-shadow: none;
  color: #c4b5fd;
}

.auth-btn--ghost:hover {
  background: #10121f;
  border-color: rgba(167, 139, 250, 0.38);
  box-shadow: none;
}

/* Разделитель */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: #6e7691;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
}

/* Соц-кнопки */
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 14px;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: #c9d1d9;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.auth-social__btn:hover {
  background: #10121f;
  border-color: rgba(167, 139, 250, 0.32);
  transform: translateY(-1px);
}

.auth-social__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Подпись внизу формы */
.auth-card__bottom {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #8b94ac;
}

.auth-card__bottom a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-card__bottom a:hover {
  color: #ec4899;
}

/* Footer формы */
.auth-pane__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6e7691;
  gap: 16px;
}

.auth-pane__foot a {
  color: #8b94ac;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-pane__foot a:hover {
  color: #c4b5fd;
}

/* === ПРАВАЯ ПОЛОВИНА: маркетинговый visual === */
.auth-stage {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(167, 139, 250, 0.06);
  background:
    radial-gradient(ellipse 700px 500px at 65% 35%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 25% 85%, rgba(236, 72, 153, 0.09) 0%, transparent 65%),
    linear-gradient(180deg, #07081a 0%, #03040d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 80px;
}

.auth-stage__inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

.auth-stage__quote {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #f6f7fb;
  margin: 0 0 32px;
}

.auth-stage__quote span {
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-stage__sub {
  font-size: 16.5px;
  color: #a8b1c5;
  line-height: 1.65;
  margin: 0 0 44px;
}

/* PDF мокап */
.auth-stage__pdf {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border-radius: 16px;
  padding: 28px 32px 30px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45), 0 0 70px rgba(167, 139, 250, 0.32);
  color: #1a1a2e;
  font-size: 14.5px;
  line-height: 1.6;
  transform: rotate(-1.5deg);
}

.auth-stage__pdf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.auth-stage__pdf-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 4px 9px;
  border-radius: 5px;
}

.auth-stage__pdf-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}

.auth-stage__pdf p {
  margin: 0 0 10px;
  color: #3a3a5e;
}

.auth-stage__pdf mark {
  background: linear-gradient(180deg, transparent 60%, rgba(167, 139, 250, 0.4) 60%);
  color: #3730a3;
  padding: 0 2px;
  font-weight: 600;
}

.auth-stage__pdf-sig {
  margin-top: 18px;
  color: #6b7280;
  font-style: italic;
  font-size: 13px;
}

/* Floating chips */
.auth-stage__chip {
  position: absolute;
  background: rgba(8, 9, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(124, 58, 237, 0.18);
  animation: authFloat 6s ease-in-out infinite;
}

.auth-stage__chip--1 {
  top: -36px;
  right: -28px;
  animation-delay: 0s;
}

.auth-stage__chip--2 {
  bottom: -40px;
  left: -36px;
  animation-delay: 1.5s;
}

@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-stage__chip-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.auth-stage__chip-text {
  font-size: 14px;
  line-height: 1.4;
}

.auth-stage__chip-text b {
  display: block;
  color: #f6f7fb;
  font-weight: 700;
  font-size: 15px;
}

.auth-stage__chip-text span {
  color: #a8b1c5;
  font-size: 12.5px;
}

/* Логосы социальных пруфов */
.auth-stage__proof {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #7a8499;
}

.auth-stage__proof-avatars {
  display: flex;
}

.auth-stage__proof-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  border: 2px solid #07081a;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

.auth-stage__proof-avatar:first-child { margin-left: 0; }
.auth-stage__proof-avatar:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #4338ca); }
.auth-stage__proof-avatar:nth-child(3) { background: linear-gradient(135deg, #a78bfa, #6366f1); }
.auth-stage__proof-avatar:nth-child(4) { background: linear-gradient(135deg, #f472b6, #be185d); }

.auth-stage__proof b {
  color: #c9d1d9;
  font-weight: 700;
}

/* Error/info alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-alert--info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c4b5fd;
}

.auth-alert--success {
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: #6ee7b7;
}

.auth-alert--error {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: #fca5a5;
}

.auth-alert__ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* === Tablet (1100–1380px): чуть ужать padding === */
@media (max-width: 1380px) {
  .auth-pane { padding: 32px 56px; }
  .auth-stage { padding: 56px 56px; }
  .auth-stage__inner { max-width: 540px; }
}

@media (max-width: 1180px) {
  .auth-pane { padding: 28px 40px; }
  .auth-stage { padding: 40px 40px; }
  .auth-card__title { font-size: 40px; }
  .auth-stage__quote { font-size: 28px; }
}

/* === Mobile === */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-stage {
    display: none;
  }
  .auth-pane {
    padding: 24px 20px;
  }
  .auth-card__title {
    font-size: 32px;
  }
}

/* === Magic-link спец-блоки === */

.auth-magic-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 18px;
}

.auth-magic-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
  animation: authPulse 2.4s ease-in-out infinite;
}

@keyframes authPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: #9aa3bd;
  line-height: 1.5;
}

.auth-feature-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #c4b5fd;
}

.auth-feature-list li b {
  color: #e6e8f0;
  font-weight: 600;
}

/* «Email отправлен» — мини карточка-имитация письма (для verify.html) */
.auth-mail-preview {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 16px;
  padding: 22px 26px;
  margin-top: 8px;
  position: relative;
}

.auth-mail-preview::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), transparent);
}

.auth-mail-preview__from {
  font-size: 13px;
  color: #6e7691;
  margin-bottom: 8px;
}

.auth-mail-preview__from b {
  color: #c4b5fd;
  font-weight: 600;
}

.auth-mail-preview__subject {
  font-size: 17px;
  font-weight: 700;
  color: #f0f2fa;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.auth-mail-preview__body {
  font-size: 14px;
  color: #8b94ac;
  line-height: 1.6;
}

.auth-mail-preview__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

/* ============================================================
   === ONBOARDING WIZARD (6 шагов) ===
   Префикс .onb-* — изолированные стили.
   Использует те же токены что .auth-* (Manrope, gradient #ec4899→#4c1d95, dark)
   ============================================================ */

.onb-body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 1000px 600px at 0% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #05060f 0%, #020308 100%);
  color: #e6e8f0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.onb-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

/* === SIDEBAR (304px) === */
.onb-side {
  border-right: 1px solid rgba(167, 139, 250, 0.08);
  background: rgba(8, 9, 22, 0.6);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.onb-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.onb-side__brand .auth-logo {
  width: 36px;
  height: 36px;
}

.onb-side__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e7691;
  margin-bottom: 22px;
}

/* Шаги */
.onb-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onb-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  position: relative;
  transition: background 0.15s;
}

.onb-step:hover {
  background: rgba(167, 139, 250, 0.04);
}

/* Соединительная линия между шагами */
.onb-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 38px;
  bottom: -6px;
  width: 1px;
  background: rgba(167, 139, 250, 0.12);
}

.onb-step--done:not(:last-child)::before {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.6), rgba(167, 139, 250, 0.12));
}

.onb-step__bullet {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #0a0c18;
  border: 1.5px solid rgba(167, 139, 250, 0.18);
  color: #6e7691;
  flex-shrink: 0;
  transition: all 0.2s;
}

.onb-step--active .onb-step__bullet {
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12), 0 6px 18px rgba(124, 58, 237, 0.4);
}

.onb-step--done .onb-step__bullet {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.onb-step--done .onb-step__bullet svg {
  width: 14px;
  height: 14px;
}

.onb-step__body {
  padding-top: 4px;
}

.onb-step__label {
  font-size: 14px;
  font-weight: 600;
  color: #8b94ac;
  line-height: 1.3;
  display: block;
}

.onb-step--active .onb-step__label {
  color: #f0f2fa;
  font-weight: 700;
}

.onb-step--done .onb-step__label {
  color: #c4b5fd;
}

.onb-step__hint {
  font-size: 12px;
  color: #56607a;
  margin-top: 3px;
  line-height: 1.35;
}

.onb-step--active .onb-step__hint {
  color: #8b94ac;
}

/* Help-блок снизу sidebar */
.onb-side__help {
  margin-top: 24px;
  padding: 16px;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 12px;
}

.onb-side__help-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
  margin-bottom: 6px;
}

.onb-side__help-title svg {
  width: 16px;
  height: 16px;
  color: #c4b5fd;
}

.onb-side__help-text {
  font-size: 12.5px;
  color: #8b94ac;
  line-height: 1.5;
  margin-bottom: 10px;
}

.onb-side__help-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
}

.onb-side__help-link:hover {
  color: #ec4899;
}

/* === MAIN (правая колонка) === */
.onb-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.onb-main__inner {
  flex: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 56px 32px;
  box-sizing: border-box;
}

/* Top-meta — Шаг N из 6 + Сохранено */
.onb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.onb-top__step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b94ac;
  font-weight: 600;
}

.onb-top__step-progress {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  overflow: hidden;
}

.onb-top__step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  border-radius: 999px;
}

.onb-top__saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 600;
}

.onb-top__saved svg { width: 14px; height: 14px; }

/* Title */
.onb-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #f6f7fb;
}

.onb-title span {
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onb-lead {
  font-size: 16.5px;
  color: #a8b1c5;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 680px;
}

/* === Provider cards (Step 1) === */
.onb-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.onb-provider {
  position: relative;
  background: #0a0c18;
  border: 1.5px solid rgba(167, 139, 250, 0.1);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.onb-provider:hover {
  background: #0d0f1d;
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.onb-provider--active {
  background:
    radial-gradient(ellipse 300px 200px at 80% 0%, rgba(236, 72, 153, 0.12) 0%, transparent 70%),
    #0d0f1d;
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.08), 0 16px 36px rgba(124, 58, 237, 0.25);
}

.onb-provider__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.onb-provider__logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.onb-provider__logo--ya { background: linear-gradient(135deg, #FC3F1D, #d63017); }
.onb-provider__logo--mail { background: linear-gradient(135deg, #005ff9, #0046c1); }
.onb-provider__logo--google { background: linear-gradient(135deg, #ea4335, #4285f4); }
.onb-provider__logo--custom { background: linear-gradient(135deg, #ec4899, #4c1d95); }

.onb-provider__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.onb-provider__name {
  font-size: 19px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.01em;
  margin: 0;
}

.onb-provider__desc {
  font-size: 13.5px;
  color: #8b94ac;
  line-height: 1.5;
  margin: 0;
}

.onb-provider__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.onb-provider__chip {
  font-size: 11.5px;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.08);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.onb-provider__radio {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.3);
  background: #0a0c18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onb-provider--active .onb-provider__radio {
  border-color: #ec4899;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
}

.onb-provider--active .onb-provider__radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Info-strip под карточками */
.onb-info-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  font-size: 13.5px;
  color: #c4b5fd;
  line-height: 1.5;
  margin-bottom: 32px;
}

.onb-info-strip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #a78bfa;
}

.onb-info-strip b { color: #f0f2fa; font-weight: 700; }

/* === Footer-bar — Назад / Дальше === */
.onb-footbar {
  border-top: 1px solid rgba(167, 139, 250, 0.08);
  background: rgba(8, 9, 22, 0.7);
  padding: 20px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onb-footbar__inner {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.onb-footbar__hint {
  font-size: 13px;
  color: #6e7691;
}

.onb-footbar__actions {
  display: flex;
  gap: 12px;
}

.onb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
}

.onb-btn--ghost {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.onb-btn--ghost:hover {
  background: #10121f;
  border-color: rgba(167, 139, 250, 0.4);
}

.onb-btn--primary {
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.onb-btn--primary:hover {
  background: linear-gradient(135deg, #db2777, #3b0764);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.55);
  transform: translateY(-1px);
}

.onb-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.onb-btn svg { width: 16px; height: 16px; }

/* === Mobile === */
@media (max-width: 1080px) {
  .onb-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .onb-side { padding: 24px 18px; }
  .onb-main__inner { padding: 32px 32px 24px; }
  .onb-footbar { padding: 16px 32px; }
}

@media (max-width: 820px) {
  .onb-shell { grid-template-columns: 1fr; }
  .onb-side { position: static; height: auto; padding: 20px 24px; }
  .onb-steps { flex-direction: row; overflow-x: auto; gap: 4px; }
  .onb-step { min-width: 200px; }
  .onb-step:not(:last-child)::before { display: none; }
  .onb-side__help { display: none; }
  .onb-providers { grid-template-columns: 1fr; }
  .onb-title { font-size: 32px; }
}

/* ============================================================
   === ONBOARDING — Шаг 2: SMTP credentials ===
   ============================================================ */

.onb-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

.onb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Test connection button — inline между формой и инструкцией */
.onb-test-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.onb-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 11px;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.onb-test-btn:hover {
  background: #10121f;
  border-color: rgba(236, 72, 153, 0.45);
  color: #f0f2fa;
}

.onb-test-btn svg { width: 16px; height: 16px; }

.onb-test-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.onb-test-status--ok {
  background: rgba(63, 185, 80, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.onb-test-status--idle {
  background: rgba(167, 139, 250, 0.06);
  color: #6e7691;
  border: 1px solid rgba(167, 139, 250, 0.12);
}

.onb-test-status svg { width: 14px; height: 14px; }

/* Инструкция «Как получить пароль приложения» */
.onb-instruction {
  background:
    radial-gradient(ellipse 600px 300px at 100% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 16px;
}

.onb-instruction__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.onb-instruction__title {
  font-size: 19px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.01em;
  margin: 0;
}

.onb-instruction__title-meta {
  font-size: 13px;
  color: #8b94ac;
  margin-top: 4px;
  font-weight: 500;
}

.onb-instruction__tabs {
  display: flex;
  gap: 4px;
  background: #06070f;
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 10px;
  padding: 4px;
}

.onb-instruction__tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: #6e7691;
  cursor: pointer;
  transition: all 0.15s;
}

.onb-instruction__tab:hover {
  color: #c4b5fd;
}

.onb-instruction__tab--active {
  background: rgba(167, 139, 250, 0.12);
  color: #f0f2fa;
}

/* Список шагов в инструкции */
.onb-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onb-steps-list__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.onb-steps-list__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15.5px;
  top: 34px;
  bottom: -20px;
  width: 1px;
  background: rgba(167, 139, 250, 0.14);
}

.onb-steps-list__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(76, 29, 149, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.onb-steps-list__body {
  padding-top: 4px;
}

.onb-steps-list__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #c9d1d9;
}

.onb-steps-list__text b {
  color: #f0f2fa;
  font-weight: 700;
}

.onb-steps-list__text a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196, 181, 253, 0.4);
}

.onb-steps-list__text a:hover {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.6);
}

.onb-steps-list__code {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  padding: 2px 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 6px;
  color: #c4b5fd;
  margin: 0 2px;
}

.onb-steps-list__hint {
  font-size: 12.5px;
  color: #6e7691;
  margin-top: 4px;
  line-height: 1.5;
}

/* Кнопка-ссылка «Открыть Яндекс ID» в инструкции */
.onb-instruction__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.15s;
}

.onb-instruction__cta:hover {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(236, 72, 153, 0.5);
  color: #f0f2fa;
}

.onb-instruction__cta svg { width: 14px; height: 14px; }

/* Advanced toggle (для SMTP host/port) */
.onb-advanced {
  margin-top: 4px;
}

.onb-advanced__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #8b94ac;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.onb-advanced__toggle:hover { color: #c4b5fd; }

.onb-advanced__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.onb-advanced__panel {
  margin-top: 16px;
  padding: 18px 20px;
  background: #06070f;
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 12px;
}

.onb-advanced__panel .onb-form-row { margin-bottom: 12px; }
.onb-advanced__panel .onb-form-row:last-child { margin-bottom: 0; }

/* ============================================================
   === ONBOARDING — Шаг 3 & 4: Upload (Word / Excel) ===
   ============================================================ */

/* Drag-and-drop зона */
.onb-drop {
  position: relative;
  border: 2px dashed rgba(167, 139, 250, 0.25);
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 500px 250px at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    #06070f;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 24px;
}

.onb-drop:hover {
  border-color: rgba(236, 72, 153, 0.5);
  background:
    radial-gradient(ellipse 500px 250px at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 70%),
    #08091a;
}

.onb-drop--active {
  border-style: solid;
  border-color: rgba(236, 72, 153, 0.5);
  background:
    radial-gradient(ellipse 500px 250px at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%),
    #08091a;
}

.onb-drop__ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(76, 29, 149, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #c4b5fd;
}

.onb-drop__ico svg { width: 30px; height: 30px; }

.onb-drop__title {
  font-size: 19px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.onb-drop__hint {
  font-size: 14px;
  color: #8b94ac;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 18px;
}

.onb-drop__or {
  display: inline-block;
  font-size: 12px;
  color: #6e7691;
  margin: 8px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.onb-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  transition: all 0.15s;
}

.onb-drop__btn:hover {
  background: linear-gradient(135deg, #db2777, #3b0764);
  transform: translateY(-1px);
}

.onb-drop__btn svg { width: 16px; height: 16px; }

.onb-drop__meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: #56607a;
}

/* Карточка загруженного файла */
.onb-file {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  margin-bottom: 24px;
}

.onb-file__ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.onb-file__ico--docx { background: linear-gradient(135deg, #2563eb, #1e40af); }
.onb-file__ico--xlsx { background: linear-gradient(135deg, #16a34a, #14532d); }

.onb-file__body {
  flex: 1;
  min-width: 0;
}

.onb-file__name {
  font-size: 15px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onb-file__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #8b94ac;
}

.onb-file__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.onb-file__meta-item--ok {
  color: #6ee7b7;
  font-weight: 600;
}

.onb-file__meta-item svg { width: 13px; height: 13px; }

.onb-file__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.onb-file__action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #06070f;
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: #8b94ac;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.onb-file__action:hover {
  background: #10121f;
  border-color: rgba(236, 72, 153, 0.4);
  color: #f0f2fa;
}

.onb-file__action svg { width: 16px; height: 16px; }

/* Auto-detected — заголовок секции */
.onb-detected {
  background: #06070f;
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.onb-detected__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.onb-detected__title {
  font-size: 16px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  letter-spacing: -0.01em;
}

.onb-detected__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.onb-detected__count svg { width: 13px; height: 13px; }

.onb-detected__sub {
  font-size: 13.5px;
  color: #8b94ac;
}

/* Сетка плейсхолдеров */
.onb-placeholders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.onb-placeholder {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 11px;
  padding: 14px 16px;
}

.onb-placeholder__name {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #f0aa6e;
  margin-bottom: 4px;
}

.onb-placeholder__hint {
  font-size: 12px;
  color: #8b94ac;
  line-height: 1.4;
}

.onb-placeholder__hint b {
  color: #c4b5fd;
  font-weight: 600;
}

/* Тип-карточка (для пустого состояния — что делать если нет шаблона) */
.onb-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  padding: 18px 22px;
}

.onb-tip__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
}

.onb-tip__ico svg { width: 18px; height: 18px; }

.onb-tip__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #c4b5fd;
}

.onb-tip__body b { color: #f0f2fa; font-weight: 700; }

.onb-tip__body a {
  color: #f0f2fa;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196, 181, 253, 0.5);
}

.onb-tip__body a:hover {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.6);
}

/* === Объяснитель «Как это работает» — Excel ↔ Word === */
.onb-explain {
  background:
    radial-gradient(ellipse 400px 250px at 0% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 100% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 70%),
    #06070f;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 18px;
  padding: 26px 30px 28px;
  margin-bottom: 28px;
}

.onb-explain__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.onb-explain__head-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(76, 29, 149, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}

.onb-explain__head-ico svg { width: 15px; height: 15px; }

.onb-explain__title {
  font-size: 17px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.01em;
  margin: 0;
}

.onb-explain__sub {
  font-size: 13.5px;
  color: #8b94ac;
  margin: 0 0 22px 38px;
  line-height: 1.5;
}

.onb-explain__cols {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 12px;
  align-items: stretch;
}

.onb-explain__col {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onb-explain__col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b94ac;
}

.onb-explain__col-label-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.onb-explain__col-label-tag--xlsx { background: linear-gradient(135deg, #16a34a, #14532d); }
.onb-explain__col-label-tag--docx { background: linear-gradient(135deg, #2563eb, #1e40af); }

/* Мини-таблица Excel */
.onb-mini-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-family: -apple-system, 'SF Mono', Menlo, monospace;
}

.onb-mini-table th,
.onb-mini-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
  text-align: left;
}

.onb-mini-table th {
  background: rgba(22, 163, 74, 0.12);
  color: #6ee7b7;
  font-weight: 700;
  border-bottom-color: rgba(22, 163, 74, 0.25);
  position: relative;
}

.onb-mini-table th::after {
  content: '↓';
  position: absolute;
  right: 8px;
  color: rgba(110, 231, 183, 0.5);
  font-size: 10px;
}

.onb-mini-table td {
  color: #c9d1d9;
}

.onb-mini-table tr:last-child td { border-bottom: none; }

/* Мини-Word превью */
.onb-mini-word {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  color: #1a1a2e;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.onb-mini-word p {
  margin: 0 0 7px;
}

.onb-mini-word p:last-child { margin-bottom: 0; }

.onb-mini-word .ph {
  display: inline-block;
  background: rgba(240, 170, 110, 0.2);
  color: #b45309;
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(240, 170, 110, 0.4);
}

/* Стрелка между колонками */
.onb-explain__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}

.onb-explain__arrow svg { width: 24px; height: 24px; }

/* Правило снизу */
.onb-explain__rule {
  margin-top: 22px;
  padding: 13px 16px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 10px;
  font-size: 13.5px;
  color: #c9d1d9;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.onb-explain__rule svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #c4b5fd;
}

.onb-explain__rule b { color: #f0f2fa; font-weight: 700; }

.onb-explain__rule .ph {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  color: #f0aa6e;
  font-weight: 700;
  background: rgba(240, 170, 110, 0.1);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(240, 170, 110, 0.25);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .onb-explain__cols { grid-template-columns: 1fr; }
  .onb-explain__arrow { transform: rotate(90deg); padding: 4px 0; }
}


/* ===================================================================
   Onboarding · Шаг 3 (Excel-база) · доп-классы
   - .onb-placeholder--copyable: flex-вариант чипа с copy-кнопкой
   - .onb-rows: white preview первых N строк xlsx
   - .onb-chip-grid: горизонтальные оранжевые чипы плейсхолдеров в объяснителе
   =================================================================== */

.onb-placeholder--copyable {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.onb-placeholder--copyable .onb-placeholder__body {
  flex: 1 1 auto;
  min-width: 0;
}

.onb-placeholder__copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  padding: 0;
}

.onb-placeholder__copy:hover {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.4);
  color: #f0f2fa;
}

.onb-placeholder__copy svg { width: 14px; height: 14px; }

/* Чип-grid для объяснителя «как из Excel получаются плейсхолдеры» */
.onb-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: 18px 16px;
  background: #0d0f1d;
  border: 1px solid rgba(240, 170, 110, 0.18);
  border-radius: 10px;
  min-height: 156px;
}

.onb-chip-grid__item {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f0aa6e;
  background: rgba(240, 170, 110, 0.14);
  border: 1px solid rgba(240, 170, 110, 0.4);
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Превью первых строк xlsx (white-канвас, как Excel) */
.onb-rows {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.18);
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.onb-rows__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #f7f9fc;
  border-bottom: 1px solid #e8edf3;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.onb-rows__title-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: #8b94ac;
  text-transform: none;
  letter-spacing: 0;
}

.onb-rows__scroll {
  overflow-x: auto;
}

.onb-rows__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #1f2937;
}

.onb-rows__table th,
.onb-rows__table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

.onb-rows__table th {
  background: #fff8ed;
  color: #b45309;
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid #f5d4a4;
  position: sticky;
  top: 0;
}

.onb-rows__table tr:last-child td { border-bottom: none; }
.onb-rows__table tr:nth-child(even) td { background: #fafbfd; }
.onb-rows__table td.is-muted { color: #9ca3af; font-style: italic; }


/* ===================================================================
   Onboarding · Шаг 4 (Word-шаблон) · блок сверки шаблона с базой
   .onb-match — контейнер; .onb-match__group — секция со статусом;
   .onb-match-chip — плейсхолдер-чип внутри секции
   =================================================================== */

.onb-match {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.onb-match__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.onb-match__title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
}

.onb-match__sub {
  font-size: 13px;
  color: #8b94ac;
  line-height: 1.5;
}

.onb-match__summary {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.onb-match__summary svg { width: 13px; height: 13px; }

.onb-match__group {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 12px;
}

.onb-match__group:last-child { margin-bottom: 0; }

.onb-match__group--ok {
  background: rgba(110, 231, 183, 0.05);
  border-color: rgba(110, 231, 183, 0.22);
}

.onb-match__group--err {
  background: rgba(248, 81, 73, 0.06);
  border-color: rgba(248, 81, 73, 0.32);
}

.onb-match__group--unused {
  background: rgba(167, 139, 250, 0.04);
  border-color: rgba(167, 139, 250, 0.14);
}

.onb-match__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.onb-match__group-head svg { width: 16px; height: 16px; flex-shrink: 0; }

.onb-match__group--ok .onb-match__group-head { color: #6ee7b7; }
.onb-match__group--err .onb-match__group-head { color: #fca5a5; }
.onb-match__group--unused .onb-match__group-head { color: #c4b5fd; }

.onb-match__group-count {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin-left: 4px;
}

.onb-match__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onb-match-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0d0f1d;
  border: 1px solid rgba(167, 139, 250, 0.18);
  max-width: 100%;
}

.onb-match-chip__name {
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 700;
  font-size: 13px;
  color: #f0aa6e;
  white-space: nowrap;
}

.onb-match-chip__hint {
  font-size: 11.5px;
  color: #8b94ac;
  line-height: 1.4;
  max-width: 360px;
}

.onb-match-chip__hint b { color: #c4b5fd; font-weight: 600; }
.onb-match-chip__hint a { color: #f0aa6e; text-decoration: underline; text-decoration-color: rgba(240,170,110,0.4); }

.onb-match-chip--ok {
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.32);
}

.onb-match-chip--err {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.4);
}

.onb-match-chip--err .onb-match-chip__name { color: #fca5a5; }

.onb-match-chip--unused {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.22);
  opacity: 0.85;
}

.onb-match-chip--unused .onb-match-chip__name { color: #a8b1c5; }

/* Внутри объяснителя — блок «вот плейсхолдеры из твоей базы» с copy */
.onb-explain__placeholders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.onb-explain__preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7691;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onb-explain__preview-label svg { width: 13px; height: 13px; }


/* ============================================================
   ONB-MAGIC · Шаг 5 — Магия подстановок (склонения, гендер,
   даты словами, заглушки) + превью первого письма.
   Добавлено 2026-05-28.
   ============================================================ */

/* Внешний info-strip над секцией магии: переиспользуем .onb-info-strip */

/* ===== СЕКЦИЯ МАГИИ ===== */
.onb-magic {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onb-magic__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.onb-magic__head-title {
  font-size: 16px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  letter-spacing: -0.005em;
}

.onb-magic__head-meta {
  font-size: 12.5px;
  color: #8b94ac;
  font-weight: 500;
}

/* ===== КАРТОЧКА МАГИИ ===== */
.onb-magic-card {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  padding: 20px 22px 18px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.onb-magic-card:hover {
  border-color: rgba(167, 139, 250, 0.22);
}

.onb-magic-card--on {
  border-color: rgba(167, 139, 250, 0.20);
  background: linear-gradient(180deg, #0b0d1c 0%, #0a0c18 100%);
}

.onb-magic-card__head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.onb-magic-card__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.30);
}

.onb-magic-card__ico svg { width: 20px; height: 20px; }

.onb-magic-card__body { min-width: 0; }

.onb-magic-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.onb-magic-card__sub {
  font-size: 13px;
  color: #a8b1c5;
  line-height: 1.45;
}

/* ===== TOGGLE (switch) ===== */
.onb-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.onb-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.onb-toggle__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.20);
  position: relative;
  transition: background 180ms ease, border-color 180ms ease;
}

.onb-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0f2fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: left 180ms ease, background 180ms ease;
}

.onb-toggle input:checked + .onb-toggle__track {
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px rgba(124, 58, 237, 0.35);
}

.onb-toggle input:checked + .onb-toggle__track .onb-toggle__thumb {
  left: 22px;
  background: #fff;
}

/* ===== DEMO BLOCK (before → after) ===== */
.onb-magic-card__demo {
  background: rgba(15, 19, 39, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.onb-magic-card__demo--vertical {
  gap: 8px;
}

.onb-magic-card__demo-row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 12px;
  align-items: center;
}

.onb-magic-card__demo-from {
  font-size: 13px;
  color: #a8b1c5;
  padding: 8px 12px;
  background: rgba(15, 19, 39, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 8px;
}

.onb-magic-card__demo-from b { color: #f0aa6e; font-weight: 600; }

.onb-magic-card__demo-arrow {
  width: 18px;
  height: 18px;
  color: rgba(236, 72, 153, 0.55);
  justify-self: center;
}

.onb-magic-card__demo-to {
  font-size: 13.5px;
  color: #f0f2fa;
  padding: 8px 12px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.onb-magic-card__demo-case {
  font-size: 10.5px;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
}

.onb-magic-card__demo-case--m { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
.onb-magic-card__demo-case--f { color: #f9a8d4; background: rgba(236, 72, 153, 0.14); }

/* ===== CHIPS — новые магические плейсхолдеры ===== */
.onb-magic-card__chips {
  margin-bottom: 14px;
}

.onb-magic-card__chips-label {
  font-size: 12px;
  color: #8b94ac;
  margin-bottom: 8px;
  font-weight: 500;
}

.onb-magic-card__chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onb-magic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: rgba(240, 170, 110, 0.08);
  border: 1px solid rgba(240, 170, 110, 0.22);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: #f0aa6e;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.onb-magic-chip--inline {
  background: rgba(240, 170, 110, 0.10);
  border-color: rgba(240, 170, 110, 0.25);
}

.onb-magic-chip__case {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  color: #a8b1c5;
  background: rgba(167, 139, 250, 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== FOOT (hint snizu карточки) ===== */
.onb-magic-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #8b94ac;
  padding-top: 14px;
  border-top: 1px dashed rgba(167, 139, 250, 0.10);
  line-height: 1.5;
}

.onb-magic-card__foot svg {
  width: 14px;
  height: 14px;
  color: #c4b5fd;
  flex-shrink: 0;
  margin-top: 2px;
}

.onb-magic-card__foot b { color: #f0f2fa; font-weight: 700; }

/* ===== FALLBACK ROW (для карточки заглушек) ===== */
.onb-fallback-row {
  display: grid;
  grid-template-columns: 1fr 24px 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.06);
}

.onb-fallback-row:last-child { border-bottom: none; }

.onb-fallback-row__col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onb-fallback-row__hint {
  font-size: 11.5px;
  color: #8b94ac;
}

.onb-fallback-row__hint b { color: #f0f2fa; font-weight: 600; }

.onb-fallback-row__arrow {
  width: 16px;
  height: 16px;
  color: rgba(236, 72, 153, 0.45);
  justify-self: center;
}

.onb-fallback-row__input {
  background: rgba(15, 19, 39, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f0f2fa;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.onb-fallback-row__input::placeholder { color: #56607a; }

.onb-fallback-row__input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.10);
}

/* ============================================================
   ONB-MAGIC-PREVIEW · превью первого письма
   ============================================================ */
.onb-magic-preview {
  margin: 28px 0 0;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 18px;
  padding: 22px 22px 20px;
}

.onb-magic-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.onb-magic-preview__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}

.onb-magic-preview__sub {
  font-size: 12.5px;
  color: #8b94ac;
  line-height: 1.4;
}

.onb-magic-preview__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 19, 39, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 999px;
  padding: 4px 4px 4px 4px;
}

.onb-magic-preview__nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #a8b1c5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}

.onb-magic-preview__nav-btn:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #f0f2fa;
}

.onb-magic-preview__nav-btn svg { width: 14px; height: 14px; }

.onb-magic-preview__nav-count {
  font-size: 12px;
  color: #a8b1c5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.onb-magic-preview__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #6e7691;
  margin-top: 14px;
  line-height: 1.45;
}

.onb-magic-preview__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.40);
  flex-shrink: 0;
}

/* ===== MAIL CARD (email-like) ===== */
.onb-mail {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  color: #1f2328;
  font-family: 'Inter', 'Manrope', -apple-system, sans-serif;
  line-height: 1.55;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.onb-mail__head {
  border-bottom: 1px solid #e9ecf3;
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.onb-mail__head-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  font-size: 12.5px;
}

.onb-mail__head-label {
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10.5px;
  padding-top: 2px;
}

.onb-mail__head-value { color: #1f2328; }
.onb-mail__head-value b { color: #111; font-weight: 700; }

.onb-mail__body {
  font-size: 14.5px;
  color: #1f2328;
}

.onb-mail__body p {
  margin: 0 0 12px;
}

.onb-mail__body p:last-of-type { margin-bottom: 0; }

.onb-mail__sign {
  margin-top: 18px !important;
  color: #4b5563;
  font-size: 13.5px;
}

/* подсветка магических подстановок */
.onb-mail__hl {
  position: relative;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(124, 58, 237, 0.12));
  border-bottom: 1.5px dashed rgba(236, 72, 153, 0.45);
  padding: 1px 4px;
  border-radius: 4px;
  cursor: help;
  font-weight: 600;
  color: #4c1d95;
  transition: background 150ms ease;
}

.onb-mail__hl:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.26), rgba(124, 58, 237, 0.20));
}

.onb-mail__hl::after {
  content: '[' attr(data-tag) ']';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2328;
  color: #f0aa6e;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 10;
}

.onb-mail__hl:hover::after { opacity: 1; }

.onb-mail__attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  background: #f5f6fa;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
  font-size: 12.5px;
}

.onb-mail__attach svg {
  width: 14px;
  height: 14px;
  color: #6b7280;
}

.onb-mail__attach-name {
  color: #1f2328;
  font-weight: 600;
}

.onb-mail__attach-meta {
  color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .onb-magic-card__head { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .onb-magic-card__demo-row { grid-template-columns: 1fr; }
  .onb-magic-card__demo-arrow { transform: rotate(90deg); justify-self: start; }
  .onb-fallback-row { grid-template-columns: 1fr; }
  .onb-fallback-row__arrow { transform: rotate(90deg); justify-self: start; }
  .onb-magic-preview__head { flex-direction: column; align-items: stretch; }
  .onb-mail__head-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ============================================================
   ONB-SEND · Шаг 6 — Тестовое письмо
   Карточки «куда» + «что», большая CTA, чек-лист.
   Добавлено 2026-05-28.
   ============================================================ */

.onb-send {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onb-send__card {
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 18px;
  padding: 22px 24px 20px;
}

.onb-send__card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.onb-send__card-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.onb-send__card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.onb-send__card-sub {
  font-size: 13px;
  color: #a8b1c5;
  line-height: 1.45;
}

/* ===== КАРТОЧКА «КУДА» ===== */
.onb-send__target {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(15, 19, 39, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.10);
  border-radius: 14px;
}

.onb-send__target-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.30);
}

.onb-send__target-ico svg { width: 20px; height: 20px; }

.onb-send__target-email {
  font-size: 17px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

.onb-send__target-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8b94ac;
}

.onb-send__target-meta-item {
  display: inline-flex;
  align-items: center;
}

.onb-send__target-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.onb-send__target-badge svg { width: 11px; height: 11px; }

.onb-send__target-badge--ok {
  background: rgba(110, 231, 183, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.22);
}

.onb-send__target-edit {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.14);
  color: #a8b1c5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.onb-send__target-edit:hover {
  background: rgba(167, 139, 250, 0.16);
  color: #f0f2fa;
  border-color: rgba(167, 139, 250, 0.28);
}

.onb-send__target-edit svg { width: 14px; height: 14px; }

/* ===== КАРТОЧКА «ЧТО» — двухколоночная: stack + preview ===== */
.onb-send__what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.onb-send__what-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onb-send__what-stack-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 19, 39, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 10px;
  align-items: center;
}

.onb-send__what-stack-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b94ac;
  font-weight: 600;
}

.onb-send__what-stack-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f0f2fa;
  font-weight: 500;
}

.onb-send__what-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.onb-send__what-icon--docx { background: #2b579a; }
.onb-send__what-icon--xlsx { background: #217346; }
.onb-send__what-icon--pdf  { background: #d93025; }

.onb-send__what-magic-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.20);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ===== ПРЕВЬЮ-ОКНО письма (mac-bar) ===== */
.onb-send__preview {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.onb-send__preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #ebeef3;
  border-bottom: 1px solid #d8dde6;
}

.onb-send__preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.onb-send__preview-bar-title {
  margin-left: 10px;
  font-size: 11px;
  color: #5a6378;
  font-weight: 600;
}

.onb-send__preview-body {
  padding: 16px 18px;
  font-family: 'Inter', 'Manrope', -apple-system, sans-serif;
  color: #1f2328;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.onb-send__preview-subject {
  font-weight: 700;
  font-size: 13.5px;
  color: #111;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecf3;
}

.onb-send__preview-text {
  flex: 1;
}

.onb-send__preview-text p {
  margin: 0 0 8px;
}

.onb-send__preview-hl {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(124, 58, 237, 0.12));
  padding: 1px 4px;
  border-radius: 4px;
  color: #4c1d95;
  font-weight: 600;
}

.onb-send__preview-more {
  margin-top: 10px;
  font-size: 12px;
  color: #4c1d95;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.onb-send__preview-more:hover { text-decoration: underline; }

/* ===== BIG CTA ===== */
.onb-send-cta {
  margin: 32px 0;
  text-align: center;
  padding: 28px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.14), transparent 70%);
  border: 1px dashed rgba(167, 139, 250, 0.18);
  border-radius: 18px;
}

.onb-send-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 36px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 150ms ease, box-shadow 180ms ease;
}

.onb-send-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.onb-send-cta__btn svg { width: 18px; height: 18px; }

.onb-send-cta__hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8b94ac;
}

.onb-send-cta__hint b { color: #f0f2fa; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ===== ЧЕК-ЛИСТ «КОГДА ПРИДЁТ — ПРОВЕРЬ» ===== */
.onb-send-check {
  margin: 0 0 24px;
  padding: 22px 24px;
  background: #0a0c18;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 18px;
}

.onb-send-check__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #6ee7b7;
}

.onb-send-check__head svg { width: 18px; height: 18px; }

.onb-send-check__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  letter-spacing: -0.005em;
}

.onb-send-check__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onb-send-check__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #a8b1c5;
  line-height: 1.5;
}

.onb-send-check__item b { color: #f0f2fa; font-weight: 700; }

.onb-send-check__bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.32);
  background: rgba(167, 139, 250, 0.06);
  margin-top: 2px;
  position: relative;
}

.onb-send-check__bullet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.40);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .onb-send__what { grid-template-columns: 1fr; }
  .onb-send__target { grid-template-columns: 44px 1fr; }
  .onb-send__target-edit { grid-column: 1 / -1; justify-self: end; }
  .onb-send__what-stack-item { grid-template-columns: 1fr; gap: 4px; }
  .onb-send-cta__btn { width: 100%; }
}

/* ============================================================
   === CORE APP — Layout shell + Mailboxes (2026-05-28) ===
   Префикс .app-* — изолированные стили для всех 10 экранов core app.
   Наследует токены от .auth-* / .onb-* (Manrope, gradient #ec4899→#4c1d95, dark).
   Sidebar 264px, sticky top-bar, плотная таблица с bulk-toolbar.
   ============================================================ */

.app-body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0c12;
  color: #d4d9e3;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* === SHELL === */
.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

/* === SIDEBAR === */
.app-side {
  border-right: 1px solid #1c2030;
  background: #07090f;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.app-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 4px;
  margin-bottom: 22px;
}

.app-side__brand .auth-logo {
  width: 32px;
  height: 32px;
  font-size: 16px;
  border-radius: 9px;
}

.app-side__brand .auth-logo-text {
  font-size: 17px;
}

.app-side__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  overflow-y: auto;
}

.app-side__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-side__group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6175;
  padding: 0 10px 6px;
}

.app-side__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #c0c5d3;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: background 0.12s, color 0.12s;
}

.app-side__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6e7691;
  transition: color 0.12s;
}

.app-side__item:hover {
  background: #11141e;
  color: #f0f2fa;
  text-decoration: none;
}

.app-side__item:hover svg {
  color: #c0c5d3;
}

.app-side__item--active {
  background: #11141e;
  color: #f0f2fa;
  font-weight: 600;
}

.app-side__item--active::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: #f0f2fa;
}

.app-side__item--active svg {
  color: #f0f2fa;
}

.app-side__item-label { flex: 1; }

.app-side__item-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #1c2030;
  color: #8b94ac;
  line-height: 1.5;
  font-feature-settings: 'tnum' 1;
}

.app-side__item--active .app-side__item-pill {
  background: #252a3a;
  color: #d4d9e8;
}

.app-side__user {
  margin-top: 14px;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 30px 1fr 14px;
  gap: 10px;
  align-items: center;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.app-side__user:hover {
  background: #11141e;
  border-color: #2a3046;
}

.app-side__user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1c2030;
  color: #d4d9e8;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-side__user-info { min-width: 0; }
.app-side__user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-side__user-mail {
  font-size: 11.5px;
  color: #8b94ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-side__user-chev { color: #6e7691; }
.app-side__user-chev svg { width: 14px; height: 14px; }

/* === TOP-BAR === */
.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0a0c12;
  border-bottom: 1px solid #1c2030;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.app-topbar__search {
  position: relative;
  max-width: 420px;
}

.app-topbar__search-input {
  width: 100%;
  height: 34px;
  padding: 0 14px 0 36px;
  border-radius: 6px;
  background: #0d1018;
  border: 1px solid #1c2030;
  color: #f0f2fa;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.app-topbar__search-input::placeholder { color: #6e7691; }

.app-topbar__search-input:focus {
  border-color: #3a4358;
  box-shadow: 0 0 0 3px rgba(58, 67, 88, 0.35);
}

.app-topbar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7691;
  pointer-events: none;
}

.app-topbar__search-icon svg { width: 15px; height: 15px; }

.app-topbar__search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 600;
  color: #6e7691;
  background: #1c2030;
  border: 1px solid #252a3a;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-topbar__icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #8b94ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.app-topbar__icon-btn:hover {
  background: #11141e;
  border-color: #1c2030;
  color: #f0f2fa;
}

.app-topbar__icon-btn svg { width: 16px; height: 16px; }

.app-topbar__icon-btn-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d29922;
  box-shadow: 0 0 0 2px #0a0c12;
}

.app-topbar__user-btn {
  height: 32px;
  padding: 0 4px 0 10px;
  border-radius: 999px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #f0f2fa;
  transition: border-color 0.15s, background 0.15s;
}

.app-topbar__user-btn:hover {
  background: #161a26;
  border-color: #2a3046;
}

.app-topbar__user-name {
  font-size: 13px;
  font-weight: 600;
}

.app-topbar__user-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1c2030;
  color: #d4d9e8;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === PAGE === */
.app-page {
  padding: 28px 32px 40px;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
}

.app-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.app-page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0f2fa;
  margin: 0 0 4px;
}

.app-page-sub {
  font-size: 13px;
  color: #8b94ac;
  margin: 0;
  max-width: 680px;
}

/* === SUMMARY (4 mini-stats) === */
.app-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.app-summary__card {
  position: relative;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px 13px;
  overflow: hidden;
}

.app-summary__card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e7691;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-summary__card-label svg { width: 12px; height: 12px; }

.app-summary__card-num {
  font-size: 26px;
  font-weight: 700;
  color: #f0f2fa;
  margin-top: 8px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}

.app-summary__card-num span {
  font-size: 13px;
  font-weight: 500;
  color: #6e7691;
  margin-left: 6px;
  letter-spacing: 0;
}

.app-summary__card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #8b94ac;
}

.app-summary__card-delta {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.app-summary__card-delta--up { color: #3fb950; }
.app-summary__card-delta--down { color: #f85149; }
.app-summary__card-delta--warm { color: #d29922; }
.app-summary__card-delta svg { width: 10px; height: 10px; }

/* === TOOLBAR === */
.app-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.app-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.app-btn svg { width: 14px; height: 14px; }

.app-btn--primary {
  background: #f0f2fa;
  color: #0a0c12;
  border-color: #f0f2fa;
}

.app-btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0c12;
}

.app-btn--ghost {
  background: #11141e;
  border-color: #2a3046;
  color: #d4d9e8;
}

.app-btn--ghost:hover {
  background: #161a26;
  border-color: #3a4358;
  color: #f0f2fa;
}

.app-btn--sm {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 8px;
}

.app-btn--icon { padding: 9px 11px; }

/* Filter chip select */
.app-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  background: #11141e;
  border: 1px solid #1c2030;
  color: #c0c5d3;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.app-filter:hover {
  border-color: #2a3046;
  background: #161a26;
}

.app-filter svg { width: 12px; height: 12px; color: #8b94ac; }

.app-filter b {
  font-weight: 700;
  color: #f0f2fa;
  margin-left: 2px;
}

/* === BULK BAR === */
.app-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 8px;
}

.app-bulk__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d9e8;
}

.app-bulk__count b {
  background: #1c2030;
  color: #f0f2fa;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-feature-settings: 'tnum' 1;
}

.app-bulk__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.app-bulk__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #c0c5d3;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.app-bulk__btn:hover {
  background: #161a26;
  border-color: #2a3046;
  color: #f0f2fa;
}

.app-bulk__btn--danger { color: #f0a4a4; }
.app-bulk__btn--danger:hover { color: #fff; background: rgba(248, 81, 73, 0.14); border-color: rgba(248, 81, 73, 0.4); }

.app-bulk__btn svg { width: 13px; height: 13px; }

.app-bulk__divider {
  width: 1px;
  height: 16px;
  background: #2a3046;
  margin: 0 4px;
}

/* === TABLE === */
.app-table-wrap {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  overflow: hidden;
}

.app-table {
  display: grid;
  grid-template-columns: 40px minmax(220px, 1.5fr) 130px 150px 150px 110px 90px;
  width: 100%;
}

.app-table__head,
.app-table__row {
  display: contents;
}

.app-table__cell {
  padding: 11px 14px;
  font-size: 13px;
  color: #d4d9e3;
  border-bottom: 1px solid #1c2030;
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-table__cell--head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7691;
  padding: 10px 14px;
  background: #0a0c12;
  border-bottom: 1px solid #1c2030;
}

.app-table__row:hover .app-table__cell {
  background: #11141e;
}

.app-table__row:last-child .app-table__cell { border-bottom: none; }

.app-table__row--selected .app-table__cell {
  background: #131826 !important;
  box-shadow: inset 2px 0 0 #f0f2fa;
}

.app-table__row--selected .app-table__cell:not(:first-child) {
  box-shadow: none;
}

/* Checkbox cell */
.app-table__cell--check { padding-left: 16px; }

.app-check {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #3a4358;
  background: #0a0c12;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.12s;
}

.app-check:hover { border-color: #565d75; }

.app-check:checked {
  background: #f0f2fa;
  border-color: #f0f2fa;
}

.app-check:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid #0a0c12;
  border-bottom: 2px solid #0a0c12;
  transform: translate(-50%, -65%) rotate(-45deg);
}

/* Email cell */
.app-table__email {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.app-table__provider {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  background: #1c2030;
  border: 1px solid #2a3046;
  color: #c0c5d3;
  flex-shrink: 0;
}

.app-table__provider--yandex { color: #f0c47a; }
.app-table__provider--mailru { color: #7aa2f0; }
.app-table__provider--gmail { color: #e87a7a; }

.app-table__email-body { min-width: 0; }
.app-table__email-addr {
  font-size: 13px;
  font-weight: 600;
  color: #f0f2fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: 'tnum' 1;
}

.app-table__email-meta {
  font-size: 11.5px;
  color: #6e7691;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* === STATUS CHIP === */
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: inherit;
  background: #11141e;
}

.app-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-chip--online {
  color: #6cc775;
  border-color: #1c3026;
}
.app-chip--online::before { background: #3fb950; }

.app-chip--warm {
  color: #d4a572;
  border-color: #2a2418;
}
.app-chip--warm::before { background: #d29922; }

.app-chip--pause {
  color: #8b94ac;
  border-color: #232838;
}
.app-chip--pause::before { background: #565d75; }

.app-chip--error {
  color: #ec8a8a;
  border-color: #3a2020;
}
.app-chip--error::before { background: #f85149; }

/* === HEALTH BAR === */
.app-health {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}

.app-health__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.app-health__pct {
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
}

.app-health__label {
  color: #6e7691;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-health__bar {
  height: 4px;
  background: #1c2030;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.app-health__fill {
  height: 100%;
  border-radius: 2px;
  background: #3fb950;
}

.app-health__fill--mid { background: #d29922; }
.app-health__fill--low { background: #f85149; }
.app-health__fill--warm { background: #d29922; }

/* === LIMIT (progress fraction) === */
.app-limit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.app-limit__nums {
  font-size: 12.5px;
  font-weight: 700;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
}

.app-limit__nums span {
  color: #6e7691;
  font-weight: 600;
  margin-left: 1px;
}

.app-limit__bar {
  height: 4px;
  background: #1c2030;
  border-radius: 2px;
  overflow: hidden;
}

.app-limit__fill {
  height: 100%;
  background: #565d75;
  border-radius: 2px;
}

.app-limit__fill--full {
  background: #d29922;
}

/* === SENT TODAY (num) === */
.app-sent {
  font-size: 14px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
}

.app-sent--zero { color: #56607a; font-weight: 600; }

.app-sent--err { color: #f85149; }

/* === ROW ACTIONS === */
.app-row-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.app-row-actions__btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: #8b94ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
}

.app-row-actions__btn:hover {
  background: #1c2030;
  border-color: #2a3046;
  color: #f0f2fa;
}

.app-row-actions__btn svg { width: 14px; height: 14px; }

.app-row-actions__btn--danger:hover {
  background: rgba(248, 81, 73, 0.10);
  border-color: rgba(248, 81, 73, 0.32);
  color: #ec8a8a;
}

/* === EMPTY/HINT row at end (optional) === */
.app-table__hint-row {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  color: #6e7691;
  font-size: 12.5px;
}

/* === Responsive === */
@media (max-width: 1180px) {
  .app-summary { grid-template-columns: repeat(2, 1fr); }
  .app-table {
    grid-template-columns: 40px minmax(200px, 1.4fr) 120px 130px 130px 100px 80px;
  }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .app-side { padding: 18px 12px; }
  .app-page { padding: 20px 18px 32px; }
  .app-topbar { padding: 12px 18px; }
  .app-table-wrap { overflow-x: auto; }
  .app-table { min-width: 940px; }
}

@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.10);
  }
  .app-side__user { display: none; }
  .app-summary { grid-template-columns: 1fr 1fr; }
  .app-page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   === CORE APP — Popups (menu / modal / drawer / palette) ===
   Все интерактивные оверлеи и плейсхолдеры stub-страниц.
   ============================================================ */

/* === STUB PLACEHOLDER (для пустых страниц-заготовок) === */
.app-placeholder {
  background: #0d1018;
  border: 1px dashed #2a3046;
  border-radius: 8px;
  padding: 56px 40px;
  text-align: center;
  color: #8b94ac;
}

.app-placeholder__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6e7691;
  margin-bottom: 16px;
}

.app-placeholder__icon svg { width: 22px; height: 22px; }

.app-placeholder__title {
  font-size: 16px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 6px;
}

.app-placeholder__text {
  font-size: 13px;
  color: #8b94ac;
  margin: 0 auto 18px;
  max-width: 440px;
  line-height: 1.5;
}

.app-placeholder__cta {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

/* === MENU (dropdown popover) === */
.app-menu {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 4px;
  min-width: 200px;
  display: inline-block;
}

.app-menu--wide { min-width: 260px; }

.app-menu__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-menu__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #56607a;
  padding: 8px 10px 4px;
}

.app-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #d4d9e3;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}

.app-menu__item:hover {
  background: #161a26;
  color: #f0f2fa;
}

.app-menu__item svg {
  width: 14px;
  height: 14px;
  color: #8b94ac;
  flex-shrink: 0;
}

.app-menu__item:hover svg { color: #d4d9e3; }

.app-menu__item-label { flex: 1; }

.app-menu__item-kbd {
  font-size: 11px;
  font-weight: 600;
  color: #6e7691;
  font-family: ui-monospace, 'SF Mono', monospace;
  background: #1c2030;
  border: 1px solid #252a3a;
  padding: 1px 6px;
  border-radius: 4px;
}

.app-menu__item-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #3fb950;
}

.app-menu__item--danger { color: #ec8a8a; }
.app-menu__item--danger svg { color: #c46b6b; }
.app-menu__item--danger:hover { background: rgba(248, 81, 73, 0.08); color: #f0a4a4; }

.app-menu__divider {
  height: 1px;
  background: #1c2030;
  margin: 4px 2px;
}

.app-menu__hint {
  padding: 6px 10px 8px;
  font-size: 11.5px;
  color: #6e7691;
  line-height: 1.45;
}

/* === MODAL (centered overlay) === */
.app-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  box-sizing: border-box;
}

.app-modal {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-modal--wide { max-width: 560px; }

.app-modal__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid #1c2030;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.app-modal__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #11141e;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d4d9e3;
}

.app-modal__icon svg { width: 18px; height: 18px; }

.app-modal__icon--danger { color: #ec8a8a; border-color: rgba(248, 81, 73, 0.32); background: rgba(248, 81, 73, 0.06); }
.app-modal__icon--warn { color: #d4a572; border-color: rgba(210, 153, 34, 0.32); background: rgba(210, 153, 34, 0.06); }

.app-modal__head-body { flex: 1; min-width: 0; }

.app-modal__title {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
}

.app-modal__sub {
  font-size: 13px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.45;
}

.app-modal__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #8b94ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-modal__close:hover { background: #1c2030; color: #f0f2fa; }
.app-modal__close svg { width: 14px; height: 14px; }

.app-modal__body {
  padding: 16px 20px;
  font-size: 13.5px;
  color: #c0c5d3;
  line-height: 1.5;
}

.app-modal__body p { margin: 0 0 12px; }
.app-modal__body p:last-child { margin: 0; }
.app-modal__body b { color: #f0f2fa; font-weight: 700; }

.app-modal__foot {
  padding: 12px 20px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #0a0c12;
  border-top: 1px solid #1c2030;
}

/* === DRAWER (slide-in panel right side) === */
.app-drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-end;
  z-index: 90;
}

.app-drawer {
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #0a0c12;
  border-left: 1px solid #2a3046;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.5);
}

.app-drawer__head {
  padding: 16px 20px;
  border-bottom: 1px solid #1c2030;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-drawer__title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  flex: 1;
}

.app-drawer__head-action {
  font-size: 12.5px;
  font-weight: 600;
  color: #8b94ac;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
}

.app-drawer__head-action:hover { background: #11141e; color: #f0f2fa; }

.app-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Notification item */
.app-notif {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 4px;
}

.app-notif:hover { background: #11141e; }

.app-notif--unread { background: rgba(58, 67, 88, 0.18); }
.app-notif--unread:hover { background: #11141e; }

.app-notif__ico {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b94ac;
}

.app-notif__ico svg { width: 14px; height: 14px; }

.app-notif__ico--ok { color: #6cc775; }
.app-notif__ico--warn { color: #d4a572; }
.app-notif__ico--err { color: #ec8a8a; }

.app-notif__body { min-width: 0; }
.app-notif__title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f2fa;
  margin: 0 0 2px;
  line-height: 1.35;
}
.app-notif__text {
  font-size: 12.5px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.45;
}
.app-notif__time {
  font-size: 11px;
  color: #6e7691;
  margin-top: 4px;
}

/* Help drawer Q-block */
.app-help-q {
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.app-help-q:hover { background: #11141e; border-color: #1c2030; }

.app-help-q__title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f2fa;
  margin: 0 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.app-help-q__title svg { width: 13px; height: 13px; color: #6e7691; flex-shrink: 0; margin-top: 3px; }

.app-help-q__text {
  font-size: 12px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.5;
}

/* === COMMAND PALETTE === */
.app-palette-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 110;
}

.app-palette {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 10px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-palette__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #1c2030;
}

.app-palette__input-wrap svg { width: 16px; height: 16px; color: #8b94ac; flex-shrink: 0; }

.app-palette__input {
  flex: 1;
  background: none;
  border: none;
  color: #f0f2fa;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.app-palette__input::placeholder { color: #6e7691; }

.app-palette__esc {
  font-size: 11px;
  font-weight: 600;
  color: #6e7691;
  font-family: ui-monospace, 'SF Mono', monospace;
  background: #1c2030;
  border: 1px solid #252a3a;
  padding: 2px 7px;
  border-radius: 4px;
}

.app-palette__list { padding: 6px; max-height: 380px; overflow-y: auto; }

.app-palette__group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #56607a;
  padding: 8px 10px 4px;
}

.app-palette__item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #d4d9e3;
  cursor: pointer;
  text-decoration: none;
}

.app-palette__item:hover,
.app-palette__item--active {
  background: #161a26;
  color: #f0f2fa;
}

.app-palette__item svg { width: 14px; height: 14px; color: #8b94ac; }

.app-palette__item-meta {
  font-size: 11.5px;
  color: #6e7691;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.app-palette__foot {
  padding: 8px 14px;
  border-top: 1px solid #1c2030;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #6e7691;
}

.app-palette__foot kbd {
  background: #1c2030;
  border: 1px solid #252a3a;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10.5px;
  color: #8b94ac;
  margin-right: 4px;
}

/* === TOAST (bottom-right) === */
.app-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 120;
}

.app-toast {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 26px 1fr 18px;
  gap: 10px;
  align-items: center;
  width: 320px;
}

.app-toast__ico {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-toast__ico svg { width: 13px; height: 13px; }

.app-toast--ok .app-toast__ico { color: #6cc775; border-color: rgba(63, 185, 80, 0.32); }
.app-toast--warn .app-toast__ico { color: #d4a572; border-color: rgba(210, 153, 34, 0.32); }
.app-toast--err .app-toast__ico { color: #ec8a8a; border-color: rgba(248, 81, 73, 0.32); }

.app-toast__title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f2fa;
  margin: 0;
}

.app-toast__text {
  font-size: 11.5px;
  color: #8b94ac;
  margin: 2px 0 0;
}

.app-toast__close {
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: #6e7691;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-toast__close:hover { color: #f0f2fa; }
.app-toast__close svg { width: 12px; height: 12px; }

/* === DEMO grid (для popups-demo.html) === */
.app-demo {
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.app-demo__title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  letter-spacing: -0.01em;
}

.app-demo__sub {
  font-size: 13px;
  color: #8b94ac;
  margin: 4px 0 0;
}

.app-demo__group {
  border-top: 1px solid #1c2030;
  padding-top: 24px;
}

.app-demo__group-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e7691;
  margin: 0 0 16px;
}

.app-demo__row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.app-demo__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-demo__cell-label {
  font-size: 12px;
  font-weight: 600;
  color: #8b94ac;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.app-demo__overlay-wrap {
  position: relative;
  width: 560px;
  height: 280px;
  background: #0a0c12;
  border: 1px dashed #1c2030;
  border-radius: 8px;
  overflow: hidden;
}

.app-demo__overlay-wrap .app-modal-bg,
.app-demo__overlay-wrap .app-drawer-bg,
.app-demo__overlay-wrap .app-palette-bg,
.app-demo__overlay-wrap .app-toast-wrap {
  position: absolute;
}

/* ============================================================
   === CORE APP — Dashboard + OAuth screens (2026-05-28) ===
   ============================================================ */

/* KPI big row — приветствие */
.app-dash-hello {
  margin: 4px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.app-dash-hello__h {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0f2fa;
}
.app-dash-hello__sub {
  font-size: 13px;
  color: #8b94ac;
}

/* KPI 4-up cards */
.app-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.app-kpi__card {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-kpi__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-kpi__num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  line-height: 1;
}
.app-kpi__num span {
  font-size: 13px;
  font-weight: 500;
  color: #6e7691;
  margin-left: 6px;
  letter-spacing: 0;
}
.app-kpi__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8b94ac;
  margin-top: 2px;
}
.app-kpi__delta--up { color: #3fb950; font-weight: 600; }
.app-kpi__delta--down { color: #f85149; font-weight: 600; }
.app-kpi__delta--flat { color: #8b94ac; font-weight: 600; }
.app-kpi__spark {
  margin-top: 8px;
  height: 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(63, 185, 80, 0.04) 100%);
  border-radius: 4px;
  display: block;
}

/* Section header (dashboard rows) */
.app-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 12px;
  gap: 12px;
}
.app-section-head__title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.app-section-head__title-count {
  font-size: 12px;
  font-weight: 500;
  color: #6e7691;
  background: #1c2030;
  padding: 1px 8px;
  border-radius: 999px;
}
.app-section-head__link {
  font-size: 12.5px;
  font-weight: 500;
  color: #8b94ac;
  text-decoration: none;
}
.app-section-head__link:hover { color: #f0f2fa; text-decoration: none; }

/* Dashboard layout — 2 cols (campaigns left, activity right) */
.app-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
@media (max-width: 1080px) {
  .app-dash-grid { grid-template-columns: 1fr; }
}

/* Campaign cards */
.app-cmp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-cmp-card {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  text-decoration: none;
}
.app-cmp-card:hover { border-color: #2a3046; background: #11141e; text-decoration: none; }
.app-cmp-card__main { min-width: 0; }
.app-cmp-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
}
.app-cmp-card__meta {
  font-size: 12px;
  color: #6e7691;
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}
.app-cmp-card__meta b { color: #c0c5d3; font-weight: 600; }
.app-cmp-card__progress {
  height: 5px;
  background: #1c2030;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.app-cmp-card__progress-fill {
  height: 100%;
  background: #3fb950;
  border-radius: 999px;
}
.app-cmp-card__progress-fill--paused { background: #565d75; }
.app-cmp-card__nums {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8b94ac;
  font-feature-settings: 'tnum' 1;
}
.app-cmp-card__nums b { color: #f0f2fa; font-weight: 700; }
.app-cmp-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.app-cmp-card__rates {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: #8b94ac;
  font-feature-settings: 'tnum' 1;
}
.app-cmp-card__rates b { color: #f0f2fa; font-weight: 700; display: block; font-size: 14px; }

/* Activity feed */
.app-feed {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 8px;
}
.app-feed__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 10px 8px;
  position: relative;
}
.app-feed__item:not(:last-child) {
  border-bottom: 1px solid #1c2030;
}
.app-feed__ico {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b94ac;
}
.app-feed__ico svg { width: 13px; height: 13px; }
.app-feed__ico--ok { color: #6cc775; border-color: rgba(63, 185, 80, 0.32); background: rgba(63, 185, 80, 0.06); }
.app-feed__ico--warn { color: #d4a572; border-color: rgba(210, 153, 34, 0.32); background: rgba(210, 153, 34, 0.06); }
.app-feed__ico--err { color: #ec8a8a; border-color: rgba(248, 81, 73, 0.32); background: rgba(248, 81, 73, 0.06); }
.app-feed__ico--info { color: #7aa2f0; border-color: rgba(122, 162, 240, 0.32); background: rgba(122, 162, 240, 0.06); }
.app-feed__body { min-width: 0; }
.app-feed__text {
  font-size: 12.5px;
  color: #d4d9e3;
  margin: 0;
  line-height: 1.45;
}
.app-feed__text b { color: #f0f2fa; font-weight: 700; }
.app-feed__time {
  font-size: 11px;
  color: #6e7691;
  margin-top: 3px;
}

/* Mini-mailbox-health card */
.app-mh-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-mh-row {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 7px;
  font-size: 12.5px;
  text-decoration: none;
}
.app-mh-row:hover { border-color: #2a3046; background: #11141e; text-decoration: none; }
.app-mh-row__dot {
  width: 7px; height: 7px; border-radius: 50%; justify-self: center;
}
.app-mh-row__dot--err { background: #f85149; }
.app-mh-row__dot--warn { background: #d29922; }
.app-mh-row__dot--ok { background: #3fb950; }
.app-mh-row__email {
  font-weight: 600;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-mh-row__hint {
  color: #8b94ac;
  font-size: 11.5px;
}
.app-mh-row__action {
  color: #c0c5d3;
  font-weight: 600;
  font-size: 11.5px;
}

/* Quick-actions strip */
.app-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.app-quick__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.app-quick__btn:hover { border-color: #2a3046; background: #11141e; text-decoration: none; }
.app-quick__btn-ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d9e3;
  flex-shrink: 0;
}
.app-quick__btn-ico svg { width: 16px; height: 16px; }
.app-quick__btn-body { min-width: 0; }
.app-quick__btn-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 2px;
}
.app-quick__btn-text {
  font-size: 11.5px;
  color: #8b94ac;
}

/* === OAUTH CONFIRM screens === */
.app-oauth {
  max-width: 480px;
  margin: 24px auto 0;
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-oauth__brand {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #11141e;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  align-self: flex-start;
}
.app-oauth__brand--yandex { color: #f0c47a; }
.app-oauth__brand--mailru { color: #7aa2f0; }
.app-oauth__h {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f0f2fa;
  margin: 0;
}
.app-oauth__sub {
  font-size: 13.5px;
  color: #a8b1c5;
  margin: 0;
  line-height: 1.5;
}
.app-oauth__rights {
  background: #0a0c12;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-oauth__rights-h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7691;
  margin: 0;
}
.app-oauth__right-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 12.5px;
  color: #c0c5d3;
  line-height: 1.45;
}
.app-oauth__right-item svg { width: 14px; height: 14px; color: #3fb950; }
.app-oauth__safety {
  font-size: 12px;
  color: #8b94ac;
  line-height: 1.5;
  padding: 12px 14px;
  background: rgba(63, 185, 80, 0.04);
  border: 1px solid rgba(63, 185, 80, 0.20);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: flex-start;
}
.app-oauth__safety svg { width: 14px; height: 14px; color: #6cc775; margin-top: 2px; }
.app-oauth__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-oauth__cta .app-btn { width: 100%; padding: 12px 16px; font-size: 14px; }

/* CSV upload */
.app-csv {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-csv__drop {
  border: 2px dashed #2a3046;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: #0d1018;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.app-csv__drop:hover { border-color: #3a4358; background: #11141e; }
.app-csv__drop-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b94ac;
}
.app-csv__drop-ico svg { width: 22px; height: 22px; }
.app-csv__drop-h {
  font-size: 15px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
}
.app-csv__drop-sub {
  font-size: 12.5px;
  color: #8b94ac;
  margin: 0;
}
.app-csv__template {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  font-size: 12.5px;
  color: #c0c5d3;
}
.app-csv__template svg { width: 16px; height: 16px; color: #8b94ac; flex-shrink: 0; }
.app-csv__template-body { flex: 1; }
.app-csv__template-body b { color: #f0f2fa; font-weight: 700; }
.app-csv__template-link {
  color: #f0f2fa;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #2a3046;
  text-underline-offset: 3px;
}


/* ============================================================
   === CORE APP — Mailbox health (DKIM/SPF/DMARC) (2026-05-28) ===
   ============================================================ */

/* Score badge */
.app-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  margin-bottom: 18px;
}
.app-score__num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #f0f2fa;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum' 1;
}
.app-score__num span {
  font-size: 24px;
  color: #6e7691;
  font-weight: 500;
}
.app-score__body { display: flex; flex-direction: column; gap: 6px; }
.app-score__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-score__verdict {
  font-size: 15px;
  font-weight: 700;
  color: #f0f2fa;
}
.app-score__verdict--ok { color: #6cc775; }
.app-score__verdict--warn { color: #d4a572; }
.app-score__verdict--err { color: #ec8a8a; }
.app-score__hint {
  font-size: 12.5px;
  color: #8b94ac;
  max-width: 540px;
  line-height: 1.5;
}

/* Check-row table */
.app-checks {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.app-check-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
  border-bottom: 1px solid #1c2030;
}
.app-check-row:last-child { border-bottom: none; }
.app-check-row__status {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1c2030;
  background: #11141e;
}
.app-check-row__status svg { width: 14px; height: 14px; }
.app-check-row__status--ok { color: #6cc775; border-color: rgba(63,185,80,0.32); background: rgba(63,185,80,0.07); }
.app-check-row__status--warn { color: #d4a572; border-color: rgba(210,153,34,0.32); background: rgba(210,153,34,0.07); }
.app-check-row__status--err { color: #ec8a8a; border-color: rgba(248,81,73,0.32); background: rgba(248,81,73,0.07); }
.app-check-row__main { min-width: 0; }
.app-check-row__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.app-check-row__title-tag {
  font-size: 11px;
  font-weight: 600;
  color: #8b94ac;
  font-family: ui-monospace, 'SF Mono', monospace;
}
.app-check-row__detail {
  font-size: 12px;
  color: #8b94ac;
  margin: 3px 0 0;
  line-height: 1.45;
}
.app-check-row__detail code {
  background: #11141e;
  border: 1px solid #1c2030;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  color: #c0c5d3;
}
.app-check-row__action {
  font-size: 12px;
  font-weight: 600;
  color: #c0c5d3;
  text-decoration: none;
  white-space: nowrap;
}
.app-check-row__action:hover { color: #f0f2fa; text-decoration: none; }

/* Recommendation cards */
.app-reco-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.app-reco {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: flex-start;
}
.app-reco--warn { border-color: rgba(210,153,34,0.30); background: rgba(210,153,34,0.04); }
.app-reco--err { border-color: rgba(248,81,73,0.30); background: rgba(248,81,73,0.04); }
.app-reco__ico {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4a572;
}
.app-reco--err .app-reco__ico { color: #ec8a8a; }
.app-reco__ico svg { width: 15px; height: 15px; }
.app-reco__body { min-width: 0; }
.app-reco__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
}
.app-reco__text {
  font-size: 12.5px;
  color: #c0c5d3;
  margin: 0;
  line-height: 1.5;
}
.app-reco__text b { color: #f0f2fa; font-weight: 700; }
.app-reco__text code {
  background: #11141e;
  border: 1px solid #1c2030;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11.5px;
  color: #c0c5d3;
}

/* Provider inbox-rate bars */
.app-prov-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.app-prov-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 7px;
  font-size: 12.5px;
}
.app-prov-row__name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f0f2fa;
  font-weight: 600;
}
.app-prov-row__name-quad {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}
.app-prov-row__bar {
  height: 6px;
  background: #1c2030;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.app-prov-row__bar-fill {
  height: 100%;
  background: #3fb950;
  border-radius: 999px;
}
.app-prov-row__bar-fill--mid { background: #d29922; }
.app-prov-row__bar-fill--low { background: #f85149; }
.app-prov-row__pct {
  text-align: right;
  font-weight: 700;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
}


/* ============================================================
   === CORE APP — Warmup setup (2026-05-28) ===
   ============================================================ */

/* Tier cards 3-up */
.app-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.app-tier {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  position: relative;
}
.app-tier:hover { border-color: #2a3046; text-decoration: none; }
.app-tier--current {
  border-color: #f0f2fa;
  background: #11141e;
}
.app-tier--current::before {
  content: 'Активно';
  position: absolute;
  top: -9px;
  right: 14px;
  background: #f0f2fa;
  color: #0a0c12;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
}
.app-tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.app-tier__name {
  font-size: 15px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
}
.app-tier__plan {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b94ac;
  padding: 2px 8px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
}
.app-tier__plan--pro { color: #d4a572; border-color: rgba(210,153,34,0.32); background: rgba(210,153,34,0.05); }
.app-tier__plan--free { color: #6cc775; border-color: rgba(63,185,80,0.32); background: rgba(63,185,80,0.05); }
.app-tier__days {
  font-size: 30px;
  font-weight: 800;
  color: #f0f2fa;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
}
.app-tier__days span { font-size: 13px; color: #6e7691; font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.app-tier__sub {
  font-size: 12px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.45;
}
.app-tier__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-tier__features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  font-size: 12px;
  color: #c0c5d3;
  line-height: 1.4;
}
.app-tier__features li svg { width: 12px; height: 12px; color: #6cc775; margin-top: 2px; }
.app-tier__price {
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
  border-top: 1px solid #1c2030;
  padding-top: 10px;
}
.app-tier__price span { font-size: 11.5px; color: #6e7691; font-weight: 500; margin-left: 4px; }

/* Pool status */
.app-pool {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.app-pool__card {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-pool__quad {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.app-pool__body { min-width: 0; }
.app-pool__num {
  font-size: 20px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
  line-height: 1;
}
.app-pool__label {
  font-size: 11.5px;
  color: #8b94ac;
  margin-top: 4px;
}

/* What's included in warmup */
.app-incl {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.app-incl__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.app-incl__ico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b94ac;
}
.app-incl__ico svg { width: 12px; height: 12px; }
.app-incl__body { min-width: 0; }
.app-incl__title {
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 2px;
}
.app-incl__text {
  font-size: 12px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.4;
}

/* Day-by-day chart */
.app-chart {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
}
.app-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.app-chart__title { font-size: 13px; font-weight: 700; color: #f0f2fa; margin: 0; }
.app-chart__legend { display: flex; gap: 16px; font-size: 11.5px; color: #8b94ac; }
.app-chart__legend-dot { display: inline-flex; align-items: center; gap: 6px; }
.app-chart__legend-dot::before { content: ''; width: 9px; height: 9px; border-radius: 2px; }
.app-chart__legend-dot--plan::before { background: #2a3046; }
.app-chart__legend-dot--actual::before { background: #3fb950; }
.app-chart__bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: flex-end;
  height: 120px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1c2030;
}
.app-chart__bar {
  position: relative;
  background: #2a3046;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}
.app-chart__bar--actual { background: #3fb950; }
.app-chart__bar--today { background: #f0f2fa; box-shadow: 0 0 0 2px rgba(240,242,250,0.18); }
.app-chart__bar--future { background: #1c2030; }
.app-chart__days {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.app-chart__day {
  font-size: 10.5px;
  color: #6e7691;
  text-align: center;
  font-feature-settings: 'tnum' 1;
}
.app-chart__day--today { color: #f0f2fa; font-weight: 700; }


/* ============================================================
   === CORE APP — Base verification (2026-05-28) ===
   ============================================================ */

/* Cost-strip — provider + price */
.app-vcost {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  margin-bottom: 18px;
}
.app-vcost__ico {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d9e3;
}
.app-vcost__ico svg { width: 18px; height: 18px; }
.app-vcost__body { min-width: 0; }
.app-vcost__title { font-size: 13.5px; font-weight: 700; color: #f0f2fa; margin: 0 0 2px; }
.app-vcost__sub { font-size: 12px; color: #8b94ac; margin: 0; }
.app-vcost__price {
  font-size: 16px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  text-align: right;
}
.app-vcost__price-sub { font-size: 11.5px; font-weight: 500; color: #8b94ac; }

/* Verification progress */
.app-vprog {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.app-vprog__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.app-vprog__title { font-size: 13.5px; font-weight: 700; color: #f0f2fa; margin: 0; }
.app-vprog__title b { font-weight: 800; }
.app-vprog__count {
  font-size: 12.5px;
  color: #8b94ac;
  font-feature-settings: 'tnum' 1;
}
.app-vprog__count b { color: #f0f2fa; font-weight: 700; }
.app-vprog__bar {
  height: 8px;
  background: #1c2030;
  border-radius: 999px;
  overflow: hidden;
}
.app-vprog__bar-fill {
  height: 100%;
  background: #3fb950;
  border-radius: 999px;
  transition: width 0.3s;
}
.app-vprog__eta {
  font-size: 11.5px;
  color: #6e7691;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

/* Verification stats — 7 result types */
.app-vstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.app-vstat {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.app-vstat:hover { border-color: #2a3046; text-decoration: none; }
.app-vstat__ico {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #11141e;
  border: 1px solid #1c2030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-vstat__ico svg { width: 13px; height: 13px; }
.app-vstat__body { min-width: 0; }
.app-vstat__num {
  font-size: 17px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
  line-height: 1;
}
.app-vstat__num span { font-size: 11.5px; color: #6e7691; font-weight: 500; margin-left: 4px; }
.app-vstat__label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8b94ac;
  margin-top: 4px;
}
.app-vstat--ok .app-vstat__ico { color: #6cc775; border-color: rgba(63,185,80,0.32); background: rgba(63,185,80,0.07); }
.app-vstat--catch .app-vstat__ico { color: #d4a572; border-color: rgba(210,153,34,0.32); background: rgba(210,153,34,0.07); }
.app-vstat--err .app-vstat__ico { color: #ec8a8a; border-color: rgba(248,81,73,0.32); background: rgba(248,81,73,0.07); }
.app-vstat--unknown .app-vstat__ico { color: #8b94ac; }
.app-vstat--dispo .app-vstat__ico { color: #ec8a8a; }
.app-vstat--role .app-vstat__ico { color: #7aa2f0; border-color: rgba(122,162,240,0.32); background: rgba(122,162,240,0.07); }
.app-vstat--syntax .app-vstat__ico { color: #ec8a8a; }
.app-vstat--abuse .app-vstat__ico { color: #ec8a8a; border-color: rgba(248,81,73,0.40); background: rgba(248,81,73,0.10); }

/* Verification table — problematic emails */
.app-vtable {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.app-vrow {
  display: grid;
  grid-template-columns: 24px minmax(220px, 1.6fr) 140px 1fr auto;
  gap: 14px;
  padding: 11px 14px;
  align-items: center;
  border-bottom: 1px solid #1c2030;
  font-size: 12.5px;
}
.app-vrow--head {
  background: #0a0c12;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6e7691;
  padding: 9px 14px;
}
.app-vrow:last-child { border-bottom: none; }
.app-vrow:hover:not(.app-vrow--head):not(.app-vrow--editing) { background: #11141e; }
.app-vrow__check {
  width: 16px; height: 16px;
}
.app-vrow__email {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12.5px;
  color: #f0f2fa;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-vrow__email-input {
  width: 100%;
  background: #11141e;
  border: 1px solid #3a4358;
  color: #f0f2fa;
  padding: 5px 9px;
  border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12.5px;
  outline: none;
}
.app-vrow__email-input:focus { border-color: #565d75; }
.app-vrow__hint {
  font-size: 11.5px;
  color: #8b94ac;
}
.app-vrow__hint b { color: #d4d9e3; font-weight: 600; }
.app-vrow__actions { display: flex; gap: 4px; }
.app-vrow--editing { background: #11141e; }

/* Filter tabs above table */
.app-vfilter {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.app-vfilter__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8b94ac;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.app-vfilter__tab:hover { background: #11141e; color: #f0f2fa; text-decoration: none; }
.app-vfilter__tab--active {
  background: #11141e;
  border-color: #2a3046;
  color: #f0f2fa;
}
.app-vfilter__tab-count {
  font-size: 11px;
  padding: 0 6px;
  background: #1c2030;
  color: #c0c5d3;
  border-radius: 999px;
  font-weight: 700;
}


/* ============================================================
   === CORE APP — Billing / Pricing table (2026-05-28) ===
   ============================================================ */

.app-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.app-plan {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 12px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.app-plan--popular {
  border-color: #f0f2fa;
  background: #11141e;
}
.app-plan--popular::before {
  content: 'Популярный';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f0f2fa;
  color: #0a0c12;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}
.app-plan--current {
  border-color: #3fb950;
}
.app-plan--current::before {
  content: 'Твой текущий';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #3fb950;
  color: #0a0c12;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}
.app-plan__name {
  font-size: 16px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
}
.app-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.app-plan__price-num {
  font-size: 32px;
  font-weight: 800;
  color: #f0f2fa;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: 'tnum' 1;
}
.app-plan__price-cur {
  font-size: 18px;
  font-weight: 600;
  color: #6e7691;
}
.app-plan__price-per { font-size: 12px; color: #8b94ac; }
.app-plan__sub {
  font-size: 12.5px;
  color: #8b94ac;
  line-height: 1.45;
  margin: 0;
  min-height: 36px;
}
.app-plan__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
}
.app-plan__cta .app-btn { width: 100%; justify-content: center; }
.app-plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #1c2030;
  padding-top: 14px;
  margin-top: auto;
}
.app-plan__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #c0c5d3;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-plan__features li svg { width: 12px; height: 12px; color: #6cc775; flex-shrink: 0; }
.app-plan__features li b { color: #f0f2fa; font-weight: 700; }
.app-plan__features li.dim { color: #56607a; }
.app-plan__features li.dim svg { color: #3a4358; }

/* Compare table */
.app-compare {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.app-compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #1c2030;
  font-size: 13px;
  align-items: center;
}
.app-compare-row:last-child { border-bottom: none; }
.app-compare-row--head {
  background: #0a0c12;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6e7691;
}
.app-compare-row--section {
  background: #0a0c12;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b94ac;
}
.app-compare-row__name { color: #d4d9e3; font-weight: 500; }
.app-compare-row__name b { color: #f0f2fa; font-weight: 700; }
.app-compare-row__val {
  text-align: center;
  color: #c0c5d3;
  font-feature-settings: 'tnum' 1;
}
.app-compare-row__val--bold { color: #f0f2fa; font-weight: 700; }
.app-compare-row__val--dim { color: #56607a; }
.app-compare-row__val svg { width: 14px; height: 14px; color: #6cc775; }
.app-compare-row__val .x { color: #56607a; font-size: 14px; }

/* Calc card */
.app-calc {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.app-calc__body { display: flex; flex-direction: column; gap: 8px; }
.app-calc__title { font-size: 15px; font-weight: 700; color: #f0f2fa; margin: 0; }
.app-calc__text { font-size: 13px; color: #c0c5d3; margin: 0; line-height: 1.5; max-width: 640px; }
.app-calc__text b { color: #f0f2fa; font-weight: 700; }
.app-calc__nums { display: flex; gap: 28px; text-align: right; }
.app-calc__num-cell { display: flex; flex-direction: column; }
.app-calc__num-val {
  font-size: 26px;
  font-weight: 800;
  color: #f0f2fa;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1;
  line-height: 1;
}
.app-calc__num-val--save { color: #6cc775; }
.app-calc__num-label {
  font-size: 11.5px;
  color: #8b94ac;
  margin-top: 4px;
}

/* FAQ */
.app-faq {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  overflow: hidden;
}
.app-faq__item {
  padding: 16px 20px;
  border-bottom: 1px solid #1c2030;
  cursor: pointer;
}
.app-faq__item:last-child { border-bottom: none; }
.app-faq__q {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-faq__q svg { width: 14px; height: 14px; color: #6e7691; flex-shrink: 0; }
.app-faq__a {
  font-size: 12.5px;
  color: #c0c5d3;
  margin: 8px 0 0;
  line-height: 1.5;
}


/* === SUCCESS confirmation === */
.app-success {
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-success__hero {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 12px;
  padding: 28px 28px 22px;
  text-align: center;
}
.app-success__check {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.10);
  border: 1.5px solid rgba(63, 185, 80, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6cc775;
}
.app-success__check svg { width: 28px; height: 28px; }
.app-success__h {
  font-size: 22px;
  font-weight: 800;
  color: #f0f2fa;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.app-success__sub {
  font-size: 13.5px;
  color: #a8b1c5;
  margin: 0 0 18px;
  line-height: 1.5;
}
.app-success__num {
  font-size: 48px;
  font-weight: 800;
  color: #f0f2fa;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-feature-settings: 'tnum' 1;
}
.app-success__num-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #8b94ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-success__what-next {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  padding: 20px 22px;
}
.app-success__what-next-h {
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 12px;
}
.app-success__what-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-success__what-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 13px;
  color: #c0c5d3;
  line-height: 1.45;
}
.app-success__what-list li svg { width: 14px; height: 14px; color: #6cc775; margin-top: 3px; }
.app-success__what-list li b { color: #f0f2fa; font-weight: 700; }

/* List of added items (mailboxes) */
.app-added {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  overflow: hidden;
}
.app-added__head {
  padding: 12px 18px;
  border-bottom: 1px solid #1c2030;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b94ac;
  background: #0a0c12;
}
.app-added__row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  padding: 10px 18px;
  align-items: center;
  border-bottom: 1px solid #1c2030;
  font-size: 13px;
}
.app-added__row:last-child { border-bottom: none; }
.app-added__row-quad {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}
.app-added__row-email { color: #f0f2fa; font-weight: 600; font-family: ui-monospace, 'SF Mono', monospace; }


/* ============================================================
   === CORE APP — Campaign create (2026-05-29) ===
   ============================================================ */

.app-form-section {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.app-form-section__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.app-form-section__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #11141e;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #c0c5d3;
  flex-shrink: 0;
}
.app-form-section__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  flex: 1;
}
.app-form-section__hint {
  font-size: 12px;
  color: #6e7691;
}
.app-form-section__sub {
  font-size: 12.5px;
  color: #8b94ac;
  margin: 0 0 14px;
  line-height: 1.5;
}

.app-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-input-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8b94ac;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-input {
  width: 100%;
  padding: 10px 14px;
  background: #0a0c12;
  border: 1px solid #2a3046;
  color: #f0f2fa;
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.app-input:focus { border-color: #3a4358; box-shadow: 0 0 0 3px rgba(58, 67, 88, 0.35); }

.app-select-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.app-select-card:hover { border-color: #3a4358; background: #161a26; text-decoration: none; }
.app-select-card--active { border-color: #f0f2fa; box-shadow: inset 0 0 0 1px #f0f2fa; }
.app-select-card__ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c0c5d3;
}
.app-select-card__ico svg { width: 17px; height: 17px; }
.app-select-card__body { min-width: 0; }
.app-select-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 2px;
}
.app-select-card__meta {
  font-size: 11.5px;
  color: #8b94ac;
}
.app-select-card__action { color: #8b94ac; }
.app-select-card__action svg { width: 15px; height: 15px; }

.app-mb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.app-mb-pill {
  display: grid;
  grid-template-columns: 16px 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 7px;
  font-size: 12.5px;
  cursor: pointer;
}
.app-mb-pill--selected { border-color: #6cc775; background: rgba(63, 185, 80, 0.06); }
.app-mb-pill__email { color: #f0f2fa; font-weight: 600; font-family: ui-monospace, 'SF Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mb-pill__limit { color: #6e7691; font-size: 11px; font-feature-settings: 'tnum' 1; }
.app-mb-pill__quad {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}

.app-tempo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.app-tempo__opt {
  text-align: center;
  padding: 12px 10px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 8px;
  cursor: pointer;
}
.app-tempo__opt:hover { border-color: #2a3046; }
.app-tempo__opt--active { border-color: #f0f2fa; background: #161a26; box-shadow: inset 0 0 0 1px #f0f2fa; }
.app-tempo__opt-num {
  font-size: 18px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
  line-height: 1;
}
.app-tempo__opt-label {
  font-size: 11.5px;
  color: #8b94ac;
  margin-top: 5px;
}

/* Compliance disclaimer (AI / final acceptance) */
.app-disclaimer {
  background: rgba(210, 153, 34, 0.04);
  border: 1px solid rgba(210, 153, 34, 0.28);
  border-radius: 9px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 12px;
  color: #c0c5d3;
  line-height: 1.5;
  margin-top: 12px;
}
.app-disclaimer svg { width: 14px; height: 14px; color: #d4a572; margin-top: 2px; }
.app-disclaimer b { color: #f0f2fa; font-weight: 700; }

/* Toggle switch */
.app-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.app-switch input { display: none; }
.app-switch__track {
  width: 36px; height: 20px;
  background: #1c2030;
  border-radius: 999px;
  position: relative;
  transition: background 0.15s;
}
.app-switch__track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #6e7691;
  border-radius: 50%;
  transition: all 0.15s;
}
.app-switch input:checked + .app-switch__track { background: #6cc775; }
.app-switch input:checked + .app-switch__track::after { left: 18px; background: #fff; }

.app-summary-mini {
  background: #0a0c12;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.app-summary-mini__cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-summary-mini__label {
  font-size: 10.5px;
  font-weight: 700;
  color: #6e7691;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-summary-mini__val { font-size: 14px; font-weight: 700; color: #f0f2fa; font-feature-settings: 'tnum' 1; }


/* === Campaign create v2 — compact form === */
.app-cc-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #11141e;
}
.app-cc-row:last-child { border-bottom: none; }
.app-cc-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #6e7691;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-cc-input {
  padding: 7px 12px !important;
  font-size: 13px !important;
}
.app-cc-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 7px;
  color: #c0c5d3;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.app-cc-pick:hover { border-color: #3a4358; text-decoration: none; }
.app-cc-pick b { color: #f0f2fa; font-weight: 700; font-size: 13px; }
.app-cc-pick-meta { color: #6e7691; font-size: 11.5px; margin-left: auto; padding-right: 8px; }
.app-cc-pick-chev { width: 14px; height: 14px; color: #6e7691; }

.app-cc-mb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.app-cc-mb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #8b94ac;
  font-family: ui-monospace, 'SF Mono', monospace;
  cursor: pointer;
}
.app-cc-mb-chip span { font-family: 'Manrope', sans-serif; font-weight: 800; }
.app-cc-mb-chip--active {
  background: rgba(63, 185, 80, 0.06);
  border-color: rgba(63, 185, 80, 0.35);
  color: #f0f2fa;
}

.app-cc-segm {
  display: inline-flex;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.app-cc-segm__opt {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #8b94ac;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}
.app-cc-segm__opt:hover { color: #f0f2fa; }
.app-cc-segm__opt--active {
  background: #2a3046;
  color: #f0f2fa;
}

.app-cc-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-cc-toggle-text { font-size: 12.5px; color: #c0c5d3; }
.app-cc-toggle-text b { color: #f0f2fa; font-weight: 700; }

/* === Campaign create v3 — 2-col with preview, GitHub-square style === */
.app-cc-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 16px;
  align-items: start;
}
.app-cc-panel {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 6px;
  overflow: hidden;
}
.app-cc-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #1c2030;
  background: #0a0c12;
  font-size: 12px;
  font-weight: 700;
  color: #c0c5d3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.app-cc-panel__head-meta { margin-left: auto; font-size: 11.5px; color: #6e7691; font-weight: 500; text-transform: none; letter-spacing: 0; }
.app-cc-panel__body { padding: 4px 0; }

.app-cc-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #11141e;
}
.app-cc-line:last-child { border-bottom: none; }
.app-cc-line__lbl {
  font-size: 11px;
  font-weight: 700;
  color: #6e7691;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-cc-line__val { font-size: 13px; color: #f0f2fa; min-width: 0; }

.app-cc-pick2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  color: #f0f2fa;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.app-cc-pick2:hover { border-color: #3a4358; text-decoration: none; }
.app-cc-pick2 svg { width: 12px; height: 12px; color: #8b94ac; flex-shrink: 0; }
.app-cc-pick2 small { color: #8b94ac; font-weight: 500; margin-left: auto; padding-left: 8px; }

.app-cc-input2 {
  width: 100%;
  padding: 6px 11px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  color: #f0f2fa;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.app-cc-input2:focus { border-color: #3a4358; }

.app-cc-segm2 {
  display: inline-flex;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 4px;
  padding: 2px;
  gap: 1px;
}
.app-cc-segm2__opt {
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #8b94ac;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.app-cc-segm2__opt--active { background: #2a3046; color: #f0f2fa; }

.app-cc-checkrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: #c0c5d3;
}
.app-cc-checkrow b { color: #f0f2fa; font-weight: 700; }
.app-cc-checkrow small { color: #6e7691; font-size: 11.5px; }

/* === EMAIL PREVIEW (the wow part) === */
.app-cc-preview {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 6px;
  overflow: hidden;
}
.app-cc-preview__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #1c2030;
  background: #0a0c12;
  font-size: 12px;
  font-weight: 700;
  color: #c0c5d3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.app-cc-preview__tabs {
  display: inline-flex;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 4px;
  margin-left: auto;
}
.app-cc-preview__tab {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8b94ac;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.app-cc-preview__tab--active { background: #2a3046; color: #f0f2fa; border-radius: 3px; }
.app-cc-preview__switcher {
  font-size: 11.5px;
  color: #c0c5d3;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  padding: 4px 10px;
  margin-left: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.app-cc-mail {
  background: #ffffff;
  color: #1a1d2e;
  font-family: 'Manrope', -apple-system, sans-serif;
}
.app-cc-mail__client {
  display: flex;
  gap: 6px;
  padding: 9px 14px;
  background: #f6f7f9;
  border-bottom: 1px solid #e3e5eb;
}
.app-cc-mail__client-dot { width: 11px; height: 11px; border-radius: 50%; }
.app-cc-mail__meta {
  padding: 16px 22px 12px;
  border-bottom: 1px solid #eef0f4;
}
.app-cc-mail__meta-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  font-size: 12.5px;
  color: #555a66;
  padding: 3px 0;
  font-family: 'Manrope', sans-serif;
}
.app-cc-mail__meta-row b { color: #1a1d2e; font-weight: 600; }
.app-cc-mail__subject {
  font-size: 17px;
  font-weight: 800;
  color: #1a1d2e;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
}
.app-cc-mail__chips {
  display: flex; gap: 6px;
}
.app-cc-mail__chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f0f5;
  color: #555a66;
  border: 1px solid #e3e5eb;
}
.app-cc-mail__chip--ai { background: rgba(167,139,250,0.12); color: #6d28d9; border-color: rgba(167,139,250,0.32); }

.app-cc-mail__body {
  padding: 20px 22px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1d2e;
}
.app-cc-mail__body p { margin: 0 0 12px; }
.app-cc-mail__body mark {
  background: rgba(167,139,250,0.22);
  color: #4c1d95;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.app-cc-mail__attach {
  margin: 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: #f6f7f9;
  border: 1px solid #e3e5eb;
  border-radius: 6px;
  font-size: 12.5px;
  color: #1a1d2e;
}
.app-cc-mail__attach-ext {
  width: 28px; height: 28px;
  background: #ef4444;
  color: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.app-cc-mail__attach b { font-weight: 700; }
.app-cc-mail__attach small { color: #6e7691; }

.app-cc-mail__sig {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef0f4;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1d2e;
}
.app-cc-mail__sig b { display: block; font-weight: 800; font-size: 13.5px; }
.app-cc-mail__sig small { color: #6e7691; font-size: 11.5px; }
.app-cc-mail__sig-comp {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e3e5eb;
  font-size: 10.5px;
  color: #6e7691;
}

.app-cc-mail__unsub {
  padding: 12px 22px;
  background: #f6f7f9;
  border-top: 1px solid #eef0f4;
  font-size: 10.5px;
  color: #6e7691;
  text-align: center;
}
.app-cc-mail__unsub a { color: #4c1d95; text-decoration: underline; }


/* === Signature manager (campaign-create) === */
.app-sig-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #11141e;
  background: #0a0c12;
}
.app-sig-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #f0f2fa;
  cursor: pointer;
}
.app-sig-pick svg { width: 11px; height: 11px; color: #8b94ac; }
.app-sig-pick b { color: #f0f2fa; }
.app-sig-bar__new {
  font-size: 11.5px;
  color: #c4b5fd;
  text-decoration: none;
  margin-left: auto;
  font-weight: 600;
}
.app-sig-bar__new:hover { color: #f5c2dc; text-decoration: none; }

.app-sig-mode {
  display: inline-flex;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 4px;
  padding: 2px;
  margin: 8px 14px 4px;
}
.app-sig-mode__btn {
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  background: none;
  border: none;
  color: #8b94ac;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.app-sig-mode__btn--active { background: #2a3046; color: #f0f2fa; }

.app-sig-logo {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}
.app-sig-logo__box {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}
.app-sig-logo__box--empty {
  background: #11141e;
  border: 1.5px dashed #2a3046;
  color: #6e7691;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-sig-logo__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-sig-logo__info b { font-size: 12.5px; color: #f0f2fa; }
.app-sig-logo__info small { font-size: 11px; color: #6e7691; }
.app-sig-logo__btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #c4b5fd;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #2a3046;
  text-underline-offset: 3px;
}

.app-sig-addfield {
  background: none;
  border: none;
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.app-sig-addfield:hover { color: #f5c2dc; }

.app-sig-row-multi {
  display: flex;
  gap: 6px;
  align-items: center;
}
.app-sig-row-multi .app-cc-input2 { flex: 1; }
.app-sig-row-multi__del {
  background: none;
  border: 1px solid #2a3046;
  border-radius: 4px;
  width: 24px; height: 24px;
  color: #6e7691;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.app-sig-row-multi__del:hover { color: #ec8a8a; border-color: rgba(248,81,73,0.3); }

.app-sig-text {
  width: 100%;
  min-height: 130px;
  padding: 11px 13px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  color: #f0f2fa;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  resize: vertical;
  outline: none;
  line-height: 1.5;
  box-sizing: border-box;
}
.app-sig-text:focus { border-color: #3a4358; }

/* preview signature with logo */
.app-cc-mail__sig-with-logo {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.app-cc-mail__sig-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

/* === Smart-send v2 — with inline explanations + sequence === */
.app-cc-opt {
  padding: 12px 16px;
  border-bottom: 1px solid #11141e;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: flex-start;
}
.app-cc-opt:last-child { border-bottom: none; }
.app-cc-opt__switch { margin-top: 4px; }
.app-cc-opt__body { min-width: 0; }
.app-cc-opt__title {
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-cc-opt__badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(108,199,117,0.12);
  border: 1px solid rgba(108,199,117,0.3);
  color: #6cc775;
  text-transform: uppercase;
}
.app-cc-opt__badge--pro { background: rgba(210,153,34,0.08); border-color: rgba(210,153,34,0.32); color: #d4a572; }
.app-cc-opt__hint {
  font-size: 12px;
  color: #8b94ac;
  line-height: 1.5;
  margin: 0;
}
.app-cc-opt__hint b { color: #c0c5d3; font-weight: 700; }
.app-cc-opt__action {
  font-size: 11.5px;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}
.app-cc-opt__action:hover { color: #f5c2dc; text-decoration: none; }

/* Sequence (drip steps) */
.app-cc-seq {
  background: #0a0c12;
  padding: 12px 16px;
}
.app-cc-seq__step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 5px;
  margin-bottom: 6px;
}
.app-cc-seq__step:last-child { margin-bottom: 0; }
.app-cc-seq__num {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #c4b5fd;
}
.app-cc-seq__body { min-width: 0; }
.app-cc-seq__title { font-size: 12.5px; font-weight: 700; color: #f0f2fa; margin: 0 0 2px; }
.app-cc-seq__meta { font-size: 11.5px; color: #8b94ac; }
.app-cc-seq__meta b { color: #c0c5d3; }
.app-cc-seq__edit {
  font-size: 11px;
  color: #8b94ac;
  background: none;
  border: 1px solid #2a3046;
  border-radius: 4px;
  padding: 4px 9px;
  cursor: pointer;
  font-family: inherit;
}
.app-cc-seq__edit:hover { color: #f0f2fa; border-color: #3a4358; }
.app-cc-seq__add {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: none;
  border: 1.5px dashed #2a3046;
  border-radius: 5px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.app-cc-seq__add:hover { border-color: #3a4358; color: #f5c2dc; }

/* A/B subject — extended variants list */
.app-cc-ab {
  background: #0a0c12;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-cc-ab__row {
  display: grid;
  grid-template-columns: 18px 1fr 60px auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 5px;
  font-size: 12px;
}
.app-cc-ab__letter {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-cc-ab__input {
  background: none;
  border: none;
  color: #f0f2fa;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  width: 100%;
}
.app-cc-ab__share {
  font-size: 11px;
  color: #6e7691;
  text-align: right;
  font-feature-settings: 'tnum' 1;
}
.app-cc-ab__share b { color: #c0c5d3; font-weight: 700; }

/* Preview as floating button right side */
.app-cc-preview-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, #ec4899, #4c1d95);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 30px rgba(124,58,237,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 50;
  font-family: inherit;
  text-decoration: none;
}
.app-cc-preview-fab:hover { transform: translateY(-1px); text-decoration: none; color: #fff; }
.app-cc-preview-fab svg { width: 15px; height: 15px; }


/* === Mailbox list selector (replace chips) === */
.app-cc-mb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: #0a0c12;
}
.app-cc-mb-item {
  display: grid;
  grid-template-columns: 18px 26px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 5px;
  font-size: 12.5px;
  cursor: pointer;
}
.app-cc-mb-item--selected { border-color: rgba(108,199,117,0.4); background: rgba(63,185,80,0.04); }
.app-cc-mb-item__quad {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: #1c2030;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.app-cc-mb-item__main { min-width: 0; }
.app-cc-mb-item__email { color: #f0f2fa; font-weight: 600; font-family: ui-monospace, 'SF Mono', monospace; }
.app-cc-mb-item__meta { color: #6e7691; font-size: 11px; margin-top: 2px; }
.app-cc-mb-item__status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.app-cc-mb-item__status-dot { width: 6px; height: 6px; border-radius: 50%; }
.app-cc-mb-item__status--ok { color: #6cc775; }
.app-cc-mb-item__status--ok .app-cc-mb-item__status-dot { background: #6cc775; box-shadow: 0 0 6px #6cc775; }
.app-cc-mb-item__status--warm { color: #d4a572; }
.app-cc-mb-item__status--warm .app-cc-mb-item__status-dot { background: #d4a572; }
.app-cc-mb-item__limit {
  font-size: 11px;
  color: #8b94ac;
  font-feature-settings: 'tnum' 1;
  text-align: right;
  white-space: nowrap;
}
.app-cc-mb-item__limit b { color: #f0f2fa; font-weight: 700; }

/* AI info box */
.app-cc-aibox {
  margin: 10px 16px 14px 60px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(236,72,153,0.04));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 6px;
}
.app-cc-aibox__title {
  font-size: 11.5px;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.app-cc-aibox__example {
  background: rgba(5,6,15,0.6);
  border-left: 2px solid #a78bfa;
  padding: 8px 12px;
  font-size: 12px;
  color: #d4d9e3;
  font-style: italic;
  border-radius: 3px;
  margin: 8px 0;
  line-height: 1.5;
}
.app-cc-aibox__pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
}
.app-cc-aibox__price-cell {
  padding: 8px 10px;
  background: rgba(5,6,15,0.4);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 5px;
}
.app-cc-aibox__price-cell-lbl {
  color: #8b94ac;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.app-cc-aibox__price-cell-val { color: #f0f2fa; font-weight: 700; font-size: 13px; margin-top: 3px; }
.app-cc-aibox__price-cell-val small { color: #8b94ac; font-weight: 500; font-size: 11px; }

/* Pretty summary grid (replace emoji-string) */
.app-cc-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #1c2030;
}
.app-cc-summary__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-cc-summary__ico {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  margin-bottom: 6px;
}
.app-cc-summary__ico svg { width: 12px; height: 12px; }
.app-cc-summary__lbl {
  font-size: 10.5px;
  color: #6e7691;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-cc-summary__val { font-size: 15px; font-weight: 800; color: #f0f2fa; font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.app-cc-summary__val small { font-size: 11px; color: #8b94ac; font-weight: 500; }


/* === Campaign v6 — minimal main flow + collapsibles === */
.app-cc-title-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  margin-bottom: 14px;
}
.app-cc-title-bar input {
  flex: 1;
  background: none;
  border: none;
  color: #f0f2fa;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  outline: none;
  font-family: inherit;
}
.app-cc-title-bar input::placeholder { color: #565d75; }

/* Big primary row — 3 main choices */
.app-cc-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.app-cc-choice {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.app-cc-choice:hover { border-color: #2a3046; text-decoration: none; }
.app-cc-choice__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-cc-choice__head svg { width: 12px; height: 12px; }
.app-cc-choice__main {
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
}
.app-cc-choice__sub {
  font-size: 11.5px;
  color: #8b94ac;
  font-weight: 500;
}
.app-cc-choice__chev {
  color: #6e7691;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 4px;
}
.app-cc-choice__chev svg { width: 11px; height: 11px; }

/* Mailboxes mini selector */
.app-cc-mbx-mini {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.app-cc-mbx-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.app-cc-mbx-mini__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-cc-mbx-mini__counter { font-size: 12px; color: #8b94ac; }
.app-cc-mbx-mini__counter b { color: #f0f2fa; font-weight: 700; }
.app-cc-mbx-mini__row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Collapsible accordion */
.app-cc-acc {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.app-cc-acc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.app-cc-acc__head:hover { background: #0a0c12; }
.app-cc-acc__ico {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #11141e;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}
.app-cc-acc__ico svg { width: 14px; height: 14px; }
.app-cc-acc__body { flex: 1; min-width: 0; }
.app-cc-acc__title { font-size: 13.5px; font-weight: 700; color: #f0f2fa; margin: 0; display: flex; align-items: center; gap: 8px; }
.app-cc-acc__hint { font-size: 11.5px; color: #8b94ac; margin: 2px 0 0; }
.app-cc-acc__hint b { color: #c0c5d3; font-weight: 600; }
.app-cc-acc__pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(108,199,117,0.10);
  border: 1px solid rgba(108,199,117,0.30);
  color: #6cc775;
  text-transform: uppercase;
}
.app-cc-acc__pill--off { background: #11141e; border-color: #2a3046; color: #6e7691; }
.app-cc-acc__chev {
  color: #6e7691;
  transition: transform 0.15s;
}
.app-cc-acc__chev svg { width: 14px; height: 14px; }
.app-cc-acc.app-cc-acc--open .app-cc-acc__chev { transform: rotate(180deg); }
.app-cc-acc__content {
  display: none;
  padding: 4px 0 8px;
  border-top: 1px solid #11141e;
}
.app-cc-acc.app-cc-acc--open .app-cc-acc__content { display: block; }

/* Bottom summary one-liner */
.app-cc-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #0a0c12;
  border: 1px solid #1c2030;
  border-radius: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #c0c5d3;
}
.app-cc-bottom b { color: #f0f2fa; font-weight: 700; }
.app-cc-bottom__sep { color: #2a3046; }


/* === Preview modal (CSS :target) === */
.app-cc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 24px;
  overflow-y: auto;
}
.app-cc-modal:target { display: flex; }
.app-cc-modal__box {
  background: #0d1018;
  border: 1px solid #2a3046;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
}
.app-cc-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #1c2030;
  background: #0a0c12;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c0c5d3;
}
.app-cc-modal__close {
  margin-left: auto;
  background: transparent;
  border: 1px solid #2a3046;
  border-radius: 5px;
  color: #8b94ac;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.app-cc-modal__close:hover { color: #f0f2fa; border-color: #3a4358; text-decoration: none; }
.app-cc-modal__close svg { width: 13px; height: 13px; }
.app-cc-modal__tabs {
  display: inline-flex;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 10px;
}
.app-cc-modal__tab {
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  background: none;
  border: none;
  color: #8b94ac;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.app-cc-modal__tab--active { background: #2a3046; color: #f0f2fa; }
.app-cc-modal__switcher {
  font-size: 11.5px;
  color: #c0c5d3;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  margin-right: 8px;
}

/* === Campaign v9 — left form + right sticky rail === */
.app-cc-rail {
  position: sticky;
  top: 84px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  overflow: hidden;
}
.app-cc-rail__head {
  padding: 13px 16px;
  border-bottom: 1px solid #1c2030;
  background: #0a0c12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-cc-rail__big {
  padding: 16px;
  border-bottom: 1px solid #1c2030;
  text-align: center;
}
.app-cc-rail__big-num {
  font-size: 32px;
  font-weight: 800;
  color: #f0f2fa;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.02em;
  line-height: 1;
}
.app-cc-rail__big-lbl {
  font-size: 11px;
  color: #8b94ac;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-cc-rail__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 16px;
  gap: 8px 14px;
  border-bottom: 1px solid #1c2030;
}
.app-cc-rail__metric-lbl { font-size: 10.5px; color: #6e7691; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.app-cc-rail__metric-val { font-size: 13px; color: #f0f2fa; font-weight: 700; font-feature-settings: 'tnum' 1; }
.app-cc-rail__metric-val small { color: #8b94ac; font-weight: 500; font-size: 11px; }

.app-cc-rail__checklist {
  padding: 10px 16px;
  border-bottom: 1px solid #1c2030;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-cc-rail__check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #c0c5d3;
}
.app-cc-rail__check svg { width: 14px; height: 14px; }
.app-cc-rail__check--done { color: #6cc775; }
.app-cc-rail__check--todo { color: #d4a572; }

.app-cc-rail__actions {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-cc-rail__actions .app-btn { width: 100%; justify-content: center; }

/* Grid layout */
.app-cc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}


/* === Accordion v2 — colorful accents + clickable hint === */
.app-cc-acc summary {
  list-style: none;
  user-select: none;
  position: relative;
  transition: all 0.15s;
}
.app-cc-acc summary::-webkit-details-marker { display: none; }
.app-cc-acc summary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  transition: background 0.15s;
}
.app-cc-acc:hover summary::after { background: rgba(167,139,250,0.03); }
.app-cc-acc[open] {
  border-color: rgba(167,139,250,0.30) !important;
  box-shadow: 0 0 0 1px rgba(167,139,250,0.10), 0 4px 18px rgba(124,58,237,0.10);
}
.app-cc-acc[open] summary {
  background: linear-gradient(90deg, rgba(167,139,250,0.06), transparent 80%);
}
.app-cc-acc[open] .app-cc-acc__chev svg { transform: rotate(180deg); }
.app-cc-acc__chev svg { transition: transform 0.2s; }

/* Color accents per accordion type */
.app-cc-acc--blue .app-cc-acc__ico { background: linear-gradient(135deg, rgba(58,118,209,0.18), rgba(58,118,209,0.06)); border-color: rgba(58,118,209,0.40); color: #7aa2f0; box-shadow: 0 0 14px rgba(58,118,209,0.12); }
.app-cc-acc--green .app-cc-acc__ico { background: linear-gradient(135deg, rgba(63,185,80,0.18), rgba(63,185,80,0.06)); border-color: rgba(63,185,80,0.40); color: #6cc775; box-shadow: 0 0 14px rgba(63,185,80,0.12); }
.app-cc-acc--violet .app-cc-acc__ico { background: linear-gradient(135deg, rgba(167,139,250,0.20), rgba(236,72,153,0.10)); border-color: rgba(167,139,250,0.45); color: #c4b5fd; box-shadow: 0 0 16px rgba(167,139,250,0.20); }
.app-cc-acc--orange .app-cc-acc__ico { background: linear-gradient(135deg, rgba(210,153,34,0.18), rgba(210,153,34,0.06)); border-color: rgba(210,153,34,0.40); color: #d4a572; box-shadow: 0 0 14px rgba(210,153,34,0.12); }
.app-cc-acc--cyan .app-cc-acc__ico { background: linear-gradient(135deg, rgba(122,162,240,0.18), rgba(76,222,221,0.06)); border-color: rgba(122,162,240,0.40); color: #6ee7d7; box-shadow: 0 0 14px rgba(122,162,240,0.12); }

/* Hover row glow */
.app-cc-acc--blue:hover { border-color: rgba(58,118,209,0.30); }
.app-cc-acc--green:hover { border-color: rgba(63,185,80,0.30); }
.app-cc-acc--violet:hover { border-color: rgba(167,139,250,0.40); }
.app-cc-acc--orange:hover { border-color: rgba(210,153,34,0.30); }
.app-cc-acc--cyan:hover { border-color: rgba(122,162,240,0.30); }

/* Click-hint text under each closed accordion */
.app-cc-acc:not([open]) .app-cc-acc__chev::before {
  content: 'Раскрыть';
  font-size: 11px;
  color: #6e7691;
  margin-right: 8px;
  font-weight: 600;
  vertical-align: middle;
}
.app-cc-acc[open] .app-cc-acc__chev::before {
  content: 'Свернуть';
  font-size: 11px;
  color: #c4b5fd;
  margin-right: 8px;
  font-weight: 600;
  vertical-align: middle;
}

/* Background pattern для главного блока — лёгкий цветной градиент */
.app-cc-layout {
  position: relative;
}
.app-cc-layout::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -40px;
  width: 380px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.app-cc-layout::after {
  content: '';
  position: absolute;
  top: 200px;
  right: -60px;
  width: 360px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(236,72,153,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.app-cc-layout > div, .app-cc-layout > aside { position: relative; z-index: 1; }

/* Choice cards colorful icons */
.app-cc-choice:nth-child(1) .app-cc-choice__head svg { color: #6cc775; }
.app-cc-choice:nth-child(2) .app-cc-choice__head svg { color: #7aa2f0; }
.app-cc-choice:nth-child(3) .app-cc-choice__head svg { color: #d4a572; }


/* === Templates list page === */
.app-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.app-tpl-card {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.app-tpl-card:hover { border-color: #3a4358; text-decoration: none; transform: translateY(-1px); }
.app-tpl-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.app-tpl-card__ext {
  width: 38px; height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4f7bf5, #2563eb);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.app-tpl-card__main { min-width: 0; flex: 1; }
.app-tpl-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}
.app-tpl-card__meta {
  font-size: 11px;
  color: #6e7691;
  margin-top: 2px;
}

.app-tpl-card__preview {
  font-size: 11.5px;
  color: #8b94ac;
  line-height: 1.55;
  background: rgba(5,6,15,0.5);
  border: 1px solid #11141e;
  border-radius: 6px;
  padding: 9px 12px;
  font-style: italic;
  min-height: 64px;
  max-height: 64px;
  overflow: hidden;
  position: relative;
}
.app-tpl-card__preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(180deg, transparent, #0d1018);
  pointer-events: none;
}
.app-tpl-card__preview mark {
  background: rgba(167,139,250,0.18);
  color: #c4b5fd;
  padding: 1px 4px;
  border-radius: 3px;
  font-style: normal;
  font-weight: 700;
}

.app-tpl-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #11141e;
  border-bottom: 1px solid #11141e;
}
.app-tpl-card__stat { text-align: center; }
.app-tpl-card__stat-num { font-size: 13px; font-weight: 800; color: #f0f2fa; font-feature-settings: 'tnum' 1; }
.app-tpl-card__stat-lbl { font-size: 10.5px; color: #6e7691; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-top: 2px; }

.app-tpl-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.app-tpl-card__tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #11141e;
  border: 1px solid #1c2030;
  color: #8b94ac;
  letter-spacing: 0.02em;
}
.app-tpl-card__tag--ok { background: rgba(108,199,117,0.10); border-color: rgba(108,199,117,0.32); color: #6cc775; }
.app-tpl-card__tag--draft { background: rgba(210,153,34,0.08); border-color: rgba(210,153,34,0.30); color: #d4a572; }

.app-tpl-card__bot {
  display: flex;
  gap: 6px;
}
.app-tpl-card__action {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 5px;
  color: #c0c5d3;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.app-tpl-card__action:hover { background: #161a26; border-color: #2a3046; color: #f0f2fa; text-decoration: none; }
.app-tpl-card__action--primary { background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.32); color: #c4b5fd; }
.app-tpl-card__action--primary:hover { background: rgba(167,139,250,0.16); border-color: rgba(167,139,250,0.45); color: #fff; }

/* Upload drop-zone (compact top) */
.app-tpl-drop {
  background: #0d1018;
  border: 1.5px dashed #2a3046;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.app-tpl-drop:hover { border-color: rgba(167,139,250,0.40); background: rgba(167,139,250,0.03); }
.app-tpl-drop__ico {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(167,139,250,0.20), rgba(236,72,153,0.10));
  border: 1px solid rgba(167,139,250,0.40);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(167,139,250,0.20);
}
.app-tpl-drop__ico svg { width: 18px; height: 18px; }
.app-tpl-drop__body { flex: 1; }
.app-tpl-drop__title { font-size: 13.5px; font-weight: 700; color: #f0f2fa; margin: 0 0 2px; }
.app-tpl-drop__sub { font-size: 12px; color: #8b94ac; }
.app-tpl-drop__sub b { color: #c0c5d3; }


/* === Templates grid alignment + inverted accents === */
.app-tpl-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.app-tpl-card { height: 100%; }
.app-tpl-card__bot { margin-top: auto; }

/* === Inverted (light) accents — глаз отдыхает === */
.app-summary__card--invert {
  background: linear-gradient(180deg, #f4f5f9, #e8eaf2);
  border-color: #c8ccd6;
  color: #1a1d2e;
  position: relative;
}
.app-summary__card--invert .app-summary__card-label { color: #555a66; }
.app-summary__card--invert .app-summary__card-num { color: #1a1d2e; }
.app-summary__card--invert .app-summary__card-num span { color: #6e7691; }
.app-summary__card--invert .app-summary__card-meta { color: #6e7691; }
.app-summary__card--invert .app-summary__card-delta--up { color: #16a34a; }

/* Light highlighted strip (для разделителей секций) */
.app-light-strip {
  background: linear-gradient(180deg, #f4f5f9, #e8eaf2);
  border: 1px solid #c8ccd6;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  color: #1a1d2e;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Manrope', sans-serif;
}
.app-light-strip__ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d3d7df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4c1d95;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(76,29,149,0.10);
}
.app-light-strip__ico svg { width: 18px; height: 18px; }
.app-light-strip__body { flex: 1; }
.app-light-strip__title { font-size: 14px; font-weight: 800; color: #1a1d2e; margin: 0 0 2px; letter-spacing: -0.01em; }
.app-light-strip__sub { font-size: 12.5px; color: #555a66; margin: 0; }
.app-light-strip__sub b { color: #1a1d2e; font-weight: 700; }
.app-light-strip__cta {
  background: #1a1d2e;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.app-light-strip__cta:hover { background: #2a3046; color: #fff; text-decoration: none; }

/* Light filter chips alternative */
.app-light-card {
  background: linear-gradient(180deg, #f8f9fc, #eef0f6);
  border: 1px solid #d3d7df;
  border-radius: 8px;
  padding: 14px 18px;
  color: #1a1d2e;
  font-family: 'Manrope', sans-serif;
}
.app-light-card-title { font-size: 13px; font-weight: 800; color: #1a1d2e; margin: 0 0 6px; }
.app-light-card-text { font-size: 12px; color: #555a66; margin: 0; line-height: 1.5; }


/* === Section divider for templates === */
.app-tpl-section-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1c2030;
}
.app-tpl-section-h:first-of-type { margin-top: 8px; }
.app-tpl-section-h__title {
  font-size: 13px;
  font-weight: 800;
  color: #f0f2fa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.app-tpl-section-h__count {
  font-size: 11.5px;
  font-weight: 700;
  color: #8b94ac;
  background: #11141e;
  border: 1px solid #1c2030;
  padding: 1px 9px;
  border-radius: 999px;
  font-feature-settings: 'tnum' 1;
}
.app-tpl-section-h__count--warn {
  background: rgba(210,153,34,0.08);
  border-color: rgba(210,153,34,0.32);
  color: #d4a572;
}
.app-tpl-section-h__hint {
  font-size: 12px;
  color: #6e7691;
  margin-left: auto;
}

/* Top tabs */
.app-tpl-tabs {
  display: inline-flex;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 7px;
  padding: 3px;
  gap: 1px;
  margin-bottom: 16px;
}
.app-tpl-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8b94ac;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.app-tpl-tabs__btn:hover { color: #f0f2fa; text-decoration: none; }
.app-tpl-tabs__btn--active { background: #2a3046; color: #f0f2fa; }
.app-tpl-tabs__btn-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #6e7691;
  background: #11141e;
  padding: 1px 7px;
  border-radius: 999px;
}
.app-tpl-tabs__btn--active .app-tpl-tabs__btn-count { background: #0a0c12; color: #c4b5fd; }

.app-tpl-card__ext--xlsx { background: linear-gradient(135deg, #34d399, #16a34a); }

/* === Campaigns list cards === */
.app-cmp-list-card {
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.app-cmp-list-card:hover { border-color: #2a3046; }
.app-cmp-list-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.app-cmp-list-card__main { flex: 1; min-width: 0; }
.app-cmp-list-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px;
}
.app-cmp-list-card__meta {
  font-size: 11.5px;
  color: #8b94ac;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.app-cmp-list-card__meta b { color: #c0c5d3; font-weight: 600; }
.app-cmp-list-card__actions { display: flex; gap: 6px; }
.app-cmp-list-card__action {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  background: #11141e;
  border: 1px solid #1c2030;
  border-radius: 4px;
  color: #c0c5d3;
  text-decoration: none;
}
.app-cmp-list-card__action:hover { background: #161a26; border-color: #2a3046; color: #f0f2fa; text-decoration: none; }
.app-cmp-list-card__action--primary { background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.32); color: #c4b5fd; }

.app-cmp-list-card__metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #11141e;
  border-bottom: 1px solid #11141e;
}
.app-cmp-list-card__metric { display: flex; flex-direction: column; gap: 2px; }
.app-cmp-list-card__metric-lbl { font-size: 10.5px; color: #6e7691; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.app-cmp-list-card__metric-val { font-size: 14px; font-weight: 700; color: #f0f2fa; font-feature-settings: 'tnum' 1; }
.app-cmp-list-card__metric-val--pct { color: #6cc775; }
.app-cmp-list-card__metric-val small { font-size: 11px; color: #6e7691; font-weight: 500; }

.app-cmp-list-card__progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.app-cmp-list-card__progress-bar {
  flex: 1;
  height: 6px;
  background: #1c2030;
  border-radius: 999px;
  overflow: hidden;
}
.app-cmp-list-card__progress-fill {
  height: 100%;
  background: #3fb950;
  border-radius: 999px;
}
.app-cmp-list-card__progress-fill--paused { background: #565d75; }
.app-cmp-list-card__progress-fill--done { background: #c4b5fd; }
.app-cmp-list-card__progress-txt { color: #8b94ac; font-feature-settings: 'tnum' 1; white-space: nowrap; }
.app-cmp-list-card__progress-txt b { color: #f0f2fa; font-weight: 700; }

/* === Campaigns list v2 — polished === */
.app-cmp-list-card {
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
  padding-left: 22px;
}
.app-cmp-list-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2a3046;
}
.app-cmp-list-card--active::before {
  background: linear-gradient(180deg, #3fb950, #16a34a);
  box-shadow: 0 0 14px rgba(63,185,80,0.45);
}
.app-cmp-list-card--paused::before {
  background: #565d75;
}
.app-cmp-list-card--done::before {
  background: linear-gradient(180deg, #c4b5fd, #a78bfa);
  box-shadow: 0 0 12px rgba(167,139,250,0.30);
}
.app-cmp-list-card--paused { opacity: 0.78; }
.app-cmp-list-card--soon {
  background: linear-gradient(180deg, rgba(63,185,80,0.05), #0d1018 30%);
  border-color: rgba(63,185,80,0.25);
}

.app-cmp-list-card:hover { transform: translateY(-1px); border-color: #2a3046; }
.app-cmp-list-card--active:hover { border-color: rgba(63,185,80,0.40); }
.app-cmp-list-card--done:hover { border-color: rgba(167,139,250,0.30); }

/* Type icon */
.app-cmp-list-card__ico {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: #11141e;
  border: 1px solid #2a3046;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b94ac;
  flex-shrink: 0;
}
.app-cmp-list-card__ico svg { width: 14px; height: 14px; }
.app-cmp-list-card__ico--kp { background: rgba(58,118,209,0.10); border-color: rgba(58,118,209,0.32); color: #7aa2f0; }
.app-cmp-list-card__ico--welcome { background: rgba(108,199,117,0.10); border-color: rgba(108,199,117,0.32); color: #6cc775; }
.app-cmp-list-card__ico--follow { background: rgba(210,153,34,0.10); border-color: rgba(210,153,34,0.32); color: #d4a572; }

.app-cmp-list-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* Bigger headline numbers */
.app-cmp-list-card__metric--big .app-cmp-list-card__metric-val {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.app-cmp-list-card__metric--big .app-cmp-list-card__metric-val small {
  font-size: 12px;
  color: #8b94ac;
  margin-left: 4px;
}

.app-cmp-list-card__progress-fill {
  background: linear-gradient(90deg, #3fb950, #6cc775);
  box-shadow: 0 0 10px rgba(63,185,80,0.25);
}
.app-cmp-list-card__progress-fill--paused {
  background: #3a4358;
  box-shadow: none;
}
.app-cmp-list-card__progress-bar { height: 8px; }
.app-cmp-list-card__progress-txt b { font-size: 13px; }

/* "Almost done" badge */
.app-cmp-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(63,185,80,0.15);
  border: 1px solid rgba(63,185,80,0.40);
  color: #6cc775;
}
.app-cmp-badge-soon::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3fb950;
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Campaigns metrics color coding === */
.app-cmp-list-card__metrics {
  gap: 12px;
  padding: 14px 0;
  position: relative;
}
.app-cmp-list-card__metric {
  position: relative;
  padding-left: 12px;
  border-left: 2px solid #2a3046;
}
.app-cmp-list-card__metric:nth-child(1) { border-left-color: #565d75; }
.app-cmp-list-card__metric:nth-child(1) .app-cmp-list-card__metric-lbl { color: #8b94ac; }

.app-cmp-list-card__metric:nth-child(2) { border-left-color: rgba(122,162,240,0.45); }
.app-cmp-list-card__metric:nth-child(2) .app-cmp-list-card__metric-lbl { color: #7aa2f0; }
.app-cmp-list-card__metric:nth-child(2) .app-cmp-list-card__metric-val { color: #7aa2f0; }

.app-cmp-list-card__metric:nth-child(3) { border-left-color: rgba(108,199,117,0.45); }
.app-cmp-list-card__metric:nth-child(3) .app-cmp-list-card__metric-lbl { color: #6cc775; }
.app-cmp-list-card__metric:nth-child(3) .app-cmp-list-card__metric-val--pct { color: #6cc775; }

.app-cmp-list-card__metric:nth-child(4) { border-left-color: rgba(210,153,34,0.45); }
.app-cmp-list-card__metric:nth-child(4) .app-cmp-list-card__metric-lbl { color: #d4a572; }
.app-cmp-list-card__metric:nth-child(4) .app-cmp-list-card__metric-val { color: #d4a572; }

.app-cmp-list-card__metric:nth-child(5) { border-left-color: rgba(248,81,73,0.45); }
.app-cmp-list-card__metric:nth-child(5) .app-cmp-list-card__metric-lbl { color: #f0a4a4; }
.app-cmp-list-card__metric:nth-child(5) .app-cmp-list-card__metric-val { color: #f0a4a4; }

/* Last metric (Сделок) — special green */
.app-cmp-list-card__metric:nth-child(5):has(.app-cmp-list-card__metric-lbl:contains("Сделок")) {
  border-left-color: rgba(108,199,117,0.55);
}

/* Override for completed campaigns — 5th metric = Сделок зелёный */
.app-cmp-list-card--done .app-cmp-list-card__metric:nth-child(5) {
  border-left-color: rgba(108,199,117,0.55);
}
.app-cmp-list-card--done .app-cmp-list-card__metric:nth-child(5) .app-cmp-list-card__metric-lbl { color: #6cc775; }
.app-cmp-list-card--done .app-cmp-list-card__metric:nth-child(5) .app-cmp-list-card__metric-val { color: #6cc775; }


/* === Clickable metrics === */
a.app-cmp-list-card__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  padding: 6px 10px 6px 12px;
  margin: -6px 0;
  transition: background 0.15s, transform 0.1s;
}
a.app-cmp-list-card__metric:hover {
  background: rgba(167,139,250,0.06);
  text-decoration: none;
  transform: translateX(2px);
}
a.app-cmp-list-card__metric::after {
  content: '→';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #c4b5fd;
  opacity: 0;
  transition: opacity 0.15s;
}
a.app-cmp-list-card__metric:hover::after { opacity: 1; }

/* Detail modal — переиспользуем .app-cc-modal */
.app-detail-modal { display: none; }
.app-detail-modal:target { display: flex; }
.app-detail-modal__box {
  max-width: 880px;
}

/* Detail table */
.app-detail-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 18px;
  background: #0a0c12;
  border-bottom: 1px solid #1c2030;
}
.app-detail-tabs__tab {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #8b94ac;
}
.app-detail-tabs__tab:hover { color: #f0f2fa; text-decoration: none; }
.app-detail-tabs__tab--active { background: #2a3046; color: #f0f2fa; }
.app-detail-tabs__tab b { margin-left: 4px; font-feature-settings: 'tnum' 1; }
.app-detail-tabs__tab--green { color: #6cc775; }
.app-detail-tabs__tab--blue { color: #7aa2f0; }
.app-detail-tabs__tab--orange { color: #d4a572; }
.app-detail-tabs__tab--red { color: #f0a4a4; }

.app-detail-table {
  max-height: 480px;
  overflow-y: auto;
}
.app-detail-row {
  display: grid;
  grid-template-columns: 26px 1.5fr 1.5fr 90px 100px 100px;
  gap: 14px;
  padding: 10px 18px;
  align-items: center;
  font-size: 12.5px;
  border-bottom: 1px solid #11141e;
}
.app-detail-row--head {
  background: #0a0c12;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7691;
}
.app-detail-row:not(.app-detail-row--head):hover { background: #11141e; }
.app-detail-row__contact b { color: #f0f2fa; font-weight: 600; }
.app-detail-row__contact small { color: #6e7691; font-size: 11px; display: block; margin-top: 2px; }
.app-detail-row__company { color: #c0c5d3; }
.app-detail-row__company small { color: #6e7691; font-size: 11px; display: block; margin-top: 2px; }
.app-detail-row__quote { color: #d4d9e3; font-style: italic; font-size: 12px; line-height: 1.4; }
.app-detail-row__time { color: #6e7691; font-size: 11px; }
.app-detail-row__action {
  padding: 4px 10px;
  background: #11141e;
  border: 1px solid #2a3046;
  border-radius: 4px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.app-detail-row__action:hover { background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.40); color: #fff; text-decoration: none; }

.app-detail-bulk {
  padding: 12px 18px;
  background: #0a0c12;
  border-top: 1px solid #1c2030;
  display: flex;
  gap: 8px;
  align-items: center;
}
.app-detail-bulk__count {
  font-size: 12px;
  color: #8b94ac;
}
.app-detail-bulk__count b { color: #f0f2fa; font-weight: 700; }


/* ============================================================
   Suppressions (стоп-лист) — /app/suppressions.html
   ============================================================ */

/* 4 reasons explainer-grid */
.app-supp-reasons{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.app-supp-reason{
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 14px 12px;
}
.app-supp-reason__head{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.app-supp-reason__ico{
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
}
.app-supp-reason__ico svg{ width: 15px; height: 15px; }
.app-supp-reason__ico--unsub{ background: rgba(212,165,114,0.10); color: #d4a572; border-color: rgba(212,165,114,0.28); }
.app-supp-reason__ico--abuse{ background: rgba(248,81,73,0.10); color: #f85149; border-color: rgba(248,81,73,0.30); }
.app-supp-reason__ico--bounce{ background: rgba(240,164,164,0.10); color: #f0a4a4; border-color: rgba(240,164,164,0.28); }
.app-supp-reason__ico--auto{ background: rgba(110,231,215,0.10); color: #6ee7d7; border-color: rgba(110,231,215,0.28); }
.app-supp-reason__title{ font-size: 12.5px; font-weight: 700; color: #f0f2fa; }
.app-supp-reason__text{
  margin: 0;
  font-size: 11.5px;
  color: #a8b1c5;
  line-height: 1.5;
}
.app-supp-reason__text i{ color: #f0f2fa; font-style: normal; font-weight: 500; background: rgba(167,139,250,0.08); padding: 0 4px; border-radius: 3px; }
.app-supp-reason__text b{ color: #f0f2fa; font-weight: 600; }
.app-supp-reason__text a:hover{ text-decoration: underline; }

/* Гарантия про bounce vs верификация */
.app-supp-guarantee{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(63,185,80,0.05) 0%, rgba(63,185,80,0.02) 100%);
  border: 1px solid rgba(63,185,80,0.24);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.app-supp-guarantee__ico{
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.30);
  color: #6cc775;
  display: flex; align-items: center; justify-content: center;
}
.app-supp-guarantee__ico svg{ width: 20px; height: 20px; }
.app-supp-guarantee__body b{ display: block; font-size: 13.5px; color: #f0f2fa; font-weight: 700; margin-bottom: 6px; }
.app-supp-guarantee__body p{ margin: 0 0 6px 0; font-size: 12px; color: #a8b1c5; line-height: 1.55; }
.app-supp-guarantee__body p:last-child{ margin-bottom: 0; }
.app-supp-guarantee__body p b{ display: inline; margin-bottom: 0; }
.app-supp-guarantee__body u{ text-decoration: none; background: rgba(63,185,80,0.14); color: #6cc775; padding: 0 4px; border-radius: 3px; }
.app-supp-guarantee__body a{ color: #c4b5fd; text-decoration: none; }
.app-supp-guarantee__body a:hover{ text-decoration: underline; }

/* KPI 4-cards */
.app-supp-kpis{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.app-supp-kpi{
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}
.app-supp-kpi:hover{
  border-color: rgba(167,139,250,0.32);
  background: #10131c;
}
.app-supp-kpi__num{ font-size: 26px; font-weight: 700; color: #f0f2fa; line-height: 1.1; letter-spacing: -0.5px; }
.app-supp-kpi__lbl{ font-size: 12px; color: #8b94ac; margin-top: 6px; font-weight: 500; }
.app-supp-kpi__trend{ font-size: 11px; color: #6cc775; margin-top: 4px; font-weight: 600; }
.app-supp-kpi__trend--neutral{ color: #6e7691; font-weight: 500; }
.app-supp-kpi--warn .app-supp-kpi__num{ color: #d4a572; }
.app-supp-kpi--err .app-supp-kpi__num{ color: #f0a4a4; }
.app-supp-kpi--crit .app-supp-kpi__num{ color: #f85149; }

/* Тулбар: tabs слева, поиск справа */
.app-supp-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.app-supp-toolbar__right{ display: flex; gap: 8px; align-items: center; }
.app-supp-search{
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a0c18;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 7px 12px;
  transition: border-color 0.15s;
}
.app-supp-search:focus-within{ border-color: rgba(167,139,250,0.45); }
.app-supp-search svg{ width: 14px; height: 14px; color: #6e7691; flex: 0 0 auto; }
.app-supp-search input{
  background: transparent; border: 0; outline: 0;
  color: #f0f2fa; font-size: 12.5px; font-family: inherit;
  width: 200px;
}
.app-supp-search input::placeholder{ color: #56607a; }

/* Таблица: переопределение grid под suppressions */
.app-supp-table{ margin-top: 4px; }
.app-detail-row.app-supp-row{
  grid-template-columns: 36px 1.7fr 1.1fr 1.2fr 90px 40px;
  align-items: center;
}
.app-supp-row__email{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-supp-row__email b{ font-size: 13px; font-weight: 600; color: #f0f2fa; word-break: break-all; }
.app-supp-row__email small{ font-size: 11px; color: #6e7691; }
.app-supp-row__src{ font-size: 12px; color: #c4b5fd; text-decoration: none; }
.app-supp-row__src:hover{ text-decoration: underline; }
.app-supp-row__del{
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: #6e7691;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.app-supp-row__del:hover{ background: rgba(240,164,164,0.10); color: #f0a4a4; }
.app-supp-row__del svg{ width: 14px; height: 14px; }

/* Цветные chip'ы причин */
.app-supp-chip{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.app-supp-chip--unsub{ background: rgba(212,165,114,0.10); color: #d4a572; border-color: rgba(212,165,114,0.28); }
.app-supp-chip--bounce{ background: rgba(240,164,164,0.10); color: #f0a4a4; border-color: rgba(240,164,164,0.28); }
.app-supp-chip--abuse{ background: rgba(248,81,73,0.12); color: #f85149; border-color: rgba(248,81,73,0.32); }
.app-supp-chip--auto{ background: rgba(110,231,215,0.10); color: #6ee7d7; border-color: rgba(110,231,215,0.28); }
.app-supp-chip--manual{ background: rgba(139,148,172,0.10); color: #a8b1c5; border-color: rgba(139,148,172,0.24); }

/* Bulk-bar sticky внизу страницы */
.app-supp-bulk{
  position: sticky;
  bottom: 16px;
  margin-top: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* ============================================================
   Settings — /app/settings.html
   ============================================================ */

/* Shell: vertical-tabs sidebar + main */
.app-set-shell{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.app-set-nav{
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 8px;
}
.app-set-nav__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #a8b1c5;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.app-set-nav__item:hover{ background: #10131c; color: #f0f2fa; }
.app-set-nav__item--active{
  background: #14182a;
  color: #f0f2fa;
  border-left-color: #c4b5fd;
  font-weight: 600;
}
.app-set-nav__item--danger{ color: #f0a4a4; }
.app-set-nav__item--danger:hover{ background: rgba(248,81,73,0.08); color: #f85149; }
.app-set-nav__ico{ width: 16px; height: 16px; flex: 0 0 16px; }
.app-set-nav__pill{
  margin-left: auto;
  background: rgba(139,148,172,0.14);
  color: #8b94ac;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.app-set-nav__pill--on{ background: rgba(63,185,80,0.14); color: #6cc775; }
.app-set-nav__sep{ height: 1px; background: #1c2030; margin: 8px 4px; }


/* Main pane */
.app-set-main{ min-width: 0; }
.app-set-section{ margin-bottom: 36px; scroll-margin-top: 24px; }
.app-set-section__head{ margin-bottom: 14px; }
.app-set-section__h2{
  font-size: 19px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}
.app-set-section__sub{
  font-size: 12.5px;
  color: #8b94ac;
  margin: 0;
  line-height: 1.5;
}

/* Card */
.app-set-card{
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 12px;
}
.app-set-card__h3{
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 6px 0;
  display: flex; align-items: baseline; gap: 10px;
}
.app-set-card__h3-meta{ font-size: 11.5px; color: #6e7691; font-weight: 500; }
.app-set-card__sub{
  font-size: 12px;
  color: #8b94ac;
  margin: 0 0 14px 0;
  line-height: 1.5;
}
.app-set-card--danger{ border-color: rgba(248,81,73,0.25); background: linear-gradient(135deg, rgba(248,81,73,0.03) 0%, rgba(248,81,73,0.01) 100%); }


/* Profile top */
.app-set-profile-top{
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1c2030;
  margin-bottom: 18px;
}
.app-set-avatar{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 56px;
}
.app-set-profile-top__info{ flex: 1; min-width: 0; }
.app-set-profile-top__name{ font-size: 15px; font-weight: 700; color: #f0f2fa; }
.app-set-profile-top__role{ font-size: 12px; color: #8b94ac; margin-top: 2px; }


/* Fields grid */
.app-set-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.app-set-field{ display: flex; flex-direction: column; gap: 5px; }
.app-set-field__lbl{
  font-size: 11.5px;
  font-weight: 600;
  color: #a8b1c5;
}
.app-set-field__inp{
  background: #05060f;
  border: 1px solid #1c2030;
  border-radius: 7px;
  padding: 9px 12px;
  color: #f0f2fa;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.app-set-field__inp:focus{ border-color: rgba(167,139,250,0.45); }
.app-set-field__inp--ro{ background: #0a0c18; color: #8b94ac; cursor: not-allowed; }
.app-set-field__inp--mono{ font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: 0.3px; }
.app-set-field__hint{ font-size: 11px; color: #6e7691; }
.app-set-field__hint a{ color: #c4b5fd; text-decoration: none; }


/* Actions row */
.app-set-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #1c2030;
}


/* Toggle row (для магии и безопасности) */
.app-set-toggle-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #1c2030;
}
.app-set-toggle-row:last-child{ border-bottom: 0; }
.app-set-toggle-row__lbl{
  font-size: 13px;
  font-weight: 600;
  color: #f0f2fa;
  margin-bottom: 3px;
}
.app-set-toggle-row__hint{
  font-size: 11.5px;
  color: #8b94ac;
  line-height: 1.45;
  max-width: 560px;
}
.app-set-toggle-row__hint b{ color: #f0f2fa; font-weight: 600; }


/* Switch toggle */
.app-set-switch{
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  flex: 0 0 40px;
  cursor: pointer;
}
.app-set-switch input{ opacity: 0; width: 0; height: 0; }
.app-set-switch span{
  position: absolute; inset: 0;
  background: #1c2030;
  border-radius: 999px;
  transition: background 0.18s;
}
.app-set-switch span::before{
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #f0f2fa;
  border-radius: 50%;
  transition: transform 0.18s;
}
.app-set-switch input:checked + span{ background: linear-gradient(135deg, #ec4899 0%, #4c1d95 100%); }
.app-set-switch input:checked + span::before{ transform: translateX(18px); }


/* Magic before/after preview */
.app-set-preview{
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
  padding: 14px;
  background: #05060f;
  border: 1px dashed #1c2030;
  border-radius: 8px;
}
.app-set-preview__col{
  background: #0a0c18;
  border-radius: 6px;
  padding: 12px 14px;
}
.app-set-preview__col--ok{
  background: rgba(63,185,80,0.06);
  border: 1px solid rgba(63,185,80,0.24);
}
.app-set-preview__lbl{
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6e7691;
  font-weight: 600;
  margin-bottom: 6px;
}
.app-set-preview__txt{
  font-size: 13px;
  color: #f0f2fa;
  line-height: 1.45;
}
.app-set-preview__txt i{ color: #d4a572; font-style: normal; font-weight: 500; }
.app-set-preview__txt b{ color: #6cc775; font-weight: 700; background: rgba(63,185,80,0.10); padding: 0 3px; border-radius: 3px; }
.app-set-preview__arr{
  color: #c4b5fd;
  font-size: 18px;
  text-align: center;
}


/* Signature card */
.app-set-sig{
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.app-set-sig__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #10131c;
  border-bottom: 1px solid #1c2030;
}
.app-set-sig__name{
  font-size: 13px;
  font-weight: 700;
  color: #f0f2fa;
}
.app-set-sig__actions{ display: flex; gap: 14px; align-items: center; }
.app-set-sig__act{
  font-size: 11.5px;
  color: #a8b1c5;
  text-decoration: none;
  font-weight: 500;
}
.app-set-sig__act:hover{ color: #c4b5fd; }
.app-set-sig__act--del:hover{ color: #f0a4a4; }
.app-set-sig__body{
  padding: 18px 22px;
  font-size: 12.5px;
  color: #a8b1c5;
  line-height: 1.55;
  background: #05060f;
}
.app-set-sig__body b{ color: #f0f2fa; font-weight: 600; }


/* Session row */
.app-set-session{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1c2030;
}
.app-set-session:last-of-type{ border-bottom: 0; }
.app-set-session__ico{
  width: 36px; height: 36px;
  background: #05060f;
  border: 1px solid #1c2030;
  border-radius: 8px;
  color: #8b94ac;
  display: flex; align-items: center; justify-content: center;
}
.app-set-session__ico svg{ width: 18px; height: 18px; }
.app-set-session__dev{ font-size: 13px; font-weight: 600; color: #f0f2fa; }
.app-set-session__meta{ font-size: 11px; color: #6e7691; margin-top: 2px; }
.app-set-session__act{
  font-size: 11.5px;
  color: #f0a4a4;
  text-decoration: none;
  font-weight: 600;
}
.app-set-session__act:hover{ color: #f85149; }


/* Webhook row */
.app-set-wh{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1c2030;
}
.app-set-wh:last-of-type{ border-bottom: 0; }
.app-set-wh__lbl{ display: flex; flex-direction: column; gap: 6px; }
.app-set-wh__lbl > span:last-child{ font-size: 12px; color: #a8b1c5; }


/* API key row */
.app-set-key{
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}


/* CRM connector row */
.app-set-crm{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1c2030;
}
.app-set-crm:last-of-type{ border-bottom: 0; }
.app-set-crm__logo{
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.app-set-crm__name{ font-size: 13.5px; font-weight: 700; color: #f0f2fa; }
.app-set-crm__hint{ font-size: 11.5px; color: #8b94ac; margin-top: 2px; line-height: 1.45; }


/* Danger zone row */
.app-set-danger-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(248,81,73,0.12);
}
.app-set-danger-row:last-child{ border-bottom: 0; padding-bottom: 4px; }

/* ============================================================
   Inbox — /app/inbox.html  (главный B2B-почтовый клиент)
   ============================================================ */

/* Sidebar pill для "горячих" непрочитанных */
.app-side__item-pill--hot{
  background: linear-gradient(135deg, #ec4899 0%, #b91c5c 100%) !important;
  color: #fff !important;
}

/* Inbox-bar (тулбар над листом) */
.app-inbox-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #0a0c12;
  border-bottom: 1px solid #1c2030;
  flex-wrap: wrap;
}
.app-inbox-bar__filters{ display: flex; gap: 4px; align-items: center; }
.app-inbox-bar__tab{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #a8b1c5;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.app-inbox-bar__tab:hover{ background: #0d1018; color: #f0f2fa; }
.app-inbox-bar__tab--active{ background: #14182a; color: #f0f2fa; font-weight: 700; }
.app-inbox-bar__tab-c{
  background: rgba(139,148,172,0.16);
  color: #8b94ac;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.app-inbox-bar__tab--active .app-inbox-bar__tab-c{ background: rgba(196,181,253,0.16); color: #c4b5fd; }
.app-inbox-bar__tab-c--hot{ background: linear-gradient(135deg, #ec4899 0%, #b91c5c 100%); color: #fff; }

.app-inbox-bar__right{ display: flex; gap: 12px; align-items: center; }
.app-inbox-bar__chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #0d1018;
  border: 1px solid #1c2030;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #f0f2fa;
  cursor: pointer;
  font-family: inherit;
}
.app-inbox-bar__chip:hover{ border-color: rgba(167,139,250,0.32); }
.app-inbox-bar__chip-dot{
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.app-inbox-shield{
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px;
  color: #6cc775;
  padding: 6px 10px;
  background: rgba(63,185,80,0.06);
  border: 1px solid rgba(63,185,80,0.18);
  border-radius: 6px;
}
.app-inbox-shield b{ color: #f0f2fa; font-weight: 700; }


/* Master-detail grid */
.app-inbox-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}


/* LEFT: thread list */
.app-inbox-list{
  border-right: 1px solid #1c2030;
  background: #07090f;
  overflow-y: auto;
  padding: 6px 0;
}
.app-inbox-list__group{
  position: sticky;
  top: 0;
  background: #07090f;
  z-index: 2;
  padding: 12px 18px 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6e7691;
  font-weight: 700;
}

.app-inbox-thread{
  display: grid;
  grid-template-columns: 6px 36px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px 12px 8px;
  text-decoration: none;
  border-bottom: 1px solid #0f1320;
  cursor: pointer;
  transition: background 0.12s;
}
.app-inbox-thread:hover{ background: #0a0c14; }
.app-inbox-thread__dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-top: 16px;
}
.app-inbox-thread--unread .app-inbox-thread__dot{
  background: #c4b5fd;
  box-shadow: 0 0 8px #c4b5fd;
}
.app-inbox-thread--active{
  background: #10131c !important;
  border-left: 2px solid #c4b5fd;
  padding-left: 6px;
}
.app-inbox-thread__avatar{
  width: 36px; height: 36px;
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-inbox-thread__body{ min-width: 0; }
.app-inbox-thread__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1px;
}
.app-inbox-thread__name{
  font-size: 12.5px;
  font-weight: 600;
  color: #a8b1c5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-inbox-thread--unread .app-inbox-thread__name{ color: #f0f2fa; font-weight: 700; }
.app-inbox-thread__time{ font-size: 10.5px; color: #6e7691; flex-shrink: 0; }
.app-inbox-thread__person{ font-size: 11px; color: #8b94ac; margin-bottom: 4px; }
.app-inbox-thread__preview{
  font-size: 11.5px;
  color: #8b94ac;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.app-inbox-thread--unread .app-inbox-thread__preview{ color: #a8b1c5; }
.app-inbox-thread__tags{ display: flex; gap: 4px; flex-wrap: wrap; }


/* Mini-chip (для тегов в списке) */
.app-inbox-mini-chip{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(139,148,172,0.12);
  color: #8b94ac;
  border: 1px solid rgba(139,148,172,0.18);
}
.app-inbox-mini-chip--green{ background: rgba(63,185,80,0.10); color: #6cc775; border-color: rgba(63,185,80,0.24); }
.app-inbox-mini-chip--orange{ background: rgba(212,165,114,0.10); color: #d4a572; border-color: rgba(212,165,114,0.24); }
.app-inbox-mini-chip--blue{ background: rgba(122,162,240,0.10); color: #7aa2f0; border-color: rgba(122,162,240,0.24); }
.app-inbox-mini-chip--purple{ background: rgba(167,139,250,0.10); color: #a78bfa; border-color: rgba(167,139,250,0.24); }
.app-inbox-mini-chip--warm{ background: rgba(212,165,114,0.08); color: #d4a572; border-color: rgba(212,165,114,0.20); }
.app-inbox-mini-chip--hot{
  background: linear-gradient(135deg, rgba(236,72,153,0.14), rgba(185,28,92,0.14));
  color: #f0a4a4;
  border-color: rgba(236,72,153,0.30);
}


/* RIGHT: thread view */
.app-inbox-view{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05060f;
}

/* Header */
.app-inbox-view__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid #1c2030;
  background: #0a0c14;
  gap: 16px;
}
.app-inbox-view__head-main{ flex: 1; min-width: 0; }
.app-inbox-view__contact{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.app-inbox-view__avatar{
  width: 44px; height: 44px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-inbox-view__company{
  font-size: 16px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
}
.app-inbox-view__person{ font-size: 12.5px; color: #a8b1c5; margin-bottom: 3px; }
.app-inbox-view__person b{ color: #f0f2fa; font-weight: 600; }
.app-inbox-view__person span{ color: #c4b5fd; }
.app-inbox-view__meta{ font-size: 11px; color: #6e7691; }
.app-inbox-view__tags{ display: flex; gap: 5px; margin-top: 10px; }

.app-inbox-view__actions{ display: flex; gap: 8px; align-items: center; }
.app-inbox-view__icon-btn{
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #0d1018;
  border: 1px solid #1c2030;
  color: #a8b1c5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.app-inbox-view__icon-btn:hover{ border-color: rgba(167,139,250,0.32); color: #f0f2fa; }
.app-inbox-view__icon-btn svg{ width: 15px; height: 15px; }


/* Conversation */
.app-inbox-view__conv{
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* Message card */
.app-msg{
  border-radius: 10px;
  overflow: hidden;
}
.app-msg--out{
  background: #0a0c14;
  border: 1px solid #1c2030;
}
.app-msg--in{
  background: linear-gradient(135deg, rgba(167,139,250,0.05) 0%, rgba(167,139,250,0.02) 100%);
  border: 1px solid rgba(167,139,250,0.28);
  box-shadow: 0 4px 16px rgba(167,139,250,0.08);
}
.app-msg__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid #1c2030;
  background: rgba(255,255,255,0.012);
  gap: 12px;
}
.app-msg__from{ font-size: 12px; color: #a8b1c5; }
.app-msg__from b{ color: #f0f2fa; font-weight: 600; }
.app-msg__meta{ font-size: 11px; color: #6e7691; text-align: right; }
.app-msg__meta b{ color: #c4b5fd; font-weight: 600; }
.app-msg__body{ padding: 16px 18px; }
.app-msg__sig{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #1c2030;
  font-size: 11px;
  color: #6e7691;
  line-height: 1.5;
}

/* AI insight under inbound message */
.app-msg__ai{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 18px;
  background: rgba(110,231,215,0.06);
  border-top: 1px solid rgba(110,231,215,0.20);
}
.app-msg__ai-ico{
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(110,231,215,0.14);
  color: #6ee7d7;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(110,231,215,0.30);
}
.app-msg__ai-ico svg{ width: 13px; height: 13px; }
.app-msg__ai b{ display: block; font-size: 11.5px; color: #6ee7d7; margin-bottom: 3px; font-weight: 700; }
.app-msg__ai p{ margin: 0; font-size: 12px; color: #a8b1c5; line-height: 1.5; }
.app-msg__ai p b{ display: inline; color: #f0f2fa; font-weight: 600; margin: 0; }


/* Reply form */
.app-inbox-reply{
  border-top: 1px solid #1c2030;
  background: #07090f;
  padding: 14px 28px 16px;
}
.app-inbox-reply__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.app-inbox-reply__from-lbl{ font-size: 11px; color: #6e7691; }
.app-inbox-reply__from-pick{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(63,185,80,0.06);
  border: 1px solid rgba(63,185,80,0.28);
  border-radius: 6px;
  font-size: 12px;
  color: #f0f2fa;
  cursor: pointer;
  font-family: inherit;
}
.app-inbox-reply__from-pick:hover{ border-color: #6cc775; }
.app-inbox-reply__pre{
  font-size: 11.5px;
  color: #c4b5fd;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(196,181,253,0.06);
  border: 1px solid rgba(196,181,253,0.20);
}
.app-inbox-reply__pre:hover{ background: rgba(196,181,253,0.12); }

.app-inbox-reply__txt{
  width: 100%;
  background: #0a0c14;
  border: 1px solid #1c2030;
  border-radius: 8px;
  padding: 14px 16px;
  color: #f0f2fa;
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  min-height: 90px;
}
.app-inbox-reply__txt:focus{ border-color: rgba(167,139,250,0.45); box-shadow: 0 0 0 3px rgba(167,139,250,0.08); }

.app-inbox-reply__foot{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.app-inbox-reply__hint{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: #6e7691;
}

/* ============================================================
   Inbox v2 patches: white email body + stage picker
   ============================================================ */

/* OVERRIDE: тело письма как настоящая почта (Gmail/Outlook) */
.app-msg{
  background: #ffffff !important;
  border: 1px solid #1c2030;
}
.app-msg--out{ background: #f6f7f9 !important; border-color: #1c2030; }
.app-msg--in{
  background: #ffffff !important;
  border: 1px solid rgba(167,139,250,0.42) !important;
  box-shadow: 0 6px 24px rgba(167,139,250,0.18), 0 0 0 1px rgba(167,139,250,0.10);
}

.app-msg__head{
  background: #0a0c14;
  border-bottom: 1px solid #1c2030;
  color: #a8b1c5;
}

.app-msg__body{
  background: #ffffff;
  padding: 22px 26px !important;
  color: #1f2937;
}
.app-msg__body > div{
  color: #1f2937 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
}
.app-msg__body p{
  color: #1f2937 !important;
  margin: 0 0 12px 0;
}
.app-msg__body p:last-child{ margin-bottom: 0; }
.app-msg__body b, .app-msg__body strong{ color: #0f172a; font-weight: 700; }

.app-msg__sig{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
  font-size: 11.5px;
  line-height: 1.55;
}

/* AI block — оставляем тёмный (это уже не письмо, это инсайт от системы) */
.app-msg__ai{
  background: #07090f;
  border-top: 1px solid rgba(110,231,215,0.20);
}


/* ====== STAGE-PICKER (воронка над диалогом) ====== */
.app-stage-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #07090f;
  border-bottom: 1px solid #1c2030;
  flex-wrap: wrap;
}
.app-stage-bar__lbl{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6e7691;
  font-weight: 700;
  margin-right: 4px;
}
.app-stage-bar__link{
  font-size: 11.5px;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(196,181,253,0.24);
}
.app-stage-bar__link:hover{ background: rgba(196,181,253,0.08); }

.app-stage{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 8px;
  border-radius: 6px;
  background: #0d1018;
  border: 1px solid #1c2030;
  font-size: 12px;
  font-weight: 600;
  color: #8b94ac;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.app-stage:hover{
  background: #14182a;
  border-color: rgba(167,139,250,0.32);
  color: #f0f2fa;
  transform: translateY(-1px);
}
.app-stage__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(139,148,172,0.16);
  color: #8b94ac;
  font-size: 10px;
  font-weight: 800;
}
.app-stage__name{ white-space: nowrap; }
.app-stage__sep{ color: #2d3349; font-size: 12px; user-select: none; }
.app-stage__check{
  display: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  position: relative;
}
.app-stage__check svg{
  width: 10px; height: 10px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #0a0c12;
}

/* Active state */
.app-stage--active{ box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.app-stage--active .app-stage__check{ display: inline-block; }

.app-stage--blue.app-stage--active{
  background: rgba(122,162,240,0.14);
  border-color: rgba(122,162,240,0.55);
  color: #7aa2f0;
}
.app-stage--blue.app-stage--active .app-stage__num{ background: #7aa2f0; color: #0a0c12; }

.app-stage--orange.app-stage--active{ background: rgba(212,165,114,0.14); border-color: rgba(212,165,114,0.55); color: #d4a572; }
.app-stage--orange.app-stage--active .app-stage__num{ background: #d4a572; color: #0a0c12; }

.app-stage--green.app-stage--active{ background: rgba(63,185,80,0.14); border-color: rgba(63,185,80,0.55); color: #6cc775; }
.app-stage--green.app-stage--active .app-stage__num{ background: #6cc775; color: #0a0c12; }

.app-stage--purple.app-stage--active{ background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.55); color: #a78bfa; }
.app-stage--purple.app-stage--active .app-stage__num{ background: #a78bfa; color: #0a0c12; }

.app-stage--success.app-stage--active{
  background: linear-gradient(135deg, rgba(63,185,80,0.20), rgba(63,185,80,0.10));
  border-color: #3fb950;
  color: #6cc775;
}
.app-stage--success.app-stage--active .app-stage__num{ background: #3fb950; color: #fff; }

/* Hover preview colors (когда НЕ active) */
.app-stage--blue:hover{ color: #7aa2f0; border-color: rgba(122,162,240,0.45); }
.app-stage--orange:hover{ color: #d4a572; border-color: rgba(212,165,114,0.45); }
.app-stage--green:hover{ color: #6cc775; border-color: rgba(63,185,80,0.45); }
.app-stage--purple:hover{ color: #a78bfa; border-color: rgba(167,139,250,0.45); }
.app-stage--success:hover{ color: #6cc775; border-color: rgba(63,185,80,0.55); }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — Mailboxes rail (left column, 232px)
   ═══════════════════════════════════════════════════════════════════ */
.app-mboxes{
  border-right: 1px solid #1c2030;
  background: #06080d;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
}

/* Global rows: Smart Inbox / Sent / Hot / Assigned */
.app-mboxes__global{
  padding: 0 8px 8px;
  border-bottom: 1px solid #0f1320;
  margin-bottom: 8px;
}
.app-mbox-row{
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #a8b1c5;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.app-mbox-row:hover{ background: #0d1018; color: #f0f2fa; }
.app-mbox-row--active{
  background: linear-gradient(90deg, rgba(196,181,253,0.12), rgba(196,181,253,0.04));
  color: #f0f2fa;
  font-weight: 700;
  border-left: 2px solid #c4b5fd;
  padding-left: 8px;
}
.app-mbox-row--smart .app-mbox-row__ico{ font-size: 13px; }
.app-mbox-row__ico{
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #8b94ac;
  font-size: 12px;
}
.app-mbox-row--active .app-mbox-row__ico{ color: #c4b5fd; }
.app-mbox-row__ico svg{ width: 13px; height: 13px; }
.app-mbox-row__lbl{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-mbox-row__count{
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  background: rgba(139,148,172,0.14);
  color: #8b94ac;
  min-width: 18px;
  text-align: center;
}
.app-mbox-row--active .app-mbox-row__count{
  background: rgba(196,181,253,0.20);
  color: #c4b5fd;
}
.app-mbox-row__count--hot{
  background: linear-gradient(135deg, #ec4899 0%, #b91c5c 100%) !important;
  color: #fff !important;
}

/* Section: my mailboxes */
.app-mboxes__sec{
  flex: 1;
  padding: 0 8px 8px;
}
.app-mboxes__sec-h{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 8px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6e7691;
  font-weight: 700;
}
.app-mboxes__sec-c{
  font-size: 10px;
  background: rgba(139,148,172,0.14);
  color: #8b94ac;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0;
}

/* Mailbox accordion */
.app-mbox{ margin-bottom: 1px; }
.app-mbox__h{
  display: grid;
  grid-template-columns: 14px 8px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #a8b1c5;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.app-mbox__h:hover{ background: #0d1018; color: #f0f2fa; }
.app-mbox__h--more{
  color: #6e7691;
  font-size: 11px;
  font-style: italic;
  padding-left: 30px;
}
.app-mbox__chev{
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #6e7691;
}
.app-mbox__chev svg{ width: 10px; height: 10px; }
.app-mbox__chev--closed svg{ width: 9px; height: 9px; }
.app-mbox__dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3fb950;
}
.app-mbox__dot--ok{ background: #3fb950; box-shadow: 0 0 4px rgba(63,185,80,0.55); }
.app-mbox__dot--warn{ background: #d4a572; box-shadow: 0 0 4px rgba(212,165,114,0.55); }
.app-mbox__dot--bad{ background: #f0a4a4; box-shadow: 0 0 4px rgba(240,164,164,0.55); }
.app-mbox__name{
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-mbox__name--mute{ color: #6e7691; }
.app-mbox__count{
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 8px;
  background: rgba(139,148,172,0.14);
  color: #a8b1c5;
}

/* Folders inside expanded mailbox */
.app-mbox--open > .app-mbox__h{
  background: #0d1018;
  color: #f0f2fa;
}
.app-mbox__folders{
  padding: 2px 0 6px 28px;
}
.app-fold{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #8b94ac;
  font-size: 11.5px;
  transition: background 0.12s, color 0.12s;
}
.app-fold:hover{ background: #0d1018; color: #f0f2fa; }
.app-fold--active{
  background: rgba(196,181,253,0.10);
  color: #c4b5fd;
  font-weight: 600;
}
.app-fold__ico{
  font-size: 11px;
  width: 14px;
  text-align: center;
}
.app-fold__c{
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(196,181,253,0.16);
  color: #c4b5fd;
}
.app-fold__c--mute{ background: rgba(139,148,172,0.14); color: #8b94ac; }

/* Spam-shield footer in rail */
.app-mboxes__foot{
  margin-top: auto;
  border-top: 1px solid #1c2030;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8b94ac;
  background: #07090f;
}
.app-mboxes__foot-ico{
  color: #6cc775;
  display: flex;
  align-items: center;
}
.app-mboxes__foot b{ color: #6cc775; font-weight: 700; }
.app-mboxes__foot span{ display: block; font-size: 9.5px; color: #6e7691; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — Thread list: compact filters strip on top
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-list__filters{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #07090f;
  border-bottom: 1px solid #1c2030;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.app-inbox-list__ctx{
  color: #c4b5fd;
  font-weight: 700;
  font-size: 11.5px;
}
.app-inbox-list__sep{
  color: #2a2f45;
}
.app-inbox-list__chip{
  padding: 3px 8px;
  border-radius: 5px;
  text-decoration: none;
  color: #8b94ac;
  background: transparent;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.app-inbox-list__chip:hover{ background: #14182a; color: #f0f2fa; }
.app-inbox-list__chip--active{
  background: #14182a;
  color: #f0f2fa;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — CRM link badge above thread view header
   ═══════════════════════════════════════════════════════════════════ */
.app-crm-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  background: linear-gradient(90deg, rgba(122,162,240,0.10), rgba(167,139,250,0.06));
  border-bottom: 1px solid rgba(122,162,240,0.18);
  font-size: 12px;
  color: #a8b1c5;
}
.app-crm-link__ico{ font-size: 13px; }
.app-crm-link__txt b{ color: #f0f2fa; font-weight: 700; }
.app-crm-link__cta{
  font-size: 11.5px;
  font-weight: 700;
  color: #7aa2f0;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(122,162,240,0.32);
  transition: background 0.12s, border-color 0.12s;
}
.app-crm-link__cta:hover{
  background: rgba(122,162,240,0.10);
  border-color: rgba(122,162,240,0.55);
}


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — Compact head (single row, no sub-meta)
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-view__head{
  padding: 12px 22px;
}
.app-inbox-view__avatar{
  width: 36px; height: 36px;
  font-size: 12px;
}
.app-inbox-view__company{
  font-size: 15px;
  margin: 0 0 2px;
}
.app-inbox-view__person{
  font-size: 11.5px;
}
.app-inbox-view__person b{ display: none; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — Collapsed AI summary (<details>)
   ═══════════════════════════════════════════════════════════════════ */
.app-msg__ai-det{
  margin: 0 18px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
}
.app-msg__ai-sum{
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
  user-select: none;
}
.app-msg__ai-sum::-webkit-details-marker{ display: none; }
.app-msg__ai-sum svg{
  width: 12px; height: 12px;
  color: #6ee7d7;
  flex-shrink: 0;
}
.app-msg__ai-sum b{ color: #0f172a; font-weight: 700; }
.app-msg__ai-sum:hover{ background: #f1f5f9; }
.app-msg__ai-body{
  padding: 8px 14px 14px;
  border-top: 1px dashed #e5e7eb;
  background: #fafbfc;
}
.app-msg__ai-body p{
  margin: 0 0 5px;
  font-size: 11.5px;
  color: #475569;
}
.app-msg__ai-body p:last-child{ margin: 0; }
.app-msg__ai-body b{ color: #0f172a; font-weight: 700; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v3 — Tighten thread list (filters bar replaces sticky group)
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-list__group{
  top: 41px; /* below filters bar */
}


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4 — Context dropdown button (replaces left rail)
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-ctx-btn{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #14182a;
  border: 1px solid #1c2030;
  color: #f0f2fa;
  padding: 5px 10px 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.app-inbox-ctx-btn:hover{
  border-color: rgba(196,181,253,0.32);
  background: #1a1f33;
}
.app-inbox-ctx-btn__ico{ font-size: 12px; }
.app-inbox-ctx-btn__lbl{ color: #f0f2fa; }
.app-inbox-ctx-btn__c{
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 8px;
  background: rgba(196,181,253,0.18);
  color: #c4b5fd;
}
.app-inbox-ctx-btn__chev{
  width: 11px; height: 11px;
  color: #8b94ac;
}

/* Make chips smaller/lighter in v4 */
.app-inbox-list__chip b{ font-weight: 700; color: inherit; margin-left: 2px; }
.app-inbox-list__chip{ font-size: 11px; padding: 3px 7px; }


/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSED (icon-only rail, 60px)
   ═══════════════════════════════════════════════════════════════════ */
.app-shell--collapsed{
  grid-template-columns: 60px minmax(0, 1fr);
}
.app-shell--collapsed .app-side{
  padding: 18px 6px 12px;
}
/* Brand: hide text logo */
.app-shell--collapsed .app-side__brand{
  justify-content: center;
  margin-bottom: 18px;
  padding: 0;
}
.app-shell--collapsed .app-side__brand .auth-logo-text{ display: none; }
/* Group titles */
.app-shell--collapsed .app-side__group-title{
  display: none;
}
.app-shell--collapsed .app-side__group{ margin-top: 14px; }
/* Items: only icon, center */
.app-shell--collapsed .app-side__item{
  justify-content: center;
  padding: 10px 0;
  position: relative;
}
.app-shell--collapsed .app-side__item-label{ display: none; }
.app-shell--collapsed .app-side__item-pill{
  position: absolute;
  top: 4px;
  right: 8px;
  padding: 1px 5px;
  font-size: 9px;
  min-width: 0;
  border-radius: 7px;
}
/* User block: only avatar */
.app-shell--collapsed .app-side__user{
  justify-content: center;
  padding: 8px 0;
}
.app-shell--collapsed .app-side__user-info,
.app-shell--collapsed .app-side__user-chev{ display: none; }

/* Tooltip on hover (label appears to the right) */
.app-shell--collapsed .app-side__item:hover::after{
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1f33;
  color: #f0f2fa;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid #2a2f45;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.app-side__collapse{
  position: absolute;
  top: 22px;
  right: -12px;
  width: 24px;
  height: 24px;
  background: #14182a;
  border: 1px solid #1c2030;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8b94ac;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  z-index: 10;
}
.app-side__collapse:hover{
  background: #1a1f33;
  color: #c4b5fd;
  border-color: rgba(196,181,253,0.32);
}
.app-side__collapse svg{ width: 12px; height: 12px; }
.app-shell--collapsed .app-side__collapse svg{ transform: rotate(180deg); }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.4 — Smart Inbox tabs (SVG в квадратах, GitHub-tone)
   ═══════════════════════════════════════════════════════════════════ */
.app-smart-tabs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px;
  background: #07090f;
  border-bottom: 1px solid #1c2030;
  position: sticky;
  top: 0;
  z-index: 3;
}
.app-smart-tab{
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 1px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: #0a0c14;
  border: 1px solid #1c2030;
  transition: border-color 0.12s, background 0.12s, transform 0.06s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.app-smart-tab:hover{
  border-color: #2a2f45;
  background: #0d1018;
}
.app-smart-tab:active{ transform: translateY(0.5px); }

/* Square icon block */
.app-smart-tab__ico{
  grid-row: 1 / span 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: rgba(139,148,172,0.10);
  color: #8b94ac;
  border: 1px solid rgba(139,148,172,0.18);
}
.app-smart-tab__ico svg{ width: 15px; height: 15px; }

/* Big number top-right */
.app-smart-tab__c{
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 800;
  color: #f0f2fa;
  line-height: 1.05;
  letter-spacing: -0.3px;
}
/* Tiny label bottom-right */
.app-smart-tab__lbl{
  grid-column: 2;
  grid-row: 2;
  font-size: 10.5px;
  color: #8b94ac;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

/* ACTIVE state — фиолетовая обводка + glow + цветной icon-square */
.app-smart-tab--active{
  background: linear-gradient(180deg, rgba(196,181,253,0.10), rgba(196,181,253,0.02));
  border-color: rgba(196,181,253,0.55);
  box-shadow: 0 0 0 1px rgba(196,181,253,0.22), 0 6px 18px rgba(196,181,253,0.06);
}
.app-smart-tab--active .app-smart-tab__ico{
  background: linear-gradient(135deg, rgba(196,181,253,0.22), rgba(167,139,250,0.10));
  color: #c4b5fd;
  border-color: rgba(196,181,253,0.45);
}
.app-smart-tab--active .app-smart-tab__lbl{ color: #c4b5fd; }

/* Цветовая семантика по типу таба (применяется когда НЕ active) */
.app-smart-tab--sent .app-smart-tab__ico{
  background: rgba(122,162,240,0.10);
  color: #7aa2f0;
  border-color: rgba(122,162,240,0.24);
}
.app-smart-tab--sent:hover{ border-color: rgba(122,162,240,0.45); }

.app-smart-tab--hot .app-smart-tab__ico{
  background: linear-gradient(135deg, rgba(236,72,153,0.16), rgba(240,164,164,0.08));
  color: #f0a4a4;
  border-color: rgba(236,72,153,0.32);
}
.app-smart-tab--hot:hover{ border-color: rgba(236,72,153,0.55); }
.app-smart-tab--hot .app-smart-tab__c{ color: #f0a4a4; }

.app-smart-tab--mine .app-smart-tab__ico{
  background: rgba(110,231,215,0.10);
  color: #6ee7d7;
  border-color: rgba(110,231,215,0.24);
}
.app-smart-tab--mine:hover{ border-color: rgba(110,231,215,0.45); }


/* ═══════════════════════════════════════════════════════════════════
   RESIZABLE SPLITTERS (Outlook/Mail-style draggable column borders)
   ═══════════════════════════════════════════════════════════════════ */
/* Grid templates use CSS vars so JS can update via inline style */
.app-shell{
  grid-template-columns: var(--app-sidebar-w, 264px) 5px minmax(0, 1fr);
}
.app-shell--collapsed{
  grid-template-columns: 60px 5px minmax(0, 1fr);
}
.app-inbox-grid{
  grid-template-columns: var(--app-list-w, 360px) 5px 1fr;
}

.app-resizer{
  background: transparent;
  cursor: col-resize;
  z-index: 5;
  position: relative;
  transition: background 0.12s;
  border-left: 1px solid #1c2030;
  border-right: 1px solid transparent;
}
.app-resizer:hover,
.app-resizer--active{
  background: rgba(196,181,253,0.20);
  border-left-color: rgba(196,181,253,0.45);
  border-right-color: rgba(196,181,253,0.45);
}
.app-resizer::after{
  /* invisible wider hitbox */
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -3px; right: -3px;
}
body.app-resizing{ cursor: col-resize !important; user-select: none; }
body.app-resizing *{ cursor: col-resize !important; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.1 — Apple Mail-style conversation
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-view__conv{
  padding: 0;
  flex: 1;
  overflow-y: auto;
  background: #05060f;
}

/* Day separator */
.app-conv-day{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #6e7691;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.app-conv-day::before,
.app-conv-day::after{
  content: '';
  flex: 1;
  height: 1px;
  background: #1c2030;
}

/* "Найдено в почтовом ящике ..." sep — Apple Mail style */
.app-conv-where{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 8px;
  font-size: 11.5px;
  color: #6e7691;
}
.app-conv-where svg{ width: 12px; height: 12px; flex-shrink: 0; }
.app-conv-where b{ color: #a8b1c5; font-weight: 600; }

/* Collapsed message — 1-line stub with "Раскрыть письмо" link */
.app-msg-stub{
  margin: 0 22px 8px;
  padding: 12px 14px;
  background: #0a0c14;
  border: 1px solid #1c2030;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  transition: border-color 0.12s;
}
.app-msg-stub:hover{ border-color: rgba(196,181,253,0.28); }
.app-msg-stub__avatar{
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.app-msg-stub__body{ min-width: 0; }
.app-msg-stub__top{
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 2px;
}
.app-msg-stub__from{ color: #f0f2fa; font-weight: 600; }
.app-msg-stub__to{ color: #6e7691; }
.app-msg-stub__preview{
  font-size: 11.5px;
  color: #8b94ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-msg-stub__expand{
  font-size: 11px;
  color: #7aa2f0;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.12s;
}
.app-msg-stub__expand:hover{ background: rgba(122,162,240,0.10); }
.app-msg-stub__time{
  font-size: 10.5px;
  color: #6e7691;
}

/* Open message — full bubble, Apple Mail style (one big block) */
.app-msg-open{
  margin: 4px 22px 18px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 0 0 1px #e5e7eb;
}
.app-msg-open__head{
  padding: 14px 18px 10px;
  border-bottom: 1px solid #eef1f5;
  background: #fafbfc;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
}
.app-msg-open__avatar{
  width: 38px; height: 38px;
  border-radius: 9px;
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.app-msg-open__from{
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 700;
  margin: 0 0 2px;
}
.app-msg-open__sub{
  font-size: 11.5px;
  color: #64748b;
}
.app-msg-open__sub b{ color: #0f172a; font-weight: 600; }
.app-msg-open__time{
  font-size: 11.5px;
  color: #94a3b8;
  text-align: right;
  white-space: nowrap;
}
.app-msg-open__body{
  padding: 18px 20px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.6;
}
.app-msg-open__body p{ margin: 0 0 12px; }
.app-msg-open__body p:last-child{ margin: 0; }
.app-msg-open__sig{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef1f5;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.55;
}

/* AI bar under open message — narrower, lighter */
.app-msg-open__ai{
  margin: 0 18px 14px;
  padding: 9px 12px;
  background: #f1f8fd;
  border: 1px solid #d8e9f6;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: #475569;
}
.app-msg-open__ai svg{ width: 12px; height: 12px; color: #0891b2; flex-shrink: 0; }
.app-msg-open__ai b{ color: #0f172a; font-weight: 700; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.2 — Unified top toolbar (replaces crm-link + head + stage-bar)
   ═══════════════════════════════════════════════════════════════════ */
.app-tool-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #07090f;
  border-bottom: 1px solid #1c2030;
  flex-shrink: 0;
}
.app-tool-bar__contact{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.app-tool-bar__avatar{
  width: 32px; height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-tool-bar__txt{ min-width: 0; }
.app-tool-bar__name{
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-tool-bar__sub{
  font-size: 11px;
  color: #6e7691;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tool-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #1c2030;
  border-radius: 6px;
  color: #a8b1c5;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
  white-space: nowrap;
}
.app-tool-btn:hover{
  background: #0d1018;
  color: #f0f2fa;
  border-color: rgba(196,181,253,0.32);
}
.app-tool-btn svg{ width: 13px; height: 13px; }
.app-tool-btn--crm{
  border-color: rgba(122,162,240,0.32);
  color: #7aa2f0;
  background: rgba(122,162,240,0.06);
}
.app-tool-btn--crm:hover{
  background: rgba(122,162,240,0.12);
  border-color: rgba(122,162,240,0.55);
  color: #a4c0f3;
}
.app-tool-btn--icon{
  padding: 6px;
  width: 28px;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.2 — Message inline actions (Reply / Forward)
   ═══════════════════════════════════════════════════════════════════ */
.app-msg-actions{
  margin: -10px 22px 18px;
  display: flex;
  gap: 8px;
  padding: 0 4px;
}
.app-msg-action{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #1c2030;
  border-radius: 6px;
  color: #a8b1c5;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.app-msg-action:hover{
  background: #0d1018;
  color: #f0f2fa;
  border-color: rgba(196,181,253,0.32);
}
.app-msg-action svg{ width: 12px; height: 12px; }

/* Inline reply/forward form — раскрывается под сообщением */
.app-inline-form{
  margin: -8px 22px 22px;
  background: #0a0c14;
  border: 1px solid #1c2030;
  border-radius: 10px;
  overflow: hidden;
}
.app-inline-form__head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d1018;
  border-bottom: 1px solid #1c2030;
}
.app-inline-form__title{
  font-size: 11.5px;
  font-weight: 700;
  color: #f0f2fa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-inline-form__title svg{ width: 12px; height: 12px; color: #c4b5fd; }
.app-inline-form__close{
  margin-left: auto;
  width: 22px; height: 22px;
  background: transparent;
  border: none;
  color: #6e7691;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.app-inline-form__close:hover{ background: #14182a; color: #f0f2fa; }
.app-inline-form__close svg{ width: 12px; height: 12px; }

.app-inline-form__row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #14182a;
  font-size: 11.5px;
}
.app-inline-form__row-lbl{
  color: #6e7691;
  width: 52px;
  flex-shrink: 0;
}
.app-inline-form__row-pick{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #14182a;
  border: 1px solid #1c2030;
  border-radius: 5px;
  color: #f0f2fa;
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
}
.app-inline-form__row-pick:hover{ border-color: rgba(196,181,253,0.32); }
.app-inline-form__row-pick svg{ width: 10px; height: 10px; color: #8b94ac; }
.app-inline-form__row-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3fb950;
}
.app-inline-form__row-to{
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f2fa;
  font-size: 11.5px;
  font-family: inherit;
}
.app-inline-form__row-to::placeholder{ color: #6e7691; }

.app-inline-form__body{
  padding: 12px 14px;
}
.app-inline-form__txt{
  width: 100%;
  min-height: 90px;
  background: transparent;
  border: none;
  outline: none;
  color: #e8eaf2;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
  padding: 0;
}
.app-inline-form__txt::placeholder{ color: #6e7691; }

.app-inline-form__foot{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid #14182a;
  background: #0d1018;
}
.app-inline-form__chip{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #1c2030;
  border-radius: 5px;
  color: #8b94ac;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}
.app-inline-form__chip:hover{
  background: rgba(196,181,253,0.08);
  color: #c4b5fd;
  border-color: rgba(196,181,253,0.32);
}
.app-inline-form__chip svg{ width: 11px; height: 11px; }

.app-inline-form__send{
  margin-left: auto;
  padding: 6px 14px;
  background: #f0f2fa;
  color: #0a0c14;
  border: none;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.app-inline-form__send:hover{ background: #fff; }


/* Conversation padding fix — убрать stage-bar/crm-link/head из секции */
.app-inbox-view__conv{ padding-top: 8px; }


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.3 — Yandex/Apple Mail/Gmail open thread layout
   ═══════════════════════════════════════════════════════════════════ */

/* Top toolbar — ТОЛЬКО действия */
.app-thread-toolbar{
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  background: #07090f;
  border-bottom: 1px solid #1c2030;
  flex-shrink: 0;
}
.app-thr-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #a8b1c5;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.app-thr-btn:hover{
  background: #14182a;
  color: #f0f2fa;
}
.app-thr-btn svg{ width: 14px; height: 14px; }
.app-thr-btn--primary{
  color: #f0f2fa;
  font-weight: 700;
}
.app-thr-btn--icon{
  padding: 7px;
  width: 30px;
  justify-content: center;
}
.app-thread-toolbar__sep{
  width: 1px;
  height: 18px;
  background: #1c2030;
  margin: 0 4px;
}
.app-thread-toolbar__spacer{ flex: 1; }
.app-thread-toolbar__nav{
  font-size: 11.5px;
  color: #6e7691;
}

/* BIG subject + CRM-chip */
.app-thread-subject{
  padding: 18px 28px 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.app-thread-subject__h{
  flex: 1;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0;
}
.app-thread-chip{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(122,162,240,0.10);
  border: 1px solid rgba(122,162,240,0.32);
  border-radius: 12px;
  color: #7aa2f0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.app-thread-chip:hover{
  background: rgba(122,162,240,0.18);
  border-color: rgba(122,162,240,0.55);
}
.app-thread-chip svg{ width: 11px; height: 11px; }

/* Sender meta line — аватар + ФИО + кому + дата */
.app-thread-meta{
  padding: 10px 28px 18px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #1c2030;
}
.app-thread-meta__avatar{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.app-thread-meta__name{
  font-size: 14px;
  font-weight: 700;
  color: #f0f2fa;
  margin: 0 0 2px;
}
.app-thread-meta__sub{
  font-size: 12px;
  color: #8b94ac;
}
.app-thread-meta__sub b{ color: #a8b1c5; font-weight: 600; }
.app-thread-meta__time{
  font-size: 12px;
  color: #8b94ac;
  text-align: right;
  white-space: nowrap;
}

/* Body — основной текст письма, тёмный фон, как в Apple Mail */
.app-thread-body{
  padding: 24px 28px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #d8dde8;
}
.app-thread-body p{ margin: 0 0 14px; }
.app-thread-body p:last-child{ margin: 0; }
.app-thread-body b, .app-thread-body strong{ color: #f0f2fa; font-weight: 700; }
.app-thread-body__sig{
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #1c2030;
  font-size: 12px;
  color: #8b94ac;
  line-height: 1.55;
}

/* AI badge — компакт */
.app-thread-ai{
  margin: 0 28px 18px;
  padding: 9px 12px;
  background: rgba(110,231,215,0.06);
  border: 1px solid rgba(110,231,215,0.18);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: #a8b1c5;
}
.app-thread-ai svg{ width: 12px; height: 12px; color: #6ee7d7; flex-shrink: 0; }
.app-thread-ai b{ color: #f0f2fa; font-weight: 700; }

/* Previous messages in thread — compact stubs (Apple Mail style) */
.app-thread-prev{
  border-top: 1px solid #1c2030;
  padding: 10px 28px 24px;
}
.app-thread-prev__h{
  font-size: 10.5px;
  font-weight: 700;
  color: #6e7691;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-thread-prev__h-c{
  font-size: 10px;
  background: rgba(139,148,172,0.14);
  color: #8b94ac;
  padding: 1.5px 6px;
  border-radius: 6px;
  letter-spacing: 0;
}
.app-thread-prev-row{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.12s;
}
.app-thread-prev-row:hover{ background: #0d1018; }
.app-thread-prev-row__avatar{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.app-thread-prev-row__txt{ min-width: 0; }
.app-thread-prev-row__top{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 1px;
}
.app-thread-prev-row__from{ color: #f0f2fa; font-weight: 600; }
.app-thread-prev-row__subj{ color: #6e7691; }
.app-thread-prev-row__preview{
  font-size: 11.5px;
  color: #8b94ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-thread-prev-row__time{
  font-size: 11px;
  color: #6e7691;
  white-space: nowrap;
}

/* Container holds scrollable body */
.app-thread-scroll{
  flex: 1;
  overflow-y: auto;
  background: #07090f;
}


/* ═══════════════════════════════════════════════════════════════════
   INBOX v4.5 — Adaptive smart-tabs (column layout при узкой колонке)
   ═══════════════════════════════════════════════════════════════════ */
.app-inbox-list{
  container-type: inline-size;
  container-name: inboxlist;
}

/* Узкая колонка (< 380px) — табы становятся column: icon сверху, число, label */
@container inboxlist (max-width: 380px){
  .app-smart-tab{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
    padding: 8px 4px;
    row-gap: 2px;
  }
  .app-smart-tab__ico{
    grid-row: 1;
    grid-column: 1;
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
  }
  .app-smart-tab__ico svg{ width: 13px; height: 13px; }
  .app-smart-tab__c{
    grid-row: 2;
    grid-column: 1;
    font-size: 14px;
  }
  .app-smart-tab__lbl{
    grid-row: 3;
    grid-column: 1;
    font-size: 9px;
    letter-spacing: 0.3px;
  }
}

/* Совсем узкая (< 280px) — только icon + число, label прячется */
@container inboxlist (max-width: 280px){
  .app-smart-tabs{ gap: 4px; padding: 8px; }
  .app-smart-tab{ padding: 6px 2px; }
  .app-smart-tab__lbl{ display: none; }
  .app-smart-tab__c{ font-size: 12.5px; }
}

/* ════════════════════════════════════════════════════════════════════════
   CRM KANBAN v1 — /app/crm.html
   GitHub-tone, 5 stage columns, horizontal scroll, drag-n-drop ready
   ════════════════════════════════════════════════════════════════════════ */

.app-crm-tools{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px 14px;
  border-bottom: 1px solid #21262d;
  background: #0d1117;
  flex-wrap: wrap;
}
.app-crm-tools__left{ display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.app-crm-tools__h1{
  margin: 0; font-size: 20px; font-weight: 700;
  font-family: 'Manrope', sans-serif; color: #e6edf3; letter-spacing: -0.01em;
}
.app-crm-tools__count{
  font-size: 12.5px; color: #7d8590; font-variant-numeric: tabular-nums;
}
.app-crm-tools__right{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.app-crm-filter{
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #161b22; border: 1px solid #30363d; border-radius: 6px;
  color: #c9d1d9; font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.app-crm-filter:hover{ background: #21262d; border-color: #484f58; }
.app-crm-filter svg{ width: 13px; height: 13px; color: #7d8590; }
.app-crm-filter b{ color: #e6edf3; font-weight: 600; margin-left: 2px; }

/* ───── Board (horizontal scroll) ───── */
.app-crm-board{
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(296px, 1fr);
  gap: 14px;
  padding: 16px 24px 24px;
  overflow-x: auto;
  align-items: start;
  background: #0d1117;
  height: calc(100vh - 56px - 67px); /* topbar + tools */
  min-height: 560px;
}
.app-crm-board::-webkit-scrollbar{ height: 10px; }
.app-crm-board::-webkit-scrollbar-track{ background: #0d1117; }
.app-crm-board::-webkit-scrollbar-thumb{ background: #30363d; border-radius: 5px; }
.app-crm-board::-webkit-scrollbar-thumb:hover{ background: #484f58; }

/* ───── Column ───── */
.app-crm-col{
  display: flex; flex-direction: column;
  background: #0f141a;
  border: 1px solid #21262d;
  border-radius: 8px;
  max-height: 100%;
  min-height: 200px;
}
.app-crm-col__head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #21262d;
}
.app-crm-col__head-l{ display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-crm-col__dot{
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.app-crm-col__name{
  font-size: 13px; font-weight: 600; color: #e6edf3;
  letter-spacing: -0.005em;
}
.app-crm-col__count{
  font-size: 11.5px; color: #7d8590; font-variant-numeric: tabular-nums;
  background: #161b22; border: 1px solid #21262d;
  padding: 1px 6px; border-radius: 999px;
}
.app-crm-col__add{
  width: 22px; height: 22px; border-radius: 4px;
  background: transparent; border: none; color: #7d8590;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s, color .12s;
}
.app-crm-col__add svg{ width: 13px; height: 13px; }
.app-crm-col__add:hover{ background: #21262d; color: #e6edf3; }

.app-crm-col__sum{
  font-size: 11.5px; color: #7d8590;
  padding: 6px 12px 10px;
  border-bottom: 1px solid #21262d;
  font-variant-numeric: tabular-nums;
}
.app-crm-col__sum--win{ color: #56d364; }

.app-crm-col__body{
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}
.app-crm-col__body::-webkit-scrollbar{ width: 6px; }
.app-crm-col__body::-webkit-scrollbar-thumb{ background: #21262d; border-radius: 3px; }
.app-crm-col__body::-webkit-scrollbar-thumb:hover{ background: #30363d; }

.app-crm-col__more{
  background: transparent; border: 1px dashed #30363d;
  color: #7d8590; font-size: 12px; font-family: inherit;
  padding: 8px; border-radius: 6px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.app-crm-col__more:hover{
  background: #161b22; border-color: #484f58; color: #c9d1d9;
}

/* ───── Card ───── */
.app-crm-card{
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: grab;
  transition: border-color .12s, transform .12s, box-shadow .12s;
  position: relative;
}
.app-crm-card:hover{
  border-color: #484f58;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.app-crm-card:active{ cursor: grabbing; }

/* stage tints (left border accent) */
.app-crm-card{ border-left: 3px solid #3b82f6; } /* default = new */
.app-crm-card--warm{ border-left-color: #f59e0b; }
.app-crm-card--hot{ border-left-color: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,0.12); }
.app-crm-card--meet{ border-left-color: #a78bfa; }
.app-crm-card--won{ border-left-color: #56d364; }
.app-crm-card--lost{ border-left-color: #6e7681; opacity: .72; }

.app-crm-card__top{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.app-crm-card__co{
  font-size: 13px; font-weight: 600; color: #e6edf3;
  line-height: 1.3; letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.app-crm-card__amount{
  font-size: 12px; font-weight: 600; color: #c9d1d9;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.app-crm-card__amount--won{ color: #56d364; }
.app-crm-card__amount--lost{ color: #6e7681; }

.app-crm-card__lp{
  font-size: 11.5px; color: #8b949e;
  margin-bottom: 8px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.app-crm-card__quote{
  margin: 0 0 8px;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid #30363d;
  background: #0d1117;
  border-radius: 0 4px 4px 0;
  font-size: 12px; line-height: 1.45; color: #c9d1d9;
  font-style: normal;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}

.app-crm-card__tags{
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 8px;
}

.app-crm-tag{
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 3px;
  background: #21262d; color: #c9d1d9; border: 1px solid #30363d;
  letter-spacing: 0.01em;
}
.app-crm-tag--hot{ background: rgba(248,81,73,0.12); color: #f85149; border-color: rgba(248,81,73,0.32); }
.app-crm-tag--call{ background: rgba(34,197,94,0.12); color: #56d364; border-color: rgba(34,197,94,0.32); }
.app-crm-tag--price{ background: rgba(59,130,246,0.12); color: #79c0ff; border-color: rgba(59,130,246,0.32); }
.app-crm-tag--kp{ background: rgba(245,158,11,0.12); color: #d4a572; border-color: rgba(245,158,11,0.32); }
.app-crm-tag--meet{ background: rgba(167,139,250,0.12); color: #c4b5fd; border-color: rgba(167,139,250,0.32); }
.app-crm-tag--won{ background: rgba(86,211,100,0.14); color: #56d364; border-color: rgba(86,211,100,0.36); }
.app-crm-tag--lost{ background: #21262d; color: #8b949e; border-color: #30363d; }

.app-crm-card__foot{
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #21262d;
  font-size: 11px; color: #7d8590;
}
.app-crm-card__src{
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.app-crm-card__time{
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.app-crm-card__owner{
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
  letter-spacing: 0; line-height: 1;
}

/* Responsive: на узком экране колонки уже */
@media (max-width: 1024px){
  .app-crm-board{ grid-auto-columns: minmax(260px, 1fr); padding: 12px; gap: 10px; }
  .app-crm-tools{ padding: 14px 16px 12px; }
  .app-crm-tools__h1{ font-size: 18px; }
}
@media (max-width: 640px){
  .app-crm-board{ grid-auto-columns: 88vw; }
  .app-crm-tools__right{ width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .app-crm-tools__right::-webkit-scrollbar{ display: none; }
}

/* ───── CRM Interactive (drag, rename, add column) ───── */
.app-crm-card{ user-select: none; }
.app-crm-card.is-dragging{ opacity: .4; transform: rotate(1.5deg) scale(1.02); cursor: grabbing; }
.app-crm-col__body.drop-target{
  background: rgba(167,139,250,0.06);
  outline: 2px dashed #a78bfa; outline-offset: -4px;
  border-radius: 6px;
}
.app-crm-col__name{ cursor: pointer; }
.app-crm-col__name:hover{ color: #fff; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.app-crm-col__name.editing{
  background: #0d1117; border-radius: 3px; padding: 1px 6px;
  outline: 1px solid #a78bfa; cursor: text;
  text-decoration: none;
}
.app-crm-col__dot{ cursor: pointer; transition: transform .12s; }
.app-crm-col__dot:hover{ transform: scale(1.5); }

.app-crm-add-col{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-width: 200px; min-height: 200px;
  background: transparent; border: 2px dashed #30363d; border-radius: 8px;
  color: #7d8590; font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer; align-self: start;
  transition: background .12s, border-color .12s, color .12s;
}
.app-crm-add-col svg{ width: 22px; height: 22px; }
.app-crm-add-col:hover{ background: #161b22; border-color: #484f58; color: #e6edf3; }

.app-crm-hint{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 24px; background: rgba(167,139,250,0.08);
  border-bottom: 1px solid rgba(167,139,250,0.2);
  font-size: 12px; color: #c4b5fd;
}
.app-crm-hint svg{ width: 14px; height: 14px; flex-shrink: 0; }
.app-crm-hint kbd{
  background: #21262d; border: 1px solid #30363d; border-radius: 3px;
  padding: 0 5px; font-size: 11px; color: #e6edf3;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.app-crm-hint__close{
  margin-left: auto; background: none; border: none; color: #7d8590;
  cursor: pointer; padding: 2px 6px; border-radius: 3px;
}
.app-crm-hint__close:hover{ background: #21262d; color: #e6edf3; }

/* ═════════════════════════ CRM ↔ INBOX LINK ═════════════════════════ */

/* ───── Stage chip (Inbox subject + popover trigger) ───── */
.app-thread-chip{ cursor: pointer; position: relative; }
.app-thread-chip--unassigned{
  background: rgba(126,134,151,0.10);
  border-color: rgba(126,134,151,0.32);
  color: #a8b1c5;
}
.app-thread-chip--unassigned:hover{
  background: rgba(126,134,151,0.18);
  border-color: rgba(126,134,151,0.55);
}
.app-thread-chip__stage-dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #7aa2f0; flex-shrink: 0;
}

/* ───── Stage popover (reused by chip and toolbar btn) ───── */
.app-stage-popover{
  position: absolute;
  z-index: 1000;
  min-width: 240px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  padding: 6px;
  font-family: 'Manrope', sans-serif;
  animation: stagePopIn .12s ease-out;
}
@keyframes stagePopIn{
  from{ opacity: 0; transform: translateY(-4px); }
  to  { opacity: 1; transform: translateY(0); }
}
.app-stage-popover__head{
  padding: 8px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7681;
}
.app-stage-popover__opt{
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: none; border: none;
  text-align: left;
  color: #e6edf3;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
}
.app-stage-popover__opt:hover{ background: #21262d; }
.app-stage-popover__opt.is-current{ background: rgba(122,162,240,0.10); color: #7aa2f0; }
.app-stage-popover__opt-dot{
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.app-stage-popover__opt-tick{
  margin-left: auto; width: 14px; height: 14px; opacity: 0;
}
.app-stage-popover__opt.is-current .app-stage-popover__opt-tick{ opacity: 1; }
.app-stage-popover__sep{
  height: 1px; background: #21262d; margin: 4px 0;
}
.app-stage-popover__foot{
  display: flex; gap: 6px; padding: 4px;
}
.app-stage-popover__action{
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 10px;
  background: #1c2030;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .12s;
}
.app-stage-popover__action:hover{ background: #21262d; border-color: #484f58; color: #e6edf3; }
.app-stage-popover__action svg{ width: 13px; height: 13px; }
.app-stage-popover__action--ghost{
  flex: 0 0 auto;
  background: none; border-color: transparent;
  color: #6e7681;
}
.app-stage-popover__action--ghost:hover{ color: #f85149; background: rgba(248,81,73,0.08); }

/* ───── Toolbar "В сделку" button ───── */
.app-thr-btn--into-deal{
  margin-left: 4px;
  color: #c4b5fd;
  border-color: rgba(196,181,253,0.32);
  background: rgba(167,139,250,0.06);
}
.app-thr-btn--into-deal:hover{
  background: rgba(167,139,250,0.14);
  border-color: rgba(196,181,253,0.55);
  color: #e6edf3;
}

/* ───── Thread list: tiny CRM stage dot near tags ───── */
.app-inbox-mini-chip--crm{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 5px 0 4px;
  background: rgba(122,162,240,0.10);
  border: 1px solid rgba(122,162,240,0.25);
  color: #a8b1c5;
}
.app-inbox-mini-chip--crm .app-inbox-mini-chip__dot{
  width: 6px; height: 6px; border-radius: 50%; background: #7aa2f0;
}

/* ───── CRM card extras (mail count + open button) ───── */
.app-crm-card{ position: relative; }
.app-crm-card__msgs{
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: #7d8590;
  margin-right: 6px;
}
.app-crm-card__msgs svg{ width: 11px; height: 11px; }
.app-crm-card__msgs:hover{ color: #c4b5fd; }
.app-crm-card__open{
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,17,23,0.85);
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #7d8590;
  opacity: 0;
  cursor: pointer;
  transition: all .12s;
  pointer-events: none;
}
.app-crm-card:hover .app-crm-card__open{
  opacity: 1;
  pointer-events: auto;
}
.app-crm-card__open:hover{
  background: #21262d;
  color: #c4b5fd;
  border-color: #484f58;
}
.app-crm-card__open svg{ width: 12px; height: 12px; }
.app-crm-card.is-open{
  box-shadow: 0 0 0 2px rgba(122,162,240,0.55), 0 4px 14px rgba(0,0,0,0.4);
}

/* ───── Right detail drawer ───── */
.app-crm-detail-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.app-crm-detail-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.app-crm-detail-drawer{
  position: fixed;
  top: 0; right: 0;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: #0d1117;
  border-left: 1px solid #30363d;
  box-shadow: -16px 0 48px rgba(0,0,0,0.6);
  z-index: 999;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
}
.app-crm-detail-drawer.is-open{ transform: translateX(0); }

.app-crm-detail__head{
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #21262d;
  background: #0d1117;
}
.app-crm-detail__stage-pill{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(122,162,240,0.10);
  border: 1px solid rgba(122,162,240,0.32);
  border-radius: 12px;
  color: #7aa2f0;
  font-size: 11px;
  font-weight: 700;
}
.app-crm-detail__stage-pill-dot{
  width: 7px; height: 7px; border-radius: 50%; background: #7aa2f0;
}
.app-crm-detail__head-spacer{ flex: 1; }
.app-crm-detail__head-btn{
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent;
  border-radius: 6px;
  color: #7d8590;
  cursor: pointer;
  transition: all .12s;
}
.app-crm-detail__head-btn:hover{
  background: #161b22; border-color: #30363d; color: #e6edf3;
}
.app-crm-detail__head-btn svg{ width: 14px; height: 14px; }

.app-crm-detail__body{
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 24px;
}
.app-crm-detail__body::-webkit-scrollbar{ width: 6px; }
.app-crm-detail__body::-webkit-scrollbar-thumb{ background: #21262d; border-radius: 3px; }

.app-crm-detail__co{
  font-size: 18px;
  font-weight: 800;
  color: #f0f2fa;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.app-crm-detail__amount{
  font-size: 24px;
  font-weight: 700;
  color: #7aa2f0;
  font-variant-numeric: tabular-nums;
}
.app-crm-detail__amount--won{ color: #56d364; }
.app-crm-detail__amount--lost{ color: #6e7681; }
.app-crm-detail__sub{
  font-size: 12px;
  color: #7d8590;
  margin-top: 6px;
}
.app-crm-detail__sub b{ color: #c9d1d9; font-weight: 600; }

.app-crm-detail__sec{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #21262d;
}
.app-crm-detail__sec-h{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7681;
  margin-bottom: 10px;
}
.app-crm-detail__sec-h a{
  font-size: 11px; color: #c4b5fd; text-decoration: none;
  text-transform: none; letter-spacing: 0;
  font-weight: 600;
}
.app-crm-detail__sec-h a:hover{ color: #e6edf3; text-decoration: underline; }

/* Contact card */
.app-crm-detail__contact{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
}
.app-crm-detail__contact-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.app-crm-detail__contact-name{
  font-size: 13px; font-weight: 700; color: #e6edf3;
}
.app-crm-detail__contact-role{
  font-size: 11px; color: #7d8590; margin-top: 2px;
}
.app-crm-detail__contact-action{
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #21262d; border: none; border-radius: 6px;
  color: #c4b5fd;
  cursor: pointer;
}
.app-crm-detail__contact-action:hover{ background: #30363d; color: #e6edf3; }
.app-crm-detail__contact-action svg{ width: 13px; height: 13px; }

/* Mail thread preview */
.app-crm-detail__msg{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
}
.app-crm-detail__msg + .app-crm-detail__msg{
  border-top: 1px solid #21262d;
  border-radius: 0;
}
.app-crm-detail__msg:hover{ background: #161b22; }
.app-crm-detail__msg-avatar{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  background: #1c2030;
}
.app-crm-detail__msg-body{ min-width: 0; }
.app-crm-detail__msg-from{
  font-size: 12px; font-weight: 600; color: #e6edf3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-crm-detail__msg-preview{
  font-size: 11px; color: #7d8590; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-crm-detail__msg-time{
  font-size: 10px; color: #6e7681; white-space: nowrap;
}
.app-crm-detail__msg--out .app-crm-detail__msg-avatar{
  background: #1c2030; color: #a8b1c5;
}
.app-crm-detail__msg--in .app-crm-detail__msg-avatar{
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

/* Tags row */
.app-crm-detail__tags{
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* Action bar in drawer */
.app-crm-detail__actions{
  display: flex; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #21262d;
  background: #0d1117;
}
.app-crm-detail__actions .app-btn{
  flex: 1; justify-content: center;
}

/* Quote in drawer (latest msg highlight) */
.app-crm-detail__quote{
  padding: 12px 14px;
  background: rgba(167,139,250,0.06);
  border-left: 3px solid #a78bfa;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #e6edf3;
  font-style: italic;
  margin-top: 8px;
}

/* Toast (when card created from email) */
.app-toast{
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: auto;
  max-width: min(640px, calc(100vw - 32px));
  background: linear-gradient(180deg, #181d27 0%, #14181f 100%);
  border: 1px solid #2a3046;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(167,139,250,0.06) inset;
  z-index: 1100;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #e6edf3;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}
.app-toast > span:nth-of-type(2){
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-toast.is-open{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.app-toast__icon{
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(86,211,100,0.16);
  border-radius: 50%;
  color: #56d364;
  box-shadow: 0 0 0 1px rgba(86,211,100,0.22), 0 0 18px rgba(86,211,100,0.18);
}
.app-toast__icon svg{ width: 15px; height: 15px; }
.app-toast__action{
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(167,139,250,0.22) 0%, rgba(167,139,250,0.12) 100%);
  border: 1px solid rgba(167,139,250,0.40);
  border-radius: 8px;
  color: #d6c9ff;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.app-toast__action:hover{
  background: linear-gradient(180deg, rgba(167,139,250,0.32) 0%, rgba(167,139,250,0.20) 100%);
  color: #f4f0ff;
  transform: translateY(-1px);
}
.app-toast__close{
  flex: 0 0 auto;
  background: none; border: none; color: #6e7681;
  font-size: 18px; line-height: 1; cursor: pointer;
  padding: 2px 4px; margin-left: 2px;
  transition: color .15s ease;
}
.app-toast__close:hover{ color: #e6edf3; }

/* ═════════════════════════ STAGE-COLORED COLUMN HEADS ═════════════════════════ */
/* JS пробрасывает --stage-color на .app-crm-col из цвета dot */
.app-crm-col{ --stage-color: #7aa2f0; }

.app-crm-col__head{
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--stage-color) 38%, transparent) 0%,
    color-mix(in srgb, var(--stage-color) 16%, transparent) 100%);
  border-top: 3px solid var(--stage-color);
  border-bottom: 1px solid color-mix(in srgb, var(--stage-color) 32%, #21262d);
  border-radius: 5px 5px 0 0;
  padding: 12px 14px 10px;
}
.app-crm-col__head .app-crm-col__dot{
  width: 9px; height: 9px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}
.app-crm-col__head .app-crm-col__name{
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  letter-spacing: 0.005em;
}
.app-crm-col__head .app-crm-col__count{
  background: rgba(0,0,0,0.42);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--stage-color) 55%, transparent);
  font-weight: 700;
  padding: 1px 8px;
}
.app-crm-col__head .app-crm-col__add{
  color: rgba(255,255,255,0.78);
}
.app-crm-col__head .app-crm-col__add:hover{
  background: rgba(0,0,0,0.32);
  color: #ffffff;
}

.app-crm-col__sum{
  background: color-mix(in srgb, var(--stage-color) 7%, transparent);
}

/* Card gets a subtle stage tint so cards in different columns feel distinct */
.app-crm-card{
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--stage-color) 7%, transparent) 0%,
      transparent 28%),
    #181d24;
  border-color: color-mix(in srgb, var(--stage-color) 18%, #30363d);
}
.app-crm-card:hover{
  border-color: color-mix(in srgb, var(--stage-color) 45%, #484f58);
}
.app-crm-card{ border-left-width: 4px; }
.app-crm-card__co{
  color: #f6f8fb;
}

/* Empty / new stage column fallback when JS hasn't run yet */
.app-crm-col[data-stage^="custom-"]{ --stage-color: #79c0ff; }

/* ═════════════════════════ DRAWER SIMPLIFIED (mail-first) ═════════════════════════ */
.app-crm-detail__lead{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.app-crm-detail__lead .app-crm-detail__co{
  margin-bottom: 0;
  font-size: 17px;
}
.app-crm-detail__lead .app-crm-detail__amount{
  font-size: 18px;
  font-weight: 700;
}
.app-crm-detail__sub{
  margin-top: 6px;
  line-height: 1.5;
  font-size: 12px;
  color: #8b95a8;
}
.app-crm-detail__sub b{
  color: #e6edf3;
  font-weight: 700;
}
.app-crm-detail__msg-subj{
  font-size: 12px;
  color: #c9d1d9;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-crm-detail__msg-from{
  color: #8b95a8;
  font-weight: 500;
  font-size: 11px;
}
.app-crm-detail__msg--out .app-crm-detail__msg-from{
  color: #6e7681;
}
.app-crm-detail__msg-preview{
  margin-top: 3px;
}

/* Inline reply */
.app-crm-detail__sec--reply{
  padding-top: 14px;
}
.app-crm-detail__reply{
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.app-crm-detail__reply:focus-within{
  border-color: #7aa2f0;
  box-shadow: 0 0 0 2px rgba(122,162,240,0.18);
}
.app-crm-detail__reply-text{
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 70px;
  padding: 10px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #e6edf3;
  line-height: 1.5;
}
.app-crm-detail__reply-text::placeholder{ color: #6e7681; }
.app-crm-detail__reply-foot{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid #21262d;
  background: #0f141a;
}
.app-crm-detail__reply-tpl{
  display: inline-flex; align-items: center; gap: 5px;
  background: #1c2030;
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  cursor: pointer;
  font-family: inherit;
}
.app-crm-detail__reply-tpl:hover{ background: #21262d; color: #e6edf3; }
.app-crm-detail__reply-tpl svg{ width: 11px; height: 11px; }
.app-crm-detail__reply-from{
  flex: 1;
  font-size: 11px;
  color: #6e7681;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-crm-detail__reply-from b{ color: #c9d1d9; font-weight: 600; }
.app-crm-detail__reply-send{
  flex-shrink: 0;
}

/* ═════ CRM drawer · popover + send · 2026-05-31 ═════ */
.app-crm-detail__reply-tpl-caret{
  width: 10px; height: 10px;
  margin-left: 1px;
  opacity: 0.7;
}
.app-stage-popover--tpl{
  min-width: 240px;
}
.app-stage-popover--tpl .app-stage-popover__opt{
  font-size: 12.5px;
}
.app-stage-popover__opt-icon{
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: rgba(167,139,250,0.14);
  color: #c4b5fd;
  flex-shrink: 0;
}
.app-stage-popover__opt-icon svg{ width: 11px; height: 11px; }
.app-crm-detail__msg--just-sent{
  animation: crmMsgIn .5s cubic-bezier(.4,0,.2,1) both;
}
@keyframes crmMsgIn{
  0%   { opacity: 0; transform: translateY(-4px); background: rgba(86,211,100,0.10); }
  60%  { opacity: 1; background: rgba(86,211,100,0.10); }
  100% { opacity: 1; transform: translateY(0); background: transparent; }
}

/* ════════════════════════════════════════════════════════════════════
   Lidly v1 — shared components for product screens (frontend agent)
   Built on theme-aware semantic vars so they work in dark + paper themes.
   Prefix: lw-  (lidly widgets)
   ════════════════════════════════════════════════════════════════════ */

/* — danger / outline button variants (complement existing app-btn) — */
.app-btn--danger{
  background: var(--danger); color: #fff; border-color: transparent;
}
.app-btn--danger:hover{ filter: brightness(0.93); }
.app-btn--danger-ghost{
  background: transparent; color: var(--danger);
  border: 1px solid var(--danger-soft, rgba(220,38,38,0.3));
}
.app-btn--danger-ghost:hover{ background: var(--danger-soft, rgba(220,38,38,0.12)); }

/* — horizontal stepper — */
.lw-stepper{ display:flex; align-items:center; gap:0; margin:0 0 28px; }
.lw-step{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.lw-step__num{
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700;
  background: var(--bg-sunken, #f0f0f0); color: var(--text-muted);
  border:1.5px solid var(--border);
  transition: all .18s ease;
}
.lw-step__label{ font-size:13px; font-weight:600; color: var(--text-muted); white-space:nowrap; }
.lw-step__line{ flex:1 1 auto; height:1.5px; min-width:24px; margin:0 14px; background: var(--border); }
.lw-step--active .lw-step__num{ background: var(--accent); color:#fff; border-color: var(--accent); }
.lw-step--active .lw-step__label{ color: var(--text); }
.lw-step--done .lw-step__num{ background: var(--success); color:#fff; border-color: var(--success); }
.lw-step--done .lw-step__label{ color: var(--text); }

/* — dropzone drag-over state (works with existing bs-dropzone) — */
.bs-dropzone.lw-dropzone--over,
.lw-dropzone--over{ border:2px dashed var(--c-yellow, #FFE01B) !important; background: rgba(255,224,27,.08) !important; }

/* — progress bar — */
.lw-progress{ width:100%; height:10px; border-radius:6px; background: var(--bg-sunken, #eee); overflow:hidden; }
.lw-progress__fill{ height:100%; border-radius:6px; background: var(--accent); transition: width .3s ease; }
.lw-progress--green .lw-progress__fill{ background: var(--success); }

/* — stat card grid — */
.lw-stat-grid{ display:grid; gap:14px; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); margin-bottom:18px; }
.lw-stat{
  background: var(--bg-panel, #fff); border:1px solid var(--border); border-radius: var(--radius-lg, 10px);
  padding:16px 18px; display:flex; flex-direction:column; gap:4px;
}
.lw-stat__value{ font-size:26px; font-weight:800; color: var(--text); line-height:1.1; }
.lw-stat__label{ font-size:12px; font-weight:600; color: var(--text-muted); }
.lw-stat__sub{ font-size:11.5px; color: var(--text-subtle, #999); }

/* — segmented pill filters — */
.lw-seg{ display:inline-flex; flex-wrap:wrap; gap:6px; }
.lw-seg__btn{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  padding:6px 12px; border-radius:99px; font-size:12.5px; font-weight:600;
  background: transparent; color: var(--text-muted);
  border:1px solid var(--border); transition: all .15s ease;
}
.lw-seg__btn:hover{ background: var(--bg-sunken, #f3f3f3); }
.lw-seg__btn--active{ background: var(--accent); color:#fff; border-color: var(--accent); }
.lw-seg__count{ font-size:11px; opacity:.75; font-weight:700; }

/* — tabs — */
.lw-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:20px; flex-wrap:wrap; }
.lw-tab{
  padding:10px 16px; cursor:pointer; font-size:13.5px; font-weight:600;
  color: var(--text-muted); background:none; border:none; border-bottom:2px solid transparent;
  margin-bottom:-1px; transition: color .15s ease;
}
.lw-tab:hover{ color: var(--text); }
.lw-tab--active{ color: var(--accent); border-bottom-color: var(--accent); }

/* — live dot — */
.lw-live-dot{ width:8px; height:8px; border-radius:50%; background: var(--success); display:inline-block; }
.lw-live-dot--on{ animation: lwPulse 1.6s ease-in-out infinite; }
.lw-live-dot--off{ background: var(--text-subtle, #aaa); animation:none; }
@keyframes lwPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(45,122,58,.5); }
  50%{ box-shadow:0 0 0 6px rgba(45,122,58,0); }
}

/* — selection action bar — */
.lw-selbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; margin-bottom:12px; border-radius: var(--radius,6px);
  background: var(--accent-soft, #eef); border:1px solid var(--accent);
  font-size:13px; font-weight:600; color: var(--text);
}

/* — radio / checkbox selectable cards — */
.lw-pick{
  display:flex; align-items:center; gap:12px; cursor:pointer;
  padding:14px 16px; border:1.5px solid var(--border); border-radius: var(--radius-lg,10px);
  background: var(--bg-panel,#fff); transition: all .15s ease;
}
.lw-pick:hover{ border-color: var(--accent); }
.lw-pick--active{ border-color: var(--accent); background: var(--accent-soft, #eef); }
.lw-pick__radio{ width:18px; height:18px; border-radius:50%; border:2px solid var(--border); flex-shrink:0; position:relative; }
.lw-pick--active .lw-pick__radio{ border-color: var(--accent); }
.lw-pick--active .lw-pick__radio::after{ content:''; position:absolute; inset:3px; border-radius:50%; background: var(--accent); }
.lw-pick__body{ flex:1; min-width:0; }
.lw-pick__title{ font-size:13.5px; font-weight:700; color: var(--text); }
.lw-pick__meta{ font-size:12px; color: var(--text-muted); margin-top:2px; }

/* — sequence builder card — */
.lw-seq-card{
  border:1px solid var(--border); border-radius: var(--radius-lg,10px);
  background: var(--bg-panel,#fff); padding:16px; margin-bottom:4px;
}
.lw-seq-card--drag{ opacity:.5; }
.lw-seq-card__head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.lw-seq-grip{ cursor:grab; color: var(--text-subtle,#aaa); display:inline-flex; }
.lw-seq-grip:active{ cursor:grabbing; }
.lw-seq-delay{
  display:flex; align-items:center; gap:8px; justify-content:center;
  padding:8px 0; font-size:12px; font-weight:600; color: var(--text-muted);
}
.lw-seq-delay__badge{ padding:3px 10px; border-radius:99px; background: var(--bg-sunken,#f3f3f3); border:1px solid var(--border); }
.lw-var-chip{
  cursor:pointer; padding:3px 8px; border-radius:5px; font-size:11.5px; font-weight:600;
  background: var(--bg-sunken,#f3f3f3); border:1px solid var(--border); color: var(--text-muted);
}
.lw-var-chip:hover{ background: var(--accent-soft,#eef); color: var(--accent); border-color: var(--accent); }

/* — event feed — */
.lw-feed{ display:flex; flex-direction:column; gap:0; }
.lw-feed__item{
  display:flex; gap:12px; padding:14px 4px; border-bottom:1px solid var(--border);
  animation: lwFeedIn .35s ease both;
}
@keyframes lwFeedIn{ from{ opacity:0; transform:translateY(-6px);} to{ opacity:1; transform:translateY(0);} }
.lw-feed__icon{
  width:34px; height:34px; border-radius:8px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--accent-soft,#eef); color: var(--accent);
}
.lw-feed__icon--hot{ background: rgba(184,92,0,.12); color: var(--warning); }
.lw-feed__icon--reply{ background: var(--success-soft,#e6f2e8); color: var(--success); }
.lw-feed__body{ flex:1; min-width:0; }
.lw-feed__title{ font-size:13.5px; font-weight:700; color: var(--text); }
.lw-feed__meta{ font-size:12px; color: var(--text-muted); margin-top:2px; }
.lw-feed__time{ font-size:11.5px; color: var(--text-subtle,#999); white-space:nowrap; }

/* — hot contact card — */
.lw-hot{
  display:flex; align-items:center; gap:12px; padding:12px 14px;
  border:1px solid var(--border); border-left:3px solid var(--warning);
  border-radius: var(--radius,6px); background: var(--bg-panel,#fff); margin-bottom:8px;
}
.lw-hot__avatar{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--warning); color:#fff; font-size:13px; font-weight:700;
}

/* — health score ring — */
.lw-score{ position:relative; display:inline-flex; align-items:center; justify-content:center; }
.lw-score__num{ position:absolute; font-size:20px; font-weight:800; }

/* — checklist (DKIM/SPF...) — */
.lw-check-line{ display:flex; align-items:center; gap:8px; padding:7px 0; font-size:13px; border-bottom:1px solid var(--border); }
.lw-check-line__ico{ width:18px; height:18px; flex-shrink:0; }
.lw-check-line__ok{ color: var(--success); }
.lw-check-line__bad{ color: var(--danger); }

/* — small inline spinner — */
.lw-spin{ width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; display:inline-block; animation: lwSpin .7s linear infinite; vertical-align:-2px; }
@keyframes lwSpin{ to{ transform: rotate(360deg); } }

/* — simple card wrapper — */
.lw-card{ background: var(--bg-panel,#fff); border:1px solid var(--border); border-radius: var(--radius-lg,10px); padding:20px; margin-bottom:16px; }
.lw-card__title{ font-size:15px; font-weight:700; color: var(--text); margin:0 0 4px; }
.lw-card__sub{ font-size:12.5px; color: var(--text-muted); margin:0 0 16px; }

/* — labeled field — */
.lw-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.lw-field__label{ font-size:12.5px; font-weight:600; color: var(--text); }
.lw-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.lw-muted{ color: var(--text-muted); }
.lw-mono{ font-family:'JetBrains Mono', monospace; }

/* ════════════════════════════════════════════════════════════════════
   Responsive layer (TZ §11) — desktop-first, tablet icons, mobile drawer+bottomnav
   ════════════════════════════════════════════════════════════════════ */

/* mobile bottom nav — hidden on desktop */
.app-bottomnav{ display:none; }

/* ── Tablet 768–1180: auto icon-only sidebar ── */
@media (max-width: 1180px) {
  .app-shell{ grid-template-columns: 64px minmax(0, 1fr); }
  .app-side{ padding: 18px 6px 12px; }
  .app-side__brand{ justify-content:center; padding:0; margin-bottom:18px; }
  .app-side__brand .auth-logo-text{ display:none; }
  .app-side__group-title{ display:none; }
  .app-side__item{ justify-content:center; padding:10px 0; position:relative; }
  .app-side__item-label{ display:none; }
  .app-side__item-pill{ position:absolute; top:4px; right:8px; padding:1px 5px; font-size:9px; min-width:0; border-radius:7px; }
  .app-side__user-info{ display:none; }
  .app-side__user{ justify-content:center; padding:8px 0; }
  .app-side__collapse{ display:none; }
}

/* ── Mobile ≤768: hide sidebar, show bottom nav ── */
@media (max-width: 768px) {
  .app-shell{ grid-template-columns: 1fr; }
  .app-side{ display:none; }
  .app-resizer{ display:none; }
  .app-main{ padding-bottom: 64px; }       /* room for bottom nav */
  .app-topbar__search-kbd{ display:none; }
  .app-page{ padding-left:14px; padding-right:14px; }

  /* compact stepper: numbers only */
  .lw-step__label{ display:none; }
  .lw-stepper{ margin-bottom:20px; }

  /* tabs scroll horizontally instead of wrapping */
  .lw-tabs{ flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .lw-tab{ white-space:nowrap; }

  /* stack any 2-col grid used in new screens */
  .app-dash-grid{ grid-template-columns:1fr; }

  /* bottom nav bar */
  .app-bottomnav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:900;
    height:60px; background: var(--bg-panel,#fff); border-top:1px solid var(--border);
    box-shadow:0 -2px 12px rgba(0,0,0,.06);
  }
  .app-bottomnav__item{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    color: var(--text-muted); text-decoration:none; font-size:10px; font-weight:600; position:relative;
  }
  .app-bottomnav__item svg{ width:22px; height:22px; }
  .app-bottomnav__item--active{ color: var(--accent); }
  .app-bottomnav__dot{
    position:absolute; top:8px; right:50%; margin-right:-16px;
    width:7px; height:7px; border-radius:50%; background: var(--warning);
  }
}
