#chimera-ai-root{--chimera-accent:#2B637C;font-family:Arial,Helvetica,sans-serif;position:relative;z-index:999999;color:#24313d}
#chimera-ai-root *{box-sizing:border-box}.cai-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--chimera-accent);background:#fff;overflow:hidden;flex:0 0 auto}.cai-avatar svg{width:100%;height:100%;display:block}
.cai-launch{position:fixed;right:24px;bottom:24px;width:64px;height:64px;border:0;border-radius:50%;background:var(--chimera-accent)!important;color:#fff!important;box-shadow:0 12px 32px rgba(0,0,0,.24);cursor:pointer;padding:9px}.cai-launch .cai-avatar{width:46px;height:46px}.cai-online-dot{position:absolute;width:14px;height:14px;border-radius:50%;background:#23b26d;border:2px solid #fff;right:2px;bottom:5px}
.cai-proactive{position:fixed;right:22px;bottom:97px;width:min(330px,calc(100vw - 34px));background:#fff;border:1px solid #dfe6ea;border-radius:16px;box-shadow:0 12px 34px rgba(0,0,0,.18);padding:8px 36px 8px 9px;animation:cai-in .25s ease-out}.cai-proactive[hidden]{display:none}.cai-proactive-open{border:0;background:transparent;color:#24313d;display:flex;gap:10px;align-items:center;text-align:left;line-height:1.35;font-size:13px;cursor:pointer;padding:0}.cai-proactive-x{position:absolute;right:8px;top:5px;border:0;background:transparent;color:#7a848c;font-size:22px;cursor:pointer}
.cai-panel{position:fixed;right:24px;bottom:24px;width:min(405px,calc(100vw - 28px));height:min(690px,calc(100vh - 48px));background:#fff;border-radius:20px;box-shadow:0 18px 55px rgba(0,0,0,.25);overflow:hidden;border:1px solid #e7ebef;display:flex;flex-direction:column}.cai-panel[hidden]{display:none}
.cai-header{background:var(--chimera-accent)!important;color:#fff!important;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}.cai-brand{display:flex;align-items:center;gap:10px}.cai-brand strong,.cai-brand small{display:block}.cai-brand strong{font-size:16px}.cai-brand small{opacity:.9;margin-top:2px;font-size:11px}.cai-close{border:0;background:transparent!important;color:#fff!important;font-size:29px;cursor:pointer;padding:2px 7px}
.cai-messages{flex:1;overflow:auto;padding:16px 16px 6px;background:#f6f8fa}.cai-msg{max-width:86%;padding:10px 12px;border-radius:14px;margin:0 0 10px;line-height:1.42;font-size:14px;white-space:pre-wrap}.cai-msg.assistant{background:#fff;border:1px solid #e5e9ed;color:#24313d}.cai-msg.user{margin-left:auto;background:var(--chimera-accent)!important;color:#fff!important}.cai-typing{opacity:.68}
.cai-quick{padding:8px 12px 5px;display:flex;gap:7px;overflow-x:auto;background:#f6f8fa}.cai-quick button{flex:0 0 auto;border:1px solid var(--chimera-accent)!important;background:#fff!important;color:var(--chimera-accent)!important;border-radius:999px;padding:8px 10px;font-weight:700;font-size:11px;cursor:pointer;min-height:36px}.cai-quick button:hover,.cai-quick button:focus,.cai-quick button:active{background:var(--chimera-accent)!important;color:#fff!important;border-color:var(--chimera-accent)!important}
.cai-input{display:flex;padding:10px;border-top:1px solid #edf0f2;gap:7px;background:#fff}.cai-input input{flex:1;border:1px solid #ccd4da!important;border-radius:10px;padding:11px;font-size:14px;outline:none;min-width:0}.cai-input input:focus{border-color:var(--chimera-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--chimera-accent) 18%,transparent)}.cai-input button{width:44px;border:0!important;border-radius:10px;background:var(--chimera-accent)!important;color:#fff!important;cursor:pointer;font-size:18px}.cai-disclosure{padding:0 12px 11px;color:#707b84;font-size:9px;line-height:1.3;background:#fff}
.cai-lead{position:absolute;inset:74px 14px 14px;background:#fff;border:1px solid #dfe5e9;border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.18);padding:15px;display:flex;flex-direction:column;gap:8px;z-index:3;overflow:auto}.cai-lead[hidden]{display:none}.cai-lead-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2px}.cai-lead-head>div{display:flex;gap:9px;align-items:center}.cai-lead-head strong,.cai-lead-head small{display:block}.cai-lead-head small{font-size:10px;color:#6d7881;margin-top:2px}.cai-lead input,.cai-lead select,.cai-lead textarea{border:1px solid #ccd4da!important;border-radius:8px;padding:10px;font:inherit;background:#fff;color:#24313d;min-height:42px}.cai-lead textarea{min-height:78px;resize:vertical}.cai-send-lead{border:0!important;border-radius:9px;padding:11px;background:var(--chimera-accent)!important;color:#fff!important;font-weight:700;cursor:pointer}.cai-lead-cancel{border:0!important;background:transparent!important;color:#53616b!important;font-size:25px;cursor:pointer}.cai-lead>small{font-size:9px;color:#707b84}.cai-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@keyframes cai-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.cai-panel{right:10px;bottom:10px;height:calc(100vh - 20px);width:calc(100vw - 20px);border-radius:16px}.cai-launch{right:18px;bottom:18px}.cai-proactive{right:14px;bottom:93px}.cai-lead{inset:70px 10px 10px}}

/* v1.2 Chimera uniform brand override: prevent WordPress/theme red states inside assistant */
#chimera-ai-root{--chimera-accent:#0A9B8E!important;--chimera-brand-dark:#2B637C!important;color:#24313d!important}
#chimera-ai-root .cai-panel,#chimera-ai-root .cai-proactive,#chimera-ai-root .cai-lead{border-color:#d7e5e5!important}
#chimera-ai-root button,#chimera-ai-root a,#chimera-ai-root input,#chimera-ai-root select,#chimera-ai-root textarea{outline-color:var(--chimera-accent)!important}
#chimera-ai-root .cai-quick button,#chimera-ai-root .cai-quick button:visited{color:var(--chimera-accent)!important;border-color:var(--chimera-accent)!important;text-decoration:none!important}
#chimera-ai-root .cai-quick button:hover,#chimera-ai-root .cai-quick button:focus,#chimera-ai-root .cai-quick button:active{background:var(--chimera-accent)!important;color:#fff!important;border-color:var(--chimera-accent)!important}
#chimera-ai-root .cai-input input,#chimera-ai-root .cai-lead input,#chimera-ai-root .cai-lead select,#chimera-ai-root .cai-lead textarea{border-color:#b9d4d2!important;color:#24313d!important}
#chimera-ai-root .cai-input input:focus,#chimera-ai-root .cai-lead input:focus,#chimera-ai-root .cai-lead select:focus,#chimera-ai-root .cai-lead textarea:focus{border-color:var(--chimera-accent)!important;box-shadow:0 0 0 2px rgba(10,155,142,.16)!important}
#chimera-ai-root .cai-msg.assistant{border-color:#d7e5e5!important;color:#24313d!important}
#chimera-ai-root .cai-disclosure,#chimera-ai-root .cai-lead>small,#chimera-ai-root .cai-lead-head small{color:#65747a!important}
#chimera-ai-root :invalid{box-shadow:none!important}

/* v1.3 APPLICATION-PAGE BRAND LOCK
   Some WordPress themes/page builders apply red !important styles to buttons,
   links and focused form controls on inner pages. These ID-scoped rules use
   higher specificity and cover every interactive state without affecting the
   rest of the site. */
#chimera-ai-root.cai-root,
body #chimera-ai-root,
html body #chimera-ai-root {
  --chimera-accent:#0A9B8E !important;
  --chimera-brand-dark:#2F6077 !important;
  color:#24313d !important;
}
html body #chimera-ai-root .cai-panel,
html body #chimera-ai-root .cai-proactive,
html body #chimera-ai-root .cai-lead {
  border-color:#B9D4D2 !important;
  outline:0 !important;
  box-shadow:0 18px 55px rgba(0,0,0,.22) !important;
}
html body #chimera-ai-root .cai-header,
html body #chimera-ai-root .cai-launch,
html body #chimera-ai-root .cai-input button,
html body #chimera-ai-root .cai-send-lead,
html body #chimera-ai-root .cai-msg.user {
  background:#0A9B8E !important;
  background-color:#0A9B8E !important;
  border-color:#0A9B8E !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html body #chimera-ai-root .cai-header *,
html body #chimera-ai-root .cai-launch *,
html body #chimera-ai-root .cai-input button *,
html body #chimera-ai-root .cai-send-lead * {
  color:inherit !important;
  -webkit-text-fill-color:inherit !important;
}
html body #chimera-ai-root .cai-quick button,
html body #chimera-ai-root .cai-quick button:link,
html body #chimera-ai-root .cai-quick button:visited {
  background:#fff !important;
  background-color:#fff !important;
  color:#0A9B8E !important;
  -webkit-text-fill-color:#0A9B8E !important;
  border:1px solid #0A9B8E !important;
  outline-color:#0A9B8E !important;
  box-shadow:none !important;
}
html body #chimera-ai-root .cai-quick button:hover,
html body #chimera-ai-root .cai-quick button:focus,
html body #chimera-ai-root .cai-quick button:focus-visible,
html body #chimera-ai-root .cai-quick button:active {
  background:#0A9B8E !important;
  background-color:#0A9B8E !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#0A9B8E !important;
  outline:2px solid rgba(10,155,142,.22) !important;
  outline-offset:1px !important;
}
html body #chimera-ai-root .cai-input input,
html body #chimera-ai-root .cai-lead input,
html body #chimera-ai-root .cai-lead select,
html body #chimera-ai-root .cai-lead textarea {
  border:1px solid #B9D4D2 !important;
  color:#24313d !important;
  -webkit-text-fill-color:#24313d !important;
  caret-color:#0A9B8E !important;
  outline:0 !important;
  box-shadow:none !important;
}
html body #chimera-ai-root .cai-input input:hover,
html body #chimera-ai-root .cai-lead input:hover,
html body #chimera-ai-root .cai-lead select:hover,
html body #chimera-ai-root .cai-lead textarea:hover,
html body #chimera-ai-root .cai-input input:focus,
html body #chimera-ai-root .cai-input input:focus-visible,
html body #chimera-ai-root .cai-lead input:focus,
html body #chimera-ai-root .cai-lead input:focus-visible,
html body #chimera-ai-root .cai-lead select:focus,
html body #chimera-ai-root .cai-lead select:focus-visible,
html body #chimera-ai-root .cai-lead textarea:focus,
html body #chimera-ai-root .cai-lead textarea:focus-visible {
  border-color:#0A9B8E !important;
  outline:2px solid rgba(10,155,142,.18) !important;
  outline-offset:0 !important;
  box-shadow:none !important;
}
html body #chimera-ai-root .cai-msg.assistant {
  color:#24313d !important;
  -webkit-text-fill-color:#24313d !important;
  border-color:#D7E5E5 !important;
}
html body #chimera-ai-root .cai-proactive-open,
html body #chimera-ai-root .cai-proactive-open:hover,
html body #chimera-ai-root .cai-proactive-open:focus,
html body #chimera-ai-root .cai-proactive-open:active {
  color:#24313d !important;
  -webkit-text-fill-color:#24313d !important;
  border-color:transparent !important;
  background:transparent !important;
}
html body #chimera-ai-root .cai-proactive-x,
html body #chimera-ai-root .cai-lead-cancel {
  color:#53616b !important;
  -webkit-text-fill-color:#53616b !important;
  border-color:transparent !important;
  background:transparent !important;
}
html body #chimera-ai-root a,
html body #chimera-ai-root a:visited {
  color:#2F6077 !important;
  text-decoration-color:#2F6077 !important;
}
html body #chimera-ai-root a:hover,
html body #chimera-ai-root a:focus,
html body #chimera-ai-root a:active {
  color:#0A9B8E !important;
  text-decoration-color:#0A9B8E !important;
}


