.olive-ai { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.olive-ai .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#olive-ai-launch { position: fixed; right: 1.1rem; bottom: 16.2rem; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; min-height: 3.15rem; padding: .82rem 1.15rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #173c2b; color: #fff; box-shadow: 0 10px 32px rgba(0,0,0,.24); font: 800 .88rem/1 system-ui, sans-serif; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
#olive-ai-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,.3); }
#olive-ai-launch:focus-visible, #olive-ai-panel button:focus-visible, #olive-ai-input:focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }
#olive-ai-panel { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 100; display: flex; flex-direction: column; width: min(390px, calc(100vw - 2.2rem)); height: min(590px, calc(100dvh - 2.2rem)); overflow: hidden; border: 1px solid rgba(23,60,43,.2); border-radius: 1.25rem; background: #fffdf7; color: #24342a; box-shadow: 0 18px 54px rgba(0,0,0,.3); }
#olive-ai-panel[hidden] { display: none; }
#olive-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; background: #173c2b; color: #fff; }
#olive-ai-head > div { display: flex; align-items: center; gap: .55rem; }
#olive-ai-head strong { font-size: .96rem; }
#olive-ai-close { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.55rem; line-height: 1; cursor: pointer; }
#olive-ai-messages { flex: 1; display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; padding: 1rem; scroll-behavior: smooth; }
.olive-ai-msg { max-width: 90%; padding: .72rem .85rem; border-radius: 1rem; white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }
.olive-ai-bot { align-self: flex-start; border-bottom-left-radius: .3rem; background: #edf3e8; }
.olive-ai-user { align-self: flex-end; border-bottom-right-radius: .3rem; background: #dcebd6; }
.olive-ai-wa { display: inline-flex; margin-top: .7rem; padding: .55rem .72rem; border-radius: 999px; background: #1f7a4d; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.olive-ai-wa:hover { background: #17623d; }
.olive-ai-sources { display: flex; align-items: center; gap: .35rem; margin-top: .6rem; color: #657067; font-size: .7rem; }
.olive-ai-sources a { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #fff; color: #173c2b; font-weight: 800; text-decoration: none; }
.olive-ai-sources a:hover { background: #dcebd6; }
#olive-ai-suggestions { display: flex; gap: .4rem; overflow-x: auto; padding: 0 .9rem .7rem; }
#olive-ai-suggestions button { flex: 0 0 auto; padding: .48rem .65rem; border: 1px solid rgba(23,60,43,.18); border-radius: 999px; background: #fff; color: #173c2b; font: 700 .72rem/1.1 system-ui, sans-serif; cursor: pointer; }
#olive-ai-form { display: flex; gap: .45rem; padding: .75rem; border-top: 1px solid rgba(23,60,43,.12); background: #fff; }
#olive-ai-input { min-width: 0; flex: 1; padding: .72rem .75rem; border: 1px solid #b8c1b5; border-radius: .7rem; background: #fff; color: #24342a; font: inherit; }
#olive-ai-send { min-width: 4.5rem; border: 0; border-radius: .7rem; background: #173c2b; color: #fff; font: 800 .82rem/1 system-ui, sans-serif; cursor: pointer; }
#olive-ai-send:disabled { opacity: .65; cursor: wait; }
#olive-ai-foot { margin: 0; padding: 0 .85rem .75rem; background: #fff; color: #657067; font-size: .68rem; line-height: 1.35; }
#olive-ai-foot a { color: #173c2b; font-weight: 700; }
body.olive-ai-open .floating-actions { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  #olive-ai-launch { right: .7rem; bottom: 8.6rem; min-height: 2.85rem; padding: .72rem .9rem; font-size: .77rem; }
  #olive-ai-panel { inset: .7rem .7rem 8.2rem; width: auto; height: auto; max-height: none; }
  body.olive-ai-open #olive-ai-panel { bottom: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  #olive-ai-launch, #olive-ai-messages { transition: none; scroll-behavior: auto; }
}
