/* Accessible, responsive chat panel for the browser-local Adaptive guide. */
.chat-launcher{display:inline-flex;align-items:center;gap:9px;z-index:45;min-height:49px;transition:transform .18s,filter .18s}
.chat-launcher:hover{filter:brightness(1.13);transform:translateY(-2px)}
.chat-launcher:focus-visible,.chat-panel button:focus-visible,.chat-panel input:focus-visible{outline:3px solid #73d8ff;outline-offset:3px}
.chat-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#67f1c6,#5baafa);color:#05232d;font-size:18px;font-weight:900;box-shadow:0 4px 16px #112d36}
.chat-panel.faq-panel{display:flex;flex-direction:column;overflow:hidden;right:18px;bottom:79px;width:min(435px,calc(100vw - 28px));max-height:min(650px,calc(100dvh - 102px));height:min(650px,calc(100dvh - 102px));padding:0;border-radius:23px;background:#0b1b26;box-shadow:0 22px 55px rgba(0,0,0,.5);z-index:46}
.chat-panel.faq-panel[hidden]{display:none}
.chat-panel .chat-header{display:flex;align-items:center;gap:11px;padding:15px 15px 13px;border-bottom:1px solid rgba(175,222,238,.15);background:linear-gradient(125deg,#163c44,#112633)}
.chat-header-info{flex:1;min-width:0;line-height:1.3}.chat-header-info b{display:block;font-size:14px;color:#f1fbff}.chat-header-info small{display:block;margin-top:4px;color:#b2c8ce;font-size:11px}
.chat-actions{display:flex;align-items:center;gap:6px}
.chat-tool,.chat-panel .faq-close{display:grid;place-items:center;min-width:36px;height:35px;padding:0 8px;border:1px solid rgba(198,226,237,.17);border-radius:11px;background:#19323e;color:#edf8fc;font-size:13px;cursor:pointer}
.chat-tool[aria-pressed="true"]{background:#1d745f;border-color:#65f0c2}
.chat-panel .faq-close{font-size:23px;font-weight:400;line-height:1}
.chat-messages{display:flex;flex-direction:column;gap:13px;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 13px 12px;scrollbar-color:#466774 transparent;scrollbar-width:thin}
.chat-row{display:flex;align-items:flex-end;gap:7px;max-width:100%;min-width:0}
.chat-row.user{justify-content:flex-end}
.chat-row.bot .chat-avatar{width:29px;height:29px;flex:0 0 29px;border-radius:10px;font-size:14px}
.chat-content{display:flex;flex-direction:column;gap:4px;max-width:min(85%,355px);min-width:0}
.chat-row.user .chat-content{align-items:flex-end}
.chat-author{font-size:11px;color:#9bb9c7;padding:0 7px}
.chat-bubble{padding:11px 13px;border-radius:16px 16px 16px 5px;background:#19343f;color:#edf8fc;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #2e4a57}
.chat-bubble strong{font-weight:750;color:#fff}
.chat-row.user .chat-bubble{background:linear-gradient(140deg,#127b79,#176c91);border:1px solid #279ca3;border-radius:16px 16px 5px 16px;color:#fff}
.chat-links{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 0}
.chat-link{display:inline-flex;align-items:center;padding:6px 11px;border:1px solid #43867b;border-radius:999px;text-decoration:none;color:#aaf6db;font-size:11px;font-weight:750;background:#113c3a}
.chat-link:hover{background:#1a534b;color:white}
.chat-typing{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:4px 8px}
.chat-typing span{width:6px;height:6px;border-radius:50%;background:#8dcbce;animation:chat-pulse 1s infinite}
.chat-typing span:nth-child(2){animation-delay:.16s}.chat-typing span:nth-child(3){animation-delay:.32s}
@keyframes chat-pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.chat-suggestions{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;padding:8px 12px 11px;scrollbar-width:none;min-height:53px;overscroll-behavior-x:contain}
.chat-suggestions:empty{display:none}
.chat-suggestions::-webkit-scrollbar{display:none}
.chat-suggestions button{white-space:nowrap;flex:0 0 auto;padding:7px 10px;border:1px solid #3b716e;border-radius:999px;background:#14363a;color:#baf6e1;font-size:12px;cursor:pointer}
.chat-suggestions button:hover{border-color:#65f0c2;background:#205052}
.chat-compose{border-top:1px solid rgba(175,222,238,.14);padding:10px 11px 5px;background:#0f2631}
.chat-form.faq-form{display:flex;gap:8px;align-items:center;margin:0}
.chat-form input{flex:1;min-width:0;height:43px;outline:none;border:1px solid #355765;border-radius:13px;background:#081923;padding:0 12px;color:#f5fcff;font:inherit;font-size:13px}
.chat-form input::placeholder{color:#9db2bc}
.chat-form button{height:43px;min-width:67px;border-radius:13px;border:0;background:linear-gradient(125deg,#65f0c2,#a2e9a3);color:#09271d;font-size:12px;font-weight:800;cursor:pointer}
.chat-form button:disabled{cursor:not-allowed;opacity:.55}
.chat-note{margin:6px 2px 3px;color:#99b1bc;font-size:10px;line-height:1.4}
.chat-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.chat-panel.faq-panel{right:7px;bottom:max(65px,env(safe-area-inset-bottom));width:calc(100vw - 14px);height:min(675px,calc(100dvh - 90px));max-height:calc(100dvh - 90px);border-radius:19px}.chat-launcher{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.chat-panel .chat-header{padding:12px 10px}.chat-messages{padding:16px 9px 10px}.chat-content{max-width:87%}}
@media(prefers-reduced-motion:reduce){.chat-typing span{animation:none}.chat-launcher{transition:none}}
