/**
 * Ads2Wallet — Contatti / leads toolbar & KPI (dark shell only).
 */

html.a2w-shell #leads .leads-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  align-items: center;
}

html.a2w-shell #leads .leads-toolbar__search {
  flex: 1 1 320px;
  min-width: 320px;
  max-width: 100%;
  width: auto;
}

html.a2w-shell #leads .leads-export-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  white-space: nowrap;
}

html.a2w-shell #leads .leads-export-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
}

html.a2w-shell #leadsStats.a2w-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  html.a2w-shell #leadsStats.a2w-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  html.a2w-shell #leadsStats.a2w-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

html.a2w-shell #leadsStats.a2w-stats-grid .stat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-4);
  border-radius: var(--a2w-radius-card, 16px);
  background: var(--bg-canvas);
  border: 1px solid var(--a2w-border-default);
}

html.a2w-shell #leadsStats.a2w-stats-grid .stat-label {
  text-transform: none;
  letter-spacing: 0;
  color: var(--a2w-text-secondary);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
}

html.a2w-shell #leadsStats.a2w-stats-grid .stat-num {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--a2w-text-primary);
  line-height: 1.2;
}

html.a2w-shell #leads .leads-empty-host {
  margin-bottom: var(--space-4);
}

html.a2w-shell #leads.a2w-contacts-page {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

html.a2w-shell #leads .contacts-page-header,
html.a2w-shell #leads .a2w-contacts-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--a2w-border-default);
  margin-bottom: var(--space-1);
}

html.a2w-shell #leads .a2w-contacts-page-header__main {
  flex: 1 1 auto;
  min-width: 0;
}

html.a2w-shell #leads .a2w-contacts-page-subtitle {
  display: block !important;
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
  color: var(--a2w-text-secondary);
}

html.a2w-shell #leads .contacts-page-header h1.page-title {
  font-size: var(--a2w-type-h1-size, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 4px;
}

html.a2w-shell #leads .contacts-page-blurb {
  color: var(--a2w-text-secondary);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.45;
  margin: 0;
  max-width: 52ch;
}

html.a2w-shell #leads .contacts-top-grid {
  display: block;
  margin-bottom: 0;
}

html.a2w-shell #leads #contactsCardA {
  border: none;
  background: transparent;
  padding: 0;
}

html.a2w-shell #leads .contacts-card__heading {
  display: none;
}

#leads .a2w-contacts-header-actions {
  display: none;
}

html.a2w-shell #leads .a2w-contacts-header-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-3);
}

html.a2w-shell #leads .a2w-contacts-header-btn {
  min-height: 40px;
  padding-inline: 16px;
  font-weight: 500;
  white-space: nowrap;
}

html.a2w-shell #leads .a2w-contacts-header-btn.a2w-btn-primary,
html.a2w-shell #leads .a2w-btn-primary {
  background: var(--a2w-action-primary, #3fe0c8);
  color: #0b1220;
  border: 0;
  font-weight: 600;
}

html.a2w-shell #leads .a2w-contacts-header-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--a2w-border-default);
  color: var(--a2w-text-primary);
}

html.a2w-shell #leads .a2w-contacts-help-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  position: relative;
}

html.a2w-shell #leads .a2w-contacts-help-trigger {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--a2w-border-default);
  background: rgba(255, 255, 255, 0.06);
  color: var(--a2w-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  padding: 0;
}

html.a2w-shell #leads .a2w-contacts-help-trigger:focus-visible,
html.a2w-shell #leads .a2w-contacts-search-input:focus-visible,
html.a2w-shell #leads .a2w-contacts-toolbar-btn:focus-visible,
html.a2w-shell #leads .a2w-contacts-header-btn:focus-visible,
html.a2w-shell #leads .a2w-contacts-kpi-card:focus-visible,
html.a2w-shell #leads .a2w-leads-kebab-btn:focus-visible,
html.a2w-shell #leads .a2w-contacts-filter-reset:focus-visible,
html.a2w-shell #leads .a2w-contacts-empty__link:focus-visible,
html.a2w-shell #leads .a2w-contacts-filter-option:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px var(--a2w-action-primary);
}

html.a2w-shell #leads.a2w-contacts-page--wai {
  padding-bottom: calc(var(--a2w-fab-clearance, 96px) + 12px);
}

html.a2w-shell #leads.a2w-contacts-page--wai-min {
  padding-bottom: calc(var(--a2w-fab-clearance, 96px) - 28px);
}

html.a2w-shell #leads .a2w-contacts-help-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 80vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--a2w-border-default);
  background: #111827;
  color: var(--a2w-text-secondary);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: var(--a2w-z-tooltip);
}