/* v1.4 Mia portrait + chat readability */
html body #chimera-ai-root .cai-avatar { overflow:hidden !important; border-radius:50% !important; background:#fff !important; flex:0 0 auto !important; }
html body #chimera-ai-root .cai-avatar img { width:100% !important; height:100% !important; display:block !important; object-fit:cover !important; object-position:center 28% !important; transform:none !important; }
html body #chimera-ai-root .cai-panel { width:min(410px, calc(100vw - 24px)) !important; max-width:calc(100vw - 24px) !important; box-sizing:border-box !important; }
html body #chimera-ai-root .cai-messages, html body #chimera-ai-root .cai-msg { min-width:0 !important; max-width:100% !important; box-sizing:border-box !important; }
html body #chimera-ai-root .cai-msg { white-space:pre-wrap !important; overflow-wrap:anywhere !important; word-break:normal !important; line-height:1.5 !important; }
html body #chimera-ai-root .cai-msg.assistant, html body #chimera-ai-root .cai-msg.user { max-width:88% !important; }
html body #chimera-ai-root .cai-input { min-width:0 !important; }
html body #chimera-ai-root .cai-input input { min-width:0 !important; width:100% !important; box-sizing:border-box !important; font-size:16px !important; }
html body #chimera-ai-root .cai-quick { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
html body #chimera-ai-root .cai-quick button { min-width:0 !important; white-space:normal !important; overflow-wrap:anywhere !important; line-height:1.25 !important; }
@media (max-width:480px){ html body #chimera-ai-root .cai-panel { left:12px !important; right:12px !important; width:auto !important; max-width:none !important; } html body #chimera-ai-root .cai-quick { grid-template-columns:1fr !important; } }


/* v1.6 Mia avatar visibility fix */
html body #chimera-ai-root .cai-launch { width:72px !important; height:72px !important; padding:7px !important; }
html body #chimera-ai-root .cai-launch .cai-avatar { width:58px !important; height:58px !important; }
html body #chimera-ai-root .cai-header .cai-avatar { width:50px !important; height:50px !important; }
html body #chimera-ai-root .cai-proactive .cai-avatar { width:46px !important; height:46px !important; }
html body #chimera-ai-root .cai-avatar img { width:100% !important; height:100% !important; object-fit:cover !important; object-position:center 28% !important; transform:none !important; border-radius:50% !important; }
@media (max-width:480px){
  html body #chimera-ai-root .cai-launch { width:68px !important; height:68px !important; right:14px !important; bottom:14px !important; }
  html body #chimera-ai-root .cai-launch .cai-avatar { width:54px !important; height:54px !important; }
}

/* v1.7 Center Mia precisely inside all assistant avatar/chat bubbles */
html body #chimera-ai-root .cai-avatar {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:0 !important;
}
html body #chimera-ai-root .cai-avatar img {
  width:100% !important;
  height:100% !important;
  display:block !important;
  margin:0 !important;
  object-fit:cover !important;
  object-position:50% 50% !important;
  transform:none !important;
  border-radius:50% !important;
}
html body #chimera-ai-root .cai-launch {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* v1.8 Proactive chat text containment fix */
html body #chimera-ai-root .cai-proactive {
  overflow:hidden !important;
  max-width:calc(100vw - 34px) !important;
}
html body #chimera-ai-root .cai-proactive-open {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
  white-space:normal !important;
}
html body #chimera-ai-root .cai-proactive-open .cai-avatar {
  flex:0 0 46px !important;
}
html body #chimera-ai-root .cai-proactive-open span {
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  hyphens:auto !important;
  line-height:1.35 !important;
  overflow:hidden !important;
}
@media (max-width:480px){
  html body #chimera-ai-root .cai-proactive {
    width:calc(100vw - 28px) !important;
    max-width:calc(100vw - 28px) !important;
  }
}


/* v1.9 Mobile Mia portrait asset fix */
html body #chimera-ai-root .cai-avatar {
  overflow:hidden !important;
  border-radius:50% !important;
  background:transparent !important;
}
html body #chimera-ai-root .cai-avatar img {
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:50% 46% !important;
  border-radius:50% !important;
}
@media (max-width:520px){
  html body #chimera-ai-root .cai-launch .cai-avatar img,
  html body #chimera-ai-root .cai-header .cai-avatar img,
  html body #chimera-ai-root .cai-proactive .cai-avatar img,
  html body #chimera-ai-root .cai-lead .cai-avatar img {
    object-fit:cover !important;
    object-position:50% 46% !important;
    border-radius:50% !important;
    transform:none !important;
  }
}
