.patbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  width: min(420px, calc(100vw - 48px));
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  pointer-events: none;
  font-family: var(--font-body);
}

html.patbot-open,
body.patbot-open {
  overflow: hidden;
}

.patbot * {
  box-sizing: border-box;
}

.patbot > * {
  pointer-events: auto;
}

.patbot button,
.patbot textarea,
.patbot a {
  cursor: pointer;
  font-family: inherit;
}

.patbot textarea {
  cursor: text;
}

.patbot-panel[hidden] {
  display: none !important;
}

.patbot.is-open {
  align-items: stretch;
}

.patbot.is-open .patbot-launcher {
  display: none;
}

.patbot-launcher {
  position: relative;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.24s ease, filter 0.24s ease;
  animation: patbot-float 4.2s ease-in-out infinite;
}

.patbot-launcher::before,
.patbot-launcher::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.patbot-launcher::before {
  inset: 10px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 238, 201, 0.72) 0%, rgba(244, 169, 41, 0.38) 28%, rgba(244, 169, 41, 0.08) 54%, rgba(244, 169, 41, 0) 76%),
    radial-gradient(circle at 70% 70%, rgba(52, 97, 197, 0.26) 0%, rgba(52, 97, 197, 0) 66%);
  filter: blur(9px);
  opacity: 0.9;
  animation: patbot-halo 4.6s ease-in-out infinite;
}

.patbot-launcher::after {
  inset: 4px;
  border: 1px solid rgba(244, 169, 41, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(244, 169, 41, 0.18);
  opacity: 0.6;
  animation: patbot-orbit 6.4s linear infinite;
}

.patbot-launcher:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.35));
}

.patbot-launcher:focus-visible,
.patbot-close:focus-visible,
.patbot-send:focus-visible,
.patbot-quick-chip:focus-visible,
.patbot-action:focus-visible,
.patbot-source:focus-visible {
  outline: 2px solid rgba(244, 169, 41, 0.92);
  outline-offset: 2px;
}

.patbot-launcher-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(244, 169, 41, 0.22);
  opacity: 0.85;
  pointer-events: none;
  animation: patbot-pulse 2.8s ease-out infinite;
  z-index: 1;
}

.patbot-launcher-icon,
.patbot-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(6, 15, 48, 0.94) 0%, rgba(3, 9, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.patbot-launcher-icon {
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(244, 169, 41, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(244, 169, 41, 0.26),
    0 0 48px rgba(35, 74, 161, 0.22);
  animation: patbot-icon-glow 3.8s ease-in-out infinite;
}

.patbot-launcher-icon img,
.patbot-avatar img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
}

.patbot-panel {
  width: 100%;
  max-height: min(80vh, 720px);
  overflow: hidden;
  border-radius: 32px;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.patbot.is-open .patbot-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.patbot-panel-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(560px, 70vh, 620px);
  max-height: min(80vh, 720px);
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(244, 169, 41, 0.22) 0%, rgba(244, 169, 41, 0) 36%),
    radial-gradient(circle at 100% 0%, rgba(36, 72, 158, 0.36) 0%, rgba(36, 72, 158, 0) 40%),
    linear-gradient(180deg, rgba(5, 14, 42, 0.98) 0%, rgba(2, 8, 25, 0.98) 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.patbot-panel-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 32%);
  opacity: 0.2;
}

.patbot-header,
.patbot-intro,
.patbot-quick-prompts,
.patbot-composer {
  position: relative;
  z-index: 1;
}

.patbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 16px;
}

.patbot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.patbot-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.patbot-brand-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.patbot-brand-copy span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.patbot-brand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.patbot-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.patbot-header-actions .patbot-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.patbot-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#patbot-reset:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.patbot-close:hover {
  color: var(--white);
  background: rgba(244, 169, 41, 0.16);
  border-color: rgba(244, 169, 41, 0.3);
}

.patbot-intro {
  margin: 0 20px 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at top left, rgba(244, 169, 41, 0.15) 0%, rgba(244, 169, 41, 0) 42%);
}

.patbot-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.patbot-intro p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.patbot-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 16px;
}

.patbot-quick-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.2;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.patbot-quick-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 169, 41, 0.36);
  background: rgba(244, 169, 41, 0.14);
}

.patbot-messages {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 169, 41, 0.55) rgba(255, 255, 255, 0.05);
}

.patbot-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.patbot-row.is-user {
  justify-content: flex-end;
}

.patbot-bubble {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.patbot-row.is-assistant .patbot-bubble {
  border-top-left-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(10, 20, 53, 0.92) 0%, rgba(5, 11, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
}

.patbot-row.is-user .patbot-bubble {
  border-top-right-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 169, 41, 0.96) 0%, rgba(255, 193, 92, 0.92) 100%);
  color: #08142f;
  font-weight: 500;
}

