/* Scoped floating Britanica AI support widget. */
.support-widget{position:fixed;bottom:22px;right:24px;z-index:1100;font-family:inherit;color:#292638}
.support-toggle{border:0;background:#6950b9;color:white;box-shadow:0 8px 28px #251b5c38;border-radius:999px;padding:13px 18px;display:flex;gap:8px;align-items:center;font-size:14px;font-weight:700;cursor:pointer}
.support-toggle:hover,.support-send:hover{background:#563c9f}
.support-panel{position:absolute;right:0;bottom:60px;width:min(370px,calc(100vw - 28px));height:min(580px,calc(100dvh - 110px));background:#fff;border:1px solid #e9e4f2;border-radius:17px;box-shadow:0 15px 65px #1d163a3a;overflow:hidden;display:flex;flex-direction:column}
.support-panel[hidden]{display:none}
.support-header{padding:16px 17px;display:flex;justify-content:space-between;align-items:center;background:#f5f1fd;border-bottom:1px solid #e8e2f3}
.support-header strong{display:block;font-size:15px;color:#352758}
.support-header small{display:block;font-size:11px;color:#766c89;margin-top:3px}
.support-header button{border:0;background:transparent;font-size:24px;cursor:pointer;color:#68577e;line-height:1;padding:4px 8px}
.support-quota{font-size:12px;padding:9px 16px;border-bottom:1px solid #eee9f4;color:#605178;background:#fcfbfe}
.support-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:11px;scroll-behavior:smooth}
.support-message{max-width:92%;padding:11px 13px;border-radius:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.support-assistant{align-self:flex-start;background:#f2eff8;color:#352e47;border-bottom-left-radius:4px}
.support-user{align-self:flex-end;background:#7055bc;color:#fff;border-bottom-right-radius:4px}
.support-form{padding:12px 13px 14px;border-top:1px solid #eee9f4;background:#fff;display:flex;flex-direction:column;gap:8px}
.support-label{font-size:12px;font-weight:700;color:#54466e}
.support-form textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:62px;max-height:130px;border:1px solid #dcd4e9;border-radius:9px;padding:10px 11px;font:inherit;font-size:13px;line-height:1.4;color:#292638;background:#fff}
.support-form textarea:focus{outline:2px solid #9a83e0;outline-offset:1px}
.support-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.support-actions a{font-size:12px;color:#6243ad;text-decoration:none}
.support-send{border:0;border-radius:9px;background:#7055bc;color:#fff;padding:9px 15px;font-size:13px;font-weight:700;cursor:pointer}
.support-send:disabled{opacity:.55;cursor:not-allowed}
.support-hint{font-size:11px;color:#776f84}
@media(max-width:600px){.support-widget{right:12px;bottom:12px}.support-panel{bottom:56px;width:calc(100vw - 24px);height:min(620px,calc(100dvh - 95px))}.support-toggle{padding:12px 14px}}

/* Draft 4 support assistant */
.support-toggle{background:linear-gradient(125deg,#5A5AED,#810F39);box-shadow:0 14px 32px #1b236449;transition:transform .25s ease,box-shadow .25s ease}
.support-toggle:hover{transform:translateY(-4px);box-shadow:0 18px 36px #1b236455}
.support-widget{color:var(--ink)}
:root[data-theme="dark"] .support-widget{color:#f9faff}
@media(prefers-reduced-motion:reduce){.support-toggle{transition:none}}
