.edubot,.edubot *{box-sizing:border-box}
.edubot{--eb-primary:#212237;--eb-accent:#9c4815;--eb-bg:#faf6f1;--eb-line:#e0d6ca;position:fixed;bottom:20px;z-index:99990;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:#1d1d29}
.edubot--right{right:20px}.edubot--left{left:20px}
.edubot :focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.edubot-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.edubot-fab{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 22px 0 18px;border:0;border-radius:32px;background:var(--eb-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 8px 26px rgba(33,34,55,.35)}
.edubot-fab:hover{filter:brightness(.88)}
.edubot-fab svg{width:26px;height:26px;flex:0 0 auto}
.edubot.is-open .edubot-fab{display:none}
.edubot-panel{position:absolute;bottom:0;width:400px;max-width:calc(100vw - 24px);height:min(640px,calc(100vh - 40px));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 var(--eb-line)}
.edubot--right .edubot-panel{right:0}.edubot--left .edubot-panel{left:0}
.edubot-panel[hidden]{display:none}
.edubot-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--eb-primary);color:#fff;padding:12px 12px 12px 16px}
.edubot-brand{display:flex;align-items:center;gap:10px;min-width:0}
.edubot-logo{width:40px;height:40px;flex:0 0 auto;border-radius:50%;object-fit:cover;background:#fff;border:2px solid rgba(255,255,255,.85)}
.edubot-titles{min-width:0}
.edubot-titles h2,.edubot-titles p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edubot-expand svg:last-child,.edubot.is-expanded .edubot-expand svg:first-child{display:none}
.edubot.is-expanded .edubot-expand svg:last-child{display:block}
.edubot.is-expanded .edubot-panel{width:min(820px,calc(100vw - 40px));height:calc(100vh - 40px)}
.edubot.is-expanded .edubot-m{max-width:80%}
.edubot-panel{transition:width .2s ease,height .2s ease}
.edubot-head h2{margin:0;font-size:19px;line-height:1.2;color:#fff;font-weight:700}
.edubot-head p{margin:2px 0 0;font-size:14.5px;color:#e5e0d8}
.edubot-tools{display:flex;gap:4px;flex:0 0 auto}
.edubot-icon{width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.edubot-icon:hover{background:rgba(255,255,255,.26)}
.edubot-icon svg{width:22px;height:22px}
.edubot-icon[aria-pressed="true"]{background:#fff;color:var(--eb-primary)}
.edubot.is-speaking .edubot-icon[aria-pressed="true"]{animation:edubot-pulse 1.2s infinite}
.edubot-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--eb-bg)}
.edubot-m{max-width:90%;padding:11px 14px;border-radius:14px;word-wrap:break-word}
.edubot-text{white-space:pre-wrap}
.edubot-m--bot{align-self:flex-start;background:#fff;border:1px solid var(--eb-line);border-bottom-left-radius:4px}
.edubot-m--me{align-self:flex-end;background:var(--eb-accent);color:#fff;border-bottom-right-radius:4px}
.edubot-m--crisis{border:2px solid #b42318;background:#fff4f4;color:#4a1b1b}
.edubot-links{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:10px}
.edubot-btn{display:inline-block;padding:10px 14px;min-height:44px;line-height:1.3;border-radius:8px;background:var(--eb-primary);color:#fff!important;text-decoration:none!important;font-weight:600;border:0;cursor:pointer;font:inherit}
.edubot-btn:hover{filter:brightness(1.25)}
.edubot-btn--go{background:var(--eb-accent)}
.edubot-btn--crisis{background:#b42318;margin-top:10px}
.edubot-steps{margin:10px 0 0 20px;padding:0}
.edubot-steps li{margin:4px 0}
.edubot-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px;background:var(--eb-bg)}
.edubot-chips[hidden]{display:none}
.edubot-chips button{min-height:44px;padding:8px 14px;border:1px solid #8a7f72;border-radius:22px;background:#fff;color:var(--eb-primary);font:inherit;font-weight:600;font-size:16px;line-height:1.2;cursor:pointer;text-align:left}
.edubot-chips button:hover{background:var(--eb-primary);color:#fff}
.edubot-form{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--eb-line);background:#fff}
.edubot-form textarea{flex:1;min-height:46px;max-height:120px;resize:none;padding:11px 12px;border:1px solid #8a7f72;border-radius:10px;font:inherit;color:inherit;background:#fff}
.edubot-mic{width:46px;height:46px;flex:0 0 auto;border:1px solid #8a7f72;border-radius:50%;background:#fff;color:var(--eb-primary);cursor:pointer;display:flex;align-items:center;justify-content:center}
.edubot-mic svg{width:22px;height:22px}
.edubot.is-recording .edubot-mic{background:#b42318;border-color:#b42318;color:#fff;animation:edubot-pulse 1.2s infinite}
.edubot-send{min-height:46px;padding:0 18px;border:0;border-radius:10px;background:var(--eb-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.edubot-send:disabled{opacity:.6;cursor:wait}
.edubot-status{margin:0;padding:0 14px;font-size:14.5px;color:#4a4a5a;background:#fff;min-height:0}
.edubot-status:not(:empty){padding:6px 14px}
.edubot-note{margin:0;padding:8px 14px 12px;font-size:13.5px;color:#55556a;background:#fff;line-height:1.4}
.edubot-typing{align-self:flex-start;display:flex;gap:5px;padding:14px 16px;background:#fff;border:1px solid var(--eb-line);border-radius:14px}
.edubot-typing i{width:8px;height:8px;border-radius:50%;background:#8a7f72;animation:edubot-dot 1.2s infinite}
.edubot-typing i:nth-child(3){animation-delay:.2s}.edubot-typing i:nth-child(4){animation-delay:.4s}
.edubot-contact{margin-top:10px;padding:12px;border:1px solid var(--eb-line);border-radius:10px;background:var(--eb-bg);display:flex;flex-direction:column;gap:8px}
.edubot-contact__title{margin:0;font-weight:700}
.edubot-field{display:flex;flex-direction:column;gap:3px;font-size:15px}
.edubot-field input,.edubot-field textarea{padding:9px 10px;border:1px solid #8a7f72;border-radius:8px;font:inherit;background:#fff;color:inherit}
.edubot-field textarea{min-height:70px;resize:vertical}
.edubot-consent{font-size:14.5px;display:flex;gap:6px;align-items:flex-start}
.edubot-consent input{margin-top:4px;width:18px;height:18px}
.edubot-contact__msg{margin:0;font-size:14.5px}
.edubot-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
@keyframes edubot-dot{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes edubot-pulse{0%,100%{box-shadow:0 0 0 0 rgba(180,35,24,.45)}50%{box-shadow:0 0 0 8px rgba(180,35,24,0)}}
@media (prefers-reduced-motion:reduce){.edubot *{animation:none!important;transition:none!important}}
@media (max-width:640px){
.edubot{bottom:12px}.edubot--right{right:12px}.edubot--left{left:12px}
.edubot.is-open{inset:0;bottom:0;right:0;left:0}
.edubot .edubot-panel,.edubot.is-expanded .edubot-panel{position:fixed;inset:0;width:100vw;max-width:100vw;height:100vh;height:100dvh;border-radius:0;border:0;padding-bottom:env(safe-area-inset-bottom)}
.edubot-head{padding-top:max(12px,env(safe-area-inset-top))}
.edubot-expand{display:none!important}
.edubot-form textarea{font-size:16px}
.edubot-m,.edubot.is-expanded .edubot-m{max-width:92%}
}
html.edubot-lock,html.edubot-lock body{overflow:hidden!important;overscroll-behavior:none}
@media print{.edubot{display:none}}