html.a2w-shell #leads .a2w-contacts-help-wrap:hover .a2w-contacts-help-tooltip,
html.a2w-shell #leads .a2w-contacts-help-trigger:focus + .a2w-contacts-help-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

html.a2w-shell #leads #contactsToolbarHost.a2w-contacts-toolbar {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  border: 1px solid var(--a2w-border-default);
  background: rgba(255, 255, 255, 0.02);
}

html.a2w-shell #leads .a2w-contacts-search-wrap {
  position: relative;
  flex: 1 1 360px;
  min-width: 240px;
}

html.a2w-shell #leads .a2w-contacts-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--a2w-text-secondary);
  pointer-events: none;
}

html.a2w-shell #leads .a2w-contacts-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 34px;
  border-radius: 10px;
  border: 1px solid var(--a2w-border-default);
  background: #0f172a;
  color: var(--a2w-text-primary);
  font-size: 0.9375rem;
}

html.a2w-shell #leads .a2w-contacts-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

html.a2w-shell #leads .a2w-contacts-toolbar-btn {
  min-height: 40px;
}

html.a2w-shell #leads .a2w-contacts-toolbar-btn.is-disabled,
html.a2w-shell #leads .a2w-contacts-toolbar-btn:disabled,
html.a2w-shell #leads .a2w-contacts-toolbar-btn--muted {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
}

html.a2w-shell #leads .a2w-contacts-filter-wrap {
  position: relative;
}

html.a2w-shell #leads .a2w-contacts-filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(240px, calc(100vw - 32px));
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--a2w-border-default);
  background: #0f172a;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: var(--a2w-z-popover, 8900);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

html.a2w-shell #leads .a2w-contacts-filter-popover[hidden] {
  display: none !important;
}

html.a2w-shell #leads .a2w-contacts-filter-popover__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--a2w-text-primary);
}

html.a2w-shell #leads .a2w-contacts-filter-popover__hint {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--a2w-text-secondary);
  cursor: pointer;
}

html.a2w-shell #leads .a2w-contacts-filter-popover input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

html.a2w-shell #leads .a2w-contacts-filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html.a2w-shell #leads .a2w-contacts-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--a2w-text-secondary);
  transition: background 120ms ease;
}

html.a2w-shell #leads .a2w-contacts-filter-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

html.a2w-shell #leads .a2w-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--a2w-action-primary);
  appearance: none;
  border: 1px solid var(--a2w-border-default);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

html.a2w-shell #leads .a2w-checkbox:checked {
  background: var(--a2w-action-primary);
  border-color: var(--a2w-action-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230b1220' d='M6.2 11.4 3.4 8.6l1-1 1.8 1.8 4-4 1 1z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

html.a2w-shell #leads .a2w-contacts-filter-option__label {
  flex: 1;
  user-select: none;
}

html.a2w-shell #leads .a2w-contacts-filter-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--a2w-border-default);
}

html.a2w-shell #leads .a2w-contacts-filter-reset {
  margin-top: 2px;
  width: 190px;
  border-radius: 10px;
  border: 1px solid var(--a2w-border-default);
  background: #0f172a;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--a2w-z-dropdown);
}

html.a2w-shell #leads .a2w-contacts-filter-popover label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html.a2w-shell #leads .a2w-contacts-filter-reset {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--a2w-action-primary);
  cursor: pointer;
  text-align: left;
  padding: 6px 4px;
  font-size: 12px;
  border-radius: 6px;
  padding: 0;
  font-size: 12px;
}

html.a2w-shell #leads .a2w-contacts-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

html.a2w-shell #leads .a2w-contacts-kpi-card {
  border: 1px solid var(--a2w-border-default);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}

html.a2w-shell #leads .a2w-contacts-kpi-card.is-selected {
}

html.a2w-shell #leads .a2w-contacts-kpi-card.is-primary {
  border-color: rgba(63, 224, 200, 0.45);
  background: rgba(63, 224, 200, 0.08);
}

html.a2w-shell #leads .a2w-contacts-kpi-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html.a2w-shell #leads .a2w-contacts-kpi-label {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a2w-text-secondary);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

html.a2w-shell #leads .a2w-contacts-kpi-value {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--a2w-text-primary);
  display: block;
}

html.a2w-shell #leads .a2w-contacts-kpi-card.is-selected .a2w-contacts-kpi-value {
}

html.a2w-shell #leads .a2w-contacts-kpi-card.is-primary .a2w-contacts-kpi-value {
  color: var(--a2w-action-primary);
}

html.a2w-shell #leads .a2w-contacts-kpi-delta {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  align-self: end;
}

