.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #1a1a18;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px "DM Sans", sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.chat-launcher:hover {
  background: #0f6e56;
}

.chat-shell {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 59;
}

.chat-shell.open {
  display: flex;
}

.chat-head {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, #1a1a18 0%, #103a30 100%);
  color: #ffffff;
}

.chat-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chat-kicker {
  font: 500 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 5px;
}

.chat-title {
  font: 500 16px "DM Sans", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

.chat-subtitle {
  margin-top: 4px;
  font: 400 12px "DM Sans", sans-serif;
  color: rgba(255, 255, 255, 0.76);
}

.chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
  background: #ffffff;
}

.chat-suggestion {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f6f2;
  color: #1a1a18;
  border-radius: 999px;
  padding: 7px 10px;
  font: 400 11px "DM Sans", sans-serif;
  cursor: pointer;
}

.chat-suggestion:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.chat-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 0;
  background: #ffffff;
}

.chat-message {
  display: flex;
  margin-bottom: 12px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  font: 400 12px/1.55 "DM Sans", sans-serif;
  white-space: pre-wrap;
}

.chat-message.assistant .chat-bubble {
  background: #f1efe8;
  color: #2c2c2a;
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: #0f6e56;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-status {
  padding: 0 16px 8px;
  min-height: 20px;
  font: 400 11px "DM Mono", monospace;
  color: #7a786f;
}

.chat-composer {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fbfaf7;
}

.chat-disclaimer {
  padding: 12px 0 10px;
  font: 400 10px/1.45 "DM Sans", sans-serif;
  color: #5f5e5a;
}

.chat-disclaimer strong {
  color: #1a1a18;
  font-weight: 500;
}

.chat-turnstile {
  padding: 12px 0 8px;
  overflow: hidden;
  max-height: 120px;
  opacity: 1;
  transition: max-height 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.chat-turnstile.is-hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.chat-turnstile-label {
  font: 500 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f5e5a;
  margin-bottom: 8px;
}

.chat-turnstile-widget {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  min-height: 72px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  color: #1a1a18;
  font: 400 12px/1.5 "DM Sans", sans-serif;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(15, 110, 86, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

.chat-send {
  border: none;
  background: #1a1a18;
  color: #ffffff;
  border-radius: 12px;
  padding: 11px 14px;
  font: 500 12px "DM Sans", sans-serif;
  cursor: pointer;
}

.chat-send:hover:not(:disabled) {
  background: #0f6e56;
}

.chat-send:disabled,
.chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 1024px) {
  .chat-launcher {
    right: 16px;
    bottom: 78px;
  }

  .chat-shell {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: min(78vh, 680px);
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}
