/* Website Messenger SaaS frontend */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Auth: single page scroll when needed */
html.wm-auth-root:not(.wm-auth-root-home) {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

html.wm-auth-root-home {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body.wm-auth-page {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.wm-auth-home {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  background: #fff;
}

/* App shell: lock document scroll — only inner panels scroll */
html.wm-app-root {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow: hidden;
}

body.wm-app-page {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
}

html.wm-app-root {
  margin-top: 0 !important;
}

body.wm-app-page #wpadminbar,
body.wm-auth-page #wpadminbar {
  display: none !important;
}

.wm-hidden { display: none !important; }

/* ---- Auth pages (login & register) ---- */
body.wm-auth-page {
  background: #fff;
}

.wm-auth-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.wm-auth-hero {
  position: relative;
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
  color: #fff;
  min-width: 0;
}

.wm-auth-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wm-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.wm-auth-orb-1 {
  width: 280px;
  height: 280px;
  background: #60a5fa;
  top: -80px;
  left: -60px;
  animation: wmOrbFloat 8s ease-in-out infinite;
}

.wm-auth-orb-2 {
  width: 220px;
  height: 220px;
  background: #818cf8;
  bottom: 10%;
  right: 5%;
  animation: wmOrbFloat 10s ease-in-out infinite reverse;
}

.wm-auth-orb-3 {
  width: 160px;
  height: 160px;
  background: #38bdf8;
  top: 40%;
  left: 55%;
  animation: wmOrbFloat 12s ease-in-out infinite 1s;
}

@keyframes wmOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.wm-auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
}

.wm-auth-hero-brand,
.wm-auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.wm-auth-mobile-brand {
  display: none;
  margin-bottom: 28px;
  color: #0f172a;
}

.wm-auth-hero-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.wm-auth-hero-logo .wm-logo-mark {
  border-radius: 10px;
}

.wm-auth-mobile-brand .wm-auth-hero-logo {
  background: transparent;
  border: none;
}

.wm-auth-hero-title {
  margin: 28px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.wm-auth-hero-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.wm-auth-hero-illustration {
  margin-bottom: 28px;
}

.wm-auth-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

.wm-svg-browser { animation: wmSlideUp 0.8s ease-out both; }
.wm-svg-widget { animation: wmSlideUp 0.8s ease-out 0.15s both; }
.wm-svg-inbox { animation: wmSlideUp 0.8s ease-out 0.3s both; }
.wm-svg-fab { animation: wmFabBounce 3s ease-in-out infinite; }

@keyframes wmSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wmFabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.wm-auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.wm-auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.wm-auth-feature-icon svg {
  width: 18px;
  height: 18px;
}

.wm-auth-panel {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
  min-width: 0;
}

.wm-auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.wm-auth-form-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.wm-auth-form-header p {
  margin: 0 0 28px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
}

.wm-auth-form .wm-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #0f172a;
}

.wm-auth-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.wm-auth-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wm-auth-submit {
  width: 100%;
  padding: 13px 16px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.wm-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  background: #1d4ed8;
}

.wm-auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wm-auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}

.wm-auth-switch {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.wm-auth-switch a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.wm-auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .wm-auth-shell {
    flex-direction: column;
  }

  .wm-auth-hero {
    flex: none;
    padding: 36px 24px 32px;
    min-height: auto;
  }

  .wm-auth-hero-title {
    margin-top: 20px;
    font-size: 24px;
  }

  .wm-auth-hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .wm-auth-hero-illustration {
    margin-bottom: 16px;
  }

  .wm-auth-svg {
    max-width: 320px;
    margin: 0 auto;
  }

  .wm-auth-features {
    display: none;
  }

  .wm-auth-panel {
    padding: 32px 24px 48px;
  }

  .wm-auth-mobile-brand {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .wm-auth-hero-brand {
    display: none;
  }

  .wm-auth-hero {
    padding: 28px 20px 24px;
  }

  .wm-auth-form-header h1 {
    font-size: 24px;
  }
}

/* ---- Home landing page ---- */
body.wm-auth-home .wm-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wm-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #0f172a;
}

