/* Site chat widget styles (site-chat-kit). Brand color comes from data-color via --sc-brand. */
.sc-root{--sc-brand:#1f6feb;--sc-on-brand:#fff;--sc-bg:#ffffff;--sc-fg:#14171c;--sc-muted:#4a5361;--sc-line:#c9d1dc;
  position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:2147483000;
  font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--sc-fg)}
.sc-root *{box-sizing:border-box}
.sc-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}
.sc-launch{display:inline-flex;align-items:center;gap:.5em;min-height:48px;padding:.7em 1.1em;border:2px solid transparent;border-radius:999px;
  background:var(--sc-brand);color:var(--sc-on-brand);font:inherit;font-weight:600;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.28)}
.sc-launch:hover{filter:brightness(1.06)}
.sc-root :focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.sc-open .sc-launch{display:none}
.sc-panel{position:fixed;inset:auto 0 0 0;width:100%;height:min(88vh,640px);display:flex;flex-direction:column;background:var(--sc-bg);
  border-top-left-radius:16px;border-top-right-radius:16px;box-shadow:0 -8px 30px rgba(0,0,0,.35);overflow:hidden}
.sc-panel[hidden]{display:none}
.sc-head{display:flex;align-items:center;justify-content:space-between;gap:.5em;padding:.7em .9em;background:var(--sc-brand);color:var(--sc-on-brand)}
.sc-title{margin:0;font-size:1.05rem;font-weight:700;line-height:1.3;color:inherit}
.sc-close{min-width:44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:1.7rem;line-height:1;cursor:pointer}
.sc-note{margin:0;padding:.55em .9em;font-size:.86rem;color:var(--sc-muted);background:#f3f5f8;border-bottom:1px solid var(--sc-line)}
.sc-note a,.sc-msg a{color:#0b4fb3;text-decoration:underline}
.sc-log{flex:1;overflow-y:auto;padding:.9em;display:flex;flex-direction:column;gap:.6em;background:var(--sc-bg)}
.sc-msg{max-width:88%;padding:.6em .8em;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.sc-assistant{align-self:flex-start;background:#eef1f5;color:var(--sc-fg);border-bottom-left-radius:4px}
.sc-user{align-self:flex-end;background:#1d2733;color:#fff;border-bottom-right-radius:4px}
.sc-user a{color:#cfe3ff}
.sc-wait{color:var(--sc-muted);font-style:italic}
.sc-form{display:flex;gap:.5em;padding:.7em;border-top:1px solid var(--sc-line);background:var(--sc-bg)}
.sc-input{flex:1;min-height:48px;max-height:140px;resize:vertical;padding:.6em .7em;border:1px solid #7a8594;border-radius:10px;font:inherit;color:var(--sc-fg);background:#fff}
.sc-send{min-width:72px;min-height:48px;border:0;border-radius:10px;background:var(--sc-brand);color:var(--sc-on-brand);font:inherit;font-weight:600;cursor:pointer}
.sc-send:disabled{opacity:.6;cursor:wait}
@media (min-width:600px){
  .sc-panel{inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto;width:380px;height:min(80vh,600px);border-radius:16px}
}
@media (prefers-reduced-motion:no-preference){.sc-launch{transition:filter .15s}}
@media (forced-colors:active){.sc-launch,.sc-send{border:2px solid ButtonText}.sc-msg{border:1px solid CanvasText}}
@media print{.sc-root{display:none}}
