
  .contacts-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contacts-surface {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 35px -30px rgba(15, 23, 42, 0.25);
  }

  html.dark .contacts-surface {
    border-color: #262626;
    background: #111111;
    box-shadow: none;
  }

  .icon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0;
    box-shadow: none;
  }

  .icon-action-btn svg,
  .icon-action-btn i[data-lucide] {
    width: 16px;
    height: 16px;
  }

  .icon-action-btn:hover {
    filter: none;
    transform: none;
    box-shadow: none;
    background: #f8fafc;
  }

  .icon-action-btn-danger {
    border-color: #fecaca;
    background: #fff5f5;
    color: #dc2626;
  }

  .icon-action-btn-danger:hover {
    background: #fef2f2;
  }

  html.dark .icon-action-btn {
    border-color: rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.72);
  }

  html.dark .icon-action-btn:hover {
    background: rgba(30, 41, 59, 0.9);
  }

  html.dark .icon-action-btn-danger {
    border-color: rgba(127, 29, 29, 0.7);
    background: rgba(127, 29, 29, 0.18);
    color: #fca5a5;
  }

  html.dark .icon-action-btn-danger:hover {
    background: rgba(127, 29, 29, 0.28);
  }

  .icon-action-btn-primary {
    border-color: var(--primary-color, #22c55e);
    background: var(--primary-color, #22c55e);
    color: #fff;
  }

  .icon-action-btn-primary:hover {
    background: var(--primary-color, #22c55e);
    filter: brightness(0.92);
  }

  html.dark .icon-action-btn-primary {
    border-color: var(--primary-color, #22c55e);
    background: var(--primary-color, #22c55e);
  }

  html.dark .icon-action-btn-primary:hover {
    filter: brightness(0.92);
  }

  .contacts-page-title {
    font-size: 25px;
    line-height: 1.2;
  }

  .contacts-page-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .contacts-search-field {
    min-height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 12px;
  }

  html.dark .contacts-search-field {
    border-color: #3f3f46;
    background: #18181b;
  }

  .contacts-select {
    min-height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    color: #0f172a;
  }

  html.dark .contacts-select {
    border-color: #3f3f46;
    background: #18181b;
    color: #e2e8f0;
  }

  .contacts-select:focus,
  .contacts-search-field:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
  }

  html.dark .contacts-select:focus,
  html.dark .contacts-search-field:focus-within {
    border-color: #52525b;
    box-shadow: none;
  }

  .contacts-mobile-item {
    margin: 4px;
    border-radius: 14px;
    border: 1px solid transparent;
  }

  .contacts-mobile-item:hover {
    border-color: #e2e8f0;
  }

  .contacts-batch {
    background: rgba(15, 23, 42, 0.03);
    border-color: #e2e8f0;
  }

  html.dark .contacts-batch {
    background: rgba(255, 255, 255, 0.025);
    border-color: #3f3f46;
  }

  .contacts-table thead th {
    letter-spacing: 0.06em;
    font-size: 11px;
  }

  .contacts-pagination {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  html.dark .contacts-pagination {
    border-top-color: #3f3f46;
    background: #0a0a0a;
  }

  .contacts-modal-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 65px -40px rgba(15, 23, 42, 0.55);
  }

  html.dark .contacts-modal-card {
    border-color: #3f3f46;
    background: #111111;
    box-shadow: none;
  }

  .contacts-loading-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
  }

  html.dark .contacts-loading-card {
    border-color: #3f3f46;
    background: #111111;
  }

  @media (max-width: 768px) {
    body.page-contacts .content {
      padding-top: 14px;
      padding-bottom: 14px;
    }

    .contacts-page-title {
      font-size: 22px;
    }
  }

  @media (max-width: 1023px) {
    .contacts-filters-form[data-expanded="false"] .contacts-advanced-filter,
    .contacts-filters-form[data-expanded="false"] .contacts-submit-filter {
      display: none;
    }

    .contacts-mobile-actions {
      display: none;
    }

    .contacts-mobile-actions[data-expanded="true"] {
      display: flex;
    }
  }

  /* Filtro de etiquetas — estado selecionado do modo (Qualquer / Todas).
     CSS puro (independente do Tailwind compilado) para o toggle mostrar a opção ativa. */
  .tag-mode-opt {
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
  }
  .tag-mode-toggle input:checked + .tag-mode-opt {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
  }
  html.dark .tag-mode-toggle input:checked + .tag-mode-opt {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  /* Colunas da barra de filtros no desktop. Em CSS próprio de propósito:
     o Tailwind aqui é pré-compilado e uma classe de valor arbitrário nova
     (lg:grid-cols-[...]) simplesmente não existiria no bundle. */
  @media (min-width: 1024px) {
    .contacts-filters-form {
      grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) max-content max-content;
    }

    .contacts-more-panel {
      left: auto;
      right: 0;
      width: 290px;
    }
  }

  /* Painel "Mais filtros" — agrupa conexao/conversa/e-mail/por pagina para a
     barra caber em uma linha so no desktop. */
  .contacts-more-panel .contacts-select {
    width: 100%;
    min-height: 38px;
  }

  .contacts-more-field-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
  }

  html.dark .contacts-more-field-label {
    color: #94a3b8;
  }

  .contacts-more-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: #0f172a;
    color: #ffffff;
  }

  html.dark .contacts-more-badge {
    background: #e2e8f0;
    color: #0f172a;
  }