html.a2w-shell #leads .a2w-contacts-kpi-delta.is-positive {
  color: #6ee7b7;
}

html.a2w-shell #leads .a2w-contacts-kpi-delta.is-negative {
  color: #fca5a5;
  color: var(--a2w-text-tertiary);
  font-size: 11px;
  white-space: nowrap;
}

html.a2w-shell #leads #leadsTable tbody tr:hover {
  background: rgba(30, 41, 59, 0.5);
  transition: background var(--a2w-dur-sidebar) ease;
}

html.a2w-shell #leads .a2w-contacts-mail-link {
  color: var(--a2w-action-primary);
}

html.a2w-shell #leads .a2w-leads-row-actions {
  position: relative;
  display: inline-flex;
}

html.a2w-shell #leads .a2w-leads-kebab-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--a2w-border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--a2w-text-secondary);
  cursor: pointer;
}

html.a2w-shell #leads .a2w-leads-row-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  border: 1px solid var(--a2w-border-default);
  border-radius: 10px;
  background: #111827;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: var(--a2w-z-dropdown);
}

html.a2w-shell #leads .a2w-leads-row-menu[hidden] {
  display: none !important;
}

html.a2w-shell #leads .a2w-leads-row-menu button {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a2w-text-secondary);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

html.a2w-shell #leads .a2w-leads-row-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--a2w-text-primary);
}

html.a2w-shell #leads .a2w-leads-row-menu button.is-danger {
  color: #fca5a5;
}

html.a2w-shell #leads .a2w-leads-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

html.a2w-shell #leads .a2w-leads-pagination__left,
html.a2w-shell #leads .a2w-leads-pagination__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--a2w-text-secondary);
  font-size: 12px;
}

html.a2w-shell #leads .a2w-leads-pagination select {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid var(--a2w-border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--a2w-text-primary);
}

html.a2w-shell #leads .a2w-contacts-empty {
  border: 1px dashed var(--a2w-border-default);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 34px 20px;
  text-align: center;
}

html.a2w-shell #leads .a2w-contacts-empty__icon {
  font-size: 40px;
  margin-bottom: 10px;
}

html.a2w-shell #leads .a2w-contacts-empty__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

html.a2w-shell #leads .a2w-contacts-empty__desc {
  margin: 0 auto 16px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

html.a2w-shell #leads .a2w-contacts-empty__icon-svg {
  color: var(--a2w-action-primary);
  opacity: 0.9;
}

html.a2w-shell #leads .a2w-contacts-empty__or {
  margin: 18px auto 14px;
  max-width: 420px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
}

html.a2w-shell #leads .a2w-contacts-empty__or::before,
html.a2w-shell #leads .a2w-contacts-empty__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--a2w-border-default);
}

html.a2w-shell #leads .a2w-contacts-empty__actions--secondary {
  margin-top: 0;
  color: var(--a2w-text-secondary);
}

html.a2w-shell #leads .a2w-contacts-empty__actions--primary {
  margin-bottom: 4px;
}

html.a2w-shell #leads .a2w-contacts-empty__cta {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.9375rem;
  font-weight: 600;
}

html.a2w-shell #leads .a2w-contacts-empty__actions--secondary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

html.a2w-shell #leads .a2w-contacts-empty__sep {
  color: rgba(148, 163, 184, 0.6);
  user-select: none;
}

html.a2w-shell #leads .a2w-contacts-empty__link {
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, 0.95);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
}

html.a2w-shell #leads .a2w-contacts-empty__link:hover {
  color: var(--a2w-text-primary);
  text-decoration: underline;
}

html.a2w-shell #leads .a2w-contacts-filter-empty {
  padding: 16px;
  border: 1px dashed var(--a2w-border-default);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
}

html.a2w-shell #leads .a2w-leads-pagination__right .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--a2w-action-primary);
}

html.a2w-shell #leads .a2w-contacts-error-banner {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

html.a2w-shell #leads .a2w-contacts-skeleton-row td {
  padding-top: 10px;
  padding-bottom: 10px;
}

html.a2w-shell #leads .a2w-skeleton-line {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.38), rgba(148, 163, 184, 0.22));
  background-size: 180% 100%;
  animation: a2wContactsSkeleton 1.2s linear infinite;
}

@keyframes a2wContactsSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 1023px) {
  html.a2w-shell #leads .a2w-contacts-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.a2w-shell #leads .a2w-contacts-filter-popover {
    right: auto;
    left: 0;
  }
}

