.ebot,.ebot *{box-sizing:border-box}
.ebot{--n:#212237;--b:#9c4815;--ink:#212237;font-family:"Source Sans 3","Source Sans Pro",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.5;color:var(--ink);position:fixed;right:20px;bottom:20px;z-index:99990}
.ebot-fab{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 22px 0 18px;border:0;border-radius:32px;background:var(--b);color:#fff;font-family:inherit;font-weight:700;font-size:17px;line-height:1;cursor:pointer;box-shadow:0 8px 26px rgba(33,34,55,.35)}
.ebot-fab:hover{background:#7a370f}
.ebot-fab svg{width:26px;height:26px;flex:0 0 auto}
.ebot :focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.ebot-panel{position:absolute;right:0;bottom:70px;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 18px 60px rgba(33,34,55,.35);overflow:hidden;border:1px solid #e0d6ca}
.ebot-panel[hidden]{display:none}
.ebot-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--n);color:#fff;padding:14px 16px}
.ebot-head h2{margin:0;font-size:19px;line-height:1.2;color:#fff;font-weight:700}
.ebot-head p{margin:2px 0 0;font-size:15px;color:#e5e0d8}
.ebot-x svg{width:22px;height:22px;display:block;margin:auto}
.ebot-x{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.ebot-x:hover{background:rgba(255,255,255,.28)}
.ebot-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:#faf6f1}
.ebot-m{max-width:88%;padding:11px 14px;border-radius:14px;font-size:17px;white-space:pre-wrap;word-wrap:break-word}
.ebot-m.bot{align-self:flex-start;background:#fff;border:1px solid #e0d6ca;border-bottom-left-radius:4px}
.ebot-m.me{align-self:flex-end;background:var(--b);color:#fff;border-bottom-right-radius:4px}
.ebot-m.crisis{border:2px solid #b42318;background:#fff4f4;color:#4a1b1b}
.ebot-m a{color:var(--b);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ebot-m.crisis a{color:#8a1f1f}
.ebot-link{display:inline-block;margin-top:8px;padding:10px 14px;min-height:44px;line-height:1.3;border-radius:6px;background:var(--n);color:#fff!important;text-decoration:none!important}
.ebot-links{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:8px}
.ebot-links .ebot-link{margin-top:0}
.ebot-link:hover{background:#0f1020}
.ebot-chips[hidden]{display:none}
.ebot-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px;background:#faf6f1}
.ebot-chips button{min-height:44px;padding:8px 14px;border:1px solid #8a7f72;border-radius:22px;background:#fff;color:var(--n);font-family:inherit;font-weight:600;font-size:16.5px;line-height:1.2;cursor:pointer}
.ebot-chips button:hover{background:var(--n);color:#fff}
.ebot-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e0d6ca;background:#fff}
.ebot-form input{flex:1;min-width:0;min-height:48px;padding:0 14px;border:1px solid #8a7f72;border-radius:8px;font:inherit;font-size:17px;color:var(--ink)}
.ebot-form button{min-height:48px;padding:0 18px;border:0;border-radius:8px;background:var(--b);color:#fff;font-family:inherit;font-weight:700;font-size:17px;line-height:1;cursor:pointer}
.ebot-form button:hover{background:#7a370f}
.ebot-note{margin:0;padding:8px 14px 12px;font-size:14.5px;line-height:1.4;color:#5a5148;background:#fff}
.ebot-note a{color:var(--b);font-weight:700}
.ebot-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ebot-typing{align-self:flex-start;color:#5a5148;font-size:16px;font-style:italic}
@media (max-width:760px){
	.ebot{right:12px;bottom:76px}
	.ebot-panel{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-width:none;height:min(84vh,640px)}
	.ebot-fab span{display:none}.ebot-fab{padding:0 16px}
}
@media (prefers-reduced-motion:no-preference){.ebot-panel{animation:ebotin .18s ease-out}@keyframes ebotin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}
@media (forced-colors:active){.ebot-fab,.ebot-panel,.ebot-m,.ebot-chips button{border:2px solid ButtonText}}
@media print{.ebot{display:none}}
