.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 9px; padding: 9px 20px 9px 7px; border: 1px solid var(--mint); border-radius: 50px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; text-align: left; font-weight: 700; }
.chat-launcher img { width: 48px; height: 48px; object-fit: contain; }
.chat-launcher small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.chat-panel { position: fixed; right: 24px; bottom: 24px; z-index: 61; width: min(410px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 48px)); display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.chat-panel[hidden], .chat-launcher[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 17px; background: var(--mint-soft); border-bottom: 1px solid var(--line); }
.chat-header img { width: 44px; height: 44px; object-fit: contain; }
.chat-header h2 { margin: 0; font-family: var(--sans); font-size: 16px; letter-spacing: -.02em; }
.chat-header p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.chat-header button { margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 25px; cursor: pointer; }
.chat-messages { flex: 1; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.chat-message { max-width: 94%; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; background: var(--surface-2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message strong { display: block; margin-bottom: 5px; color: var(--mint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.chat-message-user { margin-left: auto; border-radius: 14px 14px 3px 14px; background: var(--mint-soft); }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.chat-prompts button { border: 1px solid var(--line-strong); border-radius: 20px; padding: 8px 10px; background: transparent; color: var(--text); font-size: 11px; cursor: pointer; }
.chat-status { min-height: 18px; margin: 0; padding: 0 18px; color: var(--muted); font-size: 12px; }
.chat-form { padding: 10px 16px; }
.chat-form label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.chat-form > div { display: flex; align-items: center; gap: 8px; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; }
.chat-form button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--mint); color: var(--bg); font-size: 25px; font-weight: 700; cursor: pointer; }
.chat-panel button:disabled { opacity: .5; cursor: wait; }
.chat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 18px 10px; }
.chat-actions button, .chat-actions a { padding: 4px 0; border: 0; background: transparent; color: var(--mint); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chat-privacy { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 480px) { .chat-panel { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); height: calc(100dvh - 16px - env(safe-area-inset-bottom)); border-radius: 16px; } .chat-launcher { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } }
