/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --font-title: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-content: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-bg: #ffffff;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-border: #e5e7eb;
  --app-text: #111827;
  --app-muted: #64748b;
  --floating-navbar-height: 78px;
  --floating-navbar-gap: 12px;
  --page-navbar-bottom-space: calc(var(--floating-navbar-height) + var(--floating-navbar-gap) + env(safe-area-inset-bottom));
  color-scheme: light;
}

html[data-theme="dark"] {
  --app-bg: #000000;
  --app-surface: #0f0f10;
  --app-surface-soft: #171717;
  --app-border: #2a2a2a;
  --app-text: #f5f5f5;
  --app-muted: #a3a3a3;
  color-scheme: dark;
}

/* Trava absoluta no viewport */
html,
body {
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--app-bg);
  color: var(--app-text);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  position: fixed;
  width: 100%;
  font-family: var(--font-content);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
[class$="__title"],
[class*="__title "] {
  font-family: var(--font-title);
}

* {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
  touch-action: manipulation;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

.mock-conversations__list,
.mock-contacts__list,
.messages-screen__list,
.conversation-actions__picker-list {
  -webkit-overflow-scrolling: touch;
}

/* O scroll fica nos containers internos das telas, evitando bounce no shell. */
.app-shell {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--page-navbar-bottom-space);
  box-sizing: border-box;
}

.app-shell::-webkit-scrollbar {
  display: none;
}

.app-shell--no-navbar {
  padding-bottom: 0;
}

.app-shell:has(.mock-conversations),
.app-shell:has(.mock-contacts),
.app-shell:has(.contact-show) {
  padding-bottom: 0;
}

.floating-navbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(360px, calc(100% - 32px));
  min-height: 62px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 44px rgba(25, 28, 37, 0.14);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  z-index: 100;
}

.internal-chat-message__sender {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.internal-chat-composer__card {
  min-height: 112px;
}

.internal-chat-composer__input-view {
  min-height: 112px;
}

.internal-chat-composer__send {
  display: inline-flex;
}

.internal-chat-create-drawer {
  display: flex;
  max-height: calc(88dvh - env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.internal-chat-create-drawer__section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.internal-chat-create-drawer__section-title {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.internal-chat-create-drawer__form {
  display: grid;
  gap: 10px;
}

.internal-chat-create-drawer__mode-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.internal-chat-create-drawer__mode-options {
  display: grid;
  gap: 8px;
}

.internal-chat-create-drawer__mode-card {
  display: grid;
  gap: 4px;
  min-height: 62px;
  align-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  color: #0f172a;
}

.internal-chat-create-drawer__mode-card strong {
  font-size: 14px;
}

.internal-chat-create-drawer__mode-card span {
  color: #64748b;
  font-size: 12px;
}

.internal-chat-create-drawer__panels .internal-chat-create-drawer__section {
  display: none;
}

#internal_chat_kind_direct:checked ~ .internal-chat-create-drawer__mode-options label[for="internal_chat_kind_direct"],
#internal_chat_kind_group:checked ~ .internal-chat-create-drawer__mode-options label[for="internal_chat_kind_group"] {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

#internal_chat_kind_direct:checked ~ .internal-chat-create-drawer__panels .internal-chat-create-drawer__section--direct,
#internal_chat_kind_group:checked ~ .internal-chat-create-drawer__panels .internal-chat-create-drawer__section--group {
  display: grid;
}

.internal-chat-create-drawer__agent-list {
  display: grid;
  max-height: 190px;
  gap: 8px;
  overflow-y: auto;
}

.internal-chat-create-drawer__agent-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px;
  color: #0f172a;
  font-weight: 700;
}

.internal-chat-view-switcher__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.internal-chat-view-switcher__backdrop,
.internal-chat-view-switcher__sheet {
  z-index: 320;
}

.internal-chat-view-switcher__toggle:checked ~ .internal-chat-view-switcher__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.internal-chat-view-switcher__toggle:checked ~ .internal-chat-view-switcher__sheet {
  transform: translateY(0);
}

body.drawer-open .floating-navbar {
  opacity: 0;
  pointer-events: none;
}

.turbo-progress-bar {
  display: none;
}

.floating-navbar__item {
  min-height: 46px;
  border-radius: 18px;
  text-decoration: none;
  color: #4b5563;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.floating-navbar__item:hover {
  color: #111827;
}

.floating-navbar__item--active {
  color: #1f6feb;
  background: transparent;
  box-shadow: none;
}

.floating-navbar__item--active:hover {
  color: #175cd3;
}

.floating-navbar__item:active {
  transform: translateY(1px);
}

.floating-navbar__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-navbar__icon {
  font-size: 15px;
  line-height: 1;
}

.floating-navbar__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.floating-navbar__item--active .floating-navbar__badge {
  background: #1f6feb;
}

.floating-navbar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.floating-navbar__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.floating-navbar__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-navbar__item--active .floating-navbar__avatar {
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.4);
}

.chatwoot-login {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
}

.app-shell--login {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.app-shell--login .chatwoot-login {
  margin: 0;
  max-width: 400px;
  padding: 28px 22px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.chatwoot-login__logo-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatwoot-login__logo {
  height: 42px;
  width: auto;
}

.chatwoot-login__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #0f172a;
}

.chatwoot-login__subtitle {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #64748b;
}

.chatwoot-login__flash {
  display: none;
}

.app-toast {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 500;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  animation: app-toast-in 0.24s ease-out both;
}

.app-toast--leaving {
  animation: app-toast-out 0.24s ease-in both;
}

.app-toast__item {
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.app-toast__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.14);
}

.app-toast__item--notice .app-toast__dot {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.app-toast__item--alert .app-toast__dot {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.16);
}

.app-toast__message {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navigation-skeleton {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 90;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: none;
  background: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 10px calc(86px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.navigation-loading .app-navigation-skeleton {
  display: block;
}

.app-navigation-skeleton__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 16px;
}

.app-navigation-skeleton__button,
.app-navigation-skeleton__title,
.app-navigation-skeleton__search,
.app-navigation-skeleton__avatar,
.app-navigation-skeleton__line {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.app-navigation-skeleton__button::after,
.app-navigation-skeleton__title::after,
.app-navigation-skeleton__search::after,
.app-navigation-skeleton__avatar::after,
.app-navigation-skeleton__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: skeleton-shimmer 1.15s infinite;
}

.app-navigation-skeleton__button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.app-navigation-skeleton__title {
  width: 128px;
  height: 15px;
  border-radius: 999px;
}

.app-navigation-skeleton__search {
  display: block;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.app-navigation-skeleton__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
}

.app-navigation-skeleton__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
}

.app-navigation-skeleton__content {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.app-navigation-skeleton__line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.app-navigation-skeleton__line--title {
  width: 54%;
}

.app-navigation-skeleton__line--body {
  width: 78%;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes app-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.97);
  }
}

.chatwoot-login__form {
  text-align: left;
}

.chatwoot-login__field {
  margin-bottom: 14px;
}

.chatwoot-login__info {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.chatwoot-login__info-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
}

.chatwoot-login__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.chatwoot-login__label-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chatwoot-login__label-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #64748b;
}

.chatwoot-login__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  background: #fff;
}

.chatwoot-login__input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}

.chatwoot-login__submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.chatwoot-login__submit:hover {
  background: #1a5fd1;
}

.chatwoot-login__submit--secondary {
  margin-top: 14px;
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.chatwoot-login__submit--secondary:hover {
  background: #e5e7eb;
}

.chatwoot-login__actions--url-done {
  margin-top: 8px;
}

.chatwoot-login__actions {
  margin: 16px 0 0;
  text-align: center;
}

.chatwoot-login__link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chatwoot-login__link-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chatwoot-login__link-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #1f6feb;
}

.chatwoot-login__link:hover {
  color: #175cd3;
}

@media (min-width: 768px) {
  .app-shell--login .chatwoot-login {
    max-width: 420px;
    padding: 32px 28px 28px;
  }
}

