@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap";
/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f6f8fb;
  --surface: #fff;
  --surface-2: #f0f5f7;
  --surface-3: #e8eff2;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4e8;
  --primary: #206bc4;
  --primary-strong: #1b5ba8;
  --primary-soft: #e0f2fe;
  --accent: #2563eb;
  --warning: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 18px 45px #0f172a14;
  --radius: 8px;
  --sidebar: 264px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

body {
  background: radial-gradient(circle at top left, #0f766e1f, transparent 34rem),
    linear-gradient(135deg, #f8fbfc 0%, var(--bg) 52%, #eef3f6 100%);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  margin: 0;
}

.auth-page {
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  display: grid;
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

h1, h2, h3, p {
  margin-top: 0;
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  min-height: 46px;
  color: var(--text);
  font: inherit;
  background: #fff;
  outline: none;
  padding: .75rem .9rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

input:focus, select:focus, textarea:focus {
  border-color: #0f766e8c;
  box-shadow: 0 0 0 4px #0f766e1f;
}

input[type="color"] {
  width: 4.8rem;
  min-height: 42px;
  padding: .25rem;
}

button, .button {
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  font: inherit;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .18s;
  display: inline-flex;
}

button:hover, .button:hover {
  background: var(--primary-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px #0f766e38;
}

button.secondary, .button.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

button.secondary:hover, .button.secondary:hover {
  box-shadow: none;
  background: #e5eef1;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  z-index: 10;
  width: var(--sidebar);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #ffffffd1;
  border-right: 1px solid #dbe4e8e6;
  flex-direction: column;
  padding: 1.2rem;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  align-items: center;
  gap: .75rem;
  padding: .5rem .35rem 1rem;
  display: flex;
}

.brand-mark {
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  place-items: center;
  width: 42px;
  height: 42px;
  font-weight: 900;
  display: grid;
}

.brand-title {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .75rem;
  font-weight: 700;
}

.sidebar .nav {
  flex-direction: column;
  flex: 1;
  gap: .35rem;
  margin-top: 1rem;
  display: flex;
}

.sidebar .nav a {
  border-radius: var(--radius);
  color: #475569;
  align-items: center;
  min-height: 44px;
  padding: .75rem .9rem;
  font-weight: 800;
  transition: background .18s, color .18s, transform .18s;
  display: flex;
}

.sidebar .nav a.active, .sidebar .nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateX(2px);
}

.sidebar .nav a:last-child {
  color: #9f1239;
  margin-top: auto;
}

.sidebar {
  transition: width .3s cubic-bezier(.4, 0, .2, 1);
}

.sidebar.collapsed {
  width: 80px;
  padding: 1.2rem .6rem;
}

.sidebar.collapsed .brand-text {
  opacity: 0;
  width: 0;
  display: none;
}

.sidebar.collapsed .brand {
  flex-direction: column;
  gap: 1rem;
}

.sidebar.collapsed .sidebar-toggle {
  margin: 0 auto;
}

.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .nav a {
  justify-content: center;
  padding: .75rem 0;
}

.sidebar.collapsed .nav-icon {
  margin-right: 0;
}

.brand-text {
  white-space: nowrap;
  flex: 1;
  transition: opacity .3s;
  overflow: hidden;
}

.sidebar-toggle {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  transition: all .2s;
  display: flex;
}

.sidebar-toggle:hover {
  background: var(--surface-3);
  color: var(--text);
}

.nav-icon {
  opacity: .7;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  display: flex;
}

.nav a.active .nav-icon {
  opacity: 1;
}

.main {
  margin-left: var(--sidebar);
  padding: 2rem;
  transition: margin-left .3s cubic-bezier(.4, 0, .2, 1);
}

body:has(.sidebar.collapsed) .main {
  margin-left: 80px;
}

.page {
  width: min(1120px, 100%);
}

.page.wide, .dashboard-page {
  width: min(1380px, 100%);
}

.page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.eyebrow {
  color: var(--primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .45rem;
  font-size: .78rem;
  font-weight: 900;
}

.page-title {
  color: var(--text);
  margin-bottom: .65rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: .98;
}

.page-copy {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ffffffe6;
  padding: 1.25rem;
}

.card-title {
  color: var(--text);
  margin-bottom: .75rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.stack {
  gap: 1rem;
  display: grid;
}

.form-grid {
  gap: .9rem;
  display: grid;
}

.field-row, .actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.toggle-row {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  display: flex;
}

.toggle-title, .toggle-copy {
  display: block;
}

.toggle-title {
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
}

.toggle-copy {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .76rem;
  line-height: 1.35;
}

.toggle-switch {
  flex: none;
  width: 52px;
  height: 30px;
  position: relative;
}

.toggle-switch input {
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  position: absolute;
  inset: 0;
}

.toggle-slider {
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .18s, box-shadow .18s;
  position: absolute;
  inset: 0;
}

.toggle-slider:before {
  content: "";
  background: #fff;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  transition: transform .18s;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 7px #0f172a33;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 4px #206bc42e;
}

.actions {
  margin-top: .25rem;
}

.settings-grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.user-list {
  gap: .75rem;
  display: grid;
}

.user-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  display: flex;
}

.user-name {
  color: var(--text);
  margin-bottom: .2rem;
  font-weight: 900;
}

.auth-card {
  width: min(440px, 100%);
  padding: 2rem;
}

.auth-brand {
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.auth-title {
  color: var(--text);
  text-align: center;
  margin-bottom: .5rem;
  font-size: 2rem;
  font-weight: 900;
}

.auth-copy {
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-switch {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  display: grid;
}

.stat-card {
  flex-direction: column;
  justify-content: space-between;
  min-height: 156px;
  display: flex;
}

.stat-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.stat-icon {
  border-radius: var(--radius);
  background: var(--surface-2);
  width: 42px;
  height: 42px;
  color: var(--primary);
  place-items: center;
  font-size: 1.25rem;
  display: grid;
}

.stat-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-weight: 800;
}

.stat-hint {
  color: #8a9aac;
  margin-top: .35rem;
  font-size: .76rem;
  font-weight: 700;
}

.analytics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.analytics-panel {
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
}

.bar-list {
  gap: .85rem;
  min-width: 0;
  display: grid;
}

.bar-row {
  gap: .45rem;
  min-width: 0;
  display: grid;
}

.bar-row-top {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  font-size: .84rem;
  font-weight: 800;
  display: flex;
}

.bar-row-top span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.bar-row-top strong {
  color: var(--text);
  font-family: var(--font-mono);
  flex: none;
}

.bar-track {
  background: #e5edf2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bar-track span {
  border-radius: inherit;
  background: var(--primary);
  height: 100%;
  display: block;
}

.empty-copy {
  color: var(--muted);
  margin-bottom: 0;
  font-size: .88rem;
}

.panel {
  min-height: 0;
}

.conversation-list {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  align-content: start;
  gap: 2px;
  max-height: calc(100vh - 4rem);
  padding-right: 0;
  display: grid;
  overflow: auto;
}

.conversation-card {
  cursor: pointer;
  box-shadow: none;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  padding: 10px 12px;
  transition: background .12s;
}

.conversation-card:hover {
  background: #f0f2f5;
  border-color: #f0f2f5;
  transform: none;
}

.conversation-card.active {
  border-left: 3px solid var(--primary);
  background: #f0f2f5;
}

.session-id {
  color: var(--muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  margin-top: .75rem;
  font-size: .8rem;
}

.chat-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  height: calc(100vh - 4rem);
  min-height: 520px;
  display: flex;
  overflow: hidden;
}

.chat-panel-header {
  background: var(--primary);
  color: #fff;
  align-items: center;
  gap: .75rem;
  min-height: 52px;
  padding: .75rem 1rem;
  display: flex;
}

.chat-panel-header .chat-name {
  font-size: .95rem;
  font-weight: 800;
}

.chat-panel-header .chat-status {
  opacity: .8;
  font-size: .72rem;
}

.messages {
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9bfb0' fill-opacity='0.18'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='30' cy='5' r='1.5'/%3E%3Ccircle cx='50' cy='15' r='1'/%3E%3Ccircle cx='70' cy='8' r='1.8'/%3E%3Ccircle cx='20' cy='30' r='1'/%3E%3Ccircle cx='40' cy='35' r='2'/%3E%3Ccircle cx='60' cy='28' r='1.2'/%3E%3Ccircle cx='5' cy='50' r='1.5'/%3E%3Ccircle cx='25' cy='55' r='1'/%3E%3Ccircle cx='45' cy='48' r='1.8'/%3E%3Ccircle cx='65' cy='52' r='1'/%3E%3Ccircle cx='15' cy='70' r='1.2'/%3E%3Ccircle cx='35' cy='68' r='1.5'/%3E%3Ccircle cx='55' cy='75' r='1'/%3E%3Ccircle cx='75' cy='65' r='2'/%3E%3C/g%3E%3C/svg%3E");
  flex: 1;
  padding: .75rem 1rem 1rem;
  overflow-y: auto;
}

.date-separator {
  justify-content: center;
  margin: 12px 0;
  display: flex;
}

.date-separator span {
  color: #54656f;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #e1dad0f2;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 1px 1px #0000000f;
}

.message-row {
  margin-bottom: 3px;
  animation: .15s ease-out msg-in;
  display: flex;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.message-bubble {
  color: #111b21;
  background: #fff;
  border: none;
  border-radius: 8px;
  min-width: 80px;
  max-width: min(72%, 520px);
  margin-left: 12px;
  padding: 6px 8px 4px;
  font-size: .88rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 1px #00000014;
}

.message-row.customer .message-bubble:after {
  content: "";
  border-top: 0 solid #0000;
  border-bottom: 8px solid #0000;
  border-left: 0 solid #0000;
  border-right: 8px solid #fff;
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: -8px;
}

.message-row.support .message-bubble {
  color: #111b21;
  background: #d9fdd3;
  margin-left: 0;
  margin-right: 12px;
}

.message-row.support .message-bubble:after {
  content: "";
  border-top: 0 solid #0000;
  border-bottom: 8px solid #0000;
  border-left: 8px solid #d9fdd3;
  border-right: 0 solid #0000;
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: auto;
  right: -8px;
}

.message-meta {
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding-top: 0;
  display: flex;
}

.message-role {
  color: #667781;
  text-transform: capitalize;
  font-size: .64rem;
  font-weight: 700;
}

.message-time {
  color: #667781;
  white-space: nowrap;
  font-size: .64rem;
}

.message-row.support .message-check {
  color: #53bdeb;
  width: 16px;
  height: 11px;
  display: inline-block;
}

.message-form {
  background: #f0f2f5;
  border-top: 1px solid #e2e8f0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.message-form input {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  flex: 1;
  min-height: 40px;
  padding: 8px 18px;
  font-size: .88rem;
}

.message-form input:focus {
  box-shadow: none;
  border-color: #0f766e66;
}

.message-form button {
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
}

.message-sender-name {
  color: #1fa855;
  margin-bottom: 1px;
  font-size: .72rem;
  font-weight: 800;
}

.message-row.customer .message-sender-name {
  color: #6b7c85;
}

.session-info {
  align-self: start;
}

.info-row {
  gap: .35rem;
  margin-bottom: .85rem;
  display: grid;
}

.info-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 900;
}

.info-value {
  overflow-wrap: anywhere;
}

.status-badge, .channel-badge {
  font-family: var(--font-mono);
  text-transform: uppercase;
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  padding: .32rem .65rem;
  font-size: .72rem;
  font-weight: 900;
  display: inline-flex;
}

.status-ai, .status-ai-active {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-human, .status-human-joined {
  color: #047857;
  background: #dcfce7;
}

.status-resolved {
  color: #475569;
  background: #e2e8f0;
}

.channel-web {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.channel-whatsapp {
  color: #15803d;
  background: #dcfce7;
}

.channel-telegram {
  color: #1d4ed8;
  background: #dbeafe;
}

.banner {
  border-radius: var(--radius);
  margin-top: .9rem;
  padding: .75rem .85rem;
  font-weight: 900;
}

.banner.ai {
  color: #1d4ed8;
  background: #dbeafe;
}

.banner.human {
  color: #047857;
  background: #dcfce7;
}

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

.webhook-box, .snippet-box {
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px dashed #b8c7ce;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  display: flex;
}

.mono, code {
  color: var(--primary-strong);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  font-size: .84rem;
}

.instructions {
  color: var(--muted);
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.widget-layout {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.preview-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  width: 100%;
  height: 390px;
}

.toast {
  z-index: 9999;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: min(360px, 100vw - 2.5rem);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  padding: .95rem 1rem;
  font-weight: 800;
  transition: opacity .24s, transform .24s;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  transform: translateY(8px);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .stats-grid, .analytics-grid, .settings-grid, .channel-grid, .widget-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-layout {
    grid-template-columns: 280px minmax(360px, 1fr);
  }

  .session-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar: 0px;
  }

  .auth-page {
    padding: 1rem;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: auto;
    padding: .8rem;
    position: static;
  }

  .sidebar .nav {
    flex-direction: row;
    flex: none;
    gap: .35rem;
    margin-top: .5rem;
    overflow-x: auto;
  }

  .sidebar .nav a {
    white-space: nowrap;
  }

  .main {
    margin-left: 0;
    padding: 1rem;
  }

  .page-header {
    display: block;
  }

  .stats-grid, .analytics-grid, .settings-grid, .channel-grid, .widget-layout, .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-panel, .conversation-list {
    height: auto;
    min-height: 430px;
    max-height: none;
  }
}

body.chat-page .main, body.chat-page main.wa-shell {
  margin-left: var(--sidebar);
  padding: 0;
  transition: margin-left .25s;
}

.sidebar-collapse-btn {
  color: #54656f;
  cursor: pointer;
  background: #f0f2f5;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: auto 16px 16px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 600;
  transition: background .15s, color .15s;
  display: flex;
}

.sidebar-collapse-btn:hover {
  color: #111b21;
  box-shadow: none;
  background: #e2e8f0;
  transform: none;
}

.sidebar-expand-btn {
  z-index: 100;
  background: var(--primary, #0f766e);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 0 8px 8px 0;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  transition: opacity .2s, background .15s;
  display: flex;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  box-shadow: 2px 0 8px #0000001f;
}

.sidebar-expand-btn:hover {
  background: #0d6b63;
  transform: translateY(-50%);
  box-shadow: 2px 0 12px #0000002e;
}

body.chat-page .sidebar.collapsed {
  opacity: 0;
  pointer-events: none;
  border: 0;
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

body.chat-page .sidebar {
  transition: width .25s, min-width .25s, opacity .2s, padding .25s;
}

body.sidebar-collapsed main.wa-shell {
  margin-left: 0;
}

.wa-shell {
  background: #eae6df;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.wa-left {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  flex-direction: column;
  flex-shrink: 0;
  width: 340px;
  min-width: 280px;
  max-width: 420px;
  transition: width .25s, min-width .25s, opacity .25s;
  display: flex;
  overflow: hidden;
}

.wa-left.collapsed {
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
}

.wa-left-header {
  background: #f0f2f5;
  border-bottom: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
}

.wa-left-title {
  color: #111b21;
  letter-spacing: -.02em;
  font-size: 1.18rem;
  font-weight: 800;
}

.wa-icon-btn {
  color: #54656f;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  transition: background .15s;
  display: grid;
}

.wa-icon-btn:hover {
  background: #0000000f;
}

.wa-search {
  background: #fff;
  padding: 8px 12px;
}

.wa-search-box {
  background: #f0f2f5;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  display: flex;
}

.wa-search-box input {
  color: #111b21;
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  min-height: auto;
  padding: 0;
  font-size: .84rem;
}

.wa-search-box input::placeholder {
  color: #8696a0;
}

.wa-filters {
  gap: 6px;
  padding: 4px 12px 8px;
  display: flex;
  overflow-x: auto;
}

.wa-filter {
  color: #54656f;
  cursor: pointer;
  white-space: nowrap;
  background: #e9edef;
  border: 0;
  border-radius: 18px;
  min-height: auto;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.wa-filter:hover {
  box-shadow: none;
  background: #d5dbdf;
  transform: none;
}

.wa-filter.active {
  background: var(--primary-soft, #d1fae5);
  color: var(--primary, #0f766e);
}

.wa-conv-list {
  -webkit-overflow-scrolling: touch;
  flex: 1;
  overflow: hidden auto;
}

.wa-conv-item {
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background .1s;
  display: flex;
  position: relative;
}

.wa-conv-item:hover {
  background: #f5f6f6;
}

.wa-conv-item.active {
  background: #f0f2f5;
}

.wa-conv-avatar {
  color: #667781;
  text-transform: uppercase;
  background: #dfe5e7;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: .88rem;
  font-weight: 800;
  display: grid;
}

.wa-conv-item.active .wa-conv-avatar {
  background: var(--primary, #0f766e);
  color: #fff;
}

.wa-conv-body {
  flex: 1;
  min-width: 0;
}

.wa-conv-top {
  justify-content: space-between;
  align-items: baseline;
  display: flex;
}

.wa-conv-name {
  color: #111b21;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 160px;
  font-size: .92rem;
  font-weight: 700;
  overflow: hidden;
}

.wa-conv-time {
  color: #667781;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .68rem;
}

.wa-conv-bottom {
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  display: flex;
}

.wa-conv-preview {
  color: #667781;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 180px;
  font-size: .8rem;
  line-height: 1.3;
  overflow: hidden;
}

.wa-conv-badge {
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: .64rem;
  font-weight: 800;
  display: inline-flex;
}

.wa-badge-ai {
  color: #1d4ed8;
  background: #dbeafe;
}

.wa-badge-human {
  color: #047857;
  background: #dcfce7;
}

.wa-badge-resolved {
  color: #475569;
  background: #e2e8f0;
}

.wa-right {
  flex: 1;
  min-width: 0;
  display: flex;
  position: relative;
}

.wa-chat-panel {
  background: #eae6df;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.wa-empty {
  text-align: center;
  background: #f0f2f5;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  display: flex;
}

.wa-empty-icon {
  opacity: .5;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  display: grid;
}

.wa-empty h2 {
  color: #41525d;
  margin-bottom: .5rem;
  font-size: 1.5rem;
  font-weight: 300;
}

.wa-empty p {
  color: #8696a0;
  font-size: .88rem;
}

.wa-chat-header {
  cursor: pointer;
  background: #f0f2f5;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  display: flex;
}

.wa-chat-avatar {
  background: var(--primary, #0f766e);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: .78rem;
  font-weight: 800;
  display: grid;
}

.wa-chat-name {
  color: #111b21;
  font-size: .95rem;
  font-weight: 700;
}

.wa-chat-status {
  color: #667781;
  font-size: .72rem;
}

.wa-chat-actions {
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.wa-messages {
  background-color: #eae6df;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='6' cy='6' r='1' fill='%23d4cfc4' fill-opacity='0.35'/%3E%3Ccircle cx='20' cy='12' r='0.8' fill='%23d4cfc4' fill-opacity='0.25'/%3E%3Ccircle cx='34' cy='4' r='1.2' fill='%23d4cfc4' fill-opacity='0.3'/%3E%3Ccircle cx='14' cy='24' r='0.7' fill='%23d4cfc4' fill-opacity='0.25'/%3E%3Ccircle cx='28' cy='30' r='1' fill='%23d4cfc4' fill-opacity='0.3'/%3E%3Ccircle cx='8' cy='36' r='0.9' fill='%23d4cfc4' fill-opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23p)' width='200' height='200'/%3E%3C/svg%3E");
  flex: 1;
  padding: 12px 60px;
  overflow-y: auto;
}

.wa-date-sep {
  justify-content: center;
  margin: 10px 0;
  display: flex;
}

.wa-date-sep span {
  color: #54656f;
  text-transform: uppercase;
  background: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .72rem;
  font-weight: 600;
  box-shadow: 0 1px 1px #00000014;
}

.wa-msg-row {
  align-items: flex-end;
  min-width: 0;
  margin: 2px 0 8px;
  display: flex;
}

.wa-msg-row.out {
  justify-content: flex-end;
}

.wa-message-wrap {
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(72%, 620px);
  display: flex;
}

.wa-bubble {
  color: #111b21;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #fff;
  border-radius: 7.5px;
  min-width: 72px;
  max-width: 100%;
  margin: 0;
  padding: 6px 7px 4px 9px;
  font-size: .875rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px .5px #0b141a14;
}

.wa-msg-row:not(.out) .wa-bubble {
  border-top-left-radius: 0;
}

.wa-msg-row:not(.out) .wa-bubble:before {
  content: "";
  border-top: 0 solid #0000;
  border-bottom: 8px solid #0000;
  border-left: 0 solid #0000;
  border-right: 8px solid #fff;
  position: absolute;
  top: 0;
  left: -8px;
}

.wa-msg-row.out .wa-bubble {
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.wa-msg-row.out .wa-bubble:before {
  content: "";
  border-top: 0 solid #0000;
  border-bottom: 8px solid #0000;
  border-left: 8px solid #d9fdd3;
  border-right: 0 solid #0000;
  position: absolute;
  top: 0;
  left: auto;
  right: -8px;
}

.wa-sender {
  color: #1fa855;
  margin-bottom: 1px;
  font-size: .74rem;
  font-weight: 700;
}

.wa-msg-row:not(.out) .wa-sender {
  color: #6b7c85;
}

.wa-reply-context {
  background: #0b141a0d;
  border-left: 3px solid #06cf9c;
  border-radius: 6px;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 5px 8px;
  overflow: hidden;
}

.wa-msg-row.out .wa-reply-context {
  background: #111b210f;
}

.wa-reply-title {
  color: #008069;
  margin-bottom: 1px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}

.wa-reply-text {
  color: #54656f;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  line-height: 1.25;
  overflow: hidden;
}

.wa-meta {
  float: right;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  margin-left: 10px;
  padding-top: 3px;
  line-height: 1;
  display: flex;
}

.wa-time {
  color: #667781;
  font-size: .66rem;
}

.wa-check {
  color: #53bdeb;
  flex: none;
}

.wa-reply-btn {
  color: #667781;
  cursor: pointer;
  opacity: 0;
  background: #fff;
  border: 0;
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: opacity .15s, transform .15s, background .15s;
  display: flex;
  box-shadow: 0 1px 2px #0b141a29;
}

.wa-msg-row:hover .wa-reply-btn, .wa-reply-btn:focus-visible {
  opacity: 1;
}

.wa-reply-btn:hover {
  background: #f0f2f5;
  transform: scale(1.04);
}

.wa-input-bar {
  background: #f0f2f5;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.wa-input-bar input {
  font: inherit;
  color: #111b21;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  outline: none;
  flex: 1;
  min-height: 42px;
  padding: 9px 18px;
  font-size: .88rem;
  transition: border-color .15s;
}

.wa-input-bar input:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.wa-input-bar button {
  background: var(--primary, #0f766e);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  transition: opacity .15s;
  display: grid;
}

.wa-input-bar button:hover {
  opacity: .85;
  box-shadow: none;
  transform: none;
}

.wa-info-panel {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  flex-direction: column;
  flex-shrink: 0;
  width: 0;
  height: 100vh;
  transition: width .25s;
  display: flex;
  overflow: hidden;
}

.wa-info-panel.open {
  width: 320px;
  overflow: visible;
}

.wa-info-panel .wa-info-inner {
  flex: 1;
  width: 320px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.wa-info-header {
  background: #f0f2f5;
  border-bottom: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
}

.wa-info-title {
  color: #111b21;
  font-size: .95rem;
  font-weight: 800;
}

.wa-mobile-back {
  z-index: 100;
  background: var(--primary, #0f766e);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  box-shadow: 0 2px 8px #0003;
}

@media (max-width: 1180px) {
  .wa-messages {
    padding: 12px 24px;
  }

  .wa-info-panel.open, .wa-info-panel .wa-info-inner {
    width: 260px;
  }
}

@media (max-width: 820px) {
  body.chat-page .sidebar {
    display: none;
  }

  body.chat-page .wa-shell {
    margin-left: 0;
  }

  .wa-left {
    z-index: 50;
    border-right: 0;
    width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
  }

  .wa-left.collapsed {
    display: none;
  }

  .wa-right {
    width: 100vw;
  }

  .wa-chat-panel {
    display: none;
  }

  .wa-chat-header {
    padding-left: 55px;
  }

  .wa-chat-panel.active {
    z-index: 60;
    height: 100dvh;
    display: flex;
    position: fixed;
    inset: 0;
  }

  .wa-input-bar input {
    font-size: 16px;
  }

  .wa-mobile-back {
    z-index: 70;
    display: none;
  }

  .wa-mobile-back.active {
    display: grid;
  }

  .wa-messages {
    padding: 12px 14px;
  }

  .wa-info-panel {
    z-index: 65;
    width: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
  }

  .wa-info-panel.open {
    width: 85vw;
    max-width: 320px;
  }
}

@keyframes skeleton-pulse {
  0% {
    opacity: .6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .6;
  }
}

.skeleton-loader {
  background: #e2e8f0;
  animation: 1.5s cubic-bezier(.4, 0, .6, 1) infinite skeleton-pulse;
}

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .main {
    -webkit-overflow-scrolling: touch;
    margin-left: 0 !important;
  }

  .main:not(.chat-active) {
    padding: 1rem 1rem 80px !important;
  }

  .wa-conv-list {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  body:has(.wa-chat-panel.active) .main {
    padding-bottom: 0 !important;
  }

  body:has(.wa-chat-panel.active) .bottom-nav {
    display: none !important;
  }

  .bottom-nav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 64px;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fffffff2;
    border-top: 1px solid #00000014;
    justify-content: space-around;
    align-items: center;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .bottom-nav-item {
    color: #64748b;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 100%;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
    display: flex;
  }

  .bottom-nav-item.active {
    color: var(--primary, #0f766e);
  }

  .bottom-nav-icon {
    justify-content: center;
    align-items: center;
    display: flex;
  }
}

.settings-hub {
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .settings-hub {
    margin: 0;
  }
}

.settings-header {
  flex-direction: column;
  padding: 1rem 1rem 2rem;
  display: flex;
  position: relative;
}

.settings-actions {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
}

.icon-btn {
  color: #64748b;
  cursor: pointer;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  transition: all .2s;
  display: flex;
}

.icon-btn:hover {
  color: #334155;
  background: #e2e8f0;
}

.profile-section {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.profile-avatar {
  color: #fff;
  background: #0f766e;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  font-size: 40px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 12px #0000004d;
}

.profile-name {
  color: var(--text);
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  display: flex;
}

.settings-title {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  padding-left: 16px;
  font-size: 14px;
  font-weight: 600;
}

.settings-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px #0000000d;
}

.settings-item {
  color: var(--text);
  align-items: center;
  padding: 16px;
  text-decoration: none;
  transition: background .2s;
  display: flex;
  position: relative;
}

.settings-item:hover {
  background: #f8fafc;
}

.settings-item:not(:last-child):after {
  content: "";
  background: #e2e8f0;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 0;
}

.settings-icon {
  color: #64748b;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  display: flex;
}

.settings-label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.settings-item .chevron {
  color: #cbd5e1;
}

.table-container {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: 0 4px 6px -1px #0000000d;
}

.data-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 16px;
  font-size: .85rem;
  font-weight: 600;
}

.data-table td {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
  padding: 16px;
  font-size: .95rem;
}

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

.data-table tbody tr {
  transition: background .2s;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.google-warning {
  border-left: 4px solid var(--warning);
  color: #92400e;
  gap: .6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  display: grid;
}

.google-warning code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.google-connect-card {
  gap: 1rem;
  max-width: 760px;
  display: grid;
}

.google-connect-card p, .google-controls p {
  color: var(--muted);
  margin: 0;
  font-weight: 600;
  line-height: 1.55;
}

.google-controls {
  gap: 1rem;
  display: grid;
}

.google-select-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem;
  display: grid;
}

.google-select-grid.app-lookup-grid {
  grid-template-columns: minmax(240px, 1fr) 100px 100px auto;
}

.google-select-grid label {
  color: var(--muted);
  gap: .45rem;
  font-size: .82rem;
  font-weight: 800;
  display: grid;
}

.google-review-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.google-review-summary .card {
  gap: .55rem;
  min-height: 110px;
  display: grid;
}

.google-review-summary span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.google-review-summary strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.google-reviews-card {
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.google-reviews-head {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.google-reviews-head > div {
  gap: .65rem;
  display: flex;
}

.google-reviews-head input {
  min-width: 260px;
}

.google-review-list {
  gap: .85rem;
  display: grid;
}

.google-review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  gap: .75rem;
  padding: 1rem;
  display: grid;
}

.google-review-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.google-review-top div {
  gap: .25rem;
  display: grid;
}

.google-review-top strong {
  color: var(--text);
}

.google-review-top span, .google-review-top em {
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
}

.google-review-top em {
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  padding: .25rem .6rem;
}

.google-review-item p {
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

.google-existing-reply {
  border-left: 3px solid var(--primary);
  background: #eef6ff;
  border-radius: 6px;
  gap: .35rem;
  padding: .7rem .8rem;
  display: grid;
}

.google-existing-reply strong {
  color: var(--primary);
  font-size: .78rem;
}

.google-review-actions {
  flex-wrap: wrap;
  gap: .65rem;
  display: flex;
}

.google-review-actions span {
  color: var(--muted);
  align-self: center;
  font-size: .85rem;
  font-weight: 700;
}

.google-load-more {
  justify-content: center;
  display: flex;
}

.google-pagination {
  justify-content: center;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.google-pagination span {
  color: var(--muted);
  text-align: center;
  min-width: 118px;
  font-weight: 800;
}

.app-preview-card {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.app-preview-card.locked {
  grid-template-columns: 82px minmax(0, 1fr);
}

.app-preview-card img {
  object-fit: cover;
  border-radius: 18px;
  width: 72px;
  height: 72px;
}

.app-preview-card p {
  color: var(--muted);
  margin: .2rem 0;
  font-weight: 700;
}

.app-preview-meta {
  flex-wrap: wrap;
  gap: .5rem;
  margin: .55rem 0;
  display: flex;
}

.app-preview-meta span {
  color: var(--primary);
  background: #eef6ff;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .78rem;
  font-weight: 800;
}

.setup-guide-card {
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.setup-guide-card p {
  color: var(--muted);
  margin: 0;
  font-weight: 700;
}

.setup-guide-list {
  gap: .7rem;
  display: grid;
}

.setup-guide-list div {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.setup-guide-list strong {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: inline-flex;
}

.setup-guide-list span {
  color: var(--text);
  font-weight: 700;
}

.service-account-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  gap: .35rem;
  padding: .8rem;
  display: grid;
}

.service-account-box span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.service-account-box code, .setup-guide-list code {
  overflow-wrap: anywhere;
}

.import-progress-card {
  gap: .75rem;
  margin-top: 1rem;
  display: grid;
}

.import-progress-card > div:first-child {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}

.import-progress-card span, .import-progress-card p {
  color: var(--muted);
  margin: 0;
  font-weight: 700;
}

.import-progress-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.import-progress-bar span {
  background: var(--primary);
  height: 100%;
  display: block;
}

.wa-template-builder-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.wa-template-builder {
  gap: 1rem;
  min-width: 0;
  display: grid;
}

.template-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
  display: flex;
}

.wa-template-layout {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.template-section {
  gap: 1rem;
  display: grid;
}

.template-section-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: .85rem;
  display: flex;
}

.template-section-head > span {
  color: var(--primary);
  background: #e0f2fe;
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .78rem;
  font-weight: 900;
  display: flex;
}

.template-section-head > div {
  flex: 1;
  min-width: 0;
}

.template-section-head p {
  color: var(--muted);
  margin: .3rem 0 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
}

.wa-template-form {
  gap: .95rem;
  display: grid;
}

.wa-template-form label, .template-section label {
  color: var(--muted);
  gap: .45rem;
  font-size: .82rem;
  font-weight: 800;
  display: grid;
}

.template-help {
  color: #8a9aac;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}

.wa-template-form textarea, .template-section textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.template-form-head {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}

.template-form-head p {
  color: var(--muted);
  margin: .35rem 0 0;
  font-size: .86rem;
  font-weight: 600;
}

.template-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  display: grid;
}

.variable-chip-row {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.variable-chip-row span {
  border: 1px solid var(--line);
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .76rem;
  font-weight: 800;
}

.template-button-list {
  gap: .75rem;
  display: grid;
}

.template-button-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  gap: .75rem;
  padding: .9rem;
  display: grid;
}

.auth-template-panel {
  gap: .95rem;
  display: grid;
}

.toggle-line {
  flex-direction: row;
  align-items: center;
  gap: .6rem !important;
  display: flex !important;
}

.toggle-line input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.template-submit-bar {
  z-index: 4;
  background: #f6f8fbe0;
  justify-content: flex-end;
  padding: .75rem 0;
  display: flex;
  position: sticky;
  bottom: 0;
}

.template-preview-card {
  position: sticky;
  top: 2rem;
}

.template-preview-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
}

.template-preview-head span {
  color: #3730a3;
  background: #eef2ff;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .72rem;
  font-weight: 900;
}

.wa-phone-preview {
  background: #111b21;
  border-radius: 26px;
  max-width: 320px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 18px 44px #0f172a2e;
}

.wa-phone-top {
  color: #fff;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .7rem .75rem;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
}

.wa-preview-chat {
  background-color: #eae6df;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='30' height='30' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='6' cy='6' r='1' fill='%23d4cfc4' fill-opacity='0.35'/%3E%3Ccircle cx='20' cy='12' r='0.8' fill='%23d4cfc4' fill-opacity='0.25'/%3E%3Ccircle cx='14' cy='24' r='0.7' fill='%23d4cfc4' fill-opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23p)' width='120' height='120'/%3E%3C/svg%3E");
  border-radius: 20px;
  min-height: 420px;
  padding: 1rem .75rem;
}

.wa-preview-bubble {
  color: #111b21;
  background: #fff;
  border-radius: 0 8px 8px;
  max-width: 92%;
  padding: .55rem .62rem .35rem;
  font-size: .86rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px .5px #0b141a14;
}

.wa-preview-bubble:before {
  content: "";
  border-top: 0 solid #0000;
  border-bottom: 8px solid #0000;
  border-left: 0 solid #0000;
  border-right: 8px solid #fff;
  position: absolute;
  top: 0;
  left: -8px;
}

.wa-preview-header {
  margin-bottom: .35rem;
  font-weight: 900;
}

.wa-preview-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wa-preview-footer {
  color: #667781;
  margin-top: .55rem;
  font-size: .78rem;
}

.wa-preview-time {
  color: #667781;
  float: right;
  margin-top: .35rem;
  margin-left: .75rem;
  font-size: .66rem;
}

.wa-preview-buttons {
  gap: 1px;
  max-width: 92%;
  margin-top: .45rem;
  display: grid;
}

.wa-preview-button {
  color: #0086d1;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: .62rem;
  font-size: .84rem;
  font-weight: 800;
}

.wa-template-list {
  min-width: 0;
  margin-top: 1rem;
}

.wa-template-list.standalone {
  margin-top: 0;
}

.template-skeletons, .template-list {
  gap: .75rem;
  display: grid;
}

.template-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 1rem;
  font-weight: 700;
  display: flex;
}

.template-empty.small {
  min-height: 84px;
}

.template-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  display: flex;
}

.template-main {
  min-width: 0;
}

.template-title-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.template-title-row strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.template-status {
  color: #475569;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #e2e8f0;
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .68rem;
  font-weight: 900;
}

.status-approved {
  color: #047857;
  background: #dcfce7;
}

.status-pending {
  color: #a16207;
  background: #fef3c7;
}

.status-rejected, .status-paused, .status-disabled {
  color: #b91c1c;
  background: #fee2e2;
}

.template-meta {
  color: var(--muted);
  text-transform: uppercase;
  margin-top: .3rem;
  font-size: .76rem;
  font-weight: 800;
}

.template-item p {
  color: #334155;
  overflow-wrap: anywhere;
  margin: .65rem 0 0;
  font-size: .88rem;
  line-height: 1.45;
}

.template-reject {
  border-left: 3px solid var(--danger);
  color: #be123c;
  background: #fff1f2;
  border-radius: 6px;
  margin-top: .7rem;
  padding: .55rem .7rem;
  font-size: .78rem;
  font-weight: 700;
}

.template-actions {
  flex: none;
  gap: .5rem;
  display: flex;
}

button.danger {
  color: #b91c1c;
}

button.danger:hover {
  color: #991b1b;
  background: #fee2e2;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
  transform: none;
}

@media (max-width: 1100px) {
  .google-select-grid, .google-review-summary, .wa-template-builder-grid, .wa-template-layout {
    grid-template-columns: 1fr;
  }

  .template-preview-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .google-reviews-head, .google-reviews-head > div, .google-review-top, .google-review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .template-form-head, .template-header-actions, .template-item, .template-actions {
    flex-direction: column;
  }

  .template-form-grid {
    grid-template-columns: 1fr;
  }

  .template-actions, .template-actions button, .template-header-actions, .template-header-actions a, .template-header-actions button {
    width: 100%;
  }
}

/* [next]/internal/font/google/inter_b006827b.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5476f68d60460930-s.2uwcyprjm3xu3.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_b006827b-module__8phXqa__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__12m0s_7._.css.map*/