@media (max-width: 767px) {
  html.a2w-shell #leads .contacts-page-header {
    flex-direction: column;
  }

  html.a2w-shell #leads .a2w-contacts-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  html.a2w-shell #leads #leadsTable {
    display: block;
    overflow-x: auto;
  }

  html.a2w-shell #leads #contactsToolbarHost.a2w-contacts-toolbar {
    align-items: stretch;
  }
}

/* ---- A2W Contatti: header hierarchy + empty state + add-contact modal (2026-05) ---- */
html.a2w-shell #leads .contacts-page-header h1.page-title {
  font-size: clamp(32px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

html.a2w-shell #leads .a2w-contacts-help-trigger {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(2, 6, 23, 0.2);
  color: rgba(226, 232, 240, 0.85);
  font-size: 10px;
  font-weight: 800;
  cursor: help;
}

html.a2w-shell #leads .a2w-contacts-help-tooltip {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.85);
}

html.a2w-shell #leads .a2w-contacts-empty {
  padding: 26px 18px;
}

html.a2w-shell #leads .a2w-contacts-empty__icon {
  font-size: 36px;
  margin-bottom: 8px;
}

html.a2w-shell #leads .a2w-contacts-empty__title {
  font-size: 20px;
}

html.a2w-shell #leads .a2w-contacts-empty__desc {
  margin-bottom: 14px;
}

html.a2w-shell #leads .a2w-contacts-empty__link--muted {
  display: inline-block;
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  font-size: 12px;
}

html.a2w-shell #leads .a2w-contacts-empty__link--muted:hover {
  color: var(--a2w-text-primary);
  text-decoration: underline;
}

html.a2w-shell #leads .a2w-contacts-empty__howto {
  margin-top: 14px;
}

html.a2w-shell #leads .a2w-contacts-empty__howto summary {
  cursor: pointer;
  user-select: none;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  list-style: none;
}

html.a2w-shell #leads .a2w-contacts-empty__howto summary::-webkit-details-marker {
  display: none;
}

html.a2w-shell #leads .a2w-contacts-empty__steps {
  margin: 10px auto 0;
  padding-left: 18px;
  max-width: 420px;
  text-align: left;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  line-height: 1.45;
}

html.a2w-shell #leads .a2w-contacts-empty__steps li {
  margin: 6px 0;
}

/* remove old empty-state pieces */
html.a2w-shell #leads .a2w-contacts-onboarding,
html.a2w-shell #leads .a2w-contacts-onboarding__step,
html.a2w-shell #leads .a2w-contacts-more-actions,
html.a2w-shell #leads .a2w-contacts-more-actions__panel {
  display: none !important;
}

/* Add-contact modal — form layout (shell in a2w-modal.css) */
html.a2w-shell .a2w-add-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  margin-bottom: 18px;
}

@media (max-width: 639px) {
  html.a2w-shell .a2w-add-contact-grid {
    grid-template-columns: 1fr;
  }
}

html.a2w-shell .a2w-add-contact-template-wrap {
  margin-top: 12px;
}

html.a2w-shell .a2w-add-contact-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
}

html.a2w-shell .a2w-add-contact-consent-row {
  margin-top: 10px;
}

html.a2w-shell .a2w-add-contact-consent-help {
  margin-top: 8px;
}

html.a2w-shell .a2w-add-contact-consent-help summary {
  cursor: pointer;
  color: rgba(148, 163, 184, 0.95);
  font-size: 12px;
  list-style: none;
}

html.a2w-shell .a2w-add-contact-consent-help summary::-webkit-details-marker {
  display: none;
}

html.a2w-shell .a2w-add-contact-consent-help__panel {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.85);
  font-size: 12px;
  line-height: 1.45;
}

html.a2w-shell .a2w-add-contact-input--invalid,
html.a2w-shell .a2w-add-contact-input--required {
  border-color: rgba(248, 113, 113, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18) !important;
}

html.a2w-shell #leads .a2w-contacts-onboarding {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 10px;
}

html.a2w-shell #leads .a2w-contacts-onboarding li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--a2w-text-secondary);
}

html.a2w-shell #leads .a2w-contacts-onboarding__step {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(63, 224, 200, 0.15);
  color: var(--a2w-action-primary);
  flex-shrink: 0;
}

html.a2w-shell #leads .a2w-contacts-more-actions {
  margin-top: 4px;
}

html.a2w-shell #leads .a2w-contacts-more-actions summary {
  cursor: pointer;
  color: var(--a2w-text-secondary);
  font-size: 12px;
  list-style: none;
}

html.a2w-shell #leads .a2w-contacts-more-actions summary::-webkit-details-marker {
  display: none;
}

html.a2w-shell #leads .a2w-contacts-more-actions__panel {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

html.a2w-shell .a2w-add-contact-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--a2w-action-primary, #3fe0c8);
}
