:root{--chat-orange:#ff922e;--chat-bg:#0d0d0c;--chat-panel:#151412;--chat-text:#f7f4ef;--chat-muted:#a7a198}
#guide-toggle{position:fixed;right:24px;bottom:78px;z-index:180;display:flex;align-items:center;gap:10px;padding:9px 15px 9px 9px;border:1px solid rgba(255,146,46,.55);border-radius:999px;background:#171513;color:#fff;font:700 13px/1.2 var(--font-body,'Manrope',Arial,sans-serif);box-shadow:0 12px 34px rgba(0,0,0,.3),0 0 22px rgba(255,146,46,.12);cursor:pointer;transition:transform .2s,border-color .2s}
#guide-toggle:hover{transform:translateY(-3px);border-color:var(--chat-orange)}
#guide-toggle[aria-expanded=true]{display:none}
.guide-toggle-avatar{width:35px;height:35px;border:1px solid rgba(255,146,46,.7);border-radius:50%;object-fit:cover;object-position:center 22%}
.guide-live-dot{width:7px;height:7px;margin-left:1px;border-radius:50%;background:#63d59b;box-shadow:0 0 9px rgba(99,213,155,.7)}
#guide-panel.chat-widget{position:fixed;right:24px;bottom:92px;z-index:500;display:flex;flex-direction:column;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100dvh - 130px));overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:var(--chat-panel);color:var(--chat-text);font-family:var(--font-body,'Manrope',Arial,sans-serif);box-shadow:0 24px 70px rgba(0,0,0,.5),0 0 36px rgba(255,146,46,.08)}
#guide-panel[hidden]{display:none}
.chat-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:16px;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(115deg,rgba(255,146,46,.1),transparent 65%)}
.chat-header>img{width:42px;height:42px;border:1px solid rgba(255,146,46,.65);border-radius:50%;object-fit:cover;object-position:center 22%;background:#1c1712}
.chat-heading{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.chat-heading strong{font-size:14px;letter-spacing:-.02em}.chat-heading span{color:#a59d93;font-size:10px}
.chat-header>button{width:34px;height:34px;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:rgba(255,255,255,.04);color:#fff;font-size:21px;cursor:pointer}
.chat-messages{display:flex;flex:1;flex-direction:column;gap:12px;overflow:auto;padding:18px 15px 10px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4a4036 transparent}
.chat-message{width:fit-content;max-width:88%;padding:11px 13px;border:1px solid rgba(255,255,255,.08);border-radius:15px;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-message{align-self:flex-start;background:#211d18;color:#f1ece5;border-top-left-radius:5px}
.user-message{align-self:flex-end;background:var(--chat-orange);color:#211409;border-color:rgba(255,146,46,.6);border-top-right-radius:5px}
.chat-typing{flex:0 0 auto;padding:0 16px 8px;color:#c5aa8f;font-size:11px}.chat-typing[hidden]{display:none}
.chat-compose{display:flex;align-items:flex-end;gap:9px;flex:0 0 auto;margin:0 12px;padding:9px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:#0e0e0d}
.chat-compose:focus-within{border-color:rgba(255,146,46,.7);box-shadow:0 0 0 3px rgba(255,146,46,.08)}
.chat-compose textarea{flex:1;min-width:0;max-height:112px;min-height:38px;resize:none;border:0;outline:0;padding:9px 4px;background:transparent;color:#f8f5f0;font:500 13px/1.45 var(--font-body,'Manrope',Arial,sans-serif)}
.chat-compose textarea::placeholder{color:#8b857d}.chat-compose textarea:disabled{opacity:.6}
.chat-compose button{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:11px;background:var(--chat-orange);color:#231408;font-size:17px;cursor:pointer}.chat-compose button:disabled{opacity:.45;cursor:wait}
.chat-disclosure{flex:0 0 auto;margin:9px 14px 12px;color:#827c74;font-size:9px;line-height:1.45;text-align:center}
@media(max-width:600px){#guide-toggle{right:14px;bottom:70px;padding:8px 12px 8px 8px}#guide-panel.chat-widget{inset:auto 10px 12px;width:auto;height:min(78dvh,680px);border-radius:18px}.chat-header{padding:13px}.chat-messages{padding:14px 12px 8px}.chat-message{max-width:92%;font-size:12px}.chat-disclosure{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){#guide-toggle,#guide-panel *{transition:none!important}}