.wm-home-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.wm-home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.wm-home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wm-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
  text-decoration: none;
}

.wm-home-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-home-brand-icon .wm-logo-mark {
  display: block;
}

.wm-home-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wm-home-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.wm-home-nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.wm-home-nav-btn {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
}

.wm-home-nav-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.wm-home-hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.wm-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wm-home-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

.wm-home-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.wm-home-lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: #64748b;
  max-width: 520px;
}

.wm-home-invite-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  max-width: 520px;
}

.wm-home-invite-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.wm-home-invite-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #78350f;
}

.wm-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.wm-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.wm-home-btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.wm-home-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.wm-home-btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.wm-home-btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
}

.wm-home-btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.wm-home-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.wm-home-trust li {
  font-size: 14px;
  color: #64748b;
  padding-left: 20px;
  position: relative;
}

.wm-home-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.wm-home-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-home-hero-visual .wm-auth-hero-illustration {
  margin: 0;
  width: 100%;
  max-width: 520px;
}

.wm-home-hero-visual .wm-auth-svg {
  width: 100%;
  max-width: 520px;
}

.wm-home-features {
  padding: 80px 0;
  background: #fff;
}

.wm-home-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.wm-home-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.wm-home-section-head p {
  margin: 0;
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
}

.wm-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wm-home-feature-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.wm-home-stats {
  padding: 48px 0;
  background: #0f172a;
  color: #fff;
}

.wm-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.wm-home-stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #fff;
}

.wm-home-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.wm-home-benefits {
  padding: 80px 0;
  background: #f8fafc;
}

.wm-home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.wm-home-benefit {
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.wm-home-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

.wm-home-benefit-icon svg {
  width: 22px;
  height: 22px;
}

.wm-home-benefit h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.wm-home-benefit p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

.wm-home-usecases {
  padding: 80px 0;
  background: #fff;
}

.wm-home-usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wm-home-usecase {
  padding: 24px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
}

.wm-home-usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.wm-home-usecase-icon svg {
  width: 20px;
  height: 20px;
}

.wm-home-usecase h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.wm-home-usecase p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.wm-home-showcase {
  padding: 80px 0;
  background: #fff;
}

.wm-home-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wm-home-showcase-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.wm-home-showcase-copy > p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: #64748b;
}

.wm-home-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-home-checklist li {
  font-size: 15px;
  color: #334155;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.wm-home-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-home-showcase-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-home-showcase-illustration,
.wm-showcase-svg {
  width: 100%;
  max-width: 520px;
  display: block;
}

.wm-showcase-svg {
  height: auto;
}

.wm-home-faq {
  padding: 80px 0;
  background: #f8fafc;
}

.wm-home-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-home-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 20px;
}

.wm-home-faq-item summary {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.wm-home-faq-item summary::-webkit-details-marker {
  display: none;
}

.wm-home-faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: 400;
  color: #94a3b8;
}

.wm-home-faq-item[open] summary::after {
  content: "−";
}

.wm-home-faq-item p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

.wm-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.wm-home-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.wm-home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.wm-home-nav-anchor {
  display: none;
}

@media (min-width: 768px) {
  .wm-home-nav-anchor {
    display: inline-block;
  }
}

.wm-home-feature-card {
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.wm-home-feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.wm-home-feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

.wm-home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  line-height: 1;
}

.wm-home-feature-icon svg {
  width: 24px;
  height: 24px;
}

/* Animated card icons */
.wm-card-icon {
  display: block;
}

.wm-home-feature-icon:hover .wm-card-icon,
.wm-home-benefit-icon:hover .wm-card-icon,
.wm-home-usecase-icon:hover .wm-card-icon,
.wm-home-stat-icon:hover .wm-card-icon {
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.25));
}

