
/* Standalone Homincen mouse-and-chat UI; independent of JavaScript frameworks. */
body.homi-chat-installed .homincen-mascot-launch:not(#homi-chat-fab),
body.homi-chat-installed #homincen-homi-helper:not(#homi-chat-fab) {
  display: none !important;
}
#homi-chat-fab {
  position: fixed !important;
  z-index: 76 !important;
  right: 20px !important;
  bottom: 20px !important;
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 4px;
  min-height: 82px;
  border: 2px solid #8bc5ff;
  border-radius: 52px;
  background: linear-gradient(110deg,#ffffff,#ddf3ff);
  color: #124d89;
  font-family: inherit;
  box-shadow: 0 12px 34px #0650a63d, inset 0 2px 4px white;
  cursor: pointer;
  isolation: isolate;
}
#homi-chat-fab:hover { box-shadow: 0 15px 36px #0650a656; transform: translateY(-2px); }
#homi-chat-fab:focus-visible, .homi-chat-panel button:focus-visible, .homi-chat-panel input:focus-visible {
  outline: 3px solid #efa82f;
  outline-offset: 2px;
}
.homi-chat-mouse { width: 83px; height: 76px; display: flex; align-items: center; justify-content: center; }
.homi-mouse-icon { width: 100%; height: 100%; max-height: 91px; filter: drop-shadow(0 2px 3px #0d4a8b35); }
.homi-chat-fab-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.25; gap: 3px; }
.homi-chat-fab-copy strong { font-size: 16px; color: #034d9c; white-space: nowrap; }
.homi-chat-fab-copy small { font-size: 11px; color: #37648a; white-space: nowrap; }
.homi-chat-dot { width: 9px; height: 9px; background: #19b26e; border: 2px solid white; border-radius: 50%; align-self: flex-start; }
.homi-chat-panel {
  position: fixed;
  z-index: 78 !important;
  right: 20px;
  bottom: 118px;
  width: min(385px,calc(100vw - 30px));
  height: min(515px,calc(100dvh - 145px));
  min-height: 310px;
  background: white;
  border: 1px solid #bddaf6;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px #072b5880;
  color: #14335a;
  font-family: inherit;
}
.homi-chat-panel[hidden] { display: none !important; }
.homi-chat-head { background: linear-gradient(110deg,#0652a4,#127ad1); color: white; padding: 11px 13px; display: flex; gap: 10px; align-items: center; min-height: 76px; flex-shrink: 0; }
.homi-chat-head-avatar { width: 55px; height: 55px; flex-shrink: 0; }
.homi-chat-head-title { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.homi-chat-head-title strong { font-size: 14px; line-height: 1.2; }
.homi-chat-head-title small { font-size: 10px; line-height: 1.35; color: #dceeff; }
.homi-chat-close { border: 0; border-radius: 50%; background: #ffffff25; color: white; font-size: 27px; width: 32px; height: 32px; cursor: pointer; }
.homi-chat-thread { flex: 1; min-height: 0; overflow-y: auto; background: #f4f9ff; padding: 17px 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.homi-chat-message { max-width: 92%; margin: 0; padding: 10px 13px; border-radius: 13px 13px 13px 3px; background: white; box-shadow: 0 1px 4px #0738690c; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.homi-chat-from-user { align-self: flex-end; background: #086ada; color: white; border-radius: 13px 13px 3px 13px; }
.homi-chat-chips { padding: 9px 11px; display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; border-top: 1px solid #e3edf8; }
.homi-chat-chips button { flex-shrink: 0; border: 1px solid #bed8f2; background: #eef7ff; color: #0855a8; font-size: 11px; border-radius: 99px; cursor: pointer; padding: 7px 9px; }
.homi-chat-form { padding: 10px; border-top: 1px solid #e1ecf7; display: flex; flex-shrink: 0; gap: 7px; background: white; }
.homi-chat-form input { background: white; color: #142f4c; border: 1px solid #bad0e7; border-radius: 10px; min-width: 0; flex: 1; font: inherit; font-size: 12px; padding: 12px 10px; }
.homi-chat-form button { background: #086ada; color: white; font: inherit; font-size: 13px; font-weight: 750; border: 0; border-radius: 10px; cursor: pointer; padding: 0 14px; }
.homi-chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:600px){
  #homi-chat-fab{right: 9px !important;bottom: 9px !important;min-height: 67px;padding: 3px 9px 3px 1px;gap: 1px;}
  .homi-chat-mouse{width: 65px;height: 61px;}
  .homi-chat-fab-copy strong{font-size: 13px;}
  .homi-chat-fab-copy small{font-size: 10px;}
  .homi-chat-panel{right: 8px;bottom: 90px;width:calc(100vw - 16px);height:min(470px,calc(100dvh - 105px));}
  .homi-chat-head{padding: 9px;}
}
@media(prefers-reduced-motion:reduce){#homi-chat-fab{transition:none;}}
