
  .svelte-t81d78 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
         text-size-adjust: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
         user-select: none;
  }

  .sr-only.svelte-t81d78 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .chat-bubble-btn.svelte-t81d78 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1055;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
         user-select: none;
    -webkit-tap-highlight-color: transparent;
    animation: svelte-t81d78-subtleGlow 4s ease-in-out infinite;
  }

  @keyframes svelte-t81d78-subtleGlow {
    0%, 100% {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
      box-shadow: 0 8px 40px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    }
  }

  .chat-bubble-btn.svelte-t81d78:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
  }

  .chat-bubble-btn.svelte-t81d78:active {
    transform: translateY(0);
  }

  .chat-bubble-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #6d5cf6;
    outline-offset: 2px;
  }

  .chat-bubble-btn.svelte-t81d78 svg:where(.svelte-t81d78) {
    width: 24px;
    height: 24px;
  }

  .phone-container.svelte-t81d78 {
    width: 100%;
    max-width: 480px;
    height: 90vh;
    max-height: 900px;
    background: white;
    display: none;
    flex-direction: column;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    touch-action: auto;
  }

  .phone-container.reduce-motion.svelte-t81d78 {
    animation: none;
    transition: none;
  }

  @media (max-width: 600px) {
    .phone-container.svelte-t81d78 {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100dvh;
      max-height: 100dvh;
      max-width: 100%;
      border-radius: 0;
      box-shadow: none;
      margin: 0;
      padding: 0;
    }

    .action-btn.svelte-t81d78 {
      font-size: 13px;
      padding: 10px 14px;
    }

    .message-bubble.svelte-t81d78 {
      max-width: 90%;
      font-size: 14px;
      padding: 10px 14px;
    }

    .messages-container.svelte-t81d78 {
      padding: 10px;
    }

    .chat-scroll.svelte-t81d78 {
      padding: 0;
    }
  }

  .phone-container.active.svelte-t81d78 {
    display: flex;
    animation: svelte-t81d78-slideIn 0.3s ease-out;
  }

  @keyframes svelte-t81d78-slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes svelte-t81d78-slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header.svelte-t81d78 {
    background: white;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    flex-shrink: 0;
  }

  .header-left.svelte-t81d78 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }

  .header-actions.svelte-t81d78 {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-title.svelte-t81d78 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    text-align: left;
  }

  .lead-score-badge.svelte-t81d78 {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
  }

  .lead-score-badge.warm.svelte-t81d78 {
    background: #fbbf24;
    color: #92400e;
  }

  .lead-score-badge.hot.svelte-t81d78 {
    background: #ef4444;
    color: #fff;
    animation: svelte-t81d78-hotPulse 1.5s ease-in-out infinite;
  }

  @keyframes svelte-t81d78-hotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }

  .status-circle.svelte-t81d78 {
    position: relative;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: svelte-t81d78-subtlePulse 3s ease-in-out infinite;
    flex-shrink: 0;
    margin-right: 8px;
  }

  @keyframes svelte-t81d78-subtlePulse {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.7;
      transform: scale(1.15);
    }
  }

  .close-btn.svelte-t81d78 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .close-btn.svelte-t81d78:hover {
    color: #111827;
    background: rgba(15, 23, 42, 0.08);
  }

  .close-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 1px;
  }

  .transcript-btn.svelte-t81d78 {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: white;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
    white-space: nowrap;
  }

  .transcript-btn.svelte-t81d78:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.35);
  }

  .transcript-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 1px;
  }

  .chat-area.svelte-t81d78 {
    flex: 1;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-scroll.svelte-t81d78 {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    background: #ffffff;
    min-height: 0;
  }

  .back-nav.svelte-t81d78 {
    background: #ffffff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
  }

  .back-btn.svelte-t81d78 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 300;
    transition: color 0.2s ease;
  }

  .back-btn.svelte-t81d78:hover {
    color: #1a1a1a;
  }

  .assistant-avatar.svelte-t81d78 {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
  }

  .assistant-avatar.svelte-t81d78::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 0 0 0 6px;
    transform: skewY(-10deg);
  }

  .avatar-dot.svelte-t81d78 {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: relative;
    z-index: 1;
  }

  .assistant-name.svelte-t81d78 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .privacy-notice.svelte-t81d78 {
    padding: 8px 12px;
    background: #ffffff;
    font-size: 10px;
    line-height: 1.4;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
  }

  .privacy-notice.svelte-t81d78 a:where(.svelte-t81d78) {
    color: #6d5cf6;
    text-decoration: none;
    font-weight: 500;
  }

  .date-divider.svelte-t81d78 {
    text-align: center;
    padding: 6px 0;
    background: #ffffff;
    flex-shrink: 0;
  }

  .date-text.svelte-t81d78 {
    font-size: 11px;
    color: #ccc;
    font-weight: 500;
  }

  .messages-container.svelte-t81d78 {
    padding: 12px;
    background: #ffffff;
    flex: 0 0 auto;
  }

  .error-banner.svelte-t81d78 {
    background: rgba(255, 243, 224, 0.9);
    border: 1px solid #fbbf24;
    color: #92400e;
    border-radius: 8px;
    margin: 8px 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .error-actions.svelte-t81d78 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .error-text.svelte-t81d78 {
    font-size: 12px;
    font-weight: 600;
  }

  .error-btn.svelte-t81d78 {
    border: none;
    background: rgba(146, 64, 14, 0.08);
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
  }

  .error-btn.primary.svelte-t81d78 {
    background: #92400e;
    color: white;
  }

  .error-btn.svelte-t81d78:hover {
    opacity: 0.85;
  }
  .lead-capture.svelte-t81d78 {
    padding: 12px 16px;
    background: #fff8f0;
    border-top: 1px solid #fde7c7;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .lead-header.svelte-t81d78 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .lead-title.svelte-t81d78 {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
  }

  .lead-subtitle.svelte-t81d78 {
    font-size: 11px;
    color: #b45309;
  }

  .lead-capture.svelte-t81d78 input:where(.svelte-t81d78),
  .lead-capture.svelte-t81d78 textarea:where(.svelte-t81d78) {
    width: 100%;
    border: 1px solid rgba(146, 64, 14, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .csat-actions.svelte-t81d78 {
    display: flex;
    gap: 6px;
    margin-top: 6px;
  }

  .csat-actions.svelte-t81d78 button:where(.svelte-t81d78) {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    background: white;
    cursor: pointer;
  }

  .csat-note.svelte-t81d78 {
    font-size: 11px;
    margin-top: 4px;
  }

  .csat-note.good.svelte-t81d78 {
    color: #047857;
  }

  .csat-note.bad.svelte-t81d78 {
    color: #b91c1c;
  }

  .lead-capture.svelte-t81d78 label:where(.svelte-t81d78) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #374151;
  }

  .lead-capture.svelte-t81d78 label:where(.svelte-t81d78) span:where(.svelte-t81d78) {
    font-weight: 600;
    color: #111827;
  }

  .knowledge-actions.svelte-t81d78 {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }

  .knowledge-error.svelte-t81d78 {
    color: #b91c1c;
    font-size: 12px;
  }

  .knowledge-success.svelte-t81d78 {
    color: #047857;
    font-size: 12px;
  }

  .knowledge-actions.svelte-t81d78 .primary:where(.svelte-t81d78) {
    background: #4338ca;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
  }

  .lead-header.svelte-t81d78 .ghost:where(.svelte-t81d78) {
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
  }

  .ghost.small.svelte-t81d78 {
    font-size: 12px;
  }

  .message.svelte-t81d78 {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
  }

  .message-bubble.svelte-t81d78 {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #1a1a1a;
    max-width: 85%;
    word-wrap: break-word;
    animation: svelte-t81d78-slideInMessage 0.3s ease-out;
  }

  .message-bubble.user-message.svelte-t81d78 {
    background: #0f172a;
    color: white;
    margin-left: auto;
  }

  .message-content.user.svelte-t81d78 {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .assistant-bubble.svelte-t81d78 {
    position: relative;
    padding-right: 48px;
  }

  .copy-btn.svelte-t81d78 {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #4f46e5;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .copy-btn.svelte-t81d78:hover {
    background: rgba(79, 70, 229, 0.15);
  }

  .copy-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 1px;
  }

  .message-summary.svelte-t81d78 {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
  }

  .message-meta.svelte-t81d78 {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .response-time.svelte-t81d78 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }

  .message-meta.user-meta.svelte-t81d78 {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
  }

  @keyframes svelte-t81d78-slideInMessage {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .message-content.svelte-t81d78 {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .message-content-inner.svelte-t81d78 {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .quick-actions.svelte-t81d78 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }

  .action-btn.svelte-t81d78 {
    background: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
  }

  .action-btn.svelte-t81d78:hover {
    background: #f8fafc;
    border-color: #10b981;
    color: #10b981;
  }

  .action-btn.svelte-t81d78:active {
    transform: scale(0.98);
    background: #f0fdf4;
  }

  .action-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 1px;
  }

  .typing-indicator.svelte-t81d78 {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }

  .typing-dot.svelte-t81d78 {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: svelte-t81d78-typing 1.4s infinite;
  }

  .typing-dot.svelte-t81d78:nth-child(2) {
    animation-delay: 0.2s;
  }

  .email-capture-form.svelte-t81d78 {
    background: linear-gradient(135deg, #ecfeff 0%, #eef2ff 45%, #f0fdf4 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 18px;
    max-width: 320px;
    box-shadow: 0 14px 40px rgba(79, 70, 229, 0.12);
  }

  .email-capture-title.svelte-t81d78 {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin: 0 0 4px 0;
  }

  .email-capture-subtitle.svelte-t81d78 {
    font-size: 12px;
    color: #334155;
    margin: 0 0 12px 0;
    line-height: 1.5;
  }

  .email-capture-input-group.svelte-t81d78 {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
  }

  .email-capture-input.svelte-t81d78 {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #a5b4fc;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
  }

  .email-capture-input.svelte-t81d78:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  }

  .email-capture-submit.svelte-t81d78 {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
  }

  .email-capture-submit.svelte-t81d78:hover {
    background: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
    box-shadow: 0 12px 34px rgba(22, 163, 74, 0.18);
    transform: translateY(-1px);
  }

  .email-capture-skip.svelte-t81d78 {
    background: none;
    border: none;
    color: #475569;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
  }

  .email-capture-skip.svelte-t81d78:hover {
    color: #0f172a;
    text-decoration: underline;
  }

  .escalation-toast.svelte-t81d78 {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.16));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(6px);
    font-size: 13px;
    font-weight: 700;
    z-index: 2000;
    animation: svelte-t81d78-slideUp 0.25s ease-out;
  }

  .escalation-toast.sending.svelte-t81d78 {
    border: 1px solid rgba(99, 102, 241, 0.4);
  }

  .escalation-toast.sent.svelte-t81d78 {
    border: 1px solid rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
  }

  .escalation-toast.error.svelte-t81d78 {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(251, 113, 133, 0.1));
  }

  .escalation-toast-dot.svelte-t81d78 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12);
  }

  .escalation-toast.sent.svelte-t81d78 .escalation-toast-dot:where(.svelte-t81d78) {
    background: #10b981;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
  }

  .escalation-toast.error.svelte-t81d78 .escalation-toast-dot:where(.svelte-t81d78) {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
  }

  .note-capture-card.svelte-t81d78 {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 35%, #ecfeff 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .note-capture-header.svelte-t81d78 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .note-title.svelte-t81d78 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
  }

  .note-subtitle.svelte-t81d78 {
    font-size: 12px;
    color: #475569;
    margin: 2px 0 0 0;
  }

  .note-skip.svelte-t81d78 {
    background: none;
    border: none;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
  }

  .note-skip.svelte-t81d78:hover {
    color: #0f172a;
  }

  .note-textarea.svelte-t81d78 {
    width: 100%;
    min-height: 70px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 10px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    resize: vertical;
  }

  .note-textarea.svelte-t81d78:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  }

  .note-actions.svelte-t81d78 {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .note-save.svelte-t81d78 {
    background: linear-gradient(135deg, #4f46e5 0%, #22c55e 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
  }

  .note-save.svelte-t81d78:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(34, 197, 94, 0.25);
  }

  .note-hint.svelte-t81d78 {
    font-size: 11px;
    color: #475569;
  }
  .typing-dot.svelte-t81d78:nth-child(3) {
    animation-delay: 0.4s;
  }

  .typing-text.svelte-t81d78 {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
  }

  @keyframes svelte-t81d78-typing {
    0%,
    60%,
    100% {
      opacity: 0.3;
    }
    30% {
      opacity: 1;
    }
  }

  .input-area.svelte-t81d78 {
    background: #ffffff;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
  }

  .input-hint.svelte-t81d78 {
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 6px;
  }

  .input-container.svelte-t81d78 {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 6px;
  }

  .powered-by.svelte-t81d78 {
    text-align: center;
    padding: 6px 0;
    font-size: 10px;
    color: #bbb;
  }

  .powered-by.svelte-t81d78 a:where(.svelte-t81d78) {
    color: #6d5cf6;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
  }

  .powered-by.svelte-t81d78 a:where(.svelte-t81d78):hover {
    opacity: 0.7;
  }

  .offer-banner-inline.svelte-t81d78 {
    background: linear-gradient(135deg, #8b7dd8 0%, #9370db 100%);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    color: white;
  }

  .offer-banner-inline.svelte-t81d78 .offer-code:where(.svelte-t81d78) {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .offer-btn.svelte-t81d78 {
    flex: 1;
    padding: 8px 10px;
    border-radius: 7px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .offer-btn-primary.svelte-t81d78 {
    background: white;
    color: #5f4bd1;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
  }

  .offer-btn-primary.svelte-t81d78:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
  }

  .offer-code.svelte-t81d78 {
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .menu-btn.svelte-t81d78 {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .menu-btn.svelte-t81d78:hover {
    background: #e8e8e8;
    color: #666;
  }

  .send-btn.svelte-t81d78 {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
    font-size: 14px;
    transition: all 0.2s ease;
  }

  .send-btn.svelte-t81d78:hover {
    background: #10b981;
    color: white;
  }

  .send-btn.svelte-t81d78:active {
    background: #059669;
    color: white;
  }

  .send-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 1px;
  }

  .menu-btn.svelte-t81d78:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 1px;
  }

  .input-field.svelte-t81d78 {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    min-height: 32px;
    max-height: 80px;
    transition: all 0.2s ease;
    color: #1a1a1a;
    line-height: 1.4;
    touch-action: auto;
    -webkit-user-select: text;
    -moz-user-select: text;
         user-select: text;
    -webkit-text-size-adjust: none;
  }

  .input-field.svelte-t81d78::-moz-placeholder {
    color: #bbb;
  }

  .input-field.svelte-t81d78::placeholder {
    color: #bbb;
  }

  .input-field.svelte-t81d78:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
  }

  @media (max-width: 600px) {
    .input-field.svelte-t81d78 {
      font-size: 16px;
      min-height: 40px;
    }

    .input-container.svelte-t81d78 {
      gap: 8px;
      margin-bottom: 8px;
    }

    .input-area.svelte-t81d78 {
      padding: 12px 12px;
    }
  }

  .shortcuts-modal.svelte-t81d78 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 480px;
    max-height: calc(90vh - 100px);
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1052;
    overflow-y: auto;
    touch-action: auto;
  }

  .shortcuts-modal.active.svelte-t81d78 {
    display: block;
    animation: svelte-t81d78-slideUp 0.3s ease-out;
  }

  @media (max-width: 600px) {
    .shortcuts-modal.svelte-t81d78 {
      position: fixed;
      bottom: 0;
      right: 0;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100dvh;
      max-height: 100dvh;
      border-radius: 0;
      padding: 16px;
      margin: 0;
      box-shadow: none;
    }
  }

  .shortcuts-header.svelte-t81d78 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .shortcuts-title.svelte-t81d78 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
  }

  .shortcuts-close.svelte-t81d78 {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
  }

  .shortcut-item.svelte-t81d78 {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .shortcut-item.svelte-t81d78:hover {
    background: #f5f5f5;
  }

  .shortcut-text.svelte-t81d78 {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
  }

  .overlay.svelte-t81d78 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 480px;
    height: 90vh;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1051;
    border-radius: 12px;
    cursor: pointer;
    max-height: 900px;
    touch-action: manipulation;
  }

  .overlay.active.svelte-t81d78 {
    display: block;
  }

  @media (max-width: 600px) {
    .overlay.svelte-t81d78 {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100vw;
      height: 100dvh;
      border-radius: 0;
      max-height: none;
      margin: 0;
      padding: 0;
    }
  }

  /* Edge case: Landscape mode on small screens */
  @media (orientation: landscape) and (max-height: 500px) {
    .phone-container.svelte-t81d78 {
      height: 100dvh;
      max-height: 100dvh;
    }

    .chat-area.svelte-t81d78 {
      max-height: calc(100dvh - 120px);
    }

    .header.svelte-t81d78 {
      padding: 8px 16px;
    }

    .input-area.svelte-t81d78 {
      padding: 8px 12px;
    }
  }

  /* Edge case: Very small phones (320px - 360px width) */
  @media (max-width: 360px) {
    .action-btn.svelte-t81d78 {
      font-size: 11px;
      padding: 8px 12px;
      min-height: 40px;
    }

    .message-bubble.svelte-t81d78 {
      font-size: 12px;
      padding: 8px 12px;
    }

    .menu-btn.svelte-t81d78,
    .send-btn.svelte-t81d78 {
      width: 40px;
      height: 40px;
      font-size: 14px;
    }

    .chat-bubble-btn.svelte-t81d78 {
      width: 56px;
      height: 56px;
    }


    .csat-actions.svelte-t81d78 button:where(.svelte-t81d78) {
      padding: 6px 10px;
      min-height: 36px;
    }
  }

  /* Edge case: iPad / Tablet (768px - 1024px) */
  @media (min-width: 600px) and (max-width: 1024px) {
    .phone-container.svelte-t81d78 {
      width: min(500px, 90vw);
      height: min(700px, 90vh);
      max-width: 90%;
      max-height: 90%;
    }

    .shortcuts-modal.svelte-t81d78 {
      width: min(500px, 90vw);
      max-height: 80vh;
    }

    .overlay.svelte-t81d78 {
      width: min(500px, 90vw);
      height: min(700px, 90vh);
    }
  }

  /* Edge case: iOS keyboard push-up prevention */
  @supports (padding: max(0px)) {
    @media (max-width: 600px) {
      .input-area.svelte-t81d78 {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
      }
    }
  }

  /* Edge case: Text scaling / Accessibility */
  @media (prefers-reduced-motion: no-preference) {
    .phone-container.active.svelte-t81d78 {
      animation: svelte-t81d78-slideIn 0.3s ease-out;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .chat-bubble-btn.svelte-t81d78 {
      animation: none;
    }
  }

  /* Edge case: Prevent double-tap zoom on buttons */
  @media (hover: none) and (pointer: coarse) {
    .chat-bubble-btn.svelte-t81d78,
    .send-btn.svelte-t81d78,
    .menu-btn.svelte-t81d78,
    .close-btn.svelte-t81d78,
    .action-btn.svelte-t81d78 {
      -webkit-user-select: none;
      -moz-user-select: none;
           user-select: none;
      -webkit-touch-callout: none;
    }
  }

  /* Edge case: High DPI screens (retina) */
  @media (-webkit-min-device-pixel-ratio: 2) {
    .message-bubble.svelte-t81d78,
    .action-btn.svelte-t81d78 {
      border-width: 0.5px;
    }
  }

  /* Attention-grabbing features */
  .attention-badge.svelte-t81d78 {
    position: fixed;
    bottom: 78px;
    right: 30px;
    z-index: 1056;
    pointer-events: none;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: svelte-t81d78-badgePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }

  @keyframes svelte-t81d78-badgePulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }

  .attention-tooltip.svelte-t81d78 {
    position: fixed;
    bottom: 105px;
    right: 100px;
    z-index: 1056;
    pointer-events: none;
    animation: svelte-t81d78-tooltipBounce 2s ease-in-out infinite;
  }

  @keyframes svelte-t81d78-tooltipBounce {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-10px);
    }
  }

  .attention-tooltip-text.svelte-t81d78 {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
  }

  .attention-tooltip-arrow.svelte-t81d78 {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
  }

  /* Mobile: Allow tooltip to wrap and prevent overlap with notifications */
  @media (max-width: 600px) {
    .attention-tooltip.svelte-t81d78 {
      right: 20px;
      max-width: calc(100vw - 200px);
    }

    .attention-tooltip-text.svelte-t81d78 {
      white-space: normal;
      max-width: 180px;
      line-height: 1.3;
    }
  }

  /* Embedded mode - positions widget absolutely within parent container */
  .chat-bubble-btn.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 100;
  }

  .phone-container.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 100;
    bottom: 10px;
    right: 10px;
    max-height: 380px;
    height: 380px;
  }

  .escalation-toast.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 110;
  }

  .overlay.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 101;
  }

  .shortcuts-modal.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 102;
  }

  .attention-badge.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 105;
  }

  .attention-tooltip.embedded.svelte-t81d78 {
    position: absolute;
    z-index: 105;
  }
