.aa-chat { --aa-accent: #1e3a8a; --aa-ink: #1d1d1f; --aa-muted: #6b6b70; --aa-bg: #ffffff; --aa-soft: #f2f2f4; position: fixed; right: 20px; bottom: 90px; z-index: 99999; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.aa-chat [hidden] { display: none !important; }
.aa-chat__bubble { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--aa-accent); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: grid; place-items: center; }
.aa-chat__panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--aa-bg); color: var(--aa-ink); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.aa-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--aa-accent); color: #fff; }
.aa-chat__head span { display: block; font-size: 12.5px; opacity: .85; }
.aa-chat__close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.aa-chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.aa-chat__msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; }
.aa-chat__msg--assistant { background: var(--aa-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.aa-chat__msg--user { background: var(--aa-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.aa-chat__msg a { color: inherit; text-decoration: underline; }
.aa-chat__msg--typing { color: var(--aa-muted); letter-spacing: 2px; }
.aa-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e3e6; }
.aa-chat__form textarea { flex: 1; resize: none; border: 1px solid #d0d0d4; border-radius: 10px; padding: 9px 10px; font: inherit; color: var(--aa-ink); background: #fff; max-height: 120px; }
.aa-chat__form button { border: 0; border-radius: 10px; background: var(--aa-accent); color: #fff; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }
.aa-chat__form button:disabled { opacity: .5; cursor: default; }
.aa-chat__wa { display: block; text-align: center; font-size: 13px; color: var(--aa-muted); padding: 0 0 10px; text-decoration: none; }
.aa-chat__wa:hover { text-decoration: underline; }
.aa-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.aa-chat__chip { border: 1px solid var(--aa-accent); background: #fff; color: var(--aa-accent); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.aa-chat__chip:hover { background: var(--aa-accent); color: #fff; }
.aa-chat { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.aa-chat__teaser { position: relative; max-width: 240px; background: #fff; color: var(--aa-ink); border-radius: 14px 14px 4px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: aa-pop .3s ease-out; }
.aa-chat__teaser-text { display: block; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; padding: 11px 30px 11px 14px; cursor: pointer; }
.aa-chat__teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--aa-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px; }
@keyframes aa-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aa-chat__teaser { animation: none; } }
@media (max-width: 480px) {
  .aa-chat { right: 12px; bottom: 76px; font-size: 14px; gap: 8px; }
  .aa-chat__bubble { width: 48px; height: 48px; }
  .aa-chat__bubble svg { width: 22px; height: 22px; }
  .aa-chat__teaser { max-width: 190px; }
  .aa-chat__teaser-text { font-size: 13px; padding: 8px 26px 8px 11px; }
  .aa-chat__panel { width: calc(100vw - 24px); height: min(440px, 62vh); border-radius: 14px; }
  .aa-chat__head { padding: 9px 12px; }
  .aa-chat__head strong { font-size: 14px; }
  .aa-chat__head span { font-size: 11.5px; }
  .aa-chat__log { padding: 10px; gap: 6px; }
  .aa-chat__msg { padding: 7px 10px; }
  .aa-chat__chip { padding: 5px 10px; font-size: 13px; }
  .aa-chat__form { padding: 8px; }
  .aa-chat__form textarea { padding: 7px 9px; font-size: 16px; }
  .aa-chat__wa { padding: 0 0 7px; font-size: 12px; }
}
