.sg-chat{--chat-blue:#0a65ad;--chat-green:#0b6b1e;--chat-ink:#112637;--chat-line:#d5e4eb}
.sg-chat-launch{position:fixed;right:18px;bottom:18px;z-index:8;display:flex;align-items:center;gap:7px;border:0;border-radius:999px;background:var(--chat-blue);color:white;padding:9px 13px 9px 9px;font-weight:750;box-shadow:0 4px 20px #17374544;min-height:47px}
.sg-chat-launch[hidden]{display:none}
.sg-chat-launch img,.sg-chat-heading img{border-radius:50%;background:#fff;flex:none}
.sg-chat-panel{position:fixed;inset:auto 18px 18px auto;margin:0;width:min(398px,calc(100vw - 36px));height:min(650px,calc(100dvh - 36px));max-width:none;max-height:none;border:1px solid var(--chat-line);border-radius:17px;padding:0;background:#fff;color:var(--chat-ink);box-shadow:0 14px 54px #17374555;overflow:hidden}
.sg-chat-panel[open]{display:flex;flex-direction:column}
.sg-chat-panel::backdrop{background:#11263730}
.sg-chat-heading{display:flex;align-items:center;gap:11px;padding:12px 14px;background:#eef8fb;border-bottom:1px solid var(--chat-line)}
.sg-chat-heading h2{font-size:1.05rem;letter-spacing:0}
.sg-chat-heading p{font-size:.83rem;color:#345361}
.sg-chat-close{margin-left:auto;border:0;border-radius:7px;background:transparent;color:var(--chat-ink);font-size:26px;min-width:44px;min-height:44px}
.sg-chat-close:hover{background:#dceef5}
.sg-chat-log{padding:13px;min-height:70px;flex:1;overflow:auto;overscroll-behavior:contain}
.sg-chat-message{width:fit-content;max-width:92%;padding:8px 11px;margin:0 0 8px;border-radius:12px;overflow-wrap:anywhere;white-space:pre-wrap;background:#eef5f8;font-size:.94rem;line-height:1.45}
.sg-chat-user{margin-left:auto;background:#e1f1e6;color:#103719}
.sg-chat-actions{padding:0 12px;display:flex;flex-wrap:wrap;gap:6px;max-height:43%;overflow:auto}
.sg-chat-actions button{border:1px solid #a7c5d6;background:white;border-radius:8px;color:#075482;padding:6px 8px;min-height:38px;font-weight:700;font-size:.84rem}
.sg-chat-actions button:hover{background:#eef8fb}
.sg-chat-confirm{width:100%;padding:10px;border:1px solid #b7d4bc;border-radius:9px;background:#f3faf4;overflow-wrap:anywhere}
.sg-chat-confirm h3{font-size:1rem;margin-bottom:6px}
.sg-chat-confirm dl{font-size:.87rem;margin:0 0 8px}
.sg-chat-confirm dl div{display:flex;gap:6px}
.sg-chat-confirm dt{font-weight:750;flex:none}
.sg-chat-confirm dd{margin:0;min-width:0}
.sg-chat-confirm button{margin-right:5px}
.sg-chat-confirm button:first-of-type{background:var(--chat-green);color:white;border-color:var(--chat-green)}
.sg-chat-form{padding:6px 12px 0;display:flex;align-items:flex-end;gap:6px;border:0;border-radius:0;box-shadow:none}
.sg-chat-form textarea{margin:0;min-height:44px;font-size:16px;resize:none}
.sg-chat-send{min-height:44px;border:0;border-radius:8px;background:var(--chat-blue);color:white;padding:5px 12px;font-weight:750}
.sg-chat-status,.sg-chat-note{padding:0 12px;font-size:.8rem;color:#345361}
.sg-chat-status:not(:empty){padding-top:5px}
.sg-chat-note{padding-bottom:10px;padding-top:4px}
.sg-chat-note a{font-weight:700}
.sg-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){
  .sg-chat-launch{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
  .sg-chat-panel{inset:0;width:100%;height:100dvh;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
  .sg-chat-actions button{min-height:44px}
}
.sg-chat-intake label{display:block;margin:4px 0 7px;font-weight:700;font-size:.86rem}
.sg-chat-intake input,.sg-chat-intake textarea,.sg-chat-intake select{font-size:16px;margin-top:2px}
.sg-chat-intake textarea{resize:vertical;min-height:64px}