.patbot-message-copy a {
  color: inherit;
  text-decoration: underline;
}

.patbot-message-copy strong {
  color: var(--white);
}

.patbot-row.is-user .patbot-message-copy strong {
  color: #08142f;
}

.patbot-message-copy p {
  margin: 0;
}

.patbot-message-copy p + p,
.patbot-message-copy p + ul,
.patbot-message-copy p + ol,
.patbot-message-copy ul + p,
.patbot-message-copy ol + p,
.patbot-message-copy ul + ol,
.patbot-message-copy ol + ul {
  margin-top: 10px;
}

.patbot-message-copy ul,
.patbot-message-copy ol {
  margin: 0;
  padding-left: 18px;
}

.patbot-message-copy li + li {
  margin-top: 6px;
}

.patbot-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.patbot-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.patbot-source:hover {
  border-color: rgba(244, 169, 41, 0.3);
  background: rgba(244, 169, 41, 0.12);
}

.patbot-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patbot-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 169, 41, 0.24);
  background: rgba(244, 169, 41, 0.14);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.patbot-action:hover {
  transform: translateY(-1px);
}

.patbot-action.is-email {
  border-color: rgba(244, 169, 41, 0.42);
  background: linear-gradient(135deg, rgba(244, 169, 41, 0.24) 0%, rgba(255, 201, 110, 0.18) 100%);
  box-shadow: 0 12px 28px rgba(244, 169, 41, 0.16);
}

.patbot-action.is-whatsapp {
  border-color: rgba(57, 200, 121, 0.42);
  background: linear-gradient(135deg, rgba(17, 112, 66, 0.78) 0%, rgba(37, 181, 102, 0.78) 100%);
  box-shadow: 0 12px 28px rgba(37, 181, 102, 0.18);
}

.patbot-action.is-contact-page {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.patbot-action.is-followup {
  border-color: rgba(244, 169, 41, 0.4);
  background: linear-gradient(135deg, rgba(244, 169, 41, 0.92) 0%, rgba(255, 201, 110, 0.94) 100%);
  color: #08142f;
  box-shadow: 0 14px 30px rgba(244, 169, 41, 0.2);
}

.patbot-action.is-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.patbot-followup-toast {
  width: min(100%, 360px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(244, 169, 41, 0.18) 0%, rgba(244, 169, 41, 0) 42%),
    linear-gradient(180deg, rgba(7, 17, 49, 0.96) 0%, rgba(3, 10, 28, 0.98) 100%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.patbot-followup-copy {
  font-size: 13px;
  line-height: 1.6;
}

.patbot-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 28px);
  overflow-y: auto;
  background: rgba(1, 5, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.patbot-modal-backdrop[hidden] {
  display: none !important;
}

.patbot-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: min(calc(100vh - 32px), 680px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  overflow-y: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(244, 169, 41, 0.16) 0%, rgba(244, 169, 41, 0) 42%),
    linear-gradient(180deg, rgba(11, 22, 59, 0.98) 0%, rgba(4, 11, 32, 0.99) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 169, 41, 0.55) rgba(255, 255, 255, 0.06);
}

.patbot-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.patbot-modal-copy {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.patbot-modal-error {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(186, 48, 48, 0.18);
  border: 1px solid rgba(255, 116, 116, 0.2);
  color: #ffd0d0;
  font-size: 12px;
  line-height: 1.5;
}

.patbot-modal-input,
.patbot-modal-select,
.patbot-modal-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
}

.patbot-modal-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(135deg, rgba(244, 169, 41, 0.08) 0%, rgba(35, 74, 161, 0.08) 100%);
  background-repeat: no-repeat;
  background-position: center, right 16px center;
  padding-right: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.patbot-modal-select:focus,
.patbot-modal-input:focus,
.patbot-modal-textarea:focus {
  border-color: rgba(244, 169, 41, 0.46);
  box-shadow: 0 0 0 3px rgba(244, 169, 41, 0.12);
}

.patbot-modal-select option {
  color: #08142f;
  background: #f7f2e8;
}

.patbot-modal-textarea {
  min-height: 110px;
  resize: vertical;
}

.patbot-modal-actions {
  position: sticky;
  bottom: -24px;
  margin: 4px -24px -24px;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, rgba(4, 11, 32, 0) 0%, rgba(4, 11, 32, 0.92) 22%, rgba(4, 11, 32, 0.99) 100%);
}

.patbot-modal-input::placeholder,
.patbot-modal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.patbot-composer-wrapper {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.patbot-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 20px 20px;
  padding-top: 12px;
  border-top: 0;
  background: transparent;
}

.patbot-input-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.patbot-input-shell textarea {
  width: 100%;
  min-height: 52px;
  max-height: 160px;
  padding: 15px 16px;
  resize: none;
  border: 0;
  border-radius: inherit;
  color: var(--white);
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 1.55;
}

.patbot-input-shell textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.patbot-send {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(244, 169, 41, 1) 0%, rgba(255, 201, 110, 0.94) 100%);
  color: #08142f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 34px rgba(244, 169, 41, 0.24);
}

