/* Panel-only presentation. The launcher and its existing styles are unchanged. */
#tbAiPanel { position:fixed; right:24px; bottom:24px; width:440px; max-width:calc(100vw - 32px); height:650px; max-height:calc(100dvh - 48px); margin:0; padding:0; flex-direction:column; overflow:hidden; border:1px solid #dfe2e8; border-radius:8px; background:#fff; color:#111827; box-shadow:0 20px 80px rgb(0 0 0 / 24%); font:400 14px/1.5 Arial,sans-serif; isolation:isolate; }
#tbAiPanel:not([hidden]) { display:flex !important; }
#tbAiPanel [hidden] { display:none !important; }
#tbAiPanel *,#tbAiPanel *::before,#tbAiPanel *::after { box-sizing:border-box; }
#tbAiPanel :where(div,span,strong,em,ul,ol,li) { color:inherit; }
#tbAiPanel :is(h2,h3,p,label,input,textarea,button,a,span) { font-family:Arial,sans-serif !important; }
#tbAiPanel .tb-ai__header { display:flex; align-items:center; gap:12px; flex:none; height:auto; min-height:86px; padding:20px 22px; background:#111827; border-bottom:3px solid #f43f5e; color:#fff; }
#tbAiPanel .tb-ai__brand-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border:1px solid #4b5563; border-radius:6px; background:transparent; color:#fff; }
#tbAiPanel .tb-ai__brand-icon svg { width:23px; height:23px; }
#tbAiPanel #tbAiTitle { margin:0; color:#fff !important; font-size:20px !important; font-weight:700; line-height:1.2; letter-spacing:-.02em; }
#tbAiPanel .tb-ai__header p { display:block; margin:5px 0 0; color:#cbd5e1; font-size:11px; line-height:1.3; letter-spacing:.04em; }
#tbAiPanel .tb-ai__header p > span { display:none; }
#tbAiPanel .tb-ai__close { display:grid; place-items:center; flex:none; margin-left:auto; padding:8px; width:40px; height:40px; min-width:40px; border:1px solid #4b5563; border-radius:4px; background:transparent; color:#fff !important; font-size:28px; line-height:1; cursor:pointer; }
#tbAiPanel .tb-ai__close:hover { background:#374151; }
#tbAiPanel .tb-ai__close svg { width:21px; height:21px; }
#tbAiPanel .tb-ai__gate,#tbAiPanel .tb-ai__unavailable { flex:1; min-height:0; height:auto; padding:28px; overflow-y:auto; overscroll-behavior:contain; background:#fff; text-align:left; }
#tbAiPanel .tb-ai__intro-icon { display:none; }
#tbAiPanel .tb-ai__gate h3,#tbAiPanel .tb-ai__unavailable h3 { margin:0 0 12px; color:#111827; font-size:27px !important; line-height:1.2; font-weight:700; letter-spacing:-.03em; text-align:left; }
#tbAiPanel .tb-ai__intro,#tbAiPanel .tb-ai__unavailable p { margin:0 0 28px; max-width:none; color:#64748b; font-size:14px; line-height:1.65; text-align:left; }
#tbAiPanel #tbAiLeadForm { display:grid; gap:8px; }
#tbAiPanel #tbAiLeadForm label { margin:0; color:#475569; font-size:10px; line-height:1.5; letter-spacing:.15em; text-transform:uppercase; font-weight:700; }
#tbAiPanel #tbAiLeadForm input { width:100%; min-height:46px; margin:0 0 16px; padding:8px 0; border:0; border-bottom:2px solid #e2e8f0; border-radius:0; background:#fff; color:#111827; font-size:16px; box-shadow:none; }
#tbAiPanel #tbAiLeadForm input:focus { outline:none; border-bottom-color:#f43f5e; }
#tbAiPanel .tb-ai__start,#tbAiPanel .tb-ai__unavailable a { display:block; width:100%; margin:8px 0 0; padding:16px; border:0; border-radius:3px; background:#111827; color:#fff; text-align:center; text-decoration:none; font-size:12px; font-weight:700; letter-spacing:.08em; cursor:pointer; }
#tbAiPanel .tb-ai__privacy { margin:18px 0 0; color:#64748b; text-align:left; font-size:11px; line-height:1.6; }
#tbAiPanel .tb-ai__privacy a { color:#334155; text-decoration:underline; }
#tbAiPanel .tb-ai__chat { display:flex; flex-direction:column; flex:1; height:auto; min-height:0; width:100%; background:#fff; overflow:hidden; }
#tbAiPanel .tb-ai__messages { display:flex; flex-direction:column; align-items:stretch; flex:1; min-height:0; gap:16px; padding:24px 20px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; }
#tbAiPanel .tb-ai__message { width:auto; max-width:94%; margin:0; padding:16px; border:1px solid #e5e7eb; border-radius:6px; background:#f8fafc; color:#111827; font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
#tbAiPanel .tb-ai__message p { margin:0; color:inherit; font-size:inherit; line-height:inherit; }
#tbAiPanel .tb-ai__message--user { align-self:flex-end; border-color:#111827; background:#111827; color:#fff; }
#tbAiPanel .tb-ai__message-label { display:block; margin:0 0 8px; color:#64748b; font-size:9px; letter-spacing:.12em; font-weight:700; text-transform:uppercase; }
#tbAiPanel .tb-ai__message--user .tb-ai__message-label { color:#cbd5e1; }
#tbAiPanel .tb-ai__suggestions { display:grid; grid-template-columns:minmax(0,1fr); flex:none; gap:7px; width:auto; padding:0 20px 16px; margin:0; overflow:visible; white-space:normal; }
#tbAiPanel .tb-ai__suggestions button { display:block; width:100%; min-width:0; padding:11px 14px; border:1px solid #dce1e8; border-radius:4px; background:#fff; color:#334155; text-align:left; white-space:normal; overflow-wrap:anywhere; font-size:12px; font-weight:400; line-height:1.4; cursor:pointer; }
#tbAiPanel .tb-ai__suggestions button::after { content:'\2192'; float:right; margin-left:8px; color:#f43f5e; }
#tbAiPanel .tb-ai__suggestions button:hover { border-color:#111827; background:#f8fafc; }
#tbAiPanel .tb-ai__composer { display:flex; align-items:flex-end; flex:none; gap:10px; margin:0 20px; padding:10px; width:auto; border:1px solid #cbd5e1; border-radius:4px; background:#fff; box-shadow:none; }
#tbAiPanel .tb-ai__composer:focus-within { border-color:#111827; }
#tbAiPanel .tb-ai__composer textarea { flex:1; min-width:0; width:100%; min-height:42px; max-height:100px; margin:0; padding:10px 4px; border:0; border-radius:0; outline:none; box-shadow:none; resize:none; background:transparent; color:#111827; font-size:16px; line-height:22px; }
#tbAiPanel .tb-ai__composer button { display:grid; place-items:center; flex:none; width:42px; height:42px; margin:0; padding:10px; border:0; border-radius:3px; background:#111827; color:#fff; cursor:pointer; }
#tbAiPanel .tb-ai__composer button svg { width:22px; height:22px; }
#tbAiPanel .tb-ai__chat-status { flex:none; margin:5px 20px 0; color:#475569; font-size:11px; line-height:1.4; }
#tbAiPanel .tb-ai__chat-status:empty { display:none; }
#tbAiPanel .tb-ai__disclaimer { flex:none; margin:0; padding:12px 20px 16px; color:#64748b; font-size:10px; line-height:1.5; text-align:center; }
#tbAiPanel .tb-ai__form-error { margin:4px 0; color:#b91c1c; font-size:12px; }
#tbAiPanel button:disabled { opacity:.55; cursor:not-allowed; }
#tbAiPanel :is(button,a):focus-visible { outline:2px solid #f43f5e; outline-offset:3px; }
@media(max-width:600px) {
  #tbAiPanel { right:12px; bottom:max(12px,env(safe-area-inset-bottom)); width:calc(100vw - 24px); max-width:none; height:650px; max-height:calc(100dvh - 24px - env(safe-area-inset-bottom)); border-radius:6px; }
  #tbAiPanel .tb-ai__header { min-height:76px; padding:16px 18px; }
  #tbAiPanel .tb-ai__gate,#tbAiPanel .tb-ai__unavailable { padding:24px; }
}
@media(prefers-reduced-motion:reduce) { #tbAiPanel * { transition:none !important; } }
