/* Own brand surfaces; the existing shared launcher and behavior stay intact. */
#ssch-root .ssch-panel{border-color:var(--portal-line,#dadfdc)}
#ssch-root .ssch-message:not(.ssch-mine) .ssch-bubble{background:var(--portal-soft,#f2f5f3)}
body.portal-site #ssch-root .ssch-panel{max-width:calc(100% - 48px)}
@media(max-width:650px){body.portal-site #ssch-root .ssch-panel{max-width:calc(100% - 24px)}}
@media(min-width:1025px){body.portal-site #ssch-root .ssch-panel{max-height:calc(100dvh - var(--portal-header-height,78px) - var(--ssch-bottom,24px) - 70px)}}
@media(min-width:1025px) and (max-height:700px){body.portal-site #ssch-root .ssch-panel{max-height:calc(100dvh - var(--portal-header-height,78px) - 24px)}}

/* Statystyka: match the portal palette and keep the launcher unobtrusive. */
body.sl-site #ssch-root{--ssch-blue:var(--sl-teal,#126a5a);--ssch-ink:var(--sl-ink,#102c2a);--ssch-muted:var(--sl-muted,#526660);--ssch-line:var(--sl-line,#d9e0d7);font-family:var(--sl-font,Manrope,system-ui,sans-serif)}
body.sl-site #ssch-root .ssch-launch,body.sl-site #ssch-root .ssch-send{background:var(--sl-teal,#126a5a);color:#fff}
body.sl-site #ssch-root .ssch-launch{box-shadow:0 6px 20px #126a5a38;transition:background .18s,box-shadow .18s}
body.sl-site #ssch-root .ssch-launch:hover,body.sl-site #ssch-root .ssch-send:hover{background:#0d5448;box-shadow:0 8px 24px #126a5a48}
body.sl-site #ssch-root .ssch-launch.ssch-has-unread{box-shadow:0 0 0 3px #fff,0 0 0 5px #e51645,0 8px 24px #126a5a40}
body.sl-site #ssch-root .ssch-mine .ssch-bubble{background:var(--sl-teal,#126a5a);color:#fff}
body.sl-site #ssch-root .ssch-avatar{background:var(--sl-soft,#eaf0e6);color:var(--sl-ink,#102c2a)}
body.sl-site #ssch-root :focus-visible{outline-color:var(--sl-teal,#126a5a)}
/* Same compact geometry as StudentSupport, with one portal-owned visual state. */
body.sl-site #ssch-root.sl-chat-menu-open .ssch-launch{display:none}
body.sl-site #ssch-root.sl-chat-compact .ssch-launch{width:72px;min-height:72px;height:72px;padding:17px;gap:0;border-radius:50%}
body.sl-site #ssch-root.sl-chat-compact .ssch-launch>span:not(.ssch-badge){display:none}
body.sl-site #ssch-root.sl-chat-compact .ssch-launch-icon{width:38px;height:38px}
body.sl-site #ssch-root.sl-chat-compact .ssch-launch .ssch-badge{position:absolute;top:-7px;right:-7px;min-width:24px;height:24px;padding:0 5px}
@media(prefers-reduced-motion:reduce){body.sl-site #ssch-root .ssch-launch{transition:none}}