.wm-icon-chat .wm-i-dot-1 { animation: wm-dot-bounce 1.4s ease-in-out infinite; }
.wm-icon-chat .wm-i-dot-2 { animation: wm-dot-bounce 1.4s ease-in-out 0.2s infinite; }
.wm-icon-chat .wm-i-dot-3 { animation: wm-dot-bounce 1.4s ease-in-out 0.4s infinite; }

.wm-icon-inbox .wm-i-flap { animation: wm-flap-tilt 2.5s ease-in-out infinite; transform-origin: 12px 12px; }
.wm-icon-inbox .wm-i-slot { animation: wm-slot-glow 2s ease-in-out infinite; }

.wm-icon-bolt .wm-i-bolt { animation: wm-bolt-flash 1.8s ease-in-out infinite; transform-origin: 12px 12px; }

.wm-icon-code .wm-i-bracket-l { animation: wm-bracket-nudge-l 2s ease-in-out infinite; }
.wm-icon-code .wm-i-bracket-r { animation: wm-bracket-nudge-r 2s ease-in-out infinite; }
.wm-icon-code .wm-i-cursor { animation: wm-cursor-blink 1s step-end infinite; }

.wm-icon-palette .wm-i-swatch-1 { animation: wm-swatch-pop 2.4s ease-in-out infinite; }
.wm-icon-palette .wm-i-swatch-2 { animation: wm-swatch-pop 2.4s ease-in-out 0.3s infinite; }
.wm-icon-palette .wm-i-swatch-3 { animation: wm-swatch-pop 2.4s ease-in-out 0.6s infinite; }
.wm-icon-palette .wm-i-swatch-4 { animation: wm-swatch-pop 2.4s ease-in-out 0.9s infinite; }

.wm-icon-shield .wm-i-check { animation: wm-check-draw 2.5s ease-in-out infinite; stroke-dasharray: 20; stroke-dashoffset: 0; }

.wm-icon-leads .wm-i-person-1 { animation: wm-person-bob 2.2s ease-in-out infinite; }
.wm-icon-leads .wm-i-person-2 { animation: wm-person-bob 2.2s ease-in-out 0.35s infinite; }

.wm-icon-support .wm-i-signal-1 { animation: wm-signal-pulse 2s ease-in-out infinite; opacity: 0.4; }
.wm-icon-support .wm-i-signal-2 { animation: wm-signal-pulse 2s ease-in-out 0.3s infinite; opacity: 0.7; }
.wm-icon-support .wm-i-signal-3 { animation: wm-signal-pulse 2s ease-in-out 0.6s infinite; opacity: 1; }

.wm-icon-rocket .wm-i-rocket-body { animation: wm-rocket-float 2.5s ease-in-out infinite; }
.wm-icon-rocket .wm-i-exhaust { animation: wm-exhaust-flicker 0.6s ease-in-out infinite; opacity: 0.7; }

.wm-icon-globe .wm-i-globe-spin { animation: wm-globe-turn 8s linear infinite; transform-origin: 12px 12px; }

.wm-icon-store .wm-i-awning { animation: wm-awning-wave 2.5s ease-in-out infinite; transform-origin: 12px 9px; }

.wm-icon-building .wm-i-window { animation: wm-window-blink 3s ease-in-out infinite; }

.wm-icon-clock .wm-i-clock-hand { animation: wm-clock-spin 4s linear infinite; transform-origin: 12px 12px; }

.wm-icon-embed .wm-i-cursor { animation: wm-cursor-blink 1s step-end infinite; }

.wm-icon-always .wm-i-star { animation: wm-star-twinkle 2s ease-in-out infinite; }
.wm-icon-always .wm-i-moon { animation: wm-moon-glow 3s ease-in-out infinite; }

.wm-icon-invite .wm-i-mail-flap { animation: wm-flap-tilt 2.5s ease-in-out infinite; transform-origin: 12px 7px; }
.wm-icon-invite .wm-i-badge { animation: wm-badge-pulse 2s ease-in-out infinite; }

