:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --surface-soft: #f7faff;
  --border: #d9e5f4;
  --text: #18324d;
  --muted: #617993;
  --accent: #2f6fec;
  --accent-soft: #dfeafe;
  --success: #1f8f5f;
  --warning: #b67a12;
  --danger: #c64747;
  --danger-soft: #fff1f1;
  --info: #3568c9;
  --shadow: 0 18px 45px rgba(24, 50, 77, 0.08);
  --radius: 18px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(47, 111, 236, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  padding: 28px 22px;
  background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%);
  border-right: 1px solid var(--border);
}

.brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.brand__logo {
  display: block;
  width: 72px;
  max-width: 72px;
  height: auto;
  object-fit: contain;
}

.brand__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.brand__title {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.brand p,
.page-header h2,
.section-header h3 {
  margin: 0;
}

.page-header h2,
.section-header h3 {
  margin: 0;
}

.page-header__text,
.section-header p,
.metric__label {
  margin: 0;
  color: var(--muted);
}

.menu {
  display: grid;
  gap: 10px;
}

.sidebar__quick-mail {
  width: 100%;
  min-height: 52px;
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(47, 111, 236, 0.22);
}

.sidebar__quick-mail-icon {
  width: 22px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu__item {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.menu__item-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu__item-icon {
  display: block;
  width: 30px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.menu__item-label {
  display: block;
}

.menu__item:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(217, 229, 244, 0.9);
}

.menu__item--active {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

html[data-initial-view="campaigns"] .menu__item[data-view="campaigns"],
html[data-initial-view="sites"] .menu__item[data-view="sites"],
html[data-initial-view="crm"] .menu__item[data-view="crm"],
html[data-initial-view="contacts"] .menu__item[data-view="contacts"],
html[data-initial-view="contacts"] .menu__item[data-view="sites"],
html[data-initial-view="sent"] .menu__item[data-view="sent"],
html[data-initial-view="sent"] .menu__item[data-view="letters"],
html[data-initial-view="letters"] .menu__item[data-view="letters"],
html[data-initial-view="suppression"] .menu__item[data-view="suppression"],
html[data-initial-view="suppression"] .menu__item[data-view="sites"],
html[data-initial-view="settings"] .menu__item[data-view="settings"] {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.content {
  min-width: 0;
  padding: 28px;
  overflow-x: hidden;
}

.page-header,
.section-header,
.actions,
.cards {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.page-header,
.section-header {
  align-items: flex-start;
  justify-content: space-between;
}

.page-header > *,
.section-header > * {
  min-width: 0;
}

.section-header {
  margin-bottom: 22px;
}

.dashboard {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.leads-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.leads-filter-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.suppression-import-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.preview-summary__toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-summary__side {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.suppression-import-accordion__item {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: none;
}

.suppression-import-accordion__item--active {
  border-color: rgba(57, 107, 255, 0.32);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(232, 240, 255, 0.96));
  box-shadow: 0 18px 32px rgba(24, 44, 94, 0.08);
}

.suppression-import-accordion__summary-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.suppression-import-accordion__summary-title {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.suppression-import-accordion__summary-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.suppression-import-accordion__content {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(217, 229, 244, 0.9);
  background: rgba(255, 255, 255, 0.66);
}

.suppression-import-accordion__content--panel {
  margin-top: -2px;
  margin-bottom: 18px;
  padding: 18px;
  border-top: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.suppression-import-panel,
.suppression-import-footer {
  width: 100%;
}

.suppression-import-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.actions {
  flex-wrap: wrap;
  margin: 0;
}

.cards {
  flex-wrap: wrap;
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(217, 229, 244, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.metric {
  min-width: 0;
  min-height: 152px;
  padding: 20px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric__value {
  display: block;
  margin-top: 12px;
  font-size: 32px;
}

.metric__hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.metric--error {
  border-color: rgba(198, 71, 71, 0.3);
  background: linear-gradient(180deg, #fff, var(--danger-soft));
}

.card--wide {
  padding: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.button:hover:not(:disabled) {
  border-color: rgba(47, 111, 236, 0.35);
  box-shadow: 0 10px 24px rgba(24, 50, 77, 0.08);
}

.button:disabled {
  cursor: not-allowed;
  color: #8ea2bb;
  background: #f2f6fb;
  border-color: #d7e0ee;
  opacity: 1;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #2f6fec, #4f8afe);
  border-color: transparent;
}

.button--primary:hover:not(:disabled) {
  border-color: transparent;
}

.button--ghost {
  background: transparent;
}

.button--danger {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.08);
  border-color: rgba(198, 71, 71, 0.18);
}

.button--danger-soft {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.12);
  border-color: rgba(198, 71, 71, 0.18);
}

.button--success-soft {
  color: var(--success);
  background: rgba(31, 143, 95, 0.12);
  border-color: rgba(31, 143, 95, 0.18);
}

.button--inline {
  padding: 10px 14px;
}

.button--icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.button--icon-compact {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.button__icon-image {
  width: 18px;
  height: 18px;
  display: block;
}

.button__icon-symbol {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.button__icon-spinner {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: loading-state-spin 0.8s linear infinite;
}

.button__label-with-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button--tooltip {
  position: relative;
}

.button--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 8;
  min-width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.3;
  display: none;
}

.button--tooltip:hover:not(:disabled)::after,
.button--tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.button--link {
  display: inline;
  min-height: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  justify-content: flex-start;
  vertical-align: baseline;
}

.button--link:hover:not(:disabled) {
  box-shadow: none;
}

.button--chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: #1f5fd6;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(126, 156, 214, 0.32);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
}

.button--chip-link:hover:not(:disabled) {
  color: #154eb5;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(95, 132, 201, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 8px 18px rgba(31, 72, 144, 0.12);
}

.contact-cell {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.sites-table__status-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.status-warning-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #fff;
  background: #c64747;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: help;
}

.status-warning-indicator:focus-visible {
  outline: 2px solid rgba(198, 71, 71, 0.28);
  outline-offset: 2px;
}

.status-warning-indicator__tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 8;
  display: grid;
  gap: 8px;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
  white-space: normal;
}

.status-warning-indicator:hover .status-warning-indicator__tooltip,
.status-warning-indicator:focus-visible .status-warning-indicator__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.status-warning-indicator__tooltip strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.status-warning-indicator__tooltip ul {
  margin: 0;
  padding-left: 18px;
}

.status-warning-indicator__tooltip li + li {
  margin-top: 4px;
}

.warning-badge-tooltip {
  position: relative;
  cursor: help;
}

.warning-badge-tooltip__panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 8;
  display: grid;
  gap: 8px;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
  white-space: normal;
}

.warning-badge-tooltip:hover .warning-badge-tooltip__panel,
.warning-badge-tooltip:focus-visible .warning-badge-tooltip__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.warning-badge-tooltip__panel strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.warning-badge-tooltip__panel ul {
  margin: 0;
  padding-left: 18px;
}

.warning-badge-tooltip__panel li + li {
  margin-top: 4px;
}

.badge-tooltip {
  position: relative;
  cursor: help;
}

.badge-tooltip__panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 8;
  display: grid;
  gap: 8px;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
  white-space: normal;
}

.badge-tooltip:hover .badge-tooltip__panel,
.badge-tooltip:focus-visible .badge-tooltip__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.badge-tooltip__panel strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.badge-tooltip__panel ul {
  margin: 0;
  padding-left: 18px;
}

.badge-tooltip__panel li + li {
  margin-top: 4px;
}

.badge--has-issues {
  color: var(--warning);
  background: rgba(182, 122, 18, 0.12);
}

.ai-audit-cell {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ai-audit-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(223, 234, 254, 0.7);
  border: 1px solid rgba(47, 111, 236, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background-color 0.14s ease;
}

.ai-audit-icon-button:hover:not(:disabled) {
  background: rgba(223, 234, 254, 0.95);
  border-color: rgba(47, 111, 236, 0.3);
  box-shadow: 0 10px 20px rgba(47, 111, 236, 0.12);
  transform: translateY(-1px);
}

.ai-audit-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.ai-audit-icon-button--ready {
  background: rgba(31, 143, 95, 0.12);
  border-color: rgba(31, 143, 95, 0.22);
}

.ai-audit-icon-button__image {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.contact-send-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.contact-send-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-send-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 22px;
  padding: 2px;
  background: #c9d7e8;
  border-radius: 999px;
  transition: background-color 0.16s ease;
}

.contact-send-toggle--enabled .contact-send-toggle__track {
  background: #2f6fec;
}

.contact-send-toggle__thumb {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(24, 50, 77, 0.18);
  transition: transform 0.16s ease;
}

.contact-send-toggle--enabled .contact-send-toggle__thumb {
  transform: translateX(16px);
}

.risk-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.button--small {
  padding: 8px 12px;
  min-height: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.badge--neutral,
.badge--success,
.badge--danger,
.badge--warning,
.badge--info {
  display: inline-block;
  min-height: 30px;
  width: auto;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.badge--neutral {
  color: var(--muted);
  background: var(--surface-alt);
}

.badge--success {
  color: var(--success);
  background: rgba(31, 143, 95, 0.12);
}

.badge--danger {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.12);
}

.badge--warning {
  color: var(--warning);
  background: rgba(182, 122, 18, 0.12);
}

.badge--info {
  color: var(--info);
  background: rgba(53, 104, 201, 0.12);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.summary-item {
  padding: 16px;
  min-height: 92px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.summary-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.dashboard--settings .summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.dashboard--settings .summary-item {
  min-width: 0;
}

.code-block {
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 18px;
  color: #d8e7ff;
  background: #10233b;
  border-radius: 14px;
}

.row-menu {
  position: relative;
}

.row-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  display: grid;
  gap: 8px;
  min-width: 150px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.code-block--console {
  max-height: 420px;
  margin-top: 18px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.empty-state {
  padding: 28px;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin-top: 30px;
}

.empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.loading-state {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(223, 234, 254, 0.6), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(47, 111, 236, 0.16);
  border-radius: 16px;
}

.loading-state__spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid rgba(47, 111, 236, 0.16);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: loading-state-spin 0.8s linear infinite;
}

.loading-state__content strong {
  display: block;
  font-size: 20px;
}

@keyframes loading-state-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.empty-state__actions,
.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.empty-state__list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.7;
}

.page-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header__status {
  flex: 0 0 auto;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
}

.stack {
  display: grid;
  gap: 20px;
}

.panel-copy p,
.panel-copy h4,
.progress-meta p {
  margin: 0;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.inline-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  margin-top: 18px;
}

.progress__track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  background: var(--surface-alt);
  border-radius: 999px;
}

.progress__value {
  height: 100%;
  background: linear-gradient(135deg, #2f6fec, #5b95ff);
  border-radius: inherit;
}

.progress-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.progress-meta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.attention-list,
.activity-list,
.system-checks {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.attention-item,
.activity-item,
.system-check {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.attention-item p,
.activity-item p,
.system-check p {
  margin: 4px 0 0;
  color: var(--muted);
}

.system-check__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.system-check__text {
  min-width: 0;
}

.system-check__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-shell {
  margin-top: 18px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.smtp-pool__table-shell {
  overflow-x: hidden;
  overflow-y: hidden;
}

.smtp-pool__table-shell > .table {
  min-width: 0;
}

.contacts-table-shell {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.contacts-table-shell::-webkit-scrollbar:vertical {
  width: 0;
}

.table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.table th {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.1;
}

.table-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  z-index: 2;
  cursor: col-resize;
}

.table-resize-handle::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 3px;
  width: 2px;
  background: transparent;
  border-radius: 999px;
  transition: background-color 0.14s ease;
}

.table th:hover .table-resize-handle::after,
.table--resizing .table-resize-handle::after {
  background: rgba(47, 111, 236, 0.35);
}

body.table-resize-active {
  cursor: col-resize;
  user-select: none;
}

.table td strong {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table__actions--compact {
  gap: 8px;
  flex-wrap: nowrap;
}

.table__actions .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smtp-pool__row-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.smtp-pool__row-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(24, 50, 77, 0.14);
}

.smtp-pool__row-menu-item {
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.smtp-pool__row-menu-item:hover {
  background: rgba(47, 111, 236, 0.08);
}

.smtp-pool__row-menu-item:focus-visible {
  outline: 2px solid rgba(47, 111, 236, 0.24);
  outline-offset: 2px;
}

.smtp-pool__row-menu-item:disabled {
  color: var(--muted);
  cursor: default;
  background: transparent;
}

.smtp-pool__row-menu-item--danger {
  color: var(--danger);
}

.button__icon-image--disabled {
  opacity: 1;
}

.screenshot-action {
  position: relative;
  display: inline-flex;
}

.screenshot-action__check {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #fff;
  background: #c7d5e8;
  border: 1px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(24, 50, 77, 0.16);
  cursor: pointer;
}

.screenshot-action__checkmark {
  display: block;
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.screenshot-action__checkmark--checked {
  opacity: 1;
  transform: scale(1);
}

.screenshot-action__check--checked {
  background: var(--success);
}

.campaign-switcher {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.campaign-switcher__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.campaign-switcher__item--active {
  border-color: rgba(47, 111, 236, 0.42);
  background: linear-gradient(180deg, #fff, #f3f8ff);
  box-shadow: 0 12px 28px rgba(24, 50, 77, 0.08);
}

.campaign-switcher__select,
.campaign-switcher__delete {
  border: 0;
  background: transparent;
}

.campaign-switcher__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.campaign-switcher__select {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 4px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.campaign-switcher__main,
.campaign-switcher__meta {
  display: flex;
  gap: 12px;
}

.campaign-switcher__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-switcher__main {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campaign-switcher__main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-switcher__title-editor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.campaign-switcher__title-editor strong {
  flex: 1 1 auto;
}

.campaign-switcher__title-editor--editing {
  flex: 1 1 auto;
}

.campaign-switcher__title-input-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 360px;
}

.campaign-switcher__title-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding-right: 44px;
}

.campaign-switcher__title-toggle {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.campaign-switcher__title-toggle .button__icon-image {
  opacity: 0.62;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.campaign-switcher__title-toggle:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.campaign-switcher__title-toggle:hover:not(:disabled) .button__icon-image,
.campaign-switcher__title-toggle:focus-visible .button__icon-image {
  opacity: 1;
  transform: scale(1.06);
}

.campaign-switcher__title-toggle:disabled {
  background: transparent;
  border-color: transparent;
}

.campaign-switcher__title-toggle--save {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(24, 50, 77, 0.08);
}

.campaign-switcher__title-toggle--save .button__icon-image {
  opacity: 0.9;
}

.campaign-switcher__title-toggle--save:hover:not(:disabled) {
  background: var(--surface);
  border-color: rgba(47, 111, 236, 0.35);
  box-shadow: 0 8px 18px rgba(24, 50, 77, 0.12);
}

.campaign-switcher__title-toggle--save:hover:not(:disabled) .button__icon-image,
.campaign-switcher__title-toggle--save:focus-visible .button__icon-image {
  opacity: 1;
  transform: none;
}

.campaign-switcher__meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.campaign-switcher__chip {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.campaign-switcher__open-leads {
  min-width: 88px;
}

.campaign-switcher__delete {
  width: 42px;
  min-width: 42px;
  height: 42px;
  align-self: center;
  color: var(--danger);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.campaign-switcher__delete:hover:not(:disabled) {
  background: rgba(198, 71, 71, 0.12);
}

.campaign-switcher__delete:disabled {
  cursor: not-allowed;
  color: #b7a6a6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 35, 57, 0.34);
  backdrop-filter: blur(8px);
  animation: modal-backdrop-fade-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: min(calc(100vh - 48px), 960px);
  background: var(--surface);
  border: 1px solid rgba(217, 229, 244, 0.9);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(16, 35, 59, 0.24);
  overflow: hidden;
  transform-origin: center top;
  will-change: transform, opacity;
  animation: modal-surface-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal--wide {
  width: min(100%, 1180px);
}

.modal--screenshot {
  width: min(100%, 1280px);
}

.modal__header,
.modal__body,
.modal__footer {
  display: flex;
  gap: 16px;
}

.modal__header {
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.modal__header h3 {
  margin: 0;
}

.modal__close {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 20px 24px 0;
  overflow-y: auto;
}

.modal__body--site-details {
  padding-bottom: 0;
}

.contacts-table th,
.contacts-table td {
  vertical-align: top;
}

.contact-form-card {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-form-card .field {
  flex: 1 1 240px;
}

.contact-form-card .field--checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(24, 50, 77, 0.04);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.contact-form-card .field--checkbox:hover {
  border-color: rgba(47, 111, 236, 0.32);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(24, 50, 77, 0.06);
}

.contact-form-card .field--checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(105, 132, 170, 0.58);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.contact-form-card .field--checkbox input[type="checkbox"]:hover {
  border-color: rgba(47, 111, 236, 0.5);
}

.contact-form-card .field--checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: rgba(47, 111, 236, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.14);
}

.contact-form-card .field--checkbox input[type="checkbox"]:checked {
  border-color: #2f6fec;
  background: linear-gradient(135deg, #2f6fec, #4f8afe);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(47, 111, 236, 0.16);
}

.contact-form-card .field--checkbox input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 2px 0 0 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.contact-form-card .field--checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
  border-color: #d7e0ee;
  background: #f2f6fb;
  box-shadow: none;
}

.contact-form-card .field--checkbox span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.contact-form-card .field--checkbox:has(input[type="checkbox"]:checked) {
  border-color: rgba(47, 111, 236, 0.4);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(234, 243, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(47, 111, 236, 0.08);
}

.contact-form-card .field--checkbox:has(input[type="checkbox"]:disabled) {
  background: rgba(248, 250, 253, 0.88);
}

.lead-site-text {
  margin-top: -6px;
}

.lead-site-text__wrap {
  position: relative;
}

.lead-site-text__wrap--collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.lead-site-text__wrap--collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0) 0%, rgba(247, 250, 255, 0.96) 100%);
  pointer-events: none;
}

.lead-site-text__content {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.lead-site-text__expand {
  margin-top: 6px;
  padding: 0;
  color: #2f6fec;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lead-site-text__expand:hover {
  text-decoration: underline;
}

.contact-form-card .table__actions {
  flex: 0 0 auto;
}

.contacts-table__site-input {
  width: 100%;
  min-height: 40px;
  padding-right: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.contacts-table__site-picker {
  position: relative;
  width: 100%;
}

.contacts-table__site-input--matched {
  border-color: rgba(215, 166, 0, 0.55);
  background:
    linear-gradient(0deg, rgba(255, 214, 10, 0.14), rgba(255, 214, 10, 0.14)),
    var(--surface-soft);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.12);
}

.contacts-table__site-action {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: rgba(55, 72, 96, 0.9);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(24, 50, 77, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
}

.contacts-table__site-action:hover,
.contacts-table__site-action:focus-visible {
  color: var(--text);
  background: #fff;
  border-color: rgba(71, 85, 105, 0.4);
  outline: none;
}

.contacts-table__site-action span {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.contacts-table__site-action--confirm {
  right: 10px;
  color: #0f6f52;
  border-color: rgba(15, 111, 82, 0.24);
  background: rgba(240, 253, 248, 0.96);
}

.contacts-table__site-action--confirm:hover,
.contacts-table__site-action--confirm:focus-visible {
  color: #0b5a43;
  border-color: rgba(11, 90, 67, 0.36);
  background: #f6fffb;
}

.contacts-table__site-action--clear {
  right: 10px;
}

.contacts-table__site-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 12;
  display: grid;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(24, 50, 77, 0.16);
}

.contacts-table__site-dropdown[hidden] {
  display: none;
}

.contacts-table__site-option {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.contacts-table__site-option:hover,
.contacts-table__site-option:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.field--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal__body--screenshot {
  padding-bottom: 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.screenshot-modal__frame {
  position: relative;
}

.screenshot-modal__frame--mobile {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
}

.screenshot-modal__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 50, 77, 0.12);
}

.screenshot-modal__remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(198, 71, 71, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(24, 50, 77, 0.22);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.screenshot-modal__remove:hover {
  background: #c64747;
}

.screenshot-modal__remove:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.screenshot-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screenshot-upload-state {
  display: grid;
  gap: 12px;
}

.screenshot-upload-state__error {
  margin-top: 0;
  color: var(--danger);
}

.screenshot-upload-zone {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 28px 24px;
  color: #18324d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(233, 242, 255, 0.72)),
    rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(78, 123, 201, 0.34);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 42px rgba(24, 50, 77, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.screenshot-upload-zone strong {
  font-size: 18px;
}

.screenshot-upload-zone span {
  color: var(--muted);
  line-height: 1.5;
}

.screenshot-upload-zone:hover {
  border-color: rgba(47, 111, 236, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 22px 48px rgba(24, 50, 77, 0.12);
}

.screenshot-upload-zone--disabled {
  cursor: progress;
  opacity: 0.8;
}

.modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--surface) 28%);
  border-top: 1px solid var(--border);
}

.modal__footer--contained {
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  padding-right: 24px;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.field__input:focus {
  border-color: rgba(47, 111, 236, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.12);
  background: #fff;
  outline: none;
}

.field__control {
  position: relative;
  display: block;
}

.field__input--with-action {
  padding-right: 62px;
}

.field__action-button {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(47, 111, 236, 0.03);
  border: 1px solid rgba(47, 111, 236, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field__action-button:hover {
  background: rgba(47, 111, 236, 0.14);
  border-color: rgba(47, 111, 236, 0.24);
}

.field__action-button:focus-visible {
  outline: 2px solid rgba(47, 111, 236, 0.24);
  outline-offset: 2px;
}

.field__action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b7aa0 50%),
    linear-gradient(135deg, #5b7aa0 50%, transparent 50%),
    linear-gradient(180deg, rgba(47, 111, 236, 0.1), rgba(47, 111, 236, 0.03));
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    42px 100%;
  background-repeat: no-repeat;
}

select.field__input:hover {
  border-color: rgba(47, 111, 236, 0.28);
  background-color: #fff;
}

select.field__input::-ms-expand {
  display: none;
}

.field__error {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.field__input--textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

.upload-dropzone {
  display: grid;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.upload-dropzone strong,
.upload-file-card strong {
  font-size: 18px;
}

.upload-dropzone p,
.upload-file-card p,
.preview-summary p {
  margin: 0;
  color: var(--muted);
}

.upload-dropzone--active,
.upload-dropzone:hover {
  border-color: rgba(47, 111, 236, 0.4);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.08);
  background: #fff;
}

.upload-file-card,
.preview-summary {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.preview-summary__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.preview-summary__grid > * {
  min-width: 0;
}

.preview-summary__grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.users-management__create-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.users-management__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.users-management__toggle:focus-visible {
  outline: 2px solid rgba(47, 111, 236, 0.42);
  outline-offset: 4px;
  border-radius: 999px;
}

.users-management__toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  padding: 2px;
  border-radius: 999px;
  background: #d5ddea;
  transition: background-color 0.18s ease;
}

.users-management__toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 43, 60, 0.18);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.users-management__toggle--active .users-management__toggle-track {
  background: #2f6fec;
}

.users-management__toggle--active .users-management__toggle-thumb {
  transform: translateX(20px);
}

.users-management__toggle-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.email-templates__layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.email-templates__chooser {
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border-color: rgba(217, 229, 244, 0.92);
}

.email-templates__chooser-current {
  color: var(--muted);
  font-weight: 500;
}

.email-templates__chooser-content {
  margin-top: 14px;
}

.email-templates__chooser-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.email-templates__chooser-item {
  flex: 0 1 calc((100% - 84px) / 8);
  max-width: calc((100% - 84px) / 8);
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
  border-color: rgba(204, 218, 238, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.email-templates__chooser-item:hover {
  border-color: rgba(47, 111, 236, 0.32);
  box-shadow: 0 10px 22px rgba(47, 111, 236, 0.08);
}

.email-templates__chooser-item--active {
  border-color: rgba(47, 111, 236, 0.45);
  background: linear-gradient(180deg, rgba(236, 244, 255, 0.98), rgba(227, 239, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(47, 111, 236, 0.1);
}

.email-templates__chooser-item--create {
  justify-content: center;
}

.email-templates__chooser-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.email-templates__chooser-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.email-templates__chooser-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 111, 236, 0.12);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.campaign-chooser {
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border-color: rgba(217, 229, 244, 0.92);
}

.campaign-chooser__current {
  color: var(--muted);
  font-weight: 500;
}

.campaign-chooser__content {
  margin-top: 14px;
}

.campaign-chooser__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.campaign-chooser__item {
  flex: 0 1 calc((100% - 84px) / 8);
  max-width: calc((100% - 84px) / 8);
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
  border-color: rgba(204, 218, 238, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.campaign-chooser__item:hover {
  border-color: rgba(47, 111, 236, 0.32);
  box-shadow: 0 10px 22px rgba(47, 111, 236, 0.08);
}

.campaign-chooser__item--active {
  border-color: rgba(47, 111, 236, 0.45);
  background: linear-gradient(180deg, rgba(236, 244, 255, 0.98), rgba(227, 239, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(47, 111, 236, 0.1);
}

.campaign-chooser__name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.campaign-chooser__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.email-templates__sidebar,
.email-templates__editor {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.email-templates__variables-panel,
.email-templates__meta-panel,
.email-templates__editor-panel,
.email-templates__preview-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border-color: rgba(217, 229, 244, 0.92);
}

.email-templates__variables-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.email-templates__form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.email-templates__field {
  margin: 0;
}

.email-templates__field--wide {
  grid-column: 1 / -1;
}

.email-templates__active-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(204, 218, 238, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 253, 0.96));
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.email-templates__active-field:hover {
  border-color: rgba(47, 111, 236, 0.3);
}

.email-templates__active-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid rgba(47, 111, 236, 0.3);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(24, 50, 77, 0.08);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.email-templates__active-field input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2f6fec, #5b95ff);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.email-templates__active-field input[type="checkbox"]:checked {
  border-color: rgba(47, 111, 236, 0.6);
  background: linear-gradient(180deg, #edf4ff, #dfeafe);
}

.email-templates__active-field input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

.email-templates__active-field input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 111, 236, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.email-templates__active-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.email-templates__active-field:has(input[type="checkbox"]:checked) {
  border-color: rgba(47, 111, 236, 0.42);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(234, 243, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(47, 111, 236, 0.08);
}

.email-templates__body-field {
  display: grid;
  gap: 10px;
}

.email-templates__body-input {
  min-height: 420px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.55;
  resize: vertical;
}

.email-templates__actions {
  justify-content: flex-start;
  gap: 10px;
}

.email-templates__footer-actions {
  justify-content: flex-end;
}

.tracking-settings__layout {
  display: grid;
  gap: 16px;
}

.tracking-settings__toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tracking-settings__toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(204, 218, 238, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 253, 0.96));
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tracking-settings__toggle-card:hover {
  border-color: rgba(47, 111, 236, 0.3);
}

.tracking-settings__toggle-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid rgba(47, 111, 236, 0.3);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(24, 50, 77, 0.08);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.tracking-settings__toggle-card input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2f6fec, #5b95ff);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.tracking-settings__toggle-card input[type="checkbox"]:checked {
  border-color: rgba(47, 111, 236, 0.6);
  background: linear-gradient(180deg, #edf4ff, #dfeafe);
}

.tracking-settings__toggle-card input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

.tracking-settings__toggle-card input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 111, 236, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tracking-settings__toggle-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(47, 111, 236, 0.42);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(234, 243, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(47, 111, 236, 0.08);
}

.tracking-settings__toggle-content {
  display: grid;
  gap: 4px;
}

.tracking-settings__toggle-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.tracking-settings__toggle-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tracking-settings__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tracking-settings__field {
  margin: 0;
}

.tracking-settings__field--wide {
  grid-column: 1 / -1;
}

.tracking-settings__mode-card {
  margin: 0;
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .email-templates__layout {
    grid-template-columns: 1fr;
  }

  .email-templates__chooser-list {
    gap: 10px;
  }

  .email-templates__chooser-item {
    flex-basis: calc((100% - 50px) / 6);
    max-width: calc((100% - 50px) / 6);
  }

  .campaign-chooser__item {
    flex-basis: calc((100% - 50px) / 6);
    max-width: calc((100% - 50px) / 6);
  }

  .email-templates__body-input {
    min-height: 320px;
  }

  .email-templates__form-grid {
    grid-template-columns: 1fr;
  }

  .tracking-settings__toggles,
  .tracking-settings__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .users-management__create-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .email-templates__chooser-item {
    flex-basis: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .campaign-chooser__item {
    flex-basis: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .users-management__create-grid {
    grid-template-columns: 1fr;
  }
}

.smtp-pool__filters {
  margin-top: 8px;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.smtp-pool__toolbar {
  margin-top: 18px;
  margin-bottom: 10px;
  gap: 12px;
  align-items: center;
}

.smtp-pool__form-grid {
  margin-top: 12px;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.smtp-pool__form {
  display: grid;
  gap: 18px;
}

.smtp-pool__editor {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 236, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(239, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow:
    0 16px 38px rgba(24, 50, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.smtp-pool__editor-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(47, 111, 236, 0.14);
}

.smtp-pool__editor-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 236, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smtp-pool__editor-title {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.smtp-pool__editor-text {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}

.smtp-form-layout {
  display: grid;
  gap: 18px;
}

.smtp-form-section {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.smtp-form-section--smtp {
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
}

.smtp-form-section--sender {
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
}

.smtp-form-section--imap {
  background: linear-gradient(180deg, #f8fcff 0%, #eef8ff 100%);
}

.smtp-form-section--sync {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.smtp-form-section__header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.smtp-form-section__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 236, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smtp-form-section__title {
  font-size: 18px;
  line-height: 1.2;
}

.smtp-form-section__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.smtp-pool__form-grid .field,
.smtp-pool__filters .field {
  gap: 8px;
}

.smtp-pool__summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.smtp-pool__quick-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 30px;
  margin-bottom: 30px;
}

.smtp-pool__quick-add-field {
  margin: 0;
}

.smtp-pool__quick-add-button {
  align-self: end;
  white-space: nowrap;
}

.smtp-pool__form-grid .field--checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(24, 50, 77, 0.04);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.smtp-pool__form-grid .field--checkbox:hover {
  border-color: rgba(47, 111, 236, 0.32);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(24, 50, 77, 0.06);
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(105, 132, 170, 0.58);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"]:hover {
  border-color: rgba(47, 111, 236, 0.5);
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: rgba(47, 111, 236, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.14);
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"]:checked {
  border-color: #2f6fec;
  background: linear-gradient(135deg, #2f6fec, #4f8afe);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(47, 111, 236, 0.16);
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 2px 0 0 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.smtp-pool__form-grid .field--checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
  border-color: #d7e0ee;
  background: #f2f6fb;
  box-shadow: none;
}

.smtp-pool__form-grid .field--checkbox span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.smtp-pool__form-grid .field--checkbox:has(input[type="checkbox"]:checked) {
  border-color: rgba(47, 111, 236, 0.4);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98) 0%, rgba(234, 243, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(47, 111, 236, 0.08);
}

.smtp-pool__form-grid .field--checkbox:has(input[type="checkbox"]:disabled) {
  background: rgba(248, 250, 253, 0.88);
}

.smtp-pool__form-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.field--checkbox-disabled {
  opacity: 0.72;
}

.smtp-form-notes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(47, 111, 236, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.smtp-form-notes .inline-note {
  margin: 0;
}

.smtp-pool__form--modal .smtp-form-section {
  padding: 22px;
}

.smtp-pool__import-actions {
  margin-top: 14px;
  gap: 12px;
  align-items: center;
}

.smtp-pool__form-actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: -2px;
}

.smtp-pool__upload-state {
  margin-top: 16px;
}

.smtp-pool__upload-state .screenshot-upload-zone strong {
  font-size: 17px;
}

.smtp-pool__upload-state .screenshot-upload-zone span {
  max-width: 720px;
}

.smtp-pool__panel {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
}

.smtp-pool__panel > strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.smtp-pool__panel--verify-run {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(228, 239, 255, 0.9));
}

.smtp-pool__panel--import {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.92));
}

.smtp-pool__row-actions {
  min-width: 240px;
  gap: 8px;
  align-items: flex-start;
}

.smtp-pool__row-actions .button {
  min-width: 0;
}

.smtp-account-info {
  max-width: 100%;
}

.smtp-account-info__trigger {
  flex: 0 0 auto;
}

.smtp-account-info__tooltip {
  min-width: 260px;
  max-width: 360px;
}

.smtp-limit-chip-tooltip {
  display: inline-flex;
  vertical-align: middle;
}

.smtp-limit-chip {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 58px;
  width: fit-content;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.smtp-limit-chip--button {
  padding: 6px 10px;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.smtp-limit-chip--button:focus-visible {
  outline: 2px solid rgba(47, 111, 236, 0.28);
  outline-offset: 2px;
}

.reputation-limit-cell {
  position: relative;
}

.reputation-limit-editor {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 152px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(24, 50, 77, 0.14);
  transform: translateY(-50%);
}

.reputation-limit-editor__input {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}


.smtp-account-info .smtp-account-info__tooltip {
  display: none !important;
}

.smtp-account-tooltip-layer {
  position: fixed;
  z-index: 2000;
  display: grid;
  gap: 6px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  white-space: normal;
  pointer-events: none;
}

.smtp-account-tooltip-layer[hidden] {
  display: none;
}

.smtp-account-tooltip-layer strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.mail-message-tooltip-layer {
  position: fixed;
  z-index: 2000;
  display: grid;
  gap: 6px;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  white-space: normal;
  pointer-events: none;
}

.mail-message-tooltip-layer[hidden] {
  display: none;
}

.mail-message-tooltip-layer .email-center__message-info-line {
  display: block;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.preformatted-block {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}

.preview-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-table-wrap {
  max-height: 420px;
  overflow-x: auto;
  overflow-y: visible;
}

.preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.preview-table td {
  vertical-align: top;
}

.preview-table .badge {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.preview-table__cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-table__cell--info {
  overflow: visible;
}

.site-domain-info {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.site-domain-info__main {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.site-domain-info__website {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-domain-info__campaign {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-highlight {
  padding: 0 2px;
  color: inherit;
  background: rgba(255, 214, 10, 0.45);
  border-radius: 4px;
}

.site-domain-info__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--info);
  background: var(--accent-soft);
  border: 1px solid rgba(53, 104, 201, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.site-domain-info__tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  color: #d8e7ff;
  background: rgba(16, 35, 59, 0.96);
  border: 1px solid rgba(106, 145, 214, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 35, 59, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
  white-space: normal;
}

.site-domain-info:hover .site-domain-info__tooltip,
.site-domain-info:focus-within .site-domain-info__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.email-center__message-info:hover .email-center__message-info-tooltip,
.email-center__message-info:focus-within .email-center__message-info-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

.site-domain-info__tooltip strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.site-progress-row td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-progress-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  color: inherit;
  background: linear-gradient(180deg, #f6faff, #eef5ff);
  border: 1px solid rgba(47, 111, 236, 0.18);
  border-radius: 14px;
  cursor: pointer;
}

.site-progress-shell__main {
  flex: 1 1 auto;
  min-width: 0;
}

.site-progress-shell__main strong {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-progress-shell__bar {
  margin-top: 0;
}

.site-progress-shell__meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex: 0 0 240px;
  text-align: right;
}

.site-progress-shell__meta strong {
  font-size: 24px;
}

.site-progress-shell__meta span {
  color: var(--muted);
  font-size: 13px;
}

.site-row-clickable {
  cursor: pointer;
}

.site-row-clickable:hover td {
  background: rgba(47, 111, 236, 0.03);
}

.site-row-clickable:focus-visible {
  outline: none;
}

.site-row-clickable:focus-visible td {
  background: rgba(47, 111, 236, 0.06);
}

.site-delete-row td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-delete-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff7f7, #fff1f1);
  border: 1px solid rgba(198, 71, 71, 0.2);
  border-radius: 14px;
}

.site-delete-shell__main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.site-delete-shell__main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-delete-shell__main span {
  color: var(--danger);
  font-size: 13px;
}

.table td.table__cell--actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.table th.table__cell--actions {
  width: 1%;
  text-align: left;
  white-space: nowrap;
}

.table td.table__cell--actions .table__actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.sites-table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.sites-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.sites-table th.sites-table__cell--site,
.sites-table td.sites-table__cell--site,
.sites-table th.sites-table__cell--status,
.sites-table td.sites-table__cell--status {
  width: 1%;
  padding-left: 10px;
  padding-right: 10px;
  text-align: left;
}

.sites-table th.sites-table__cell--status,
.sites-table td.sites-table__cell--status {
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sites-table th.sites-table__cell--checkbox,
.sites-table td.sites-table__cell--checkbox {
  width: 3%;
  padding-left: 0;
  padding-right: 0;
  white-space: nowrap;
  text-align: center;
}

.sites-table th.sites-table__cell--spacer,
.sites-table td.sites-table__cell--spacer {
  width: 32px;
  min-width: 0;
  padding: 0;
}

.sites-table td strong {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sites-table th.table__cell--actions,
.sites-table td.table__cell--actions {
  width: auto;
  white-space: normal;
}

.sites-table td.table__cell--actions .table__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sites-table .button {
  max-width: 100%;
  white-space: normal;
}

.sites-table__checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  border: 1.5px solid rgba(47, 111, 236, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(24, 50, 77, 0.08);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.sites-table__checkbox::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2f6fec, #5b95ff);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.sites-table__checkbox:hover {
  border-color: rgba(47, 111, 236, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(47, 111, 236, 0.12);
}

.sites-table__checkbox:checked {
  border-color: rgba(47, 111, 236, 0.6);
  background: linear-gradient(180deg, #edf4ff, #dfeafe);
}

.sites-table__checkbox:checked::after {
  opacity: 1;
  transform: scale(1);
}

.sites-table__checkbox:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 111, 236, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sites-table th.sites-table__cell--email-source,
.sites-table td.sites-table__cell--email-source {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.grouped-sites {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.grouped-site {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.grouped-site summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  list-style: none;
}

.grouped-site summary::-webkit-details-marker {
  display: none;
}

.grouped-site__summary-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.grouped-site__toggle {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.grouped-site[open] .grouped-site__toggle {
  transform: rotate(90deg);
}

.grouped-site__remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #b42318;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.grouped-site__remove:hover {
  border-color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.grouped-site__remove:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.grouped-site p {
  margin: 10px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.email-center__content {
  display: grid;
  gap: 20px;
}

.email-center__tabs {
  align-items: center;
  row-gap: 12px;
  margin: 0;
}

.email-center__tab-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.email-center__empty-state--threads {
  margin: 0;
}

.conversations-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 260px;
  min-height: 620px;
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.97) 100%);
  box-shadow: 0 18px 45px rgba(24, 50, 77, 0.06);
  overflow: hidden;
}

.conversations-sidebar,
.conversation-main,
.lead-details-panel {
  min-width: 0;
}

.conversations-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid rgba(217, 229, 244, 0.95);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.conversations-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.95);
}

.conversations-search__input {
  min-width: 0;
}

.conversations-search__filter {
  padding: 0;
}

.conversation-list {
  display: grid;
  align-content: start;
}

.conversation-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.84);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.conversation-item:hover {
  background: rgba(243, 248, 255, 0.92);
}

.conversation-item:focus-visible {
  outline: none;
  background: rgba(243, 248, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(79, 138, 254, 0.58);
}

.conversation-item--active {
  background: rgba(235, 243, 255, 0.92);
  box-shadow:
    inset 3px 0 0 #4f8afe,
    inset 0 0 0 1px rgba(79, 138, 254, 0.22);
}

.conversation-item__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #eef4ff 0%, #dce8ff 100%);
  border: 1px solid rgba(200, 215, 239, 0.95);
  font-weight: 700;
}

.conversation-item__content {
  min-width: 0;
}

.conversation-item__top {
  display: grid;
  gap: 2px;
}

.conversation-item__title {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.conversation-item__time,
.conversation-item__meta,
.conversation-item__preview,
.conversation-header__contact,
.conversation-header__campaign,
.conversation-header__smtp,
.lead-details-section__label {
  color: var(--muted);
}

.conversation-item__time {
  font-size: 12px;
  line-height: 1.3;
}

.conversation-item__meta,
.conversation-item__preview {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.conversation-item__status,
.conversation-item__badge,
.conversation-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.conversation-item__status,
.conversation-status-pill--new {
  color: var(--muted);
  background: rgba(217, 229, 244, 0.58);
}

.conversation-item__badge {
  min-width: 24px;
  color: #fff;
  background: linear-gradient(135deg, #2f6fec, #4f8afe);
}

.conversation-status-pill--opened,
.conversation-item__status.conversation-status-pill--opened {
  color: var(--success);
  background: rgba(31, 143, 95, 0.12);
}

.conversation-status-pill--replied,
.conversation-item__status.conversation-status-pill--replied {
  color: #2458b8;
  background: rgba(47, 111, 236, 0.12);
}

.conversation-status-pill--waiting,
.conversation-item__status.conversation-status-pill--waiting {
  color: #6d7f95;
  background: rgba(223, 234, 254, 0.88);
}

.conversation-status-pill--prepared,
.conversation-item__status.conversation-status-pill--prepared {
  color: #6a7491;
  background: rgba(231, 236, 245, 0.9);
}

.conversation-status-pill--simulated,
.conversation-item__status.conversation-status-pill--simulated {
  color: #2f6fec;
  background: rgba(47, 111, 236, 0.12);
}

.conversation-status-pill--failed,
.conversation-item__status.conversation-status-pill--failed {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.12);
}

.conversation-status-pill--cancelled,
.conversation-item__status.conversation-status-pill--cancelled {
  color: #8a93a2;
  background: rgba(226, 231, 238, 0.92);
}

.conversation-main {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
}

.conversation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.95);
  background: rgba(255, 255, 255, 0.92);
}

.conversation-header__main {
  min-width: 0;
}

.conversation-header__side {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.conversation-header__title {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.conversation-header__contact,
.conversation-header__campaign,
.conversation-header__smtp {
  margin: 6px 0 0;
  font-size: 14px;
}

.conversation-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.crm-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.crm-toolbar__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table__secondary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.table-sort-button:hover {
  color: var(--accent);
}

.table-sort-button:focus-visible {
  outline: 2px solid rgba(47, 111, 236, 0.28);
  outline-offset: 2px;
  border-radius: 6px;
}

.table-sort-button--active {
  color: var(--accent);
}

.crm-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .crm-modal__grid {
    grid-template-columns: 1fr;
  }
}

.conversation-timeline {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 600px;
  padding: 14px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(47, 111, 236, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 255, 0.98));
}

.conversation-timeline--loading {
  min-height: 360px;
  align-content: center;
}

.conversation-day-separator {
  justify-self: center;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(230, 238, 250, 0.88);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
}

.message-row {
  display: flex;
}

.message-row--outbound {
  justify-content: flex-end;
}

.message-row--inbound {
  justify-content: flex-start;
}

.message-bubble {
  max-width: min(70%, 620px);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(24, 50, 77, 0.05);
}

.message-bubble--outbound {
  background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
  border: 1px solid rgba(203, 219, 243, 0.95);
}

.message-bubble--inbound {
  background: #fff;
  border: 1px solid rgba(217, 229, 244, 0.95);
}

.message-bubble__subject,
.message-bubble__body,
.message-bubble__meta {
  margin: 0;
}

.message-bubble__subject {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.message-bubble__body {
  margin-top: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-bubble__body-wrap {
  position: relative;
  margin-top: 6px;
}

.message-bubble__body-wrap--collapsed {
  max-height: 300px;
  overflow: hidden;
}

.message-bubble__body-wrap--collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 248, 255, 0.96) 100%);
  pointer-events: none;
}

.message-bubble--outbound .message-bubble__body-wrap--collapsed::after {
  background: linear-gradient(180deg, rgba(223, 234, 255, 0) 0%, rgba(223, 234, 255, 0.96) 100%);
}

.message-bubble__expand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 6px;
  padding: 0;
  color: #2f6fec;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.message-bubble__expand:hover {
  text-decoration: underline;
}

.message-bubble__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.message-bubble__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.message-bubble__status {
  font-weight: 700;
}

.message-bubble__status--opened {
  color: var(--success);
}

.message-bubble__status--failed {
  color: var(--danger);
}

.message-bubble__status--simulated {
  color: var(--info);
}

.timeline-event {
  justify-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: min(72%, 520px);
  padding: 5px 10px;
  color: #587090;
  background: rgba(229, 237, 249, 0.88);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.timeline-event__label {
  font-weight: 700;
}

.timeline-event--failed {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.1);
}

.timeline-event--opened {
  color: var(--success);
  background: rgba(31, 143, 95, 0.1);
}

.timeline-event--simulated_sent,
.timeline-event--prepared,
.timeline-event--sent {
  color: var(--info);
}

.conversation-composer {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(217, 229, 244, 0.95);
  background: rgba(255, 255, 255, 0.95);
}

.conversation-composer__disabled-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.conversation-composer__banner,
.conversation-composer__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.conversation-composer__banner--muted {
  color: var(--muted);
  background: rgba(98, 113, 133, 0.08);
}

.conversation-composer__banner--warning {
  color: #8a5b00;
  background: rgba(255, 191, 71, 0.16);
}

.conversation-composer__banner--success {
  color: var(--success);
  background: rgba(31, 143, 95, 0.1);
}

.conversation-composer__error {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.1);
}

.conversation-composer__input {
  min-height: 86px;
  resize: none;
}

.conversation-composer__meta {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: end;
}

.conversation-composer__field {
  margin: 0;
}

.conversation-composer__readonly {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  background: rgba(248, 250, 253, 0.96);
}

.conversation-composer__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.conversation-composer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conversation-composer__confirm {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 14px;
  background: rgba(247, 250, 255, 0.96);
}

.conversation-composer__confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.conversation-composer__confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-details-panel {
  padding: 18px 16px;
  border-left: 1px solid rgba(217, 229, 244, 0.95);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
}

.lead-details-panel__title,
.lead-details-stats__title {
  display: block;
  margin-bottom: 16px;
}

.lead-details-section {
  margin-bottom: 14px;
}

.lead-details-section__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.lead-details-section__value {
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lead-details-contact-fields {
  display: grid;
  gap: 10px;
}

.lead-details-contact-field {
  display: grid;
  gap: 4px;
}

.lead-details-contact-field__label {
  color: var(--muted);
  font-size: 12px;
}

.lead-details-contact-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.lead-details-contact-input {
  min-width: 0;
}

.lead-details-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 229, 244, 0.95);
}

.lead-details-stats {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 229, 244, 0.95);
}

.lead-details-stats__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.conversation-item--skeleton,
.conversation-main--loading,
.lead-details-panel--loading {
  pointer-events: none;
}

.conversation-item__avatar--skeleton,
.conversation-item__title--skeleton,
.conversation-item__meta--skeleton,
.conversation-item__preview--skeleton {
  background: linear-gradient(90deg, #eef4fb 0%, #f7fbff 50%, #eef4fb 100%);
  background-size: 200% 100%;
  animation: conversation-skeleton 1.2s ease-in-out infinite;
}

.conversation-item__avatar--skeleton {
  border-radius: 14px;
}

.conversation-item__title--skeleton,
.conversation-item__meta--skeleton,
.conversation-item__preview--skeleton {
  height: 12px;
  border-radius: 999px;
}

.conversation-item__title--skeleton {
  width: 76%;
}

.conversation-item__meta--skeleton {
  width: 62%;
  margin-top: 8px;
}

.conversation-item__preview--skeleton {
  width: 88%;
  margin-top: 8px;
}

@keyframes conversation-skeleton {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1200px) {
  .conversations-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .lead-details-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(217, 229, 244, 0.95);
  }
}

@media (max-width: 900px) {
  .conversations-layout {
    grid-template-columns: 1fr;
  }

  .conversations-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(217, 229, 244, 0.95);
  }

  .message-bubble {
    max-width: 100%;
  }

  .conversation-timeline {
    max-height: min(600px, 60vh);
  }
}

.email-center__threads {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 220px;
  gap: 0;
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  overflow: hidden;
}

.email-center__threads-sidebar,
.email-center__threads-main,
.email-center__threads-details {
  min-width: 0;
}

.email-center__threads-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(217, 229, 244, 0.95);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.95) 0%, rgba(245, 249, 255, 0.92) 100%);
}

.email-center__threads-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.95);
}

.email-center__threads-search-icon {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.email-center__threads-search-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 12px;
}

.email-center__threads-filter {
  padding: 0;
}

.email-center__threads-list {
  display: grid;
  align-content: start;
}

.email-center__thread-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.88);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.email-center__thread-card:hover {
  background: rgba(241, 247, 255, 0.92);
}

.email-center__thread-card:focus-visible {
  outline: none;
  background: rgba(241, 247, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(79, 138, 254, 0.7),
    inset 3px 0 0 #4f8afe;
}

.email-center__thread-card--active {
  background: rgba(235, 243, 255, 0.9);
  box-shadow: inset 3px 0 0 #4f8afe;
}

.email-center__thread-card-avatar,
.email-center__threads-avatar {
  display: grid;
  place-items: center;
  color: var(--text);
  background: linear-gradient(180deg, #eef4ff 0%, #dfeafe 100%);
  border: 1px solid rgba(197, 214, 239, 0.95);
  border-radius: 14px;
  font-weight: 700;
}

.email-center__thread-card-avatar {
  width: 42px;
  height: 42px;
}

.email-center__thread-card-main {
  min-width: 0;
}

.email-center__thread-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.email-center__thread-card-site,
.email-center__threads-site {
  font-size: 14px;
  line-height: 1.35;
}

.email-center__thread-card-time,
.email-center__thread-card-contact,
.email-center__thread-card-preview,
.email-center__threads-contact,
.email-center__threads-campaign,
.email-center__threads-detail dt {
  color: var(--muted);
}

.email-center__thread-card-contact,
.email-center__thread-card-preview,
.email-center__threads-contact {
  margin: 4px 0 0;
}

.email-center__thread-card-contact,
.email-center__thread-card-preview {
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-center__thread-counter,
.email-center__threads-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 4px 8px;
  color: #fff;
  background: linear-gradient(135deg, #2f6fec, #4f8afe);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.email-center__threads-footnote {
  margin: 0;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(217, 229, 244, 0.88);
}

.email-center__threads-main {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
}

.email-center__threads-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(217, 229, 244, 0.95);
}

.email-center__threads-header-main,
.email-center__threads-heading {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.email-center__threads-heading {
  flex-direction: column;
  gap: 2px;
}

.email-center__threads-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.email-center__threads-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.email-center__threads-header-meta .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(217, 229, 244, 0.55);
  font-size: 12px;
  font-weight: 700;
}

.email-center__threads-header-meta .status-badge--success {
  color: var(--success);
  background: rgba(31, 143, 95, 0.12);
}

.email-center__threads-header-meta .status-badge--error {
  color: var(--danger);
  background: rgba(198, 71, 71, 0.12);
}

.email-center__threads-timeline {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 251, 255, 0.95)),
    radial-gradient(circle at top right, rgba(47, 111, 236, 0.08), transparent 35%);
}

.email-center__thread-event {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-center__thread-system-badge {
  padding: 6px 10px;
  color: var(--info);
  background: rgba(47, 111, 236, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.email-center__thread-system-text {
  color: var(--muted);
  font-size: 13px;
}

.email-center__thread-bubble-row {
  display: flex;
}

.email-center__thread-bubble-row--outgoing {
  justify-content: flex-end;
}

.email-center__thread-bubble {
  max-width: min(86%, 520px);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(24, 50, 77, 0.08);
}

.email-center__thread-bubble--outgoing {
  background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
  border: 1px solid rgba(205, 220, 245, 0.95);
}

.email-center__thread-bubble-subject,
.email-center__thread-bubble-meta,
.email-center__threads-detail dd {
  margin: 0;
}

.email-center__thread-bubble-subject {
  color: var(--text);
  line-height: 1.45;
}

.email-center__thread-bubble-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.email-center__thread-bubble-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.email-center__threads-composer {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(217, 229, 244, 0.95);
  background: rgba(255, 255, 255, 0.92);
}

.email-center__threads-input {
  width: 100%;
  min-height: 78px;
  resize: none;
  padding: 14px 16px;
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 14px;
  background: #fff;
}

.email-center__threads-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-center__threads-action--send {
  margin-left: auto;
}

.email-center__threads-details {
  padding: 18px 16px;
  border-left: 1px solid rgba(217, 229, 244, 0.95);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
}

.email-center__threads-details-title,
.email-center__threads-stats-title {
  display: block;
  margin-bottom: 14px;
}

.email-center__threads-details-grid {
  display: grid;
  gap: 14px;
  margin: 0;
}

.email-center__threads-detail dt {
  margin-bottom: 4px;
  font-size: 13px;
}

.email-center__threads-detail dd {
  color: var(--text);
  line-height: 1.5;
}

.email-center__threads-stats {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 229, 244, 0.95);
}

.email-center__threads-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .email-center__threads {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .email-center__threads-details {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(217, 229, 244, 0.95);
  }
}

@media (max-width: 860px) {
  .email-center__threads {
    grid-template-columns: 1fr;
  }

  .email-center__threads-sidebar,
  .email-center__threads-main,
  .email-center__threads-details {
    border: 0;
  }

  .email-center__threads-sidebar {
    border-bottom: 1px solid rgba(217, 229, 244, 0.95);
  }
}

.email-center__content .grouped-site {
  display: grid;
  gap: 14px;
}

.email-center__content .grouped-site > strong,
.email-center__content .grouped-site > p,
.email-center__content .grouped-site > .table__actions,
.email-center__content .grouped-site > .summary-grid,
.email-center__content .grouped-site > .table-shell,
.email-center__content .grouped-site > .empty-state {
  margin: 0;
}

.manual-deliverability-thread {
  margin-top: 8px;
}

.manual-deliverability-thread .conversation-header {
  padding: 12px 14px;
  gap: 10px;
}

.manual-deliverability-thread .conversation-header__title {
  font-size: 15px;
}

.manual-deliverability-thread .conversation-header__campaign,
.manual-deliverability-thread .conversation-header__smtp {
  font-size: 12px;
}

.manual-deliverability-thread .conversation-status-pills {
  gap: 6px;
}

.manual-deliverability-thread .conversation-status-pill {
  padding: 5px 9px;
  font-size: 11px;
}

.manual-deliverability-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.manual-deliverability-column {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(247, 250, 255, 0.96);
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 16px;
}

.manual-deliverability-column__header {
  display: grid;
  gap: 6px;
}

.manual-deliverability-column__header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.manual-deliverability-reply-composer {
  padding: 0;
  background: transparent;
  border: 0;
}

.manual-deliverability-recipient-date {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.manual-deliverability-thread .conversation-timeline {
  max-height: 320px;
}

.email-center__summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.email-center__table-shell--messages {
  overflow: visible;
}

.email-center__prepare-field--tracking,
.email-center__prepare-field--version {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(160, 185, 220, 0.36);
  border-radius: 16px;
}

.email-center__prepare-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(105, 132, 170, 0.55);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.email-center__prepare-checkbox:hover {
  border-color: rgba(47, 111, 236, 0.48);
}

.email-center__prepare-checkbox:focus-visible {
  outline: none;
  border-color: rgba(47, 111, 236, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.16);
}

.email-center__prepare-checkbox:checked {
  border-color: #2f6fec;
  background:
    linear-gradient(135deg, #2f6fec, #4f8afe);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(47, 111, 236, 0.18);
}

.email-center__prepare-checkbox:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 2px 0 0 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.email-center__prepare-checkbox:disabled {
  cursor: not-allowed;
  border-color: #d7e0ee;
  background: #f2f6fb;
  box-shadow: none;
}

.email-center__prepare-checkbox-label {
  display: block;
  padding-top: 1px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.email-center__prepare-summary-item {
  display: grid;
  gap: 8px;
}

.quick-mail-global__layout {
  display: grid;
  gap: 18px;
}

.quick-mail-global__modal {
  width: min(100%, 1240px);
}

.quick-mail-global__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.quick-mail-global__main,
.quick-mail-global__sidebar {
  min-width: 0;
}

.quick-mail-global__sidebar {
  display: grid;
  gap: 16px;
}

.quick-mail-global__panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  border: 1px solid rgba(217, 229, 244, 0.95);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(24, 50, 77, 0.06);
}

.quick-mail-global__panel--message {
  min-height: 100%;
}

.quick-mail-global__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quick-mail-global__panel-title {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.quick-mail-global__panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-mail-global__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quick-mail-global__grid .field:last-child {
  grid-column: auto;
}

.quick-mail-global__banner {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 236, 0.14);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.quick-mail-global__banner--danger {
  color: var(--danger);
  border-color: rgba(198, 71, 71, 0.22);
  background: var(--danger-soft);
}

.quick-mail-global__banner--warning {
  color: var(--warning);
  border-color: rgba(182, 122, 18, 0.24);
  background: rgba(255, 247, 231, 0.95);
}

.quick-mail-global__banner--success {
  color: var(--success);
  border-color: rgba(31, 143, 95, 0.2);
  background: rgba(235, 249, 242, 0.95);
}

.quick-mail-global__confirm {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(47, 111, 236, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96)),
    radial-gradient(circle at top right, rgba(47, 111, 236, 0.08), transparent 38%);
}

.quick-mail-global__confirm p,
.quick-mail-global__confirm h4 {
  margin: 0;
}

.quick-mail-global__confirm-header {
  display: grid;
  gap: 4px;
}

.quick-mail-global__confirm-header p {
  color: var(--muted);
  font-size: 13px;
}

.quick-mail-global__confirm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-mail-global__confirm-line {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 229, 244, 0.92);
  border-radius: 14px;
}

.quick-mail-global__confirm-line span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-mail-global__confirm-line strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.quick-mail-global__empty-note {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.quick-mail-global__textarea {
  min-height: 380px;
  line-height: 1.6;
}

.quick-mail-richtext {
  display: grid;
  gap: 10px;
}

.quick-mail-richtext__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-mail-richtext__toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-mail-richtext__toolbar-group--right {
  margin-left: auto;
}

.quick-mail-richtext__tool {
  min-width: 42px;
  padding-left: 12px;
  padding-right: 12px;
}

.quick-mail-richtext__tool:hover:not(:disabled) {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: none;
}

.quick-mail-richtext__tool:focus-visible {
  border-color: rgba(47, 111, 236, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.12);
}

.quick-mail-richtext__tool .button__icon-image {
  width: 16px;
  height: 16px;
  display: block;
}

.quick-mail-richtext__editor {
  overflow-y: auto;
  white-space: pre-wrap;
}

.quick-mail-attachments {
  display: grid;
  gap: 8px;
}

.quick-mail-attachments__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(244, 248, 255, 0.95);
  border: 1px solid rgba(214, 226, 244, 0.95);
  border-radius: 14px;
}

.quick-mail-attachments__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-mail-attachments__meta strong,
.quick-mail-attachments__meta span {
  overflow-wrap: anywhere;
}

.quick-mail-attachments__meta strong {
  font-size: 13px;
  line-height: 1.35;
}

.quick-mail-attachments__meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-mail-richtext__editor:empty::before {
  content: attr(data-placeholder);
  color: #8ea2bb;
}

.quick-mail-richtext__editor:focus::before {
  content: "";
}

.quick-mail-global__input--subject {
  font-size: 15px;
}

.quick-mail-global__toggle {
  min-height: 52px;
}

.quick-mail-global__helper,
.quick-mail-global__validation {
  margin: 0;
}

.quick-mail-global__smtp-picker {
  position: relative;
}

.quick-mail-global__contact-picker {
  position: relative;
}

.quick-mail-global__smtp-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  border: 1px solid rgba(205, 219, 239, 0.96);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(24, 50, 77, 0.04);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.quick-mail-global__smtp-trigger:hover {
  border-color: rgba(47, 111, 236, 0.28);
  box-shadow: 0 14px 28px rgba(24, 50, 77, 0.08);
}

.quick-mail-global__smtp-trigger:focus-visible {
  outline: none;
  border-color: rgba(47, 111, 236, 0.56);
  box-shadow: 0 0 0 4px rgba(47, 111, 236, 0.12);
}

.quick-mail-global__smtp-trigger--open {
  border-color: rgba(47, 111, 236, 0.42);
  background: linear-gradient(180deg, rgba(238, 245, 255, 1) 0%, rgba(228, 239, 255, 0.98) 100%);
  box-shadow:
    0 16px 30px rgba(47, 111, 236, 0.1),
    inset 0 0 0 1px rgba(47, 111, 236, 0.1);
}

.quick-mail-global__smtp-trigger-main,
.quick-mail-global__smtp-trigger-side {
  min-width: 0;
}

.quick-mail-global__smtp-trigger-main {
  display: grid;
  gap: 4px;
}

.quick-mail-global__smtp-trigger-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.quick-mail-global__smtp-trigger-email {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quick-mail-global__smtp-trigger-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.quick-mail-global__smtp-trigger-caret {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.quick-mail-global__smtp-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 219, 239, 0.96);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(24, 50, 77, 0.16);
  backdrop-filter: blur(6px);
}

.quick-mail-global__contact-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 39;
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 219, 239, 0.96);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(24, 50, 77, 0.16);
  backdrop-filter: blur(6px);
}

.quick-mail-global__contact-list {
  display: grid;
  gap: 0;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 12px;
}

.quick-mail-global__contact-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  border: 0;
  border-bottom: 1px solid rgba(221, 231, 246, 0.96);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.quick-mail-global__contact-option:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.quick-mail-global__contact-option:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.quick-mail-global__contact-option:hover {
  background: linear-gradient(180deg, rgba(243, 248, 255, 1) 0%, rgba(234, 242, 255, 0.98) 100%);
}

.quick-mail-global__contact-option:focus-visible {
  outline: none;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px rgba(47, 111, 236, 0.34);
}

.quick-mail-global__contact-option-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-mail-global__contact-option-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.quick-mail-global__contact-option-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quick-mail-global__contact-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-mail-global__smtp-list {
  display: grid;
  gap: 0;
  max-height: none;
  overflow: visible;
  border-radius: 12px;
}

.quick-mail-global__smtp-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  border: 0;
  border-bottom: 1px solid rgba(221, 231, 246, 0.96);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.quick-mail-global__smtp-option:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.quick-mail-global__smtp-option:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.quick-mail-global__smtp-option:hover {
  background: linear-gradient(180deg, rgba(243, 248, 255, 1) 0%, rgba(234, 242, 255, 0.98) 100%);
}

.quick-mail-global__smtp-option:focus-visible {
  outline: none;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px rgba(47, 111, 236, 0.34);
}

.quick-mail-global__smtp-option--selected {
  background: linear-gradient(180deg, rgba(238, 245, 255, 1) 0%, rgba(228, 239, 255, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 236, 0.16);
}

.quick-mail-global__smtp-option--add {
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.98) 0%, rgba(229, 240, 255, 0.96) 100%);
}

.quick-mail-global__smtp-option--add:hover {
  background: linear-gradient(180deg, rgba(230, 241, 255, 1) 0%, rgba(220, 234, 255, 0.98) 100%);
}

.quick-mail-global__smtp-option-main,
.quick-mail-global__smtp-option-side {
  min-width: 0;
}

.quick-mail-global__smtp-option-main {
  display: grid;
  gap: 2px;
}

.quick-mail-global__smtp-option-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.quick-mail-global__smtp-option-email {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.quick-mail-global__smtp-option-side {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.quick-mail-global__smtp-option-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #2f6fec;
  background: rgba(47, 111, 236, 0.12);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.quick-mail-global__smtp-option-side .smtp-limit-chip {
  min-width: 50px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.email-center__lead-history-row--syncing {
  background: linear-gradient(90deg, rgba(245, 249, 255, 0.96) 0%, rgba(236, 244, 255, 0.98) 50%, rgba(245, 249, 255, 0.96) 100%);
  background-size: 200% 100%;
  animation: lead-history-sync-row 1.4s ease-in-out infinite;
}

.email-center__lead-history-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f6fec;
  font-size: 13px;
  font-weight: 600;
}

.email-center__lead-history-sync-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(47, 111, 236, 0.2);
  border-top-color: #2f6fec;
  animation: loading-state-spin 0.8s linear infinite;
}

@keyframes lead-history-sync-row {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.quick-mail-global__smtp-trigger-side .smtp-limit-chip {
  min-width: 46px;
  min-height: 22px;
  padding: 3px 7px;
  font-size: 10px;
}

.quick-mail-global__validation {
  color: var(--danger);
}

.email-center__prepare-summary-input {
  min-width: 0;
}

.email-center__modal-backdrop--draft-editor {
  background: rgba(18, 35, 57, 0.28);
  backdrop-filter: none;
  animation: modal-backdrop-fade-in-light 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.email-center__modal--draft-editor {
  contain: layout paint;
  animation: modal-surface-enter-light 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-audit-panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.site-details-modal__header-actions {
  align-items: center;
  gap: 10px;
}

.ai-audit-panel--loading {
  align-items: start;
}

.ai-audit-loader {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(179, 198, 222, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 254, 0.92) 0%, rgba(240, 246, 252, 0.88) 100%);
}

.ai-audit-loader__spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid rgba(92, 128, 171, 0.18);
  border-top-color: rgba(92, 128, 171, 0.72);
  border-radius: 999px;
  animation: ai-audit-loader-spin 0.85s linear infinite;
}

.ai-audit-loader__content {
  display: grid;
  gap: 4px;
}

.ai-audit-loader__content strong {
  font-size: 14px;
  color: var(--text);
}

.ai-audit-loader__content p {
  margin: 0;
  color: var(--muted);
}

@keyframes ai-audit-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes modal-backdrop-fade-in {
  from {
    opacity: 0;
    background: rgba(18, 35, 57, 0);
  }

  to {
    opacity: 1;
    background: rgba(18, 35, 57, 0.34);
  }
}

@keyframes modal-surface-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.972);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-backdrop-fade-in-light {
  from {
    opacity: 0;
    background: rgba(18, 35, 57, 0);
  }

  to {
    opacity: 1;
    background: rgba(18, 35, 57, 0.28);
  }
}

@keyframes modal-surface-enter-light {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.994);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-state--compact {
  padding: 20px;
}

.empty-state--compact strong {
  font-size: 16px;
}

.empty-state--modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: calc(100% + 48px);
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), #eef5ff 28%, #eaf3ff 100%);
}

.empty-state--modal-footer .empty-state__actions {
  margin-top: 12px;
}

.status-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--danger-soft);
  border: 1px solid rgba(198, 71, 71, 0.2);
  border-radius: 14px;
}

.status-note h3,
.status-note p {
  margin: 0;
}

.status-note p + p {
  margin-top: 8px;
}

.details {
  margin-top: 16px;
}

.details summary {
  cursor: pointer;
  color: var(--accent);
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.toast-container {
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.toast--success {
  background: #1f8f5f;
}

.toast--info {
  background: #3568c9;
}

.toast--warning {
  background: #b67a12;
}

.toast--error {
  background: #c64747;
}

.toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 236, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .content {
    padding: 20px;
  }

  .card--wide {
    padding: 20px;
  }

  .email-center__summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smtp-pool__summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .suppression-import-accordion {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .page-header,
  .section-header,
  .panel-title,
  .attention-item,
  .activity-item,
  .system-check,
  .campaign-switcher__main {
    flex-direction: column;
  }

  .system-check__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .campaign-switcher__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-switcher__delete {
    justify-self: flex-start;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 16px;
  }

  .modal {
    width: 100%;
  }

  .modal__header,
  .modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal__footer {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .empty-state--modal-footer {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
  }

  .quick-mail-global__grid {
    grid-template-columns: 1fr;
  }

  .quick-mail-global__workspace {
    grid-template-columns: 1fr;
  }

  .email-center__summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-deliverability-columns {
    grid-template-columns: 1fr;
  }

  .smtp-pool__summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smtp-pool__quick-add {
    grid-template-columns: 1fr;
  }

  .smtp-pool__quick-add-button {
    width: 100%;
  }

  .quick-mail-global__confirm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .email-center__summary-grid {
    grid-template-columns: 1fr;
  }

  .smtp-pool__summary-grid {
    grid-template-columns: 1fr;
  }
}

body.auth-hidden .sidebar {
  display: none;
}

body.auth-hidden .layout {
  grid-template-columns: 1fr;
}

.sidebar__userbar {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.sidebar__userbar-name {
  font-size: 14px;
  font-weight: 700;
}

.sidebar__userbar-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  align-content: start;
  padding: 32px 20px;
  gap: 28px;
}

.auth-screen__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.auth-screen__brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.auth-screen__brand-copy {
  display: grid;
  gap: 2px;
}

.auth-screen__brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
}

.auth-screen__brand-copy span {
  width: 100px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
  justify-self: center;
}

.auth-card__title {
  font-size: 24px;
  margin: 0;
}

.auth-card__subtitle {
  margin: 0;
  color: var(--text-muted);
}

.auth-card__error {
  color: var(--danger);
  font-size: 14px;
  margin: 0;
}

.auth-remember-field {
  margin-top: -6px;
}

/* Telegram outreach */
.tg-section {
  display: grid;
  gap: 16px;
}

.tg-section__toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
}

.tg-section__toolbar--wrap {
  flex-wrap: wrap;
}

.tg-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e5e7eb;
  color: #374151;
}

.tg-badge--active {
  background: #dcfce7;
  color: #166534;
}

.tg-badge--limited,
.tg-badge--awaiting {
  background: #fef3c7;
  color: #92400e;
}

.tg-badge--banned {
  background: #fee2e2;
  color: #991b1b;
}

.tg-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tg-chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 16px;
  min-height: 420px;
}

.tg-chat-list {
  display: grid;
  gap: 8px;
  align-content: start;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  max-height: 560px;
  overflow: auto;
}

.tg-chat-list__item {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  cursor: pointer;
}

.tg-chat-list__item--active {
  border-color: var(--primary, #2563eb);
  box-shadow: inset 0 0 0 1px var(--primary, #2563eb);
}

.tg-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 420px;
}

.tg-chat-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tg-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  max-height: 520px;
  overflow: auto;
}

.tg-bubble {
  max-width: min(520px, 85%);
  padding: 10px 12px;
  border-radius: 14px;
  display: grid;
  gap: 6px;
}

.tg-bubble--out {
  margin-left: auto;
  background: #e5e7eb;
}

.tg-bubble--in {
  margin-right: auto;
  background: #ffffff;
  border: 1px solid var(--border);
}

.tg-bubble__meta {
  font-size: 11px;
  color: var(--text-muted);
}

.tg-channel-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tg-channel-radios__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field--inline {
  min-width: 180px;
}

@media (max-width: 900px) {
  .tg-chat-layout {
    grid-template-columns: 1fr;
  }

  .tg-chat-list {
    border-right: 0;
    padding-right: 0;
    max-height: 240px;
  }
}
