/* A reading-first dialog; the input is focused only by the visitor. */
.chat-launcher { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: none !important; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 50px; box-shadow: 0 4px 20px #0002; }
.chat-launcher-label { font-size: 12px; }
.launcher-pulse { display: none; }
.chat-dialog { margin: auto; padding: 0; width: min(540px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); }
.chat-dialog::backdrop { background: #111111a6; backdrop-filter: blur(5px); }
.chat-shell { display: flex; flex-direction: column; height: min(760px, calc(100dvh - 32px)); min-height: 0; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-brand { display: flex; align-items: center; gap: 12px; }
.chat-brand img { width: 32px; height: 32px; }
.chat-brand-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chat-header h2 { font-size: 17px; }
.chat-live-badge { display: none; }
.chat-brand p { font-size: 10px; color: #abb1ba; margin-top: 4px; }
.chat-icon-button { display: grid; place-items: center; background: #262b32; border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; color: var(--ink); }
.chat-notice { display: flex; gap: 8px; padding: 12px 20px; font-size: 11px; line-height: 1.6; color: #c0c6d0; background: #252a31; flex-shrink: 0; }
.chat-notice svg { margin-top: 2px; }
.chat-messages { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; scroll-padding-top: 16px; }
.chat-message { padding: 16px; background: #262b32; border-radius: 10px; max-width: 94%; flex-shrink: 0; }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.chat-speaker { display: block; font-size: 10px; color: #c0c0c0; margin-bottom: 8px; }
.chat-message-user { background: #e7e7e7; color: #101214; align-self: flex-end; }
.chat-message-user .chat-speaker { color: #252525; }
.chat-starters { display: grid; gap: 8px; width: 100%; flex-shrink: 0; }
.chat-starters button { display: flex; justify-content: space-between; gap: 12px; background: #171a1e; border: 1px solid #3a4048; color: var(--ink); text-align: left; padding: 12px; border-radius: 6px; min-height: 44px; font-size: 12px; }
.chat-starters button:hover { background: #252525; border-color: #777; }
.chat-composer-wrap { padding: 12px 20px 16px; flex-shrink: 0; border-top: 1px solid var(--line); }
.chat-composer { display: flex; gap: 8px; align-items: end; border: 1px solid #454b54; border-radius: 8px; padding: 10px; }
.chat-composer textarea { font-size: 16px; flex: 1; min-width: 0; min-height: 48px; max-height: 100px; padding: 0; resize: vertical; border: 0; background: #171a1e; color: var(--ink); }
.chat-composer textarea::placeholder { color: #aeb4bd; font-size: 12px; }
.chat-send { display: grid; place-items: center; background: #e7e7e7; color: #101214; width: 44px; height: 44px; border: 0; border-radius: 6px; flex-shrink: 0; }
.chat-composer-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10px; color: #abb1ba; margin-top: 8px; }
.chat-composer-footer button { border: 0; background: none; color: #e0e0e0; font-size: 11px; padding: 8px 0; min-height: 36px; }
.chat-bottom-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.chat-bottom-note { color: #abb1ba; font-size: 9px; }
.chat-contact-link { background: none; border: 0; color: #e0e0e0; display: flex; gap: 8px; align-items: center; font-size: 11px; padding: 8px 0; min-height: 36px; }
@media (max-width: 600px) {
  .chat-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 14px; }
  .chat-launcher-label { display: none; }
  .chat-header { padding: 12px; }
  .chat-header h2 { font-size: 15px; }
  .chat-brand { gap: 8px; }
  .chat-notice { padding: 10px 12px; font-size: 10px; }
  .chat-messages { padding: 16px 12px; }
  .chat-message { max-width: 100%; padding: 14px; }
  .chat-composer-wrap { padding: 10px 12px 12px; }
  .chat-composer-footer > span { display: none; }
  .chat-bottom-note { display: none; }
  .chat-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .chat-shell { height: min(760px, calc(100dvh - 20px)); }
}