.mock-conversations {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mock-conversations__header {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  background: #fff;
  color: #111827;
  padding: 18px 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 30;
}

.mock-conversations__header-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.mock-conversations__icon-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.mock-conversations__icon-button--ghost {
  visibility: hidden;
}

.mock-conversations__topbar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.mock-conversations__inbox-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.mock-conversations__inbox-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications__count-badge {
  justify-self: end;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.notifications__type-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #e0edff;
  color: #2563eb;
}

.notifications__type-icon--message {
  background: #dcfce7;
  color: #16a34a;
}

.notifications__type-icon--user {
  background: #eef2ff;
  color: #4f46e5;
}

.notifications__type-icon--mention {
  background: #ffedd5;
  color: #ea580c;
}

.notifications__type-icon--bell {
  background: #e0edff;
  color: #2563eb;
}

.view-switcher__options {
  display: grid;
  gap: 10px;
}

.view-switcher__option {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #111827;
  text-decoration: none;
  background: #fff;
}

.view-switcher__option span {
  font-weight: 800;
}

.view-switcher__option small {
  color: #64748b;
  font-size: 12px;
}

.view-switcher__option--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.kanban-mobile__funnels {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.kanban-mobile__funnels::-webkit-scrollbar {
  display: none;
}

.kanban-mobile__funnel-chip {
  flex: 0 0 auto;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.kanban-mobile__funnel-chip--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.kanban-mobile__funnel-select-wrap {
  min-width: 0;
  max-width: 190px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kanban-mobile__funnel-select {
  min-width: 0;
  max-width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-mobile__funnel-select:focus {
  outline: 0;
}

.inbox-header-select {
  min-width: 0;
  width: auto;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
}

.inbox-header-select .kanban-mobile__funnel-select {
  width: auto;
  flex: 0 1 auto;
}

.inbox-header-select__wrap {
  max-width: 190px;
}

.inbox-header-select__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-header-select__native {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  opacity: 0;
}

.kanban-mobile__funnel-select-chevron {
  flex: 0 0 auto;
  display: block;
  pointer-events: none;
  transform: translateY(1px);
}

.kanban-mobile {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
  padding-inline: 12px;
  box-sizing: border-box;
}

.kanban-mobile__columns {
  height: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 var(--page-navbar-bottom-space);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.kanban-mobile__column {
  flex: 0 0 calc(100% - 34px);
  max-width: 390px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--kanban-stage-color, #2563eb) 30%, #ffffff);
  border-radius: 20px;
  background: color-mix(in srgb, var(--kanban-stage-color, #2563eb) 14%, #ffffff);
}

.kanban-mobile__column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--kanban-stage-color, #2563eb) 32%, #ffffff);
  border-radius: 16px;
  background: color-mix(in srgb, var(--kanban-stage-color, #2563eb) 20%, #ffffff);
}

.kanban-mobile__stage-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--kanban-stage-color, #2563eb);
}

.kanban-mobile__column-title-row {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-mobile__column-header h2 {
  margin: 0;
  min-width: 0;
  color: #111827;
  font-family: var(--font-title);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-mobile__column-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.kanban-mobile__cards {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 10px;
  -webkit-overflow-scrolling: touch;
}

.kanban-mobile__card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.kanban-mobile__empty-stage {
  margin: 0;
  padding: 16px 12px;
  border: 1px dashed #dbe7f6;
  border-radius: 16px;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.kanban-mobile__card strong {
  font-size: 15px;
}

.kanban-mobile__card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.kanban-mobile__card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-mobile__card small,
.kanban-mobile__card em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mock-conversations__search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.mock-conversations__search {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #e1e7ef;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #94a3b8;
}

.mock-conversations__search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 14px;
}

.mock-conversations__search input::placeholder {
  color: #94a3b8;
}

.mock-conversations__filter {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
}

.mock-conversations__filter--square {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 0;
}

.mock-conversations__filter-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mock-conversations__filter-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.mock-conversations__filter:focus-visible {
  outline: 2px solid #1a5fd1;
  outline-offset: 2px;
}

.mock-conversations__filter--active {
  border-color: #1a5fd1;
  background: #eff6ff;
  color: #1a5fd1;
}

.mock-conversations__header-top .mock-conversations__filter--square {
  width: 34px;
  height: 34px;
}

.conversation-filter__backdrop {
  z-index: 300;
}

.conversation-filter__sheet {
  z-index: 301;
}

.conversation-filter__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conversation-filter__actions {
  margin-top: 12px;
}

.conversation-filter__field {
  margin-bottom: 10px;
}

.conversation-filter__ddd-field {
  margin-top: 10px;
}

.conversation-filter__ddd-hint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.conversation-filter__status-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.conversation-filter__status-legend {
  margin-bottom: 8px;
}

.conversation-filter__status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-filter__status-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.conversation-filter__status-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.conversation-filter__status-chip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.conversation-filter__chip-check {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  color: inherit;
}

.conversation-filter__status-input:checked+.conversation-filter__status-chip-face .conversation-filter__chip-check,
.conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face .conversation-filter__chip-check,
.conversation-filter__kanban-input:checked+.conversation-filter__kanban-chip-face .conversation-filter__chip-check {
  display: inline-flex;
}

.conversation-filter__chip-check-icon {
  display: block;
}

.conversation-filter__status-chip-face::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
  background: #98a2b3;
}

.conversation-filter__status-chip--any .conversation-filter__status-chip-face::before {
  background: #98a2b3;
}

.conversation-filter__status-chip--open .conversation-filter__status-chip-face::before {
  background: #98a2b3;
}

.conversation-filter__status-chip--pending .conversation-filter__status-chip-face::before {
  background: #eab308;
}

.conversation-filter__status-chip--snoozed .conversation-filter__status-chip-face::before {
  background: #f79009;
}

.conversation-filter__status-chip--resolved .conversation-filter__status-chip-face::before {
  background: #12b76a;
}

.conversation-filter__status-chip--any .conversation-filter__status-chip-face {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.conversation-filter__status-chip--open .conversation-filter__status-chip-face {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.conversation-filter__status-chip--pending .conversation-filter__status-chip-face {
  border-color: rgba(234, 179, 8, 0.35);
  background: #fefce8;
}

.conversation-filter__status-chip--snoozed .conversation-filter__status-chip-face {
  border-color: rgba(247, 144, 9, 0.4);
  background: #fffbeb;
}

.conversation-filter__status-chip--resolved .conversation-filter__status-chip-face {
  border-color: rgba(18, 183, 106, 0.35);
  background: #ecfdf3;
}

.conversation-filter__status-chip:hover .conversation-filter__status-chip-face {
  filter: brightness(0.98);
}

.conversation-filter__status-chip--any:hover .conversation-filter__status-chip-face,
.conversation-filter__status-chip--open:hover .conversation-filter__status-chip-face {
  border-color: #cbd5e1;
}

.conversation-filter__status-chip--pending:hover .conversation-filter__status-chip-face {
  border-color: rgba(234, 179, 8, 0.55);
}

.conversation-filter__status-chip--snoozed:hover .conversation-filter__status-chip-face {
  border-color: rgba(247, 144, 9, 0.55);
}

.conversation-filter__status-chip--resolved:hover .conversation-filter__status-chip-face {
  border-color: rgba(18, 183, 106, 0.5);
}

.conversation-filter__status-input:focus-visible+.conversation-filter__status-chip-face {
  outline: 2px solid #1a5fd1;
  outline-offset: 2px;
}

.conversation-filter__status-chip--any .conversation-filter__status-input:checked+.conversation-filter__status-chip-face,
.conversation-filter__status-chip--open .conversation-filter__status-input:checked+.conversation-filter__status-chip-face {
  border-color: #64748b;
  background: #f1f5f9;
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.conversation-filter__status-chip--pending .conversation-filter__status-input:checked+.conversation-filter__status-chip-face {
  border-color: #ca8a04;
  background: #fef9c3;
  color: #713f12;
  box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.25);
}

.conversation-filter__status-chip--snoozed .conversation-filter__status-input:checked+.conversation-filter__status-chip-face {
  border-color: #ea580c;
  background: #ffedd5;
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.22);
}

.conversation-filter__status-chip--resolved .conversation-filter__status-input:checked+.conversation-filter__status-chip-face {
  border-color: #12b76a;
  background: #d1fadf;
  color: #054f31;
  box-shadow: inset 0 0 0 1px rgba(18, 183, 106, 0.3);
}

.conversation-filter__priority-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.conversation-filter__priority-legend {
  margin-bottom: 8px;
}

.conversation-filter__priority-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-filter__priority-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.conversation-filter__priority-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.conversation-filter__priority-chip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.conversation-filter__priority-chip-face::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
  background: #98a2b3;
}

.conversation-filter__priority-chip--any .conversation-filter__priority-chip-face::before {
  background: #98a2b3;
}

.conversation-filter__priority-chip--none .conversation-filter__priority-chip-face::before {
  background: #6b7280;
}

.conversation-filter__priority-chip--low .conversation-filter__priority-chip-face::before {
  background: #1d4ed8;
}

.conversation-filter__priority-chip--medium .conversation-filter__priority-chip-face::before {
  background: #92400e;
}

.conversation-filter__priority-chip--urgent .conversation-filter__priority-chip-face::before {
  background: #991b1b;
}

.conversation-filter__priority-chip--any .conversation-filter__priority-chip-face {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.conversation-filter__priority-chip--none .conversation-filter__priority-chip-face {
  border-color: #d1d5db;
  background: #fff;
  color: #374151;
}

.conversation-filter__priority-chip--low .conversation-filter__priority-chip-face {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.conversation-filter__priority-chip--medium .conversation-filter__priority-chip-face {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.conversation-filter__priority-chip--urgent .conversation-filter__priority-chip-face {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.conversation-filter__priority-chip:hover .conversation-filter__priority-chip-face {
  filter: brightness(0.98);
}

.conversation-filter__priority-chip--any:hover .conversation-filter__priority-chip-face {
  border-color: #cbd5e1;
}

.conversation-filter__priority-chip--none:hover .conversation-filter__priority-chip-face {
  border-color: #9ca3af;
}

.conversation-filter__priority-chip--low:hover .conversation-filter__priority-chip-face,
.conversation-filter__priority-chip--medium:hover .conversation-filter__priority-chip-face {
  border-color: #93c5fd;
}

.conversation-filter__priority-chip--urgent:hover .conversation-filter__priority-chip-face {
  border-color: #f87171;
}

.conversation-filter__priority-input:focus-visible+.conversation-filter__priority-chip-face {
  outline: 2px solid #1a5fd1;
  outline-offset: 2px;
}

.conversation-filter__priority-chip--any .conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face {
  border-color: #64748b;
  background: #f1f5f9;
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.conversation-filter__priority-chip--none .conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face {
  border-color: #4b5563;
  background: #f3f4f6;
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(75, 85, 99, 0.2);
}

.conversation-filter__priority-chip--low .conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.25);
}

.conversation-filter__priority-chip--medium .conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face {
  border-color: #1e40af;
  background: #bfdbfe;
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.25);
}

.conversation-filter__priority-chip--urgent .conversation-filter__priority-input:checked+.conversation-filter__priority-chip-face {
  border-color: #991b1b;
  background: #fee2e2;
  color: #7f1d1d;
  box-shadow: inset 0 0 0 1px rgba(153, 27, 27, 0.3);
}

.conversation-filter__kanban-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.conversation-filter__kanban-legend {
  margin-bottom: 8px;
}

.conversation-filter__kanban-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-filter__kanban-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.conversation-filter__kanban-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.conversation-filter__kanban-chip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.conversation-filter__kanban-chip-face::before {
  display: none;
}

.conversation-filter__kanban-icon {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.conversation-filter__kanban-chip--only .conversation-filter__kanban-icon {
  color: #7c3aed;
}

.conversation-filter__kanban-input:checked+.conversation-filter__kanban-chip-face .conversation-filter__kanban-icon {
  color: currentColor;
}

.conversation-filter__kanban-chip--only .conversation-filter__kanban-chip-face::before {
  display: none;
}

.conversation-filter__kanban-chip--any .conversation-filter__kanban-chip-face {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.conversation-filter__kanban-chip--only .conversation-filter__kanban-chip-face {
  border-color: rgba(124, 58, 237, 0.35);
  background: #f5f3ff;
  color: #5b21b6;
}

.conversation-filter__kanban-chip:hover .conversation-filter__kanban-chip-face {
  filter: brightness(0.98);
}

.conversation-filter__kanban-chip--any:hover .conversation-filter__kanban-chip-face {
  border-color: #cbd5e1;
}

.conversation-filter__kanban-chip--only:hover .conversation-filter__kanban-chip-face {
  border-color: rgba(124, 58, 237, 0.55);
}

.conversation-filter__kanban-input:focus-visible+.conversation-filter__kanban-chip-face {
  outline: 2px solid #1a5fd1;
  outline-offset: 2px;
}

.conversation-filter__kanban-chip--any .conversation-filter__kanban-input:checked+.conversation-filter__kanban-chip-face {
  border-color: #64748b;
  background: #f1f5f9;
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.conversation-filter__kanban-chip--only .conversation-filter__kanban-input:checked+.conversation-filter__kanban-chip-face {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #4c1d95;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.28);
}

.mock-conversations__logout {
  border: 0;
  background: #1a5fd1;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
}

.mock-conversations__list {
  display: block;
  background: #fff;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: var(--page-navbar-bottom-space);
  position: relative;
}

.mock-conversations--loading .mock-conversations__list {
  display: none;
}

.mock-conversations__skeleton {
  display: none;
  flex: 1;
  overflow: hidden;
  background: #fff;
  padding-bottom: var(--page-navbar-bottom-space);
}

.mock-conversations--loading .mock-conversations__skeleton {
  display: block;
}

.mock-conversations__skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.mock-conversations__skeleton-avatar,
.mock-conversations__skeleton-line {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.mock-conversations__skeleton-avatar::after,
.mock-conversations__skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: skeleton-shimmer 1.15s infinite;
}

.mock-conversations__skeleton-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
}

.mock-conversations__skeleton-content {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.mock-conversations__skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.mock-conversations__skeleton-line--title {
  width: 52%;
}

.mock-conversations__skeleton-line--body {
  width: 78%;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.pull-to-refresh {
  position: relative;
  margin-top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  transition: margin-top 0.2s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: #fff;
  overflow: hidden;
}

.pull-to-refresh--visible {
  opacity: 1;
}

.pull-to-refresh__icon {
  width: 22px;
  height: 22px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #1a5fd1;
  border-radius: 50%;
  transition: transform 0.1s linear;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pull-to-refresh--loading .pull-to-refresh__icon {
  animation: ptr-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-top-color: #1a5fd1;
}

.pull-to-refresh__text {
  letter-spacing: -0.01em;
}

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

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

.mock-conversations__list::-webkit-scrollbar {
  display: none;
}

.mock-conversations__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.mock-conversations__tabs--drawer {
  padding: 0;
  border-bottom: 0;
}

.mock-conversations__tabs::-webkit-scrollbar {
  display: none;
}

.mock-conversations__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.mock-conversations__tab--active {
  background: #1a5fd1;
  color: #fff;
}

.mock-conversations__tab-count {
  font-weight: 700;
  font-size: 12px;
}

.mock-conversations__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
  transition: background-color 0.2s ease;
  /* Conceito de Virtual Scroll: Renderiza apenas quando proximo da tela.
     Utiliza content-visibility para evitar layout e pintura de itens fora de vista.
     A altura estimada (76px) ajuda a manter o scrollbar estavel. */
  content-visibility: auto;
  contain-intrinsic-size: auto 76px;
}

/* Fallback ou reforco controlado pelo Stimulus para itens fora do campo de visao estendido */
.is-offscreen {
  content-visibility: hidden;
  contain-intrinsic-size: auto 76px;
}

.mock-conversations__card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.mock-conversations__card-link:active .mock-conversations__card {
  background: #f5f7fb;
}

.mock-conversations__card--unread .mock-conversations__contact {
  color: #111827;
  font-weight: 700;
}

.mock-conversations__card--unread .mock-conversations__message {
  color: #111827;
  font-weight: 500;
}

.mock-conversations__card--unread .mock-conversations__time {
  color: #128c7e;
  font-weight: 600;
}

.mock-conversations__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mock-conversations__row--top {
  margin-bottom: 2px;
}

.mock-conversations__row--bottom {
  align-items: flex-end;
}

.mock-conversations__content {
  width: 100%;
  min-width: 0;
}

.mock-conversations__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, #dbe7ff 0%, #c7d8ff 100%);
  color: #1e3a5f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}

.mock-conversations__avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.mock-conversations__avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.mock-conversations__avatar-image--hidden {
  display: none;
}

.mock-conversations__contact-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.mock-conversations__contact {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mock-conversations__kanban-slot {
  margin-top: 6px;
  min-height: 23px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.mock-conversations__kanban-chips {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.mock-conversations__kanban-chips--empty {
  display: none;
}

.mock-conversations__kanban-chip {
  display: inline-flex;
  align-items: center;
  max-width: 50%;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 4px;
}

.mock-conversations__assignee-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  max-width: 44%;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-conversations__assignee-icon {
  flex: 0 0 auto;
  color: #94a3b8;
}

.mock-conversations__kanban-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.mock-conversations__kanban-chip--funnel {
  background: #e2e8f0;
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mock-conversations__kanban-chip--stage {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mock-conversations__message {
  margin: 0;
  color: #667085;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mock-conversations__time {
  margin: 0 0 0 auto;
  color: #98a2b3;
  font-size: 11px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.mock-conversations__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.mock-conversations__avatar-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #98a2b3;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
  z-index: 2;
}

.mock-conversations__avatar-status--open,
.mock-conversations__avatar-status--active,
.mock-conversations__avatar-status--aberta {
  background: #98a2b3;
}

.mock-conversations__avatar-status--pending,
.mock-conversations__avatar-status--pendente {
  background: #eab308;
}

.mock-conversations__avatar-status--snoozed,
.mock-conversations__avatar-status--adiada {
  background: #f79009;
}

.mock-conversations__avatar-status--resolved,
.mock-conversations__avatar-status--resolvido,
.mock-conversations__avatar-status--resolvida {
  background: #12b76a;
}

.mock-conversations__avatar-status--default {
  background: #98a2b3;
}

.mock-conversations__avatar-status--online {
  background: #12b76a;
}

.mock-conversations__avatar-status--offline {
  background: #ef4444;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
  line-height: 1.2;
}

.status-badge--online {
  background: #d1fadf;
  color: #054f31;
  border: 1px solid rgba(18, 183, 106, 0.2);
}

.status-badge--offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.mock-conversations__badge {
  background: #22c55e;
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  padding: 0 6px;
}

.mock-conversations__empty {
  margin: 0;
  padding: 24px 12px;
  color: #6b7280;
  text-align: center;
  background: #fff;
}

.mock-conversations__loader {
  padding: 14px 12px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.mock-conversations__loader-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mock-conversations__loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #1a5fd1;
  border-radius: 50%;
  animation: ptr-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mock-contacts {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.mock-contacts__header {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  background: #fff;
  color: #111827;
  padding: 18px 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 30;
}

.mock-contacts__header-title-wrap {
  min-width: 0;
}

.contact-create-drawer__sheet .conversation-actions__drawer-label {
  margin-top: 8px;
}

.contact-create-drawer__sheet {
  display: flex;
  flex-direction: column;
  max-height: calc(88dvh - env(safe-area-inset-bottom));
  min-height: min(72dvh, calc(88dvh - env(safe-area-inset-bottom)));
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.contact-create-drawer__form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.contact-create-drawer__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.contact-create-drawer__sheet .conversation-actions__drawer-row {
  flex-shrink: 0;
  padding-top: 10px;
  margin-top: 0;
  background: inherit;
}

.mock-contacts__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.mock-contacts__subtitle {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.mock-contacts__list {
  display: block;
  background: #fff;
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--page-navbar-bottom-space);
}

.mock-contacts--loading .mock-contacts__list {
  display: none;
}

.mock-contacts__skeleton {
  display: none;
  flex: 1;
  overflow: hidden;
  background: #fff;
  padding-bottom: var(--page-navbar-bottom-space);
}

.mock-contacts--loading .mock-contacts__skeleton {
  display: block;
}

.mock-contacts__skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.mock-contacts__skeleton-avatar,
.mock-contacts__skeleton-line {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.mock-contacts__skeleton-avatar::after,
.mock-contacts__skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: skeleton-shimmer 1.15s infinite;
}

.mock-contacts__skeleton-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
}

.mock-contacts__skeleton-content {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.mock-contacts__skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.mock-contacts__skeleton-line--title {
  width: 46%;
}

.mock-contacts__skeleton-line--body {
  width: 72%;
}

.mock-contacts__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.mock-contacts__card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.mock-contacts__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mock-contacts__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-contacts__content {
  width: 100%;
  min-width: 0;
}

.mock-contacts__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mock-contacts__name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-contacts__status {
  font-size: 11px;
  text-transform: capitalize;
  color: #6b7280;
  flex-shrink: 0;
}

.mock-contacts__subtitle-text {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-contacts__empty {
  margin: 0;
  padding: 24px 12px;
  color: #6b7280;
  text-align: center;
}

.contact-show {
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  margin: 0 auto;
  background: #ffffff;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.contact-show__header {
  z-index: 30;
}

.contact-show__header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-show__back {
  flex-shrink: 0;
}

.contact-show__title-wrap {
  min-width: 0;
}

.contact-show__header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.contact-show__conversation-title {
  pointer-events: none;
}

.contact-show__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}

.contact-show__status-dot--online {
  background: #16a34a;
}

.contact-show__status-dot--busy {
  background: #f59e0b;
}

.contact-show__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.contact-show__subtitle {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-show__edit-button {
  cursor: pointer;
}

.contact-show__edit-button:focus-visible {
  outline: 2px solid #1a5fd1;
  outline-offset: 2px;
}

.contact-show__body {
  padding: 84px 12px 12px;
  padding-bottom: var(--page-navbar-bottom-space);
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.contact-show__body::-webkit-scrollbar {
  display: none;
}

.contact-show__profile {
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.contact-show__profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-show__profile-card .contact-show__avatar {
  margin: 0;
}

.contact-show__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  font-weight: 700;
  font-size: 24px;
  margin: 0 auto 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.contact-show__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-show__name {
  margin: 0;
  font-size: 20px;
}

.contact-show__profile-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.contact-show__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-show__quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.contact-show__quick-action {
  min-height: 54px;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  background: #fff;
  color: #2563eb;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.contact-show__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-show__metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background: #fff;
}

.contact-show__metric strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
}

.contact-show__metric span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.contact-show__status {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
  text-transform: capitalize;
}

.contact-show__card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.contact-show__section-title {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-show__row {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.contact-show__row:last-child {
  border-bottom: 0;
}

.contact-show__row span {
  text-align: right;
  color: #374151;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-show__inbox {
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}

.contact-show__inbox:last-child {
  margin-bottom: 0;
}

.contact-show__channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.contact-show__channel:last-child {
  border-bottom: 0;
}

.contact-show__channel strong,
.contact-show__conversation strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.contact-show__channel span,
.contact-show__conversation small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.contact-show__small-action {
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.contact-show__conversation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
}

.contact-show__conversation:last-child {
  border-bottom: 0;
}

.contact-show__conversation span {
  min-width: 0;
}

.contact-show__conversation em {
  display: block;
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.contact-show__conversation time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.contact-show__empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.contact-show__row--block {
  border-bottom: 0;
  padding-bottom: 4px;
}

.contact-show__row--block+.contact-show__multiline {
  margin-top: 0;
}

.contact-show__multiline {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-show__pre {
  margin: 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  color: #334155;
}

.contact-show__card--flush {
  padding: 8px;
}

.contact-show__logout {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff;
  color: #b91c1c;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.contact-show__logout:hover {
  background: #fef2f2;
}

.contact-attributes-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.contact-attributes-editor__hint {
  margin: -2px 0 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.contact-attributes-editor__empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed #dbe3ef;
  border-radius: 14px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.contact-attributes-editor__row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.contact-attributes-editor__label {
  display: grid;
  gap: 2px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.contact-attributes-editor__label small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.contact-attributes-editor__value {
  min-height: 58px;
  resize: vertical;
}

.messages-screen {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  height: 100dvh;
  background: #ffffff;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.messages-screen__body {
  padding-top: 66px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.messages-screen__body--account {
  padding-top: 0;
  padding-bottom: var(--page-navbar-bottom-space);
}

.messages-screen,
.messages-screen__body,
.messages-screen__list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.messages-screen::-webkit-scrollbar,
.messages-screen__body::-webkit-scrollbar,
.messages-screen__list::-webkit-scrollbar {
  display: none;
}

.messages-screen__confirmed-banner {
  margin: 8px 12px 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.18);
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.messages-screen__confirmed-banner svg {
  flex-shrink: 0;
}

.messages-screen__header {
  background: #fff;
  color: #111827;
  padding: 18px 12px 10px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  z-index: 20;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.messages-screen__header--account {
  padding-right: 12px;
  justify-content: space-between;
  gap: 8px;
}

.messages-screen__account-logout-form {
  margin: 0;
  flex-shrink: 0;
}

.messages-screen__account-logout-form--full {
  width: 100%;
  margin-top: 16px;
}

.messages-screen__account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.messages-screen__account-logout--full {
  width: 100%;
  padding: 14px 16px;
}

.messages-screen__account-logout svg {
  flex-shrink: 0;
}

.messages-screen__account-logout:hover {
  background: #b91c1c;
}

.messages-screen__account-logout:active {
  background: #991b1b;
}

.messages-screen__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.messages-screen__header-text {
  min-width: 0;
  flex: 1;
}

.messages-screen__title--ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.messages-screen__subtitle--ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.messages-screen__back {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.messages-screen__resolve-form {
  margin: 0;
}

.messages-screen__resolve-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  background: #fff;
  color: #2563eb;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.messages-screen__more-button {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #334155;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  line-height: 0;
}

.messages-screen__more-button::-webkit-details-marker {
  display: none;
}

.messages-screen__more-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.messages-screen__more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 170px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  padding: 4px;
}

.messages-screen__more-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: block;
  text-decoration: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
}

.conversation-actions {
  padding: 14px 12px;
  padding-bottom: var(--page-navbar-bottom-space);
  box-sizing: border-box;
  max-width: 100%;
  background: #fff;
  min-height: 100%;
}

.conversation-actions__label {
  flex-shrink: 0;
  font-weight: 600;
  color: #111827;
  margin-right: 8px;
}

.conversation-actions__value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
  color: #374151;
}

.conversation-actions__empty {
  margin: 0;
  padding: 12px;
  color: #6b7280;
  font-size: 14px;
}

.conversation-actions__muted-block {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
}

.conversation-actions__muted-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.conversation-actions__muted-body {
  font-size: 14px;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.conversation-actions__muted-body--signature {
  white-space: normal;
  line-height: 1.45;
}

.conversation-actions__muted-body--signature strong {
  font-weight: 700;
  color: #111827;
}

.conversation-actions__muted-body--signature em {
  font-style: italic;
}

.conversation-actions__muted-body--signature del {
  text-decoration: line-through;
  color: #6b7280;
}

.message-signature-form {
  margin-top: 10px;
}

.message-signature-form__textarea {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
}

.message-signature-form__button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.message-signature-form__actions {
  grid-template-columns: 1fr;
}

.linked-accounts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.linked-accounts--empty {
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: rgba(255, 255, 255, 0.65);
}

.linked-accounts__empty-msg {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.linked-account-card {
  --linked-account-hue: 230;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg,
      rgba(255, 255, 255, 0.98) 0%,
      hsl(var(--linked-account-hue), 55%, 98.5%) 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.linked-accounts__option-form {
  margin: 0;
}

.linked-accounts__option {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.linked-accounts__option--active {
  border-color: #2563eb;
  background: #eff6ff;
}

.linked-accounts__option-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.linked-accounts__option-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linked-accounts__option-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.linked-accounts__option-name {
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-accounts__option-meta {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-accounts__option-check {
  color: #2563eb;
  display: inline-flex;
  justify-content: center;
}

.linked-account-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

.linked-account-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg,
      hsl(var(--linked-account-hue), 58%, 52%),
      hsl(calc(var(--linked-account-hue) + 28), 52%, 45%));
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.linked-account-card__head {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.linked-account-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.linked-account-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.linked-account-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.linked-account-card__badge--active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.linked-account-card__badge--inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.linked-account-card__badge--neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.linked-account-card__badge--soft {
  background: rgba(219, 234, 254, 0.85);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-weight: 600;
  text-transform: none;
}

.linked-account-card__meta {
  margin: 0;
  padding: 10px 14px 12px;
  display: grid;
  gap: 0;
}

.linked-account-card__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.85);
}

.linked-account-card__meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.linked-account-card__meta-key {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.linked-account-card__meta-val {
  margin: 0;
  font-size: 13px;
  color: #334155;
  text-align: right;
  overflow-wrap: anywhere;
}

.linked-account-card__permissions {
  padding: 10px 14px 14px;
  background: rgba(248, 250, 252, 0.85);
  border-top: 1px solid rgba(241, 245, 249, 0.95);
}

.linked-account-card__permissions-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.linked-account-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.linked-account-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.conversation-actions__status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.conversation-actions__status-form {
  margin: 0;
  width: 100%;
  display: block;
}

.conversation-actions__status-form button[type="submit"] {
  width: 100%;
}

.conversation-actions__status-card {
  margin: 0;
  width: 100%;
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  position: relative;
}

.conversation-actions__status-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.95;
  flex-shrink: 0;
}

.conversation-actions__status-card-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.conversation-actions__status-card-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.conversation-actions__status-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.conversation-actions__status-card-hint {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.conversation-actions__status-card:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.conversation-actions__status-card:active {
  transform: scale(0.98);
}

.conversation-actions__status-card--open {
  background: #fff;
  border-color: #bbf7d0;
  color: #065f46;
}

.conversation-actions__status-card--pending {
  background: #fff;
  border-color: #fde68a;
  color: #92400e;
}

.conversation-actions__status-card--snoozed {
  background: #fff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.conversation-actions__status-card--resolved {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

.conversation-actions__status-card--active {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.conversation-actions__status-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.conversation-actions__card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

.conversation-actions__card--elevated {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.conversation-actions__quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.conversation-actions__snooze-panel {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
  padding: 12px;
  margin-bottom: 16px;
}

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

.conversation-actions__snooze-copy strong {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.conversation-actions__snooze-copy span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.conversation-actions__app-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.conversation-actions__app-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.conversation-actions__app-link span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.conversation-actions__app-link strong {
  font-size: 14px;
  font-weight: 800;
}

.conversation-actions__app-link small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.scheduled-messages {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.scheduled-messages__composer {
  padding: 14px;
}

.scheduled-messages__form {
  display: grid;
  gap: 10px;
}

.scheduled-messages__textarea {
  min-height: 96px;
  resize: vertical;
}

.scheduled-messages__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.scheduled-messages__save {
  width: 100%;
}

.scheduled-messages__list {
  display: grid;
  gap: 10px;
}

.scheduled-messages__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.scheduled-messages__card-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.scheduled-messages__card-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}

.scheduled-messages__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scheduled-messages__card-head strong {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.scheduled-messages__status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.scheduled-messages__card-main p,
.scheduled-messages__empty {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
}

.scheduled-messages__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scheduled-messages__meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.scheduled-messages__delete {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 13px;
  background: #fef2f2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scheduled-messages__empty {
  padding: 18px 14px;
  border: 1px dashed #dbe7f6;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.conversation-actions__chip-button,
.conversation-actions__secondary-button {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.conversation-actions__secondary-button {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  border-radius: 14px;
}

.conversation-actions__secondary-button--success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.conversation-actions__stack-form {
  padding: 14px 12px;
  border-top: 1px solid #f1f5f9;
}

.conversation-actions__select-grid {
  display: grid;
  gap: 10px;
}

.conversation-actions__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.conversation-actions__row {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #111827;
}

.conversation-actions__row:last-child {
  border-bottom: 0;
}

.conversation-actions__entity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.conversation-actions__entity-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.conversation-actions__entity-avatar--team {
  background: #dbeafe;
  color: #1d4ed8;
}

.conversation-actions__entity-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-actions__priority-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.conversation-actions__priority-icon {
  flex-shrink: 0;
}

.conversation-actions__priority-icon--none {
  color: #6b7280;
}

.conversation-actions__priority-icon--low {
  color: #1d4ed8;
}

.conversation-actions__priority-icon--medium {
  color: #92400e;
}

.conversation-actions__priority-icon--high {
  color: #9a3412;
}

.conversation-actions__priority-icon--urgent {
  color: #991b1b;
}

.conversation-actions__link-button {
  border: 0;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 10px;
}

.conversation-actions__section-title {
  margin: 18px 4px 9px;
  color: #475569;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

.conversation-actions__section-title--first {
  margin-top: 0;
}

.conversation-actions__subsection-title {
  margin: 8px 0 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.conversation-actions__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.conversation-actions__row--stack>span:last-child {
  align-self: stretch;
  text-align: left;
}

.conversation-actions__row--muted {
  color: #6b7280;
}

.conversation-actions__row--nested {
  padding-top: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #64748b;
}

.conversation-actions__multiline {
  white-space: pre-wrap;
  word-break: break-word;
  text-align: right;
  max-width: 65%;
}

.conversation-actions__row--stack .conversation-actions__multiline {
  text-align: left;
  max-width: 100%;
}

.conversation-actions__muted {
  font-size: 13px;
  color: #64748b;
}

.conversation-actions__note-block {
  border-bottom: 1px solid #f1f5f9;
}

.conversation-actions__note-block:last-child {
  border-bottom: 0;
}

.conversation-actions__attachments {
  margin: 0 0 8px;
  padding: 0 12px 8px 28px;
  font-size: 14px;
}

.conversation-actions__attachments a {
  color: #2563eb;
}

.conversation-actions__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  color: #2563eb;
  margin-bottom: 12px;
}

.conversation-actions__chip--label {
  color: var(--label-color);
  border-color: color-mix(in srgb, var(--label-color) 34%, #e5e7eb);
  background: color-mix(in srgb, var(--label-color) 8%, #fff);
}

.conversation-actions__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--label-color);
}

.conversation-actions__labels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.conversation-actions__label-picker {
  display: grid;
  gap: 8px;
  max-height: 42dvh;
  overflow-y: auto;
  padding: 2px 0;
}

.conversation-actions__label-option {
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #0f172a;
}

.conversation-actions__label-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.conversation-actions__label-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conversation-actions__label-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-actions__label-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.conversation-actions__label-option input:checked ~ .conversation-actions__label-check {
  background: #2563eb;
  color: #fff;
}

.conversation-actions__drawer-empty {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.conversation-actions__drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 300;
}

.conversation-actions__drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.25s ease;
  z-index: 301;
  max-width: 460px;
  margin: 0 auto;
}

.conversation-actions__drawer--new {
  display: flex;
  flex-direction: column;
  max-height: calc(88dvh - env(safe-area-inset-bottom));
  min-height: 72dvh;
}

.conversation-actions__drawer--new form,
.conversation-actions__drawer--new .conversation-actions__wizard-step {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.conversation-actions__drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.conversation-actions__drawer.is-open {
  transform: translateY(0);
}

.conversation-actions__drawer-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0 auto 10px;
}

.conversation-actions__drawer-title {
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 16px;
}

.conversation-actions__drawer-options {
  display: grid;
  gap: 8px;
}

.conversation-actions__drawer-option {
  margin: 0;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.conversation-actions__drawer-option--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
}

.conversation-actions__drawer-option--none {
  color: #374151;
  border-color: #d1d5db;
}

.conversation-actions__drawer-option--low {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.conversation-actions__drawer-option--medium {
  color: #1e40af;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.conversation-actions__drawer-option--high {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #dbeafe;
}

.conversation-actions__drawer-option--urgent {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.conversation-actions__drawer-option--danger {
  color: #991b1b;
}

.conversation-actions__drawer-close {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 0;
  background: #f3f4f6;
}

.conversation-actions__drawer-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4b5563;
}

.conversation-actions__step-indicator {
  margin-bottom: 10px;
}

.conversation-actions__step-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
}

.conversation-actions__step-track {
  margin-top: 6px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.conversation-actions__step-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6feb 0%, #1a5fd1 100%);
}

.conversation-actions__step-fill--half {
  width: 50%;
}

.conversation-actions__step-fill--full {
  width: 100%;
}

.conversation-actions__drawer-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  padding: 10px 13px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

.conversation-actions__drawer-input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.conversation-actions__textarea {
  resize: vertical;
  min-height: 90px;
}

.conversation-actions__mini-list {
  padding: 14px 12px;
  border-top: 1px solid #f1f5f9;
}

.conversation-actions__mini-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.conversation-actions__list-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #f8fafc;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-top: 8px;
  font-weight: 700;
}

.conversation-actions__list-button small {
  color: #2563eb;
  font-weight: 700;
}

.conversation-actions__list-button--macro small {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.conversation-actions__drawer-save {
  box-shadow: 0 10px 22px rgba(26, 95, 209, 0.18);
}

.reports-screen {
  padding: 12px 16px var(--page-navbar-bottom-space);
}

.reports-filter {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}

.reports-filter__select {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 0 28px 0 10px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.reports-filter__actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reports-filter__submit,
.reports-filter__clear {
  min-height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.reports-filter__submit {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.reports-filter__clear {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #64748b;
}

.reports-filter__actions .reports-filter__submit:only-child {
  grid-column: 1 / -1;
}

.reports-hero {
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, #eff6ff 0%, #fff 58%, #f8fafc 100%);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.1);
}

.reports-hero__eyebrow {
  display: block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.reports-hero__main {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.reports-hero__main strong {
  color: #0f172a;
  font-family: var(--font-title);
  font-size: 48px;
  line-height: 0.9;
}

.reports-hero__main span {
  padding-bottom: 5px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.reports-hero__insight {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reports-hero__insight span {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.82);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.reports-section {
  margin-top: 18px;
}

.reports-section h2 {
  margin: 0 0 10px;
  color: #475569;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
}

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

.reports-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reports-card {
  position: relative;
  min-height: 126px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--report-color) 26%, #e2e8f0);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.reports-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -34px auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--report-color) 12%, transparent);
}

.reports-card--compact {
  min-height: 104px;
}

.reports-card__icon {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--report-color);
  display: block;
  margin-bottom: 12px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--report-color) 10%, transparent);
}

.reports-card__label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.reports-card__value {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  font-family: var(--font-title);
}

.reports-card__hint {
  display: block;
  margin-top: 8px;
  color: color-mix(in srgb, var(--report-color) 70%, #475569);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.conversation-actions__drawer-input--contact-search {
  margin-bottom: 10px;
}

.conversation-actions__drawer-save {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 0;
  background: #1a5fd1;
  color: #fff;
  font-weight: 600;
}

.conversation-actions__picker-list {
  display: grid;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.conversation-actions__drawer--new .conversation-actions__picker-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  align-content: start;
}

.conversation-actions__picker-item {
  margin: 0;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  font-size: 14px;
  color: #1f2937;
}

.conversation-actions__picker-item-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.conversation-actions__picker-avatar {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(145deg, #2563eb 0%, #14b8a6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.conversation-actions__picker-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-actions__picker-avatar-fallback {
  position: relative;
  z-index: 0;
}

.conversation-actions__picker-item--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}

.conversation-actions__picker-item-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversation-actions__picker-item-title {
  font-weight: 600;
  color: #111827;
}

.conversation-actions__picker-item-subtitle {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-actions__picker-list--contact {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  gap: 0;
  max-height: 280px;
}

.conversation-actions__drawer--new .conversation-actions__picker-list--contact {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.conversation-actions__picker-item--contact {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eef2f7;
  min-height: 64px;
  padding: 10px 12px;
  background: #fff;
}

.conversation-actions__picker-list--contact .conversation-actions__picker-item--contact:first-child {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.conversation-actions__picker-list--contact .conversation-actions__picker-item--contact:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.conversation-actions__picker-item--contact .conversation-actions__picker-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.conversation-actions__picker-item--contact .conversation-actions__picker-item-meta {
  gap: 1px;
}

.conversation-actions__picker-item--contact .conversation-actions__picker-item-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.conversation-actions__picker-item--contact .conversation-actions__picker-item-subtitle {
  font-size: 14px;
  color: #667085;
}

.conversation-actions__picker-item--contact.conversation-actions__picker-item--active {
  background: #eff6ff;
}

.conversation-actions__wizard-step.is-hidden {
  display: none;
}

.conversation-actions__drawer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.conversation-actions__drawer-save--inline,
.conversation-actions__drawer-close--inline {
  margin-top: 0;
}

.conversation-actions__drawer-row.message-signature-form__actions {
  grid-template-columns: 1fr;
}

.message-signature-form__save {
  width: 100%;
  display: block;
}

a.conversation-actions__drawer-close.conversation-filter__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
}

a.conversation-actions__drawer-close.conversation-filter__clear:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

a.conversation-actions__drawer-close.conversation-filter__clear:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.conversation-actions__drawer-save--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.messages-screen__title {
  margin: 0;
  font-size: 17px;
  color: #111827;
}

.messages-screen__title-link {
  color: inherit;
  text-decoration: none;
}

.messages-screen__title-link:active {
  opacity: 0.85;
}

.messages-screen__title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.messages-screen__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a5fd1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.messages-screen__avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.messages-screen__avatar-initial {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

.messages-screen__avatar-image--hidden {
  display: none;
}

.messages-screen__conversation-title {
  min-width: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.messages-screen__header-title-text {
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-screen__header-actions {
  justify-self: end;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.messages-screen__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #64748b;
}

.messages-screen__status-dot--open {
  background: #16a34a;
}

.messages-screen__status-dot--pending {
  background: #f59e0b;
}

.messages-screen__status-dot--snoozed {
  background: #7c3aed;
}

.messages-screen__status-dot--resolved {
  background: #64748b;
}

.messages-screen__status-dot--unknown {
  background: #94a3b8;
}

.messages-screen__subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.messages-screen__status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: #1a5fd1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.messages-screen__status-badge--open {
  background: #1a5fd1;
}

.messages-screen__status-badge--pending {
  background: #b45309;
}

.messages-screen__status-badge--snoozed {
  background: #6d28d9;
}

.messages-screen__status-badge--resolved {
  background: #047857;
}

.messages-screen__status-badge--unknown {
  background: #475569;
}

.messages-screen__list {
  padding: 12px;
  display: grid;
  gap: 8px;
  padding-bottom: calc(180px + env(safe-area-inset-bottom));
  margin-bottom: calc(84px + env(safe-area-inset-bottom));
}

.messages-screen--loading .messages-screen__list,
.messages-screen--loading #messages-empty,
.messages-screen--loading #messages-infinite-scroll,
.messages-screen--loading .messages-screen__composer {
  display: none;
}

.messages-screen__skeleton {
  display: none;
  padding: 12px;
  padding-bottom: calc(180px + env(safe-area-inset-bottom));
}

.messages-screen--loading .messages-screen__skeleton {
  display: grid;
  gap: 10px;
}

.messages-screen__skeleton-row {
  display: flex;
  justify-content: flex-start;
}

.messages-screen__skeleton-row--mine {
  justify-content: flex-end;
}

.messages-screen__skeleton-bubble {
  width: min(72%, 280px);
  min-height: 54px;
  border-radius: 8px;
  background: #eef2f7;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 10px;
}

.messages-screen__skeleton-row--mine .messages-screen__skeleton-bubble {
  width: min(64%, 250px);
  background: #dbeafe;
}

.messages-screen__skeleton-line {
  position: relative;
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.messages-screen__skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: skeleton-shimmer 1.15s infinite;
}

.messages-screen__skeleton-line--wide {
  width: 88%;
}

.messages-screen__skeleton-line--short {
  width: 48%;
}

.messages-screen__date-separator {
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}

.messages-screen__date-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
  color: #334155;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.messages-screen__bubble-wrap {
  display: flex;
  justify-content: flex-start;
}

.messages-screen__bubble-wrap--mine {
  justify-content: flex-end;
}

.messages-screen__bubble-wrap--activity {
  justify-content: center;
}

.messages-screen__bubble {
  max-width: 80%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.messages-screen__bubble--mine {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.messages-screen__bubble--private {
  background: #fff7ed;
  border-color: #fdba74;
  color: #7c2d12;
}

.messages-screen__bubble--private .messages-screen__time {
  color: #9a3412;
}

.messages-screen__private-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #fed7aa;
  color: #9a3412;
  font-size: 10px;
  font-weight: 800;
}

.messages-screen__bubble--deleted {
  background: #fee2e2 !important;
  border: 1px solid #fecaca;
}

.messages-screen__bubble--deleted .messages-screen__content {
  color: #991b1b;
}

.messages-screen__bubble--deleted .messages-screen__time {
  color: #b91c1c;
}

.messages-screen__bubble-wrap--pending {
  opacity: 0.65;
}

.messages-screen__bubble--activity {
  max-width: 90%;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  text-align: center;
}

.messages-screen__content {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.messages-screen__content--group {
  white-space: normal;
}

.messages-screen__group-sender {
  display: block;
  margin: 0 0 2px;
  color: #0b77d5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.messages-screen__group-body {
  display: block;
  color: #0f172a;
  line-height: 1.4;
  white-space: pre-wrap;
}

.messages-screen__time {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7280;
  text-align: right;
}

.messages-screen__edited-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(100, 116, 139, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  color: #64748b;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.messages-screen__bubble--mine .messages-screen__edited-label {
  background: rgba(31, 111, 235, 0.1);
  color: #1a5fd1;
}

.messages-screen__deleted-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(220, 38, 38, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  color: #dc2626;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.messages-screen__bubble--deleted .messages-screen__deleted-label {
  background: rgba(255, 255, 255, 0.5);
  color: #991b1b;
}

.messages-screen__time--activity {
  text-align: center;
  color: #475569;
  font-size: 10px;
  margin-top: 3px;
}

.messages-screen__composer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: transparent;
  padding: 8px 10px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.messages-screen__composer-form {
  width: 100%;
}

.messages-screen__composer-card {
  width: 100%;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

.messages-screen__attachment-preview {
  display: none;
  padding: 8px 10px 0;
  font-size: 12px;
  color: #2563eb;
}

.messages-screen__composer-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 8px 0;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.messages-screen__composer-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.messages-screen__composer-tab {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.messages-screen__composer-mode input:checked + .messages-screen__composer-tab {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.messages-screen__composer-form--private .messages-screen__composer-mode input:checked + .messages-screen__composer-tab {
  color: #c2410c;
}

.messages-screen__composer-form--private .messages-screen__composer-send {
  background: #f97316;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.28);
}

.messages-screen__audio-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 2px;
}

.messages-screen__audio-preview[hidden] {
  display: none;
}

.messages-screen__audio-preview-trash {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.messages-screen__audio-preview-player {
  flex: 1;
  min-width: 0;
  height: 34px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.messages-screen__audio-preview-player audio {
  display: none;
}

.messages-screen__audio-preview-play {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.messages-screen__audio-preview-time {
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  min-width: 58px;
  white-space: nowrap;
}

.messages-screen__audio-preview-track {
  height: 5px;
  flex: 1;
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  background: #dbe3ee;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.messages-screen__audio-preview-progress {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.messages-screen__composer-input-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 128px;
}

.messages-screen__composer-input {
  width: 100%;
  flex: 1;
  min-height: 86px;
  border: 0;
  background: transparent;
  padding: 12px 10px 6px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.messages-screen__composer-input::placeholder {
  color: #6b7280;
}

.messages-screen__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 7px;
}

.messages-screen__composer-actions-left,
.messages-screen__composer-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messages-screen__composer-icon,
.messages-screen__composer-mic {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.messages-screen__composer-icon svg,
.messages-screen__composer-mic svg {
  width: 20px;
  height: 20px;
}

.messages-screen__composer-file {
  display: none;
}

.messages-screen__composer-mic {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.messages-screen__composer-send {
  border: 0;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.messages-screen__composer-send svg {
  width: 20px;
  height: 20px;
}

.messages-screen__composer-recording {
  display: none;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  box-sizing: border-box;
}

.messages-screen__composer-recording-cancel {
  color: var(--danger-color, #dc2626);
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.messages-screen__composer-recording-time {
  flex: 1;
  color: var(--danger-color, #dc2626);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.messages-screen__composer-recording-dot {
  width: 8px;
  height: 8px;
  background-color: var(--danger-color, #dc2626);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

.messages-screen__composer-send--recording {
  background-color: var(--danger-color, #dc2626);
}

/* Card compacto do item Kanban (tela Acoes) */
.kanban-item-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.kanban-item-card:active {
  transform: scale(0.99);
}

.kanban-item-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.kanban-item-card__header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.kanban-item-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kanban-item-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kanban-item-card__avatar-letter {
  font-size: 16px;
  font-weight: 700;
  color: #475569;
}

.kanban-item-card__name {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.2;
}

.kanban-item-card__timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.kanban-item-card__timer-icon {
  flex-shrink: 0;
  color: #94a3b8;
}

.kanban-item-card__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.kanban-item-card__stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.kanban-item-card__ring {
  flex-shrink: 0;
}

.kanban-item-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
}

.kanban-item-card__dashed-icon {
  flex-shrink: 0;
  color: #94a3b8;
  margin-top: 2px;
}

.kanban-item-card__detail-body {
  flex: 1;
  min-width: 0;
}

.kanban-item-card__detail-id {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
}

.kanban-item-card__detail-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.kanban-item-card__detail-contact {
  font-weight: 500;
  color: #64748b;
}

.kanban-item-card__detail-quote {
  color: #64748b;
}

.kanban-item-card__snooze-pill {
  flex-shrink: 0;
  align-self: center;
  padding: 5px 10px;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.kanban-item-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.kanban-item-card__tag {
  padding: 5px 11px;
  font-size: 13px;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.kanban-item-card__footer {
  display: flex;
  align-items: center;
}

.kanban-item-card__channel {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0f172a;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kanban-item-card__channel-mark {
  font-size: 12px;
  font-weight: 800;
  color: #22d3ee;
  line-height: 1;
}

.kanban-detail-outcome-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
}

.kanban-detail-outcome-banner--won {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.kanban-detail-outcome-banner__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 1px 3px rgb(22 101 52 / 25%);
}

.kanban-detail-outcome-banner__check svg {
  display: block;
}

.kanban-detail-outcome-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kanban-detail-outcome-banner strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kanban-detail-outcome-banner__desc {
  font-size: 14px;
  font-weight: 500;
  color: #166534;
  line-height: 1.4;
}

.kanban-detail-hero {
  padding: 16px;
}

.kanban-detail-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.kanban-detail-hero__main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.kanban-detail-hero__kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-detail-hero__title {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.12;
}

.kanban-detail-hero__desc {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-detail-hero__id {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.kanban-detail-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.kanban-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.kanban-detail-pill--status {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.kanban-detail-stage-chip {
  max-width: min(100%, 220px);
  flex: 0 1 auto;
}

.kanban-detail-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.kanban-detail-hero__facts div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
}

.kanban-detail-hero__facts span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kanban-detail-hero__facts strong {
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kanban-detail-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.kanban-detail-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.kanban-detail-inline-form--offer {
  padding-bottom: 2px;
}

.kanban-detail-inline-form__button {
  width: auto;
  min-height: 42px;
  padding-inline: 14px;
}

.kanban-detail-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.kanban-detail-checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.kanban-detail-checklist__check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #16a34a;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kanban-detail-checklist__check--done {
  border-color: #86efac;
  background: #dcfce7;
}

.kanban-detail-checklist__text {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kanban-detail-note-form {
  display: grid;
  gap: 8px;
}

.kanban-detail-note-form__input {
  min-height: 86px;
  resize: vertical;
}

.kanban-detail-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #dbe7f6;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Blocos recolhiveis na pagina de detalhes do Kanban */
.kanban-detail-block {
  margin-bottom: 12px;
  border: 0;
}

.kanban-detail-block__summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kanban-detail-block__summary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.kanban-detail-block__summary::-webkit-details-marker {
  display: none;
}

.kanban-detail-block__summary::after {
  content: "+";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e2e8f0;
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  color: #334155;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.kanban-detail-block__summary:hover::after {
  background: #cbd5e1;
  color: #1e293b;
}

.kanban-detail-block[open] .kanban-detail-block__summary::after {
  content: "\2212";
  font-size: 24px;
  font-weight: 300;
  line-height: 26px;
}

.kanban-detail-block[open] .kanban-detail-block__summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.kanban-detail-block__body {
  margin: 0;
}

.kanban-detail-block__body .conversation-actions__card {
  margin-top: 0;
  margin-bottom: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.conversation-actions__card--agent-list {
  padding: 0;
  overflow: hidden;
}

.kanban-assigned-agents {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.kanban-assigned-agents__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.kanban-assigned-agents__item:last-child {
  border-bottom: 0;
}

.kanban-assigned-agents__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgb(15 23 42 / 12%);
}

.kanban-assigned-agents__avatar-id {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 18%);
  letter-spacing: -0.02em;
}

.kanban-assigned-agents__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kanban-assigned-agents__kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.kanban-assigned-agents__name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Cards de ofertas (detalhe Kanban, enriquecido pela API) */
.kanban-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 12px 14px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.kanban-offer-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(165deg, #fafbfc 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.kanban-offer-card__media {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  align-self: flex-start;
}

.kanban-offer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kanban-offer-card__main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kanban-offer-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kanban-offer-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.kanban-offer-card__type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4338ca;
  background: #e0e7ff;
  padding: 4px 8px;
  border-radius: 8px;
}

.kanban-offer-card__value {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.03em;
}

.kanban-offer-card__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.kanban-offer-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.kanban-offer-card__link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.kanban-offer-card__link:hover {
  text-decoration: underline;
}

/* PWA Toggle Switch for Settings */
.pwa-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.pwa-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pwa-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .3s;
  border-radius: 24px;
}

.pwa-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

input:checked+.pwa-toggle-slider {
  background-color: #10b981;
}

input:checked+.pwa-toggle-slider:before {
  transform: translateX(20px);
}

.messages-screen__attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messages-screen__content + .messages-screen__attachments {
  margin-top: 10px;
}

.messages-screen__content a,
.messages-screen__group-body a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.messages-screen__attachment-image img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.messages-screen__attachment-audio,
.messages-screen__attachment-video {
  width: 100%;
}

.messages-screen__attachment-video video {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.messages-screen__audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 6px;
  border-radius: 999px;
  background: transparent;
}

.messages-screen__audio-player audio {
  display: none;
}

.messages-screen__audio-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.messages-screen__audio-button:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.messages-screen__audio-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.messages-screen__audio-waveform {
  width: 100%;
  height: 28px;
  display: block;
  touch-action: manipulation;
  cursor: pointer;
}

.messages-screen__audio-time {
  font-size: 0.75rem;
  color: #4b5563;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
}

.messages-screen__audio-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.messages-screen__audio-transcript-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.75rem;
  color: #2563eb;
  text-decoration: underline;
  width: fit-content;
  cursor: pointer;
  text-align: left;
}

.messages-screen__audio-transcript-link:hover {
  color: #1d4ed8;
}

.messages-screen__audio-transcript-link:disabled {
  opacity: 0.6;
  cursor: wait;
}

.messages-screen__audio-transcript-text {
  margin: 0;
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.35;
  white-space: pre-wrap;
}

.messages-screen__attachment-file {
  font-size: 0.9em;
}

.messages-screen__attachment-file a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
  color: inherit;
  text-decoration: none;
}

.messages-screen__attachment-file span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-screen__attachment-file-icon {
  flex: 0 0 auto;
  color: #2563eb;
}

.messages-screen__attachment-audio-native {
  width: 100%;
  height: 36px;
}

.account-theme-card {
  padding: 12px;
}

.account-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.account-theme-option {
  min-height: 42px;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-theme-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .mock-conversations,
html[data-theme="dark"] .mock-contacts,
html[data-theme="dark"] .messages-screen,
html[data-theme="dark"] .contact-show,
html[data-theme="dark"] .kanban-mobile,
html[data-theme="dark"] .app-shell--login {
  background: var(--app-bg);
  color: var(--app-text);
}

html[data-theme="dark"] .app-shell--login .chatwoot-login,
html[data-theme="dark"] .mock-conversations__header,
html[data-theme="dark"] .mock-contacts__header,
html[data-theme="dark"] .contact-show__header,
html[data-theme="dark"] .messages-screen__header,
html[data-theme="dark"] .floating-navbar,
html[data-theme="dark"] .conversation-actions__card,
html[data-theme="dark"] .conversation-actions__drawer,
html[data-theme="dark"] .conversation-filter__sheet,
html[data-theme="dark"] .reports-hero,
html[data-theme="dark"] .reports-card,
html[data-theme="dark"] .mock-conversations__card,
html[data-theme="dark"] .mock-contacts__card,
html[data-theme="dark"] .kanban-mobile__card,
html[data-theme="dark"] .scheduled-messages__card,
html[data-theme="dark"] .contact-show__card,
html[data-theme="dark"] .contact-show__profile-card,
html[data-theme="dark"] .contact-show__quick-action,
html[data-theme="dark"] .contact-show__metric,
html[data-theme="dark"] .contact-show__edit-button,
html[data-theme="dark"] .linked-accounts__option,
html[data-theme="dark"] .view-switcher__option,
html[data-theme="dark"] .messages-screen__composer-card,
html[data-theme="dark"] .messages-screen__composer-input-shell,
html[data-theme="dark"] .conversation-actions__app-link,
html[data-theme="dark"] .account-theme-option {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: var(--app-text);
}

html[data-theme="dark"] .messages-screen__body,
html[data-theme="dark"] .conversation-actions,
html[data-theme="dark"] .mock-conversations__list,
html[data-theme="dark"] .mock-contacts__list,
html[data-theme="dark"] .chatwoot-login__input,
html[data-theme="dark"] .conversation-actions__snooze-panel,
html[data-theme="dark"] .conversation-actions__picker-item,
html[data-theme="dark"] .conversation-actions__picker-list--contact,
html[data-theme="dark"] .conversation-actions__drawer-input,
html[data-theme="dark"] .kanban-detail-block__summary,
html[data-theme="dark"] .kanban-detail-hero__facts div,
html[data-theme="dark"] .kanban-detail-pill,
html[data-theme="dark"] .kanban-offers,
html[data-theme="dark"] .kanban-offer-card,
html[data-theme="dark"] .kanban-detail-checklist__item,
html[data-theme="dark"] .kanban-detail-empty,
html[data-theme="dark"] .reports-filter__select,
html[data-theme="dark"] .app-navigation-skeleton,
html[data-theme="dark"] .mock-conversations__skeleton,
html[data-theme="dark"] .mock-contacts__skeleton,
html[data-theme="dark"] .contact-attributes-editor__row,
html[data-theme="dark"] .contact-attributes-editor__empty,
html[data-theme="dark"] .mock-conversations__search,
html[data-theme="dark"] .mock-conversations__tabs--drawer,
html[data-theme="dark"] .mock-conversations__tabs--drawer .mock-conversations__tab:not(.mock-conversations__tab--active),
html[data-theme="dark"] .internal-chat-create-drawer__mode-card,
html[data-theme="dark"] .internal-chat-create-drawer__agent-option,
html[data-theme="dark"] .kanban-mobile__empty-stage,
html[data-theme="dark"] .scheduled-messages__empty {
  background: var(--app-surface-soft);
  border-color: var(--app-border);
  color: var(--app-text);
}

html[data-theme="dark"] .contact-show__row,
html[data-theme="dark"] .contact-show__channel,
html[data-theme="dark"] .contact-show__conversation,
html[data-theme="dark"] .conversation-actions__row,
html[data-theme="dark"] .conversation-actions__muted-block,
html[data-theme="dark"] .app-navigation-skeleton__card,
html[data-theme="dark"] .mock-conversations__skeleton-card,
html[data-theme="dark"] .mock-contacts__skeleton-card {
  border-color: var(--app-border);
}

html[data-theme="dark"] .contact-show__back,
html[data-theme="dark"] .contact-show__quick-action {
  color: #60a5fa;
}

html[data-theme="dark"] .mock-conversations__message,
html[data-theme="dark"] .mock-conversations__time,
html[data-theme="dark"] .mock-conversations__assignee-text,
html[data-theme="dark"] .mock-contacts__subtitle,
html[data-theme="dark"] .chatwoot-login__info,
html[data-theme="dark"] .chatwoot-login__info-code,
html[data-theme="dark"] .chatwoot-login__label-icon,
html[data-theme="dark"] .contact-attributes-editor__hint,
html[data-theme="dark"] .contact-attributes-editor__label small,
html[data-theme="dark"] .contact-attributes-editor__empty,
html[data-theme="dark"] .contact-show__subtitle,
html[data-theme="dark"] .contact-show__eyebrow,
html[data-theme="dark"] .contact-show__section-title,
html[data-theme="dark"] .contact-show__row span,
html[data-theme="dark"] .contact-show__channel span,
html[data-theme="dark"] .contact-show__conversation small,
html[data-theme="dark"] .contact-show__conversation em,
html[data-theme="dark"] .contact-show__conversation time,
html[data-theme="dark"] .contact-show__empty,
html[data-theme="dark"] .contact-show__metric span,
html[data-theme="dark"] .messages-screen__subtitle,
html[data-theme="dark"] .conversation-actions__muted-text,
html[data-theme="dark"] .conversation-actions__muted-body,
html[data-theme="dark"] .conversation-actions__muted-label,
html[data-theme="dark"] .kanban-detail-hero__kicker,
html[data-theme="dark"] .kanban-detail-hero__desc,
html[data-theme="dark"] .kanban-detail-hero__id,
html[data-theme="dark"] .kanban-detail-hero__facts span,
html[data-theme="dark"] .kanban-offer-card__meta,
html[data-theme="dark"] .kanban-offer-card__desc,
html[data-theme="dark"] .kanban-assigned-agents__kicker,
html[data-theme="dark"] .kanban-detail-empty,
html[data-theme="dark"] .conversation-actions__label,
html[data-theme="dark"] .conversation-actions__value,
html[data-theme="dark"] .conversation-actions__drawer-label,
html[data-theme="dark"] .internal-chat-create-drawer__section-title,
html[data-theme="dark"] .internal-chat-create-drawer__mode-card span,
html[data-theme="dark"] .conversation-actions__picker-item-subtitle,
html[data-theme="dark"] .reports-hero__main span,
html[data-theme="dark"] .reports-section h2,
html[data-theme="dark"] .reports-card__label,
html[data-theme="dark"] .kanban-mobile__card span,
html[data-theme="dark"] .kanban-mobile__card small,
html[data-theme="dark"] .kanban-mobile__card em,
html[data-theme="dark"] .scheduled-messages__card-main p,
html[data-theme="dark"] .floating-navbar__item {
  color: var(--app-muted);
}

html[data-theme="dark"] .mock-conversations__contact,
html[data-theme="dark"] .mock-conversations__inbox-title,
html[data-theme="dark"] .mock-conversations__inbox-title *,
html[data-theme="dark"] .chatwoot-login__title,
html[data-theme="dark"] .chatwoot-login__label,
html[data-theme="dark"] .contact-attributes-editor__label,
html[data-theme="dark"] .kanban-mobile__funnel-select,
html[data-theme="dark"] .inbox-header-select__label,
html[data-theme="dark"] .kanban-mobile__funnel-select-chevron,
html[data-theme="dark"] .mock-contacts__title,
html[data-theme="dark"] .mock-contacts__name,
html[data-theme="dark"] .contact-show__title,
html[data-theme="dark"] .contact-show__name,
html[data-theme="dark"] .contact-show__conversation-title,
html[data-theme="dark"] .contact-show__row strong,
html[data-theme="dark"] .contact-show__channel strong,
html[data-theme="dark"] .contact-show__conversation strong,
html[data-theme="dark"] .contact-show__metric strong,
html[data-theme="dark"] .messages-screen__title,
html[data-theme="dark"] .messages-screen__title *,
html[data-theme="dark"] .kanban-detail-hero__title,
html[data-theme="dark"] .kanban-detail-hero__facts strong,
html[data-theme="dark"] .kanban-detail-block__summary,
html[data-theme="dark"] .kanban-offer-card__title,
html[data-theme="dark"] .kanban-assigned-agents__name,
html[data-theme="dark"] .kanban-detail-checklist__text,
html[data-theme="dark"] .conversation-actions__section-title,
html[data-theme="dark"] .conversation-actions__row,
html[data-theme="dark"] .conversation-actions__muted-body--signature strong,
html[data-theme="dark"] .conversation-actions__picker-item-title,
html[data-theme="dark"] .reports-hero__main strong,
html[data-theme="dark"] .reports-card__value,
html[data-theme="dark"] .kanban-mobile__card strong,
html[data-theme="dark"] .scheduled-messages__card-head strong,
html[data-theme="dark"] .linked-accounts__option-name {
  color: var(--app-text);
}

html[data-theme="dark"] .kanban-mobile__column-header h2,
html[data-theme="dark"] .kanban-mobile__column-header p {
  color: #111827;
}

html[data-theme="dark"] .conversation-actions__drawer-close:not(.conversation-filter__clear) {
  background: #f3f4f6;
  color: #111827;
}

html[data-theme="dark"] #internal_chat_kind_direct:checked ~ .internal-chat-create-drawer__mode-options label[for="internal_chat_kind_direct"],
html[data-theme="dark"] #internal_chat_kind_group:checked ~ .internal-chat-create-drawer__mode-options label[for="internal_chat_kind_group"] {
  border-color: #60a5fa;
  background: #111111;
  box-shadow: inset 0 0 0 1px #60a5fa;
}

html[data-theme="dark"] .chatwoot-login__submit--secondary {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}

html[data-theme="dark"] .messages-screen__back {
  background: #111111;
  border-color: #333333;
  color: #f5f5f5;
}

html[data-theme="dark"] .contact-show__back,
html[data-theme="dark"] .contact-show__edit-button {
  background: #111111;
  border-color: #333333;
  color: #f5f5f5;
}

html[data-theme="dark"] .conversation-actions__muted-text {
  color: var(--app-muted) !important;
}

html[data-theme="dark"] .kanban-detail-block__summary::after,
html[data-theme="dark"] .kanban-detail-hero__id {
  background: #242424;
  color: var(--app-muted);
}

html[data-theme="dark"] .kanban-detail-checklist__check {
  background: #111111;
  border-color: var(--app-border);
}

html[data-theme="dark"] .kanban-detail-checklist__check--done {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(134, 239, 172, 0.45);
}

html[data-theme="dark"] .kanban-detail-pill--status {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.34);
  color: #bfdbfe;
}

html[data-theme="dark"] .reports-hero__insight span {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--app-border);
  color: #bfdbfe;
}

html[data-theme="dark"] .reports-card {
  box-shadow: none;
}

html[data-theme="dark"] .reports-card__hint {
  color: color-mix(in srgb, var(--report-color) 76%, var(--app-muted));
}

html[data-theme="dark"] .app-navigation-skeleton__button,
html[data-theme="dark"] .app-navigation-skeleton__title,
html[data-theme="dark"] .app-navigation-skeleton__search,
html[data-theme="dark"] .app-navigation-skeleton__avatar,
html[data-theme="dark"] .app-navigation-skeleton__line,
html[data-theme="dark"] .mock-conversations__skeleton-avatar,
html[data-theme="dark"] .mock-conversations__skeleton-line,
html[data-theme="dark"] .mock-contacts__skeleton-avatar,
html[data-theme="dark"] .mock-contacts__skeleton-line,
html[data-theme="dark"] .messages-screen__skeleton-bubble,
html[data-theme="dark"] .messages-screen__skeleton-line {
  background: #242424;
}

html[data-theme="dark"] .messages-screen__skeleton-row--mine .messages-screen__skeleton-bubble {
  background: rgba(37, 99, 235, 0.24);
}

html[data-theme="dark"] .app-navigation-skeleton__button::after,
html[data-theme="dark"] .app-navigation-skeleton__title::after,
html[data-theme="dark"] .app-navigation-skeleton__search::after,
html[data-theme="dark"] .app-navigation-skeleton__avatar::after,
html[data-theme="dark"] .app-navigation-skeleton__line::after,
html[data-theme="dark"] .mock-conversations__skeleton-avatar::after,
html[data-theme="dark"] .mock-conversations__skeleton-line::after,
html[data-theme="dark"] .mock-contacts__skeleton-avatar::after,
html[data-theme="dark"] .mock-contacts__skeleton-line::after,
html[data-theme="dark"] .messages-screen__skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

html[data-theme="dark"] .floating-navbar {
  background: rgba(15, 15, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .account-theme-option:has(input:checked),
html[data-theme="dark"] .view-switcher__option--active {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

html[data-theme="dark"] img {
  filter: none;
}

html[data-theme="dark"] .mock-conversations__icon-button,
html[data-theme="dark"] .mock-conversations__filter,
html[data-theme="dark"] .mock-conversations__filter--square {
  background: #111111;
  border-color: #333333;
  color: #f5f5f5;
}

html[data-theme="dark"] .mock-conversations__icon-button:active,
html[data-theme="dark"] .mock-conversations__filter:active {
  background: #1f1f1f;
}
