/* Homepage-only multilingual assistance chat; intentionally isolated from workspace CSS. */
.bb-home-chat, .bb-home-chat * { box-sizing: border-box; }
.bb-home-chat { --bb-home-chat-bottom:18px; position:fixed; inset:auto max(20px,env(safe-area-inset-right,0px)) var(--bb-home-chat-bottom) auto; z-index:105; font:400 14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:#183a2f; pointer-events:none; }
.bb-home-chat__launcher { pointer-events:auto; display:flex; align-items:center; justify-content:center; gap:0; width:60px; min-width:60px; height:60px; min-height:60px; padding:0; border:1px solid #2c8060; border-radius:50%; color:#fff; background:linear-gradient(130deg,#247957,#164d3f); font-family:inherit;font-size:13px;font-weight:700;line-height:1.3; box-shadow:0 11px 30px #0e48343a; cursor:pointer; transition:transform .2s,box-shadow .2s; }
.bb-home-chat__launcher svg {flex:0 0 auto;}
.bb-home-chat__launcher > span {display:none!important;}
.bb-home-chat__launcher:hover {transform:translateY(-2px);box-shadow:0 14px 34px #0e48344d;}
.bb-home-chat__launcher:focus-visible,.bb-home-chat__close:focus-visible,.bb-home-chat__chip:focus-visible,.bb-home-chat__form button:focus-visible,.bb-home-chat__link:focus-visible {outline:3px solid #65c4a0;outline-offset:3px;}
.bb-home-chat__online {width:8px;height:8px;border-radius:50%;background:#96dfaf;box-shadow:0 0 0 3px #ffffff22;}
.bb-home-chat__panel {pointer-events:auto; position:absolute; bottom:calc(100% + 13px); right:0; display:flex; flex-direction:column; width:min(390px,calc(100vw - 24px)); height:min(535px,calc(100dvh - var(--bb-home-chat-bottom) - 88px)); min-height:min(230px,calc(100dvh - var(--bb-home-chat-bottom) - 88px)); max-height:calc(100dvh - var(--bb-home-chat-bottom) - 88px); border:1px solid #d8e6dc; border-radius:21px; overflow:hidden; background:#fff; box-shadow:0 20px 65px #112f2638; isolation:isolate; }
.bb-home-chat__panel[hidden]{display:none!important;}
.bb-home-chat__header {display:flex; flex:0 0 auto; align-items:center; gap:12px; padding:14px 15px; min-height:74px; background:linear-gradient(118deg,#173f35,#286a52); color:white;}
.bb-home-chat__avatar {display:grid; place-items:center; width:42px;height:42px;flex:0 0 42px;background:#ffffff22; border:1px solid #ffffff3d;border-radius:14px;font-weight:900;font-size:24px;}
.bb-home-chat__identity {flex:1 1 auto; min-width:0;display:flex; flex-direction:column;}
.bb-home-chat__identity strong {font-size:15px;font-weight:780;line-height:1.35;}
.bb-home-chat__identity span{font-size:11px;color:#d6ede2;display:flex;align-items:center;gap:6px;}
.bb-home-chat__identity i{width:7px;height:7px;border-radius:100%;background:#9cddb5;display:inline-block;}
.bb-home-chat__close {display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;padding:0;border:0;border-radius:10px;background:#ffffff1c;color:#fff;cursor:pointer;}
.bb-home-chat__close:hover{background:#ffffff33;}
.bb-home-chat__history {min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:18px 14px 10px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(160deg,#f4f9f5,#fff 68%);scrollbar-width:thin;}
.bb-home-chat__message {max-width:94%;display:flex; flex-direction:column;align-self:flex-start;align-items:flex-start;gap:9px;min-width:0;}
.bb-home-chat__message p {margin:0;white-space:pre-wrap; overflow-wrap:anywhere; padding:12px 14px;border:1px solid #e0eae0; border-radius:15px 15px 15px 5px;background:#fff;color:#2b4438;font-size:13px;line-height:1.58;box-shadow:0 2px 6px #25462e08;}
.bb-home-chat__message--user {align-self:flex-end; align-items:flex-end;max-width:90%;}
.bb-home-chat__message--user p {background:#e2f1e8;border:1px solid #cde6d7;border-radius:15px 15px 5px 15px;color:#154631;}
.bb-home-chat__link {display:inline-flex;gap:5px;align-items:center;padding:8px 12px;border:1px solid #bddbc8;color:#155a3c;background:#eaf5ed;border-radius:9px;text-decoration:none;font-size:12px;font-weight:750;}
.bb-home-chat__link:hover{background:#d8eee0;color:#12442f;}
.bb-home-chat__link::after{content:'↗';margin-inline-start:4px;font-size:13px;}
.bb-home-chat__suggestions {display:flex; gap:7px; flex-wrap:nowrap; flex:0 0 auto; overflow-x:auto; scrollbar-width:thin; padding:10px 14px 11px;border-top:1px solid #e7eee7;background:#fff;}
.bb-home-chat__chip {width:auto; flex:0 0 auto;min-height:34px;margin:0; padding:6px 11px;max-width:215px;border:1px solid #d5e5d9;border-radius:999px;background:#f4faf5;color:#265e42; font-family:inherit;font-size:11px;font-weight:650;line-height:1.3; white-space:nowrap;cursor:pointer; }
.bb-home-chat__chip:hover{border-color:#87b99a;background:#eaf4ec;}
.bb-home-chat__form {display:flex; flex:0 0 auto;gap:9px;align-items:center;padding:11px 12px 4px;margin:0;border-top:1px solid #edf2ed;background:#fff;}
.bb-home-chat__form input {min-width:0; flex:1 1 auto; width:0; height:43px; padding:9px 12px; margin:0; border:1px solid #d1e0d4;border-radius:12px;outline:0;background:#f7faf7;color:#234739;font:400 13px/1.4 system-ui,sans-serif;box-shadow:none;}
.bb-home-chat__form input::placeholder{color:#788a80;opacity:1;}
.bb-home-chat__form input:focus {border-color:#388a62;box-shadow:0 0 0 3px #61a68122;}
.bb-home-chat__form button{display:grid; place-items:center;width:43px;height:43px;flex:0 0 43px;margin:0;padding:0;border:0;border-radius:12px;background:#247957;color:#fff;cursor:pointer;}
.bb-home-chat__form button:hover{background:#195c45;}
.bb-home-chat__notice{margin:0;padding:5px 15px 11px;background:#fff;text-align:center;color:#82918a;font-size:10px;line-height:1.5;}
.bb-home-chat__visually-hidden{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:540px){
  .bb-home-chat{right:max(12px,env(safe-area-inset-right,0px));}
  .bb-home-chat__launcher{width:56px;min-width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;gap:0;}
  .bb-home-chat__panel{width:min(390px,calc(100vw - 24px));height:min(535px,calc(100dvh - var(--bb-home-chat-bottom) - 81px));max-height:calc(100dvh - var(--bb-home-chat-bottom) - 81px);bottom:calc(100% + 10px);border-radius:18px;}
}
@media(max-width:360px){.bb-home-chat__panel{width:calc(100vw - 24px);}}
@media(prefers-reduced-motion:reduce){.bb-home-chat__launcher{transition:none;}}
@media print {.bb-home-chat{display:none!important;}}
