.aqsa-tutor-launch,.aqsa-tutor-panel,.aqsa-tutor-panel *{box-sizing:border-box}
.aqsa-tutor-launch{position:fixed;z-index:1000;right:22px;bottom:22px;display:flex;align-items:center;gap:9px;min-height:48px;padding:0 18px;border:1px solid #0b6249;border-radius:999px;background:#087451;color:#fff;font:700 14px/1.2 inherit;box-shadow:0 8px 24px #0b3e2c35;cursor:pointer}
.aqsa-tutor-launch span:first-child{font-size:19px;line-height:1}
.aqsa-tutor-launch:hover{background:#075f43;transform:translateY(-2px)}
.aqsa-tutor-launch:focus-visible,.aqsa-tutor-panel button:focus-visible,.aqsa-tutor-panel textarea:focus-visible{outline:3px solid #d5a64b;outline-offset:3px}
.aqsa-tutor-panel{position:fixed;z-index:1001;right:22px;bottom:82px;display:flex;width:min(390px,calc(100vw - 28px));height:min(620px,calc(100dvh - 112px));min-height:360px;flex-direction:column;overflow:hidden;border:1px solid #d6e3d7;border-radius:20px;background:#fffdf8;color:#163d33;font-family:inherit;box-shadow:0 18px 52px #103a2b33}
.aqsa-tutor-panel[hidden]{display:none}
.aqsa-tutor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#0c5d45;color:#fff}
.aqsa-tutor-head strong,.aqsa-tutor-head small{display:block}
.aqsa-tutor-head strong{font-size:16px}
.aqsa-tutor-head small{margin-top:4px;color:#d7e9df;font-size:11px}
.aqsa-tutor-close{display:grid;width:34px;height:34px;place-items:center;border:1px solid #ffffff55;border-radius:50%;background:#ffffff15;color:#fff;font-size:23px;cursor:pointer}
.aqsa-tutor-intro{padding:12px 16px 6px;color:#5a7065;font-size:12px;line-height:1.55}
.aqsa-tutor-suggestions{display:flex;gap:7px;overflow-x:auto;padding:5px 14px 12px}
.aqsa-tutor-chip{flex:0 0 auto;max-width:100%;padding:7px 10px;border:1px solid #d7e6d9;border-radius:999px;background:#f3f8f0;color:#286447;font:600 11px/1.2 inherit;cursor:pointer;white-space:nowrap}
.aqsa-tutor-chip:hover{background:#e7f1e7}
.aqsa-tutor-chip:disabled{opacity:.55;cursor:wait}
.aqsa-tutor-messages{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;overflow-y:auto;padding:14px;background:linear-gradient(180deg,#faf9ef,#f5f7ef)}
.aqsa-tutor-message{max-width:90%;padding:10px 12px;border:1px solid #e2e9df;border-radius:14px;background:#fff;color:#263f35;font-size:13px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}
.aqsa-tutor-message.is-user{align-self:flex-end;border-color:#12684c;background:#12684c;color:#fff;border-bottom-right-radius:5px}
.aqsa-tutor-message.is-tutor{align-self:flex-start;border-bottom-left-radius:5px}
.aqsa-tutor-message.is-pending{color:#68776c;font-style:italic}
.aqsa-tutor-message.is-error{border-color:#eed4c7;background:#fff5f0;color:#8b4933;font-style:normal}
.aqsa-tutor-form{display:grid;gap:8px;padding:12px 14px 8px;border-top:1px solid #e4e9dc;background:#fff}
.aqsa-tutor-label{font-size:11px;font-weight:700;color:#52705f}
.aqsa-tutor-form textarea{width:100%;min-height:58px;max-height:110px;resize:vertical;padding:10px 12px;border:1px solid #d4dfd6;border-radius:11px;background:#fff;color:#153e30;font:13px/1.5 inherit}
.aqsa-tutor-send{justify-self:end;min-height:38px;padding:8px 14px;border:1px solid #0b6249;border-radius:9px;background:#087451;color:#fff;font:700 12px/1.2 inherit;cursor:pointer}
.aqsa-tutor-send:disabled{opacity:.6;cursor:wait}
.aqsa-tutor-privacy{margin:0;padding:0 14px 12px;background:#fff;color:#667469;font-size:11px;line-height:1.45}
@media(max-width:600px){.aqsa-tutor-launch{right:14px;bottom:14px;min-height:46px;padding:0 15px}.aqsa-tutor-panel{right:8px;bottom:70px;width:calc(100vw - 16px);height:min(68dvh,590px);min-height:340px;border-radius:18px}}
@media(prefers-reduced-motion:reduce){.aqsa-tutor-launch{transition:none}}
