/* Pass 31: first-party chat is contained inside Guide's HUMAN tab, never floating. */
.sbchat-root{display:flex;flex:1;min-height:0;min-width:0;width:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;color:#eef0ff;line-height:1.45}
.sbchat-root *{box-sizing:border-box}
.sbchat-root button,.sbchat-root textarea{font:inherit;letter-spacing:normal}
.sbchat-root .sbchat-panel{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:rgba(8,12,27,.30)}
.sbchat-root .sbchat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #8081b82b;background:linear-gradient(110deg,rgba(25,21,62,.76),rgba(17,32,56,.60))}
.sbchat-root .sbchat-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.sbchat-root .sbchat-title strong{font-size:13px;font-weight:850;color:#fff}
.sbchat-root .sbchat-title small{font-size:10px;color:#bebce0}
.sbchat-root .sbchat-header-actions{display:flex;align-items:center;gap:8px}
.sbchat-root .sbchat-retry{padding:7px 9px;border:1px solid #f6d5a477;border-radius:10px;background:#463123;color:#ffe7bb;font-size:10px;cursor:pointer}
.sbchat-root .sbchat-retry[hidden]{display:none}
.sbchat-root .sbchat-retry:disabled{opacity:.55;cursor:wait}
.sbchat-root .sbchat-unconfirmed{display:block;font-size:10px;color:#ffdb9c;margin-bottom:4px}
.sbchat-root .sbchat-new{padding:7px 9px;border:1px solid #a9a5df55;border-radius:10px;background:#ffffff0a;color:#e1ddff;font-size:10px;cursor:pointer}
.sbchat-root .sbchat-new[hidden]{display:none}
.sbchat-root .sbchat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:15px 13px;display:flex;flex-direction:column;gap:12px;scrollbar-color:#645da5 transparent}
.sbchat-root .sbchat-welcome{margin:auto 0;color:#c1c8e8;text-align:center;font-size:12px;line-height:1.65}
.sbchat-root .sbchat-message{max-width:88%;padding:10px 12px;border:1px solid #a8a5dd36;border-radius:15px;background:#1d2442;overflow-wrap:anywhere}
.sbchat-root .sbchat-visitor{align-self:flex-end;border-color:#876ef34d;background:linear-gradient(135deg,#51359c,#392375)}
.sbchat-root .sbchat-agent{align-self:flex-start}
.sbchat-root .sbchat-author{display:block;color:#c6e7ff;font-size:10px;font-weight:800;margin-bottom:6px}
.sbchat-root .sbchat-message p{margin:0;color:#f4f5ff;font-size:12px;white-space:pre-wrap}
.sbchat-root .sbchat-message time{display:block;margin-top:6px;color:#b5b6d3;font-size:9px;text-align:right}
.sbchat-root .sbchat-status{padding:7px 13px 0;color:#a4f0df;font-size:10px;min-height:24px}
.sbchat-root .sbchat-status.sbchat-error{color:#ffbfc8}
.sbchat-root .sbchat-safety{padding:0 13px;margin:2px 0 6px;color:#a6aecf;font-size:10px}
.sbchat-root .sbchat-compose{display:flex;align-items:stretch;gap:8px;padding:10px 12px 12px;border-top:1px solid #ffffff19}
.sbchat-root .sbchat-input{flex:1;min-width:0;resize:none;padding:10px;background:#121a31;border:1px solid #7b80ad66;border-radius:12px;color:#fff;outline:none;line-height:1.4;font-size:12px}
.sbchat-root .sbchat-input:focus{border-color:#a99cff}
.sbchat-root .sbchat-input::placeholder{color:#a6a8c7}
.sbchat-root .sbchat-send{min-width:61px;border:0;border-radius:11px;background:#c7fb6e;color:#101323;font-weight:800;font-size:11px;cursor:pointer}
.sbchat-root .sbchat-send:disabled{opacity:.55;cursor:wait}
@media(max-width:520px){.sbchat-root .sbchat-header{padding:11px 12px}.sbchat-root .sbchat-messages{padding:12px}.sbchat-root .sbchat-compose{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.sbchat-root *{scroll-behavior:auto!important}}