.patbot-send:hover:not(:disabled) {
  transform: translateY(-1px);
}

.patbot-send:disabled {
  opacity: 0.6;
}

.patbot-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.patbot-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 169, 41, 0.82);
  animation: patbot-dot 1.15s infinite ease-in-out;
}

.patbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.patbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes patbot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes patbot-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.04);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes patbot-halo {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.68;
  }
  40% {
    transform: scale(1.08);
    opacity: 1;
  }
  70% {
    transform: scale(0.98);
    opacity: 0.86;
  }
}

@keyframes patbot-orbit {
  0% {
    transform: rotate(0deg) scale(0.98);
    opacity: 0.42;
  }
  50% {
    transform: rotate(180deg) scale(1.03);
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg) scale(0.98);
    opacity: 0.42;
  }
}

@keyframes patbot-icon-glow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 0 1px rgba(244, 169, 41, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.24),
      0 0 20px rgba(244, 169, 41, 0.2),
      0 0 36px rgba(35, 74, 161, 0.14);
  }
  45% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(244, 169, 41, 0.12),
      0 14px 30px rgba(0, 0, 0, 0.3),
      0 0 28px rgba(244, 169, 41, 0.34),
      0 0 54px rgba(35, 74, 161, 0.26);
  }
  70% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 0 1px rgba(244, 169, 41, 0.1),
      0 12px 28px rgba(0, 0, 0, 0.27),
      0 0 24px rgba(244, 169, 41, 0.28),
      0 0 42px rgba(35, 74, 161, 0.2);
  }
}

@keyframes patbot-dot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .patbot {
    right: 16px;
    bottom: 18px;
    width: min(390px, calc(100vw - 32px));
  }

  .patbot-panel-shell {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  html.patbot-open .translate-widget,
  body.patbot-open .translate-widget {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .patbot {
    right: 14px;
    left: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 28px));
    max-width: 340px;
    gap: 12px;
  }

  .patbot-launcher {
    width: 70px;
    height: 70px;
  }

  .patbot-panel {
    width: 100%;
    max-height: min(68dvh, 620px);
  }

  .patbot-panel-shell {
    min-height: min(58dvh, 540px);
    max-height: min(68dvh, 620px);
    border-radius: 24px;
  }

  .patbot-bubble {
    max-width: 92%;
  }

  .patbot-modal-backdrop {
    padding: 14px;
  }

  .patbot-modal-card {
    max-height: min(calc(100vh - 20px), 82vh);
    padding: 18px;
  }

  .patbot-modal-actions {
    bottom: -18px;
    margin: 4px -18px -18px;
    padding: 14px 18px 18px;
  }

  .patbot-header {
    padding: 14px 14px 10px;
  }

  .patbot-brand {
    align-items: flex-start;
    gap: 12px;
  }

  .patbot-avatar {
    width: 52px;
    height: 52px;
  }

  .patbot-brand-copy strong {
    font-size: 16px;
    line-height: 0.96;
    letter-spacing: 0.04em;
  }

  .patbot-brand-meta {
    align-items: flex-end;
    gap: 8px;
  }

  .patbot-brand-meta span {
    max-width: 110px;
    font-size: 11px;
    line-height: 1.2;
  }

  .patbot-header-actions {
    gap: 6px;
  }

  .patbot-intro {
    margin: 0 16px 12px;
    padding: 14px 15px;
  }

  .patbot-quick-prompts {
    gap: 8px;
    padding: 0 16px 12px;
  }

  .patbot-quick-chip {
    padding: 9px 12px;
    font-size: 11px;
  }

  .patbot-messages {
    padding: 0 14px 12px;
    gap: 10px;
  }

  .patbot-bubble {
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.5;
  }

  .patbot-composer {
    align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .patbot-launcher-icon {
    width: 62px;
    height: 62px;
  }

  .patbot-input-shell textarea {
    min-height: 46px;
    padding: 12px 13px;
    font-size: 13px;
  }

  .patbot-send {
    width: 46px;
    height: 46px;
  }

  .patbot-send span {
    display: none;
  }

  .patbot-send {
    width: 46px;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
  }
}
