.rn-ai-widget{--ai-green:#159b91;--ai-ink:#19333b;--ai-muted:#697b7d;position:fixed;z-index:1200;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));font-family:inherit;color:var(--ai-ink)}
.rn-ai-launcher{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;background:var(--ai-green);color:#fff;padding:13px 18px;min-height:52px;box-shadow:0 9px 28px #0d534733;font:600 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.rn-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 30px #0d534744}.rn-ai-launcher svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rn-ai-launcher svg path:last-child{fill:currentColor;stroke:none}
.rn-ai-panel{position:absolute;right:0;bottom:calc(100% + 12px);width:min(380px,calc(100vw - 28px));height:min(600px,calc(100dvh - 125px));min-height:390px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce8e5;border-radius:20px;box-shadow:0 18px 60px #102c302b}.rn-ai-panel[hidden]{display:none}.rn-ai-head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:var(--ai-ink);color:#fff}.rn-ai-brand-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #ffffff30;border-radius:12px;background:#ffffff10}.rn-ai-brand-icon svg{width:23px;height:23px;fill:none;stroke:#75d5c9;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rn-ai-brand-icon svg path:last-child{fill:#75d5c9;stroke:none}.rn-ai-head>div:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}.rn-ai-head strong{font-size:14px}.rn-ai-head span{font-size:11px;color:#b5ceca}.rn-ai-close{width:32px;height:32px;padding:0;border:0;border-radius:9px;background:#ffffff12;color:#fff;font:300 25px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}.rn-ai-notice{padding:9px 14px;border-bottom:1px solid #edf2f0;background:#f7faf9;color:#66787b;font-size:10px;line-height:1.45}.rn-ai-thread{display:flex;flex:1;flex-direction:column;gap:9px;overflow-y:auto;padding:13px;background:#fbfcfc;scroll-behavior:smooth}.rn-ai-message{max-width:88%;padding:10px 12px;border-radius:13px;background:#eef4f2;color:#263d41;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.rn-ai-message.customer{align-self:flex-end;background:var(--ai-green);color:#fff;border-bottom-right-radius:4px}.rn-ai-message.assistant,.rn-ai-message.staff,.rn-ai-message.system{align-self:flex-start;border-bottom-left-radius:4px}.rn-ai-message.staff{background:#eaf2fb;color:#1d405f}.rn-ai-message.system{background:#fff4df;color:#735726;font-size:11px}.rn-ai-time{display:block;margin-top:4px;opacity:.65;font-size:9px}.rn-ai-typing{color:var(--ai-muted);font-size:12px;padding:0 4px}.rn-ai-quick-actions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-top:1px solid #edf2f0;background:#fff}.rn-ai-quick-actions a,.rn-ai-quick-actions button{display:inline-flex;align-items:center;min-height:30px;padding:6px 9px;border:1px solid #dce8e5;border-radius:999px;background:#fff;color:#2d5e5a;text-decoration:none;font:500 10px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}.rn-ai-quick-actions .handoff{border-color:#b9d9d3;background:#eff8f6}.rn-ai-compose{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e7eeec;background:#fff}.rn-ai-compose textarea{flex:1;min-height:40px;max-height:100px;resize:none;padding:11px 12px;border:1px solid #d8e4e1;border-radius:12px;outline:none;font:400 13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ai-ink)}.rn-ai-compose textarea:focus{border-color:#69b8ae;box-shadow:0 0 0 3px #159b9119}.rn-ai-compose button{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:12px;background:var(--ai-green);color:#fff;cursor:pointer}.rn-ai-compose button:disabled{opacity:.5;cursor:wait}.rn-ai-compose svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rn-ai-footnote{padding:0 12px 10px;background:#fff;color:#859295;font-size:9px;line-height:1.4}.rn-ai-footnote span{color:#637677}
@media(max-width:680px){.rn-ai-widget{right:max(13px,env(safe-area-inset-right));bottom:calc(78px + env(safe-area-inset-bottom))}.rn-ai-launcher{width:50px;height:50px;min-height:50px;justify-content:center;padding:0;border-radius:50%}.rn-ai-launcher span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.rn-ai-launcher svg{width:22px;height:22px}.rn-ai-panel{position:fixed;inset:auto 8px calc(70px + env(safe-area-inset-bottom));width:auto;height:min(620px,calc(100dvh - 95px));min-height:340px;border-radius:18px}.rn-ai-quick-actions{gap:5px;padding:7px 9px}.rn-ai-quick-actions a,.rn-ai-quick-actions button{font-size:9px;padding:6px 8px}.rn-ai-notice{font-size:9px}}
@media(prefers-reduced-motion:reduce){.rn-ai-launcher,.rn-ai-thread{transition:none;scroll-behavior:auto}}
/* Mobile chat uses a full-height shell so the transcript keeps meaningful space. */
.rn-ai-panel{height:min(700px,calc(100dvh - 64px));min-height:440px;max-height:calc(100dvh - 32px)}
.rn-ai-thread{min-height:120px;overscroll-behavior:contain}
.rn-ai-notice{flex:0 0 auto}
.rn-ai-quick-actions{flex:0 0 auto;align-content:flex-start}
.rn-ai-quick-actions[hidden],.rn-ai-options-toggle[hidden]{display:none}
.rn-ai-options-toggle{align-self:flex-start;margin:7px 12px 0;padding:6px 10px;border:1px solid #dce8e5;border-radius:999px;background:#f7fbfa;color:#2d5e5a;font:500 10px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
@media(max-width:680px){
 .rn-ai-widget{right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom))}
 .rn-ai-panel{position:fixed;inset:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));width:auto;height:auto;min-height:0;max-height:none;border-radius:18px}
 .rn-ai-head{min-height:58px;padding:10px 12px;flex:0 0 auto}
 .rn-ai-notice{max-height:48px;overflow:auto;padding:7px 11px;font-size:9px;line-height:1.35}
 .rn-ai-thread{flex:1 1 auto;min-height:100px;padding:10px;scroll-padding-block:10px}
 .rn-ai-message{font-size:13px}
 .rn-ai-quick-actions{max-height:96px;overflow:auto;gap:5px;padding:7px 9px;overscroll-behavior:contain}
 .rn-ai-quick-actions a,.rn-ai-quick-actions button{min-height:32px;font-size:10px;padding:6px 9px}
 .rn-ai-compose{flex:0 0 auto;padding:8px 10px}
 .rn-ai-compose textarea{min-height:38px;padding:9px 10px}
 .rn-ai-options-toggle{margin:6px 9px 0}
}
.rn-ai-thread,.rn-ai-quick-actions{scrollbar-width:thin;scrollbar-color:#a8c1bd transparent}
.rn-ai-thread::-webkit-scrollbar,.rn-ai-quick-actions::-webkit-scrollbar{width:5px;height:5px}
.rn-ai-thread::-webkit-scrollbar-thumb,.rn-ai-quick-actions::-webkit-scrollbar-thumb{border-radius:10px;background:#a8c1bd}
@media(max-width:680px) and (max-height:560px){
 .rn-ai-head{min-height:50px;padding:8px 10px}
 .rn-ai-notice{max-height:38px;padding:5px 9px;font-size:8px}
 .rn-ai-thread{min-height:70px;padding:8px}
 .rn-ai-quick-actions{max-height:74px;padding:5px 8px}
 .rn-ai-compose{padding:6px 8px}
 .rn-ai-compose textarea,.rn-ai-compose button{min-height:36px;height:36px}
}
.rn-ai-new-chat{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:1px solid #ffffff30;border-radius:9px;background:#ffffff12;color:#fff;cursor:pointer}.rn-ai-new-chat svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.rn-ai-new-chat:hover{background:#ffffff22}.rn-ai-new-chat:disabled{opacity:.55;cursor:wait}