@keyframes wm-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-2px); opacity: 1; }
}

@keyframes wm-flap-tilt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

@keyframes wm-slot-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes wm-bolt-flash {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes wm-bracket-nudge-l {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1.5px); }
}

@keyframes wm-bracket-nudge-r {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.5px); }
}

@keyframes wm-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes wm-swatch-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes wm-check-draw {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 8; opacity: 0.7; }
}

@keyframes wm-person-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@keyframes wm-signal-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes wm-rocket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes wm-exhaust-flicker {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes wm-globe-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wm-awning-wave {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-3deg); }
}

@keyframes wm-window-blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.3; }
}

@keyframes wm-clock-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wm-star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes wm-moon-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

@keyframes wm-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.wm-home-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.wm-home-stat-icon svg {
  width: 24px;
  height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .wm-card-icon *,
  .wm-card-icon {
    animation: none !important;
  }
}

.wm-home-steps {
  padding: 80px 0;
  background: #f8fafc;
}

.wm-home-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: wm-step;
}

.wm-home-steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wm-home-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-home-steps-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.wm-home-steps-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.wm-home-cta {
  padding: 80px 0;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
  color: #fff;
}

.wm-home-cta-inner {
  text-align: center;
}

.wm-home-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.wm-home-cta p {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.wm-home-footer {
  padding: 48px 0 32px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.wm-home-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.wm-home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
}

.wm-home-footer-copy {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.wm-home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.wm-home-footer-links a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
}

.wm-home-footer-links a:hover {
  color: #2563eb;
}

@media (max-width: 960px) {
  .wm-home-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wm-home-hero-visual {
    order: -1;
  }

  .wm-home-hero-visual .wm-auth-svg {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .wm-home-feature-grid,
  .wm-home-feature-grid-6,
  .wm-home-steps-list,
  .wm-home-benefits-grid,
  .wm-home-usecase-grid,
  .wm-home-stats-grid,
  .wm-home-showcase-inner {
    grid-template-columns: 1fr;
  }

  .wm-home-showcase-visual {
    order: -1;
  }

  .wm-home-hero {
    padding: 48px 0 64px;
  }

  .wm-home-features,
  .wm-home-steps,
  .wm-home-cta,
  .wm-home-benefits,
  .wm-home-usecases,
  .wm-home-showcase,
  .wm-home-faq,
  .wm-home-stats {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .wm-home-container {
    padding: 0 16px;
  }

  .wm-home-header-inner {
    min-height: 56px;
  }

  .wm-home-nav-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .wm-home-hero-actions {
    flex-direction: column;
  }

  .wm-home-hero-actions .wm-home-btn {
    width: 100%;
  }

  .wm-home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wm-home-footer-inner {
    align-items: center;
  }
}

/* Reset theme typography bleed on home */
body.wm-auth-home h1,
body.wm-auth-home h2,
body.wm-auth-home h3,
body.wm-auth-home p,
body.wm-auth-home ul,
body.wm-auth-home ol {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.wm-app-page h1,
body.wm-app-page h2,
body.wm-app-page h3,
body.wm-app-page p {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: inherit;
}

/* Legacy home styles removed — use wm-home-* classes above */

.wm-app {
  flex: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  position: relative;
  z-index: 99999;
}

.wm-sidebar {
  width: 224px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;
}

.wm-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.wm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wm-logo-icon .wm-logo-mark {
  display: block;
}

.wm-logo-text {
  font-weight: 600;
  color: #0f172a;
}

.wm-nav {
  flex: 1;
  padding: 8px;
}

.wm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}

.wm-nav-item:hover {
  background: #f1f5f9;
  color: #475569;
}

.wm-nav-item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.wm-sidebar-footer {
  padding: 8px;
  border-top: 1px solid #e2e8f0;
}

.wm-user-email {
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wm-inbox-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wm-conv-list {
  width: 320px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex-shrink: 0;
}

.wm-conv-list-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.wm-conv-list-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wm-conv-list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wm-conv-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.wm-conv-item:hover,
.wm-conv-item.is-active {
  background: #f8fafc;
}

.wm-conv-item.is-active {
  background: #eff6ff;
}

.wm-conv-name {
  font-weight: 500;
  font-size: 14px;
  color: #0f172a;
}

.wm-conv-preview {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-conv-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.wm-unread-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
}

.wm-chat-panel {
  flex: 1;
  min-height: 0;
  min-width: 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wm-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
}

.wm-chat-header {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.wm-chat-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.wm-chat-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.wm-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
}

.wm-chat-input {
  flex-shrink: 0;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.wm-chat-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.wm-chat-input button {
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.wm-chat-input button:hover { background: #1d4ed8; }

.wm-chat-attach-btn {
  padding: 10px 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.wm-chat-attach-btn:hover { background: #e2e8f0; }

.wm-msg-image {
  display: block;
  max-width: 280px;
  max-height: 220px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.wm-msg-file {
  display: inline-block;
  color: #2563eb;
  text-decoration: underline;
  font-size: 13px;
  word-break: break-word;
}

.wm-bubble-admin.visitor .wm-msg-file { color: #fff; }

.wm-bubble-admin .wm-bubble-text a {
  color: inherit;
  text-decoration: underline;
}

.wm-bubble-admin.agent .wm-bubble-text a { color: #2563eb; }

.wm-bubble-admin {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.wm-bubble-admin.visitor {
  background: linear-gradient(to bottom right, #3b82f6, #1d4ed8);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.wm-bubble-admin.agent {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-bottom-left-radius: 6px;
}

.wm-bubble-row {
  display: flex;
  flex-direction: column;
}

.wm-bubble-row.visitor { align-items: flex-end; }
.wm-bubble-row.agent { align-items: flex-start; }

.wm-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.wm-bubble-time {
  font-size: 11px;
  line-height: 1;
  color: rgba(255,255,255,0.75);
}

.wm-bubble-admin.agent .wm-bubble-time {
  color: #94a3b8;
}

.wm-wa-ticks {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.65);
}

.wm-wa-ticks--delivered .wm-wa-check + .wm-wa-check {
  margin-left: -5px;
}

.wm-wa-ticks--read {
  color: #53bdeb;
}

.wm-bubble-admin.agent .wm-wa-ticks {
  color: #94a3b8;
}

.wm-bubble-admin.agent .wm-wa-ticks.wm-wa-ticks--read {
  color: #53bdeb;
}

.wm-loading, .wm-no-conv {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* Settings — scroll only inside main panel */
.wm-settings-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wm-settings-wrap {
  padding: 24px;
  max-width: 672px;
}

.wm-settings-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
}

.wm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.wm-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}

.wm-help {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 12px;
}

.wm-field {
  margin-bottom: 20px;
}

.wm-perk-setting-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wm-field .wm-input.wm-input-icon {
  width: 90px;
  flex: 0 0 90px;
  text-align: center;
  font-size: 18px;
}

.wm-perk-setting-row .wm-input:not(.wm-input-icon) {
  flex: 1;
  min-width: 0;
}

.wm-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.wm-input, .wm-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(241,245,249,0.5);
}

.wm-input-sm { width: 128px; }

.wm-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-code {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.wm-copy-btn {
  align-self: flex-end;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
}

.wm-copy-btn:hover {
  background: #f8fafc;
}

.wm-colors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wm-color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.wm-color-btn:hover { transform: scale(1.05); }
.wm-color-btn.is-active {
  transform: scale(1.1);
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.wm-color-blue { background: #2563eb; }
.wm-color-green { background: #059669; }
.wm-color-purple { background: #9333ea; }
.wm-color-rose { background: #e11d48; }
.wm-color-orange { background: #ea580c; }
.wm-color-teal { background: #0d9488; }

.wm-toggle-group {
  display: flex;
  gap: 12px;
}

.wm-toggle-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.wm-toggle-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.wm-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wm-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.wm-switch input { opacity: 0; width: 0; height: 0; }

.wm-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e2e8f0;
  border-radius: 999px;
  transition: 0.2s;
}

.wm-switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.wm-switch input:checked + .wm-switch-slider {
  background: #2563eb;
}

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

.wm-btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.wm-btn-primary:hover { background: #1d4ed8; }

.wm-btn-outline {
  background: rgba(241,245,249,0.5);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}

.wm-btn-outline:hover { background: #f1f5f9; }

/* Settings panel buttons only — avoid overriding auth/home buttons */
.wm-settings-wrap .wm-btn-primary,
.wm-card .wm-btn-primary {
  background: #2563eb;
  color: #fff;
}

.wm-settings-wrap .wm-btn-outline,
.wm-card .wm-btn-outline {
  background: rgba(241,245,249,0.5);
}

.wm-leads-main {
  overflow-y: auto;
}

.wm-leads-wrap {
  padding: 24px 32px 40px;
  max-width: 1200px;
}

.wm-leads-header {
  margin-bottom: 24px;
}

.wm-leads-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
}

.wm-leads-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.wm-leads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.wm-leads-table-card {
  min-width: 0;
}

.wm-leads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.wm-leads-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.wm-leads-table-wrap {
  overflow-x: auto;
}

.wm-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wm-leads-table th,
.wm-leads-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.wm-leads-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.wm-leads-table td a {
  color: #2563eb;
}

.wm-leads-col-check {
  width: 40px;
}

.wm-leads-compose .wm-field-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.wm-leads-compose .wm-field-label:first-of-type {
  margin-top: 0;
}

.wm-leads-compose .wm-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
}

.wm-leads-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wm-leads-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: #16a34a;
}

.wm-leads-status.is-error {
  color: #dc2626;
}

@media (max-width: 960px) {
  .wm-leads-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .wm-inbox-layout { flex-direction: column; }
  .wm-conv-list {
    width: 100%;
    max-height: 40vh;
    flex-shrink: 0;
  }
  .wm-sidebar { width: 100%; flex-shrink: 0; }
  .wm-app { flex-direction: column; }
}

/* ---- Welcome screen editor ---- */
.wm-welcome-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wm-welcome-wrap {
  padding: 24px 32px 48px;
  max-width: 1100px;
}

.wm-welcome-header { margin-bottom: 24px; }

.wm-welcome-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.wm-welcome-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.wm-welcome-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.wm-welcome-form {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.wm-welcome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wm-welcome-actions .wm-btn-primary {
  background: #2563eb;
  color: #fff;
}

.wm-welcome-status {
  margin: 0;
  font-size: 13px;
  color: #16a34a;
}

.wm-welcome-status.is-error { color: #dc2626; }

.wm-welcome-preview-col {
  width: 340px;
  flex-shrink: 0;
}

.wm-welcome-preview-sticky {
  position: sticky;
  top: 24px;
}

.wm-welcome-preview-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.wm-wsp {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.wm-wsp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.wm-wsp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.wm-wsp-header-text { min-width: 0; }

.wm-wsp-header-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.wm-wsp-header-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  overflow-wrap: break-word;
}

.wm-wsp-body {
  padding: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  text-align: center;
}

.wm-wsp-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

.wm-wsp-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
  overflow-wrap: break-word;
}

.wm-wsp-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.wm-wsp-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.wm-wsp-perk {
  padding: 10px 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

.wm-wsp-perk span {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.wm-wsp-perk em {
  font-style: normal;
  overflow-wrap: break-word;
}

.wm-wsp-field {
  text-align: left;
  margin-bottom: 12px;
}

.wm-wsp-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wm-wsp-field span {
  display: block;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  color: #94a3b8;
  background: #fff;
}

.wm-wsp-btn {
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  .wm-welcome-layout { flex-direction: column; }
  .wm-welcome-preview-col { width: 100%; max-width: 380px; }
  .wm-welcome-preview-sticky { position: static; }
}
