#scl-chat-root{position:fixed;right:22px;bottom:22px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#1f2937}
.scl-launcher{position:relative;isolation:isolate;box-sizing:border-box;min-width:212px;height:66px;padding:8px 12px 8px 9px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:linear-gradient(135deg,#071426 0%,#0b2343 54%,#0d315b 100%);color:#fff;display:flex;align-items:center;gap:11px;overflow:visible;box-shadow:0 18px 45px rgba(4,18,38,.3),0 5px 14px rgba(4,18,38,.2),inset 0 1px 0 rgba(255,255,255,.13);cursor:pointer;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent;transition:box-shadow .22s ease,filter .22s ease,border-color .22s ease}
.scl-launcher:before{content:"";position:absolute;z-index:0;inset:1px;border-radius:18px;background:radial-gradient(circle at 18% 0%,rgba(92,164,255,.24),transparent 44%),linear-gradient(115deg,rgba(255,255,255,.055),transparent 42%);pointer-events:none}
.scl-launcher:hover{filter:brightness(1.07);border-color:rgba(255,255,255,.26);box-shadow:0 22px 56px rgba(4,18,38,.36),0 7px 18px rgba(4,18,38,.22),inset 0 1px 0 rgba(255,255,255,.16)}
.scl-launcher:focus-visible{outline:3px solid rgba(59,130,246,.34);outline-offset:4px}
.scl-launcher-icon{position:relative;z-index:1;width:46px;height:46px;flex:0 0 46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 7px 16px rgba(0,0,0,.16)}
.scl-launcher-icon svg{width:23px;height:23px;display:block;fill:#fff;filter:drop-shadow(0 2px 3px rgba(0,0,0,.18))}.scl-launcher-icon svg[hidden]{display:none!important}.scl-launcher-avatar{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border-radius:14px}.scl-launcher-avatar[hidden]{display:none!important}.scl-launcher-icon.has-avatar{background:#0b1d36;overflow:visible}
.scl-launcher-presence-dot{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border:3px solid #0a213f;border-radius:50%;box-sizing:content-box;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.12)}
.scl-launcher-copy{position:relative;z-index:1;min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:4px;line-height:1}
.scl-launcher-title{display:block;color:#fff;font-size:15px;font-weight:760;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.14)}
.scl-launcher-subtitle{display:block;color:rgba(255,255,255,.72);font-size:11px;font-weight:520;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scl-launcher-chevron{position:relative;z-index:1;width:18px;flex:0 0 18px;color:rgba(255,255,255,.62);font-size:25px;font-weight:300;line-height:1;text-align:center;transition:color .2s ease,transform .2s ease}
.scl-launcher:hover .scl-launcher-chevron{color:#fff;transform:translateX(2px)}
.scl-launcher.is-online .scl-launcher-presence-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.14)}
.scl-launcher.is-away .scl-launcher-presence-dot{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.14)}
.scl-launcher.is-busy .scl-launcher-presence-dot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.14)}
.scl-launcher.is-offline .scl-launcher-presence-dot{background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.12)}
.scl-launcher.is-online .scl-launcher-presence-dot:after{content:"";position:absolute;inset:-5px;border:1px solid rgba(34,197,94,.54);border-radius:50%;animation:scl-launcher-pulse 2.3s ease-out infinite}
@keyframes scl-launcher-pulse{0%{opacity:.72;transform:scale(.62)}70%,100%{opacity:0;transform:scale(1.5)}}
@media(prefers-reduced-motion:reduce){.scl-launcher,.scl-launcher-chevron{transition:none}.scl-launcher.is-online .scl-launcher-presence-dot:after{animation:none}}
.scl-window{position:absolute;right:0;bottom:68px;width:390px;max-width:calc(100vw - 28px);height:620px;max-height:calc(100vh - 100px);display:block;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 22px 65px rgba(15,23,42,.28);border:1px solid #e3e7ee;transition:width .2s,height .2s,inset .2s,border-radius .2s}
.scl-window.is-fullscreen{position:fixed;inset:22px;width:auto;height:auto;max-width:none;max-height:none;border-radius:18px}.scl-chat-fullscreen-open{overflow:hidden!important}
.scl-window-head{height:82px;box-sizing:border-box;background:#111827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 16px}.scl-agent-profile{display:flex;align-items:center;gap:11px;min-width:0}.scl-agent-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:none;background:#334155;color:#fff;font-weight:750;font-size:17px;box-shadow:0 0 0 2px rgba(255,255,255,.16)}.scl-agent-avatar img{width:100%;height:100%;object-fit:cover}.scl-agent-avatar.is-fallback{background:linear-gradient(135deg,#2563eb,#334155)}.scl-agent-copy{display:flex;flex-direction:column;min-width:0}.scl-agent-name{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scl-agent-title{font-size:10px;opacity:.68;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scl-agent-presence{display:flex;align-items:center;gap:5px;margin-top:4px;min-width:0;font-size:9px}.scl-agent-presence i{width:7px;height:7px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 2px rgba(148,163,184,.18);flex:none}.scl-agent-presence b{font-weight:700;white-space:nowrap}.scl-agent-presence em{font-style:normal;opacity:.66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scl-agent-presence em:before{content:"·";margin-right:5px}.scl-agent-presence.is-online i{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.2)}.scl-agent-presence.is-away i{background:#f59e0b;box-shadow:0 0 0 2px rgba(245,158,11,.2)}.scl-agent-presence.is-busy i{background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,.2)}.scl-agent-presence.is-offline i{background:#94a3b8}
.scl-window-actions{display:flex;align-items:center;gap:4px;flex:none}.scl-fullscreen,.scl-close{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;line-height:1}.scl-fullscreen{font-size:20px}.scl-close{font-size:26px}.scl-fullscreen:hover,.scl-close:hover{background:rgba(255,255,255,.1)}
.scl-chat{height:calc(100% - 82px);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}.scl-translation-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #e7eaf0;background:#fff}.scl-translation-tools label{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px;color:#6b7280}.scl-translation-tools label span{white-space:nowrap}.scl-translate-lang{max-width:145px;height:31px;border:1px solid #d8dde5;border-radius:9px;background:#fff;color:#111827;font-size:11px;padding:0 7px}.scl-translate-chat{height:31px;border:1px solid #d8dde5;border-radius:9px;background:#fff;color:#1f2937;font-size:10px;font-weight:650;white-space:nowrap;padding:0 10px;cursor:pointer}.scl-translate-chat:hover{background:#f4f6f9}.scl-translate-chat:disabled,.scl-translate-one:disabled{opacity:.55;cursor:wait}
.scl-message-list{min-height:0;padding:17px 16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:linear-gradient(180deg,#f8fafc,#f4f7fb)}.scl-system{text-align:center;font-size:11px;color:#778190;margin:8px 14px 18px;line-height:1.5}.scl-msg{display:flex;margin:9px 0}.scl-msg.is-me{justify-content:flex-end}.scl-bubble{max-width:80%;border-radius:15px 15px 15px 5px;padding:10px 12px;background:#fff;border:1px solid #e7ebf0;box-shadow:0 2px 5px rgba(15,23,42,.05);overflow-wrap:anywhere}.scl-msg.is-me .scl-bubble{background:#111827;border-color:#111827;color:#fff;border-radius:15px 15px 5px 15px}.scl-bubble p{white-space:pre-wrap;margin:0;line-height:1.48;font-size:13px}.scl-msg-actions{display:flex;justify-content:flex-start;margin-top:7px}.scl-translate-one{border:0;background:transparent;color:#4b6fae;font-size:10px;font-weight:600;padding:2px 0;text-decoration:none;cursor:pointer}.scl-translate-one:hover{text-decoration:underline}.scl-client-translation{margin-top:8px;padding-top:8px;border-top:1px solid #e5e7eb}.scl-client-translation small{display:block;margin-bottom:4px;color:#6b7280;font-size:9px;font-weight:700}.scl-client-translation p{color:#111827;font-size:12px}.scl-bubble time{display:block;font-size:9px;opacity:.58;margin-top:6px}.scl-file img,.scl-file video{display:block;max-width:min(250px,100%);max-height:300px;border-radius:10px}.scl-window.is-fullscreen .scl-file img,.scl-window.is-fullscreen .scl-file video{max-width:min(520px,70vw);max-height:60vh}.scl-file a{color:inherit;word-break:break-word}
.scl-status{min-height:18px;padding:0 14px;font-size:10px;color:#64748b;background:#fff}.scl-status.is-error{color:#b91c1c}.scl-compose{padding:10px 12px 12px;border-top:1px solid #e6e9ef;background:#fff}.scl-compose textarea{box-sizing:border-box;width:100%;min-height:68px;border:1px solid #d6dce5;border-radius:11px;padding:11px 12px;font:inherit;font-size:13px;line-height:1.45;outline:none;resize:none}.scl-compose textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.14)}.scl-compose>div{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.scl-attach{cursor:pointer;color:#475569;font-size:11px;padding:8px}.scl-send{border:0;border-radius:9px;background:#111827;color:#fff;font-weight:650;padding:9px 17px;cursor:pointer}.scl-send:disabled{opacity:.55;cursor:wait}
@media(max-width:620px){#scl-chat-root{right:12px;bottom:12px}.scl-window{position:fixed;left:8px;right:8px;bottom:82px;width:auto;height:min(680px,calc(100vh - 96px));max-width:none;max-height:none}.scl-window.is-fullscreen{inset:0;border-radius:0}.scl-launcher{min-width:174px;height:60px;padding:7px 10px 7px 8px;border-radius:18px;gap:9px}.scl-launcher:before{border-radius:16px}.scl-launcher-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}.scl-launcher-title{font-size:14px}.scl-launcher-subtitle{font-size:10px;max-width:92px}.scl-launcher-chevron{width:14px;flex-basis:14px;font-size:22px}.scl-agent-presence em{display:none}.scl-translation-tools{padding:7px 8px}.scl-translation-tools label span{display:none}.scl-translate-lang{max-width:130px}.scl-translate-chat{padding:0 8px;font-size:9px}.scl-window-head{height:76px}.scl-chat{height:calc(100% - 76px)}}
@media(max-width:360px){.scl-launcher{min-width:158px}.scl-launcher-subtitle{max-width:76px}.scl-launcher-chevron{display:none}}
/* 0.5.0 customer notification sound */
.scl-window-actions .scl-sound-toggle{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;line-height:1;font-size:16px}
.scl-window-actions .scl-sound-toggle:hover{background:rgba(255,255,255,.1)}
.scl-window-actions .scl-sound-toggle.is-muted{opacity:.62}

/* 0.5.1 reliable minimize state and unread badge */
.scl-window[hidden]{display:none!important}
.scl-launcher-unread{position:absolute;z-index:3;top:-7px;right:-6px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:800;line-height:1;box-shadow:0 3px 10px rgba(239,68,68,.35)}
.scl-launcher-unread[hidden]{display:none!important}
.scl-launcher.has-unread{border-color:rgba(96,165,250,.48);box-shadow:0 20px 52px rgba(4,18,38,.36),0 0 0 5px rgba(59,130,246,.13),inset 0 1px 0 rgba(255,255,255,.16)}

/* 0.6.3 mobile launcher hardening: stay above sticky bars and theme overlays. */
#scl-chat-root[data-scl-widget="1"]{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:2147483000!important}
#scl-chat-root .scl-launcher{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
@media(max-width:620px){
  #scl-chat-root{right:max(12px,env(safe-area-inset-right))!important;bottom:max(14px,calc(env(safe-area-inset-bottom) + 10px))!important}
  #scl-chat-root .scl-launcher{height:60px!important;min-height:60px!important;min-width:174px!important;width:auto!important}
}


/* 0.6.9 customer notification mode menu */
#scl-chat-root .scl-alert-mode-menu{position:fixed;z-index:2147483647;min-width:205px;padding:7px;background:#fff;border:1px solid #dfe5ee;border-radius:13px;box-shadow:0 18px 48px rgba(15,23,42,.24);color:#172033}
#scl-chat-root .scl-alert-mode-menu[hidden]{display:none!important}
#scl-chat-root .scl-alert-mode-option{width:100%;display:grid;grid-template-columns:24px 1fr 18px;align-items:center;gap:9px;padding:10px;border:0;border-radius:9px;background:transparent;color:#172033;text-align:left;cursor:pointer;font:500 13px/1.25 inherit}
#scl-chat-root .scl-alert-mode-option:hover,#scl-chat-root .scl-alert-mode-option:focus{background:#f2f6fc;outline:none}
#scl-chat-root .scl-alert-mode-option.is-selected{background:#eaf2ff;color:#1455c0}
#scl-chat-root .scl-alert-mode-option b{font:inherit;color:inherit}
#scl-chat-root .scl-alert-mode-option i{font-style:normal;opacity:0}
#scl-chat-root .scl-alert-mode-option.is-selected i{opacity:1}
#scl-chat-root .scl-sound-toggle.is-vibrate-only{background:rgba(255,255,255,.12);opacity:1}

@media(max-width:360px){#scl-chat-root .scl-launcher{min-width:158px!important}.scl-launcher-subtitle{max-width:76px}.scl-launcher-chevron{display:none}}

/* 0.7.1 welcome bubble, emoji picker and message receipts */
.scl-msg.is-welcome .scl-bubble{border-color:#dce5f0;background:linear-gradient(180deg,#fff,#f9fbfe)}
.scl-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;min-height:12px}.scl-message-meta time{margin-top:0}.scl-receipt{font-size:9px;font-weight:600;white-space:nowrap;opacity:.72}.scl-receipt.is-read{color:#8ec5ff;opacity:1}.scl-msg.is-me .scl-receipt.is-delivered{color:#dbeafe}
.scl-compose{position:relative}.scl-compose-tools{display:flex;align-items:center;gap:3px}.scl-emoji-toggle{border:0;background:transparent;color:#475569;font-size:18px;line-height:1;padding:7px 8px;border-radius:8px;cursor:pointer}.scl-emoji-toggle:hover{background:#f1f5f9}.scl-emoji-panel{position:absolute;left:12px;bottom:54px;z-index:20;width:248px;max-width:calc(100% - 24px);display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:9px;background:#fff;border:1px solid #dfe5ec;border-radius:13px;box-shadow:0 18px 45px rgba(15,23,42,.18)}.scl-emoji-panel[hidden]{display:none!important}.scl-emoji-panel button{border:0;background:transparent;border-radius:7px;padding:5px 2px;font-size:18px;line-height:1.2;cursor:pointer}.scl-emoji-panel button:hover{background:#eef2f7}

.scl-attach.is-disabled{opacity:.45;pointer-events:none}.scl-compose textarea:disabled,.scl-send:disabled{cursor:not-allowed;opacity:.58}

/* 0.8.4: visitors can drag files into the chat or paste screenshots. */
.scl-window{position:fixed}
.scl-visitor-drop-overlay{position:absolute;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;border:3px dashed #4e8ed1;background:rgba(238,246,255,.94);backdrop-filter:blur(4px);color:#173b61;text-align:center}
.scl-visitor-drop-overlay[hidden]{display:none!important}
.scl-visitor-drop-overlay>div{display:flex;min-width:220px;flex-direction:column;gap:7px;padding:25px 20px;border-radius:18px;background:#fff;box-shadow:0 18px 48px rgba(20,55,92,.2)}
.scl-visitor-drop-overlay strong{font-size:16px}
.scl-visitor-drop-overlay small{color:#71859a;font-size:12px}

/* Recalled support messages */
.scl-msg.is-recalled .scl-bubble {
  background: #f4f6f8 !important;
  color: #7b8493 !important;
  border: 1px dashed #c9d0da !important;
  box-shadow: none !important;
}
.scl-msg.is-recalled .scl-recalled-text {
  margin: 0;
  font-style: italic;
  color: #7b8493;
}

/* 0.8.8: visitor chat typography and composer proportion refinements. */
#scl-chat-root .scl-window .scl-message-list{
  padding:18px 16px 14px;
}
#scl-chat-root .scl-window .scl-bubble{
  padding:10px 13px;
}
#scl-chat-root .scl-window .scl-bubble p,
#scl-chat-root .scl-window .scl-bubble p.scl-original-text{
  font-size:15px!important;
  line-height:1.52!important;
  letter-spacing:0!important;
}
#scl-chat-root .scl-window .scl-msg-actions{
  margin-top:5px!important;
}
#scl-chat-root .scl-window button.scl-translate-one{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:1px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#5475a7!important;
  font-family:inherit!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-decoration:none!important;
}
#scl-chat-root .scl-window button.scl-translate-one:hover{
  color:#315f9f!important;
  text-decoration:underline!important;
  background:transparent!important;
}
#scl-chat-root .scl-window .scl-client-translation{
  margin-top:7px;
  padding-top:7px;
}
#scl-chat-root .scl-window .scl-client-translation small{
  margin-bottom:3px;
  font-size:9.5px!important;
}
#scl-chat-root .scl-window .scl-client-translation p{
  font-size:13px!important;
  line-height:1.46!important;
}
#scl-chat-root .scl-window .scl-bubble time,
#scl-chat-root .scl-window .scl-receipt{
  font-size:9.5px!important;
}
#scl-chat-root .scl-window .scl-translation-tools{
  min-height:46px;
  box-sizing:border-box;
  padding:7px 10px;
}
#scl-chat-root .scl-window .scl-translation-tools label{
  font-size:10.5px!important;
}
#scl-chat-root .scl-window select.scl-translate-lang{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 30px 0 9px!important;
  font-size:12px!important;
  line-height:34px!important;
}
#scl-chat-root .scl-window button.scl-translate-chat{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:auto!important;
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0 11px!important;
  border:1px solid #d8dde5!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#27364b!important;
  font-family:inherit!important;
  font-size:10.5px!important;
  font-weight:650!important;
  line-height:32px!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
#scl-chat-root .scl-window button.scl-translate-chat:hover{
  background:#f4f7fb!important;
}
#scl-chat-root .scl-window .scl-compose{
  padding:8px 12px 10px!important;
}
#scl-chat-root .scl-window .scl-compose textarea{
  display:block!important;
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  max-height:82px!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid #d6dce5!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  font-family:inherit!important;
  font-size:14px!important;
  line-height:1.42!important;
  resize:none!important;
  overflow-y:auto!important;
}
#scl-chat-root .scl-window .scl-compose>div{
  margin-top:7px!important;
}
#scl-chat-root .scl-window button.scl-send{
  min-height:34px!important;
  height:34px!important;
  padding:0 17px!important;
  font-size:12px!important;
  line-height:34px!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
#scl-chat-root .scl-window .scl-attach{
  font-size:11.5px!important;
}
#scl-chat-root .scl-window button.scl-fullscreen,
#scl-chat-root .scl-window button.scl-close,
#scl-chat-root .scl-window button.scl-sound-toggle{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
#scl-chat-root .scl-window button.scl-fullscreen:hover,
#scl-chat-root .scl-window button.scl-close:hover,
#scl-chat-root .scl-window button.scl-sound-toggle:hover{
  background:rgba(255,255,255,.1)!important;
}
@media(max-width:620px){
  #scl-chat-root .scl-window .scl-message-list{padding:15px 13px 12px}
  #scl-chat-root .scl-window .scl-bubble p,
  #scl-chat-root .scl-window .scl-bubble p.scl-original-text{font-size:14.5px!important}
  #scl-chat-root .scl-window .scl-compose textarea{
    height:54px!important;
    min-height:54px!important;
    max-height:76px!important;
    font-size:16px!important;
  }
  #scl-chat-root .scl-window .scl-compose{padding:8px 10px 9px!important}
  #scl-chat-root .scl-window button.scl-translate-chat{font-size:10px!important;padding:0 9px!important}
}

#scl-chat-root .scl-window button.scl-translate-one.is-translated:disabled{
  opacity:1!important;
  color:#7b8798!important;
  cursor:default!important;
  text-decoration:none!important;
}


/* 0.9.6: direct Ctrl+V image paste without visible controls. */
#scl-chat-root .scl-paste-image{display:none!important}
.scl-native-paste-catcher{
  position:fixed!important;left:-10000px!important;top:0!important;width:4px!important;height:4px!important;
  overflow:hidden!important;opacity:.001!important;pointer-events:none!important;white-space:pre-wrap!important;
  z-index:-1!important;contain:strict!important
}


/* 0.9.7 — explicit participant identity on every chat message. */
#scl-chat-root .scl-window .scl-msg{align-items:flex-end;gap:8px}
#scl-chat-root .scl-window .scl-msg.is-me{flex-direction:row-reverse}
#scl-chat-root .scl-window .scl-msg-stack{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:82%}
#scl-chat-root .scl-window .scl-msg.is-me .scl-msg-stack{align-items:flex-end}
#scl-chat-root .scl-window .scl-msg-author{font-size:10.5px;line-height:1.2;font-weight:700;color:#66758b;margin:0 4px 5px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#scl-chat-root .scl-window .scl-msg.is-me .scl-msg-author{color:#5f6f86;text-align:right}
#scl-chat-root .scl-window .scl-msg-avatar{width:29px;height:29px;flex:0 0 29px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:11px;font-weight:800;color:#fff;background:linear-gradient(145deg,#5b83d7,#6d62c8);box-shadow:0 3px 10px rgba(46,70,113,.2);border:2px solid rgba(255,255,255,.9)}
#scl-chat-root .scl-window .scl-msg-avatar.is-visitor{background:linear-gradient(145deg,#a4b2c6,#7f91a9)}
#scl-chat-root .scl-window .scl-msg-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#scl-chat-root .scl-window .scl-msg-stack .scl-bubble{max-width:100%}
@media(max-width:620px){
  #scl-chat-root .scl-window .scl-msg{gap:6px}
  #scl-chat-root .scl-window .scl-msg-avatar{width:26px;height:26px;flex-basis:26px;font-size:10px}
  #scl-chat-root .scl-window .scl-msg-stack{max-width:84%}
}


/* 0.9.8 — stable visitor-side identity layout and native paste bridge. */
.scl-native-paste-catcher{
  position:fixed!important;left:0!important;top:0!important;width:2px!important;height:2px!important;
  min-width:2px!important;min-height:2px!important;max-width:2px!important;max-height:2px!important;
  overflow:hidden!important;opacity:.001!important;pointer-events:none!important;white-space:pre-wrap!important;
  clip-path:inset(50%)!important;z-index:2147483647!important;color:transparent!important;background:transparent!important;
  border:0!important;padding:0!important;margin:0!important;outline:0!important;caret-color:transparent!important
}
#scl-chat-root .scl-window .scl-msg.is-me{display:flex!important;justify-content:flex-end!important;flex-direction:row!important;gap:0!important}
#scl-chat-root .scl-window .scl-msg.is-me>.scl-bubble{max-width:82%!important;margin-left:auto!important}
#scl-chat-root .scl-window .scl-msg.is-them{display:flex!important;justify-content:flex-start!important;flex-direction:row!important;align-items:flex-end!important;gap:8px!important}
#scl-chat-root .scl-window .scl-msg.is-them .scl-msg-stack{align-items:flex-start!important;max-width:82%!important}
#scl-chat-root .scl-window .scl-msg.is-them .scl-msg-author{text-align:left!important}

/* 0.9.14: timestamps follow the visitor device timezone. */
#scl-chat-root .scl-date-separator{display:flex;align-items:center;gap:8px;width:100%;margin:12px 0 8px;color:#8a96a8;font-size:11px;font-weight:700;letter-spacing:.01em}
#scl-chat-root .scl-date-separator::before,#scl-chat-root .scl-date-separator::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(142,154,174,.32),transparent)}
#scl-chat-root .scl-date-separator span{padding:3px 9px;border:1px solid rgba(142,154,174,.18);border-radius:999px;background:rgba(255,255,255,.78);white-space:nowrap}
#scl-chat-root .scl-message-meta time{font-variant-numeric:tabular-nums}


/* 0.9.27 — place customer-side translate actions and timestamps on the same meta row. */
#scl-chat-root .scl-window .scl-message-meta .scl-translate-one{padding:0!important;line-height:1.2!important}


/* 0.9.28 — compact visitor translation block and remove the redundant translated-state button. */
#scl-chat-root .scl-window .scl-client-translation{
  display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
  align-items:start!important;column-gap:7px!important;
  margin-top:6px!important;padding-top:6px!important;
  border-top-color:rgba(100,116,139,.18)!important
}
#scl-chat-root .scl-window .scl-client-translation small{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  margin:1px 0 0!important;padding:2px 5px!important;border-radius:999px!important;
  background:#eef4fb!important;color:#687b91!important;
  font-size:8.5px!important;font-weight:750!important;line-height:1.35!important;
  letter-spacing:.01em!important;white-space:nowrap!important
}
#scl-chat-root .scl-window .scl-client-translation p{
  min-width:0!important;margin:0!important;color:#26384d!important;
  font-size:13px!important;line-height:1.42!important;font-weight:500!important
}
#scl-chat-root .scl-window button.scl-translate-one.is-translated:disabled{
  display:none!important
}


/* 0.9.29 — translated message header: target language left, timestamp right, translation below. */
#scl-chat-root .scl-window .scl-client-translation{
  display:block!important;margin-top:6px!important;padding-top:6px!important;
  border-top:1px solid rgba(100,116,139,.18)!important
}
#scl-chat-root .scl-window .scl-client-translation-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;min-width:0!important;margin:0 0 4px!important
}
#scl-chat-root .scl-window .scl-client-translation-head small{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;
  margin:0!important;padding:2px 5px!important;border-radius:999px!important;
  background:#eef4fb!important;color:#687b91!important;
  font-size:8.5px!important;font-weight:750!important;line-height:1.35!important;
  letter-spacing:.01em!important;white-space:nowrap!important
}
#scl-chat-root .scl-window .scl-client-translation-head time{
  display:block!important;flex:none!important;margin:0!important;
  color:#8a96a7!important;opacity:.82!important;font-size:9.5px!important;line-height:1.2!important;
  font-variant-numeric:tabular-nums!important;white-space:nowrap!important
}
#scl-chat-root .scl-window .scl-client-translation p{
  min-width:0!important;margin:0!important;color:#26384d!important;
  font-size:13px!important;line-height:1.42!important;font-weight:500!important
}
#scl-chat-root .scl-window .scl-bubble.has-client-translation>.scl-message-meta{
  display:flex!important;margin-top:4px!important;justify-content:flex-start!important
}
#scl-chat-root .scl-window .scl-bubble.has-client-translation>.scl-message-meta time,
#scl-chat-root .scl-window .scl-bubble.has-client-translation>.scl-message-meta .scl-translate-one{display:none!important}


/* 0.9.30 — customer-side message quoting. */
#scl-chat-root .scl-window .scl-composer-reply-preview{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:7px 9px;border:1px solid #d8e3ef;border-left:3px solid #5c88c9;border-radius:9px;background:#f5f9fe;color:#405a78}
#scl-chat-root .scl-window .scl-composer-reply-preview[hidden]{display:none!important}#scl-chat-root .scl-window .scl-reply-preview-icon{flex:none;color:#5c88c9;font-size:14px}#scl-chat-root .scl-window .scl-composer-reply-preview>div{display:flex;flex-direction:column;min-width:0;flex:1}#scl-chat-root .scl-window .scl-composer-reply-preview strong{font-size:10px;color:#315d8e}#scl-chat-root .scl-window .scl-composer-reply-preview div span{font-size:10.5px;color:#6a7c90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#scl-chat-root .scl-window .scl-composer-reply-preview button{flex:none;width:22px;height:22px;border:0;border-radius:6px;background:transparent;color:#8291a2;font-size:17px;cursor:pointer}
#scl-chat-root .scl-window .scl-message-quote{margin:0 0 7px;padding:6px 8px;border-left:3px solid #86a5c8;border-radius:7px;background:rgba(94,126,163,.09);overflow:hidden}#scl-chat-root .scl-window .scl-message-quote strong{display:block;margin-bottom:2px;font-size:9.5px;color:#587697}#scl-chat-root .scl-window .scl-message-quote-content{display:flex;align-items:center;gap:6px;min-width:0}#scl-chat-root .scl-window .scl-message-quote-content img{width:32px;height:32px;object-fit:cover;border-radius:6px;flex:none}#scl-chat-root .scl-window .scl-message-quote-content span{display:block;min-width:0;font-size:10.5px;line-height:1.32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.78}#scl-chat-root .scl-window .scl-msg.is-me .scl-message-quote{background:rgba(255,255,255,.12);border-left-color:#a9c8f2}#scl-chat-root .scl-window .scl-msg.is-me .scl-message-quote strong{color:#dbeafe}
#scl-chat-root .scl-window button.scl-quote-message{appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#607da1!important;font:650 10px/1.2 inherit!important;padding:0!important;cursor:pointer!important;white-space:nowrap!important}#scl-chat-root .scl-window .scl-msg.is-me button.scl-quote-message{color:#dbeafe!important}

/* 0.9.30 — keep the quote preview separate from the composer action row. */
#scl-chat-root .scl-window .scl-compose>.scl-composer-reply-preview{
  display:flex!important;justify-content:flex-start!important;align-items:center!important;
  margin:0 0 7px!important;
}


/* 0.9.35 — robust Quote preview/cancel and a quote card distinct from translation. */
#scl-chat-root .scl-window .scl-composer-reply-preview{
  position:relative!important;display:flex!important;align-items:center!important;margin:0 0 8px!important;padding:9px 38px 9px 12px!important;
  border:1px solid #d7deea!important;border-left:4px solid #6b7ee8!important;border-radius:10px!important;
  background:linear-gradient(135deg,#f7f8ff,#f3f6fb)!important;color:#3d4d67!important;box-shadow:none!important;pointer-events:auto!important
}
#scl-chat-root .scl-window .scl-composer-reply-preview[hidden]{display:none!important}
#scl-chat-root .scl-window .scl-composer-reply-preview>div{display:flex!important;flex-direction:column!important;min-width:0!important;flex:1!important}
#scl-chat-root .scl-window .scl-composer-reply-preview strong{font-size:10.5px!important;color:#4b5f9b!important;font-weight:750!important}
#scl-chat-root .scl-window .scl-composer-reply-preview div span{font-size:10.5px!important;color:#6b778b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#scl-chat-root .scl-window .scl-composer-reply-preview button.scl-reply-preview-cancel{
  position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;z-index:8!important;pointer-events:auto!important;
  width:24px!important;height:24px!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;
  background:#fff!important;color:#75839a!important;font:400 18px/24px Arial,sans-serif!important;cursor:pointer!important;box-shadow:0 1px 4px rgba(45,58,82,.09)!important
}
#scl-chat-root .scl-window .scl-composer-reply-preview button.scl-reply-preview-cancel:hover{background:#eef1fb!important;color:#4056ae!important}
#scl-chat-root .scl-window .scl-message-quote{
  margin:0 0 8px!important;padding:8px 9px!important;border:1px solid rgba(108,126,154,.18)!important;border-left:4px solid #7c8ae6!important;
  border-radius:9px!important;background:rgba(242,245,252,.94)!important;overflow:hidden!important;box-shadow:none!important
}
#scl-chat-root .scl-window .scl-message-quote strong{display:block!important;margin-bottom:4px!important;font-size:9.5px!important;color:#5668ad!important;font-weight:750!important}
#scl-chat-root .scl-window .scl-message-quote-content{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
#scl-chat-root .scl-window .scl-message-quote-content img{width:34px!important;height:34px!important;object-fit:cover!important;border-radius:7px!important;flex:none!important}
#scl-chat-root .scl-window .scl-message-quote-content span{display:block!important;min-width:0!important;font-size:10.5px!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;opacity:.8!important}
#scl-chat-root .scl-window .scl-msg.is-me .scl-message-quote{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.13)!important;border-left-color:#c1c9ff!important}
#scl-chat-root .scl-window .scl-msg.is-me .scl-message-quote strong{color:#e1e5ff!important}
#scl-chat-root .scl-window button.scl-quote-message{appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#6077aa!important;font:700 10px/1.2 inherit!important;padding:0!important;cursor:pointer!important;white-space:nowrap!important;text-decoration:none!important}
#scl-chat-root .scl-window button.scl-quote-message:hover{color:#3854aa!important;text-decoration:underline!important}
#scl-chat-root .scl-window .scl-msg.is-me button.scl-quote-message{color:#dce4ff!important}

/* 0.9.43 optimistic visitor text sends */
#scl-chat-root .scl-msg.is-pending .scl-bubble{opacity:.82}
#scl-chat-root .scl-msg.is-failed .scl-bubble{opacity:.94}
#scl-chat-root .scl-window .scl-receipt.is-sending{opacity:.62}
#scl-chat-root .scl-window .scl-receipt.is-failed{opacity:1;font-weight:750}
#scl-chat-root .scl-window .scl-visitor-send-retry{appearance:none;border:0;background:transparent;color:inherit;font:700 9px/1.2 inherit;padding:0;text-decoration:underline;cursor:pointer;opacity:.9}

/* 0.9.44 — compact visitor chat UI, reliable minimize controls, and mobile message density. */
#scl-chat-root .scl-mobile-backdrop{display:none}
#scl-chat-root .scl-compose>.scl-compose-row{
  display:flex!important;align-items:flex-end!important;justify-content:stretch!important;gap:7px!important;
  min-width:0!important;margin:0!important;padding:0!important
}
#scl-chat-root .scl-window .scl-compose-row .scl-compose-tools{display:flex;align-items:center;gap:2px;flex:none}
#scl-chat-root .scl-window .scl-compose-row textarea{
  flex:1 1 auto!important;width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:112px!important;
  margin:0!important;padding:10px 12px!important;border-radius:14px!important;overflow-y:auto!important;resize:none!important
}
#scl-chat-root .scl-window .scl-compose-row .scl-send{flex:none!important;margin:0!important}
#scl-chat-root .scl-window .scl-status:empty{display:none!important;min-height:0!important;padding:0!important}
#scl-chat-root .scl-window button.scl-close{font-size:27px!important;font-weight:500!important;line-height:28px!important;padding-bottom:5px!important}
#scl-chat-root.is-open .scl-launcher-chevron{transform:none}

@media(min-width:621px){
  #scl-chat-root .scl-window .scl-compose{padding:8px 10px 10px!important}
  #scl-chat-root .scl-window .scl-compose-row .scl-emoji-toggle,
  #scl-chat-root .scl-window .scl-compose-row .scl-attach{height:38px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px!important}
  #scl-chat-root .scl-window .scl-compose-row .scl-send{height:40px!important;min-height:40px!important;padding:0 15px!important;line-height:40px!important}
  #scl-chat-root .scl-window .scl-msg .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg .scl-translate-one{opacity:.35;transition:opacity .14s ease}
  #scl-chat-root .scl-window .scl-msg:hover .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg:hover .scl-translate-one,
  #scl-chat-root .scl-window .scl-msg:focus-within .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg:focus-within .scl-translate-one{opacity:1}
}

@media(max-width:620px){
  #scl-chat-root .scl-mobile-backdrop:not([hidden]){
    display:block;position:fixed;inset:0;z-index:1;border:0;margin:0;padding:0;background:rgba(15,23,42,.28);
    backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px)
  }
  #scl-chat-root .scl-launcher{z-index:4!important}
  #scl-chat-root .scl-window{
    z-index:3!important;position:fixed!important;
    left:max(6px,env(safe-area-inset-left))!important;right:max(6px,env(safe-area-inset-right))!important;
    top:max(6px,env(safe-area-inset-top))!important;
    bottom:max(78px,calc(env(safe-area-inset-bottom) + 70px))!important;
    width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
    border-radius:16px!important;border:1px solid rgba(203,213,225,.88)!important;
    box-shadow:0 18px 52px rgba(15,23,42,.34)!important;overflow:hidden!important
  }
  #scl-chat-root .scl-window.is-fullscreen{inset:0!important;border-radius:0!important}
  #scl-chat-root .scl-window-head{
    height:58px!important;min-height:58px!important;padding:0 9px 0 11px!important
  }
  #scl-chat-root .scl-agent-profile{gap:8px!important}
  #scl-chat-root .scl-agent-avatar{width:35px!important;height:35px!important;font-size:14px!important}
  #scl-chat-root .scl-agent-name{font-size:13.5px!important}
  #scl-chat-root .scl-agent-title{display:none!important}
  #scl-chat-root .scl-agent-presence{margin-top:2px!important;font-size:8.5px!important;gap:4px!important}
  #scl-chat-root .scl-agent-presence i{width:6px!important;height:6px!important}
  #scl-chat-root .scl-window-actions{gap:1px!important}
  #scl-chat-root .scl-window button.scl-sound-toggle,
  #scl-chat-root .scl-window button.scl-close{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;border-radius:9px!important}
  #scl-chat-root .scl-window button.scl-sound-toggle{font-size:14px!important}
  #scl-chat-root .scl-window button.scl-close{font-size:28px!important;line-height:30px!important;padding:0 0 6px!important}
  #scl-chat-root .scl-window button.scl-fullscreen{display:none!important}

  #scl-chat-root .scl-window .scl-chat{
    height:calc(100% - 58px)!important;grid-template-rows:40px minmax(0,1fr) auto auto!important
  }
  #scl-chat-root .scl-window .scl-translation-tools{
    min-height:40px!important;height:40px!important;padding:4px 7px!important;gap:6px!important;background:rgba(255,255,255,.98)!important
  }
  #scl-chat-root .scl-window .scl-translation-tools label{flex:1 1 auto!important;min-width:0!important}
  #scl-chat-root .scl-window select.scl-translate-lang{
    width:100%!important;max-width:132px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
    padding:0 25px 0 8px!important;font-size:11.5px!important;line-height:30px!important;border-radius:8px!important
  }
  #scl-chat-root .scl-window button.scl-translate-chat{
    height:30px!important;min-height:30px!important;padding:0 8px!important;border-radius:8px!important;font-size:9.5px!important;line-height:28px!important
  }

  #scl-chat-root .scl-window .scl-message-list{
    padding:9px 10px 8px!important;scrollbar-gutter:auto!important;background:linear-gradient(180deg,#f8fafc 0%,#f5f7fb 100%)!important
  }
  #scl-chat-root .scl-window .scl-system{margin:5px 12px 9px!important;font-size:9.5px!important;line-height:1.35!important}
  #scl-chat-root .scl-window .scl-msg{margin:5px 0!important;gap:6px!important;align-items:flex-end!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped{margin-top:2px!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped.is-them .scl-msg-avatar{visibility:hidden!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped .scl-msg-author{display:none!important}
  #scl-chat-root .scl-window .scl-msg-avatar{width:24px!important;height:24px!important;flex:0 0 24px!important;font-size:9px!important;border-width:1.5px!important}
  #scl-chat-root .scl-window .scl-msg-stack,
  #scl-chat-root .scl-window .scl-msg.is-them .scl-msg-stack{max-width:88%!important}
  #scl-chat-root .scl-window .scl-msg.is-me>.scl-bubble{max-width:86%!important}
  #scl-chat-root .scl-window .scl-msg-author{font-size:9.5px!important;margin:0 3px 3px!important;line-height:1.1!important}
  #scl-chat-root .scl-window .scl-bubble,
  #scl-chat-root .scl-window .scl-msg-stack .scl-bubble{
    padding:7px 10px!important;border-radius:13px 13px 13px 5px!important;box-shadow:0 1px 3px rgba(15,23,42,.045)!important
  }
  #scl-chat-root .scl-window .scl-msg.is-me .scl-bubble{border-radius:13px 13px 5px 13px!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped.is-them .scl-bubble{border-radius:7px 13px 13px 7px!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped.is-me .scl-bubble{border-radius:13px 7px 7px 13px!important}
  #scl-chat-root .scl-window .scl-bubble p,
  #scl-chat-root .scl-window .scl-bubble p.scl-original-text{
    font-size:14px!important;line-height:1.38!important
  }
  #scl-chat-root .scl-window .scl-message-meta{
    gap:4px!important;margin-top:3px!important;min-height:9px!important;line-height:1.15!important
  }
  #scl-chat-root .scl-window .scl-message-meta time,
  #scl-chat-root .scl-window .scl-receipt{font-size:8.5px!important;line-height:1.15!important}
  #scl-chat-root .scl-window button.scl-quote-message,
  #scl-chat-root .scl-window button.scl-translate-one{display:none!important;font-size:9px!important;line-height:1.1!important}
  #scl-chat-root .scl-window .scl-msg.is-actions-open button.scl-quote-message,
  #scl-chat-root .scl-window .scl-msg.is-actions-open button.scl-translate-one{display:inline-flex!important}
  #scl-chat-root .scl-window .scl-msg.is-actions-open .scl-bubble{box-shadow:0 0 0 2px rgba(96,125,225,.10),0 2px 5px rgba(15,23,42,.06)!important}
  #scl-chat-root .scl-date-separator{margin:7px 0 5px!important;gap:6px!important;font-size:9.5px!important}
  #scl-chat-root .scl-date-separator span{padding:2px 7px!important}
  #scl-chat-root .scl-window .scl-message-quote{margin:0 0 5px!important;padding:5px 7px!important;border-left-width:3px!important;border-radius:7px!important}
  #scl-chat-root .scl-window .scl-message-quote strong{margin-bottom:2px!important;font-size:8.5px!important}
  #scl-chat-root .scl-window .scl-message-quote-content span{font-size:9.5px!important}
  #scl-chat-root .scl-window .scl-message-quote-content img{width:28px!important;height:28px!important}
  #scl-chat-root .scl-window .scl-client-translation{margin-top:5px!important;padding-top:5px!important}
  #scl-chat-root .scl-window .scl-client-translation-head{margin-bottom:3px!important}
  #scl-chat-root .scl-window .scl-client-translation p{font-size:12px!important;line-height:1.35!important}

  #scl-chat-root .scl-window .scl-status{min-height:0!important;padding:3px 9px!important;font-size:9px!important;line-height:1.2!important}
  #scl-chat-root .scl-window .scl-status:empty{display:none!important;padding:0!important}
  #scl-chat-root .scl-window .scl-compose{padding:6px 7px 7px!important;border-top-color:#e2e8f0!important}
  #scl-chat-root .scl-window .scl-compose>.scl-composer-reply-preview{
    margin:0 0 5px!important;padding:6px 32px 6px 9px!important;border-radius:8px!important;border-left-width:3px!important
  }
  #scl-chat-root .scl-window .scl-composer-reply-preview strong,
  #scl-chat-root .scl-window .scl-composer-reply-preview div span{font-size:9.5px!important}
  #scl-chat-root .scl-window .scl-compose>.scl-compose-row{
    display:flex!important;align-items:flex-end!important;justify-content:stretch!important;gap:5px!important;margin:0!important
  }
  #scl-chat-root .scl-window .scl-compose-row .scl-compose-tools{display:flex!important;align-items:center!important;gap:1px!important;flex:none!important}
  #scl-chat-root .scl-window .scl-compose-row .scl-emoji-toggle,
  #scl-chat-root .scl-window .scl-compose-row .scl-attach{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:34px!important;min-width:34px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important
  }
  #scl-chat-root .scl-window .scl-compose-row .scl-emoji-toggle{font-size:18px!important}
  #scl-chat-root .scl-window .scl-compose-row .scl-attach span{font-size:0!important;line-height:1!important}
  #scl-chat-root .scl-window .scl-compose-row .scl-attach span::before{content:"📎";font-size:18px;line-height:1}
  #scl-chat-root .scl-window .scl-compose-row textarea{
    flex:1 1 auto!important;width:auto!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:96px!important;
    margin:0!important;padding:9px 12px!important;border-radius:18px!important;font-size:16px!important;line-height:1.35!important;background:#fff!important
  }
  #scl-chat-root .scl-window .scl-compose-row .scl-send{
    display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
    margin:0!important;padding:0!important;border-radius:50%!important;font-size:0!important;line-height:1!important
  }
  #scl-chat-root .scl-window .scl-compose-row .scl-send::before{content:"➤";font-size:17px;line-height:1;transform:translateX(1px)}
  #scl-chat-root .scl-window .scl-emoji-panel{left:7px!important;bottom:55px!important;width:min(248px,calc(100% - 14px))!important;max-width:calc(100% - 14px)!important}

  #scl-chat-root.is-open .scl-launcher{filter:none!important}
  #scl-chat-root.is-open .scl-launcher-chevron{font-size:22px!important;transform:translateY(-2px)!important}
}


/* 0.9.45 — optimistic attachment previews: local image appears immediately, progress stays inside the bubble. */
#scl-chat-root .scl-window .scl-upload-pending .scl-bubble{overflow:hidden}
#scl-chat-root .scl-window .scl-upload-preview{position:relative;display:block;max-width:min(250px,100%);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.08);isolation:isolate}
#scl-chat-root .scl-window .scl-upload-preview img{display:block;max-width:100%;width:auto;height:auto;max-height:300px;object-fit:contain;border-radius:10px}
#scl-chat-root .scl-window .scl-upload-preview-canvas{display:block;max-width:100%;width:auto;height:auto;max-height:300px;border-radius:10px}
#scl-chat-root .scl-window .scl-upload-preview-canvas[hidden],#scl-chat-root .scl-window .scl-upload-preview-fallback[hidden],#scl-chat-root .scl-window .scl-upload-preview-placeholder[hidden]{display:none!important}
#scl-chat-root .scl-window .scl-upload-preview-placeholder{display:block;width:min(220px,60vw);aspect-ratio:4/3;border-radius:10px;background:linear-gradient(110deg,rgba(255,255,255,.08) 8%,rgba(255,255,255,.17) 18%,rgba(255,255,255,.08) 33%);background-size:220% 100%;animation:scl-upload-placeholder 1.05s linear infinite}
#scl-chat-root .scl-window .scl-upload-state{position:absolute;right:7px;bottom:7px;z-index:2;display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:3px 7px;border-radius:999px;background:rgba(15,23,42,.76);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);color:#fff;font-size:9px;font-weight:700;line-height:1;box-shadow:0 1px 5px rgba(0,0,0,.18)}
#scl-chat-root .scl-window .scl-upload-pending.is-upload-preparing .scl-upload-state::before,
#scl-chat-root .scl-window .scl-upload-pending.is-upload-processing .scl-upload-state::before{content:"";width:8px;height:8px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:scl-upload-spin .72s linear infinite}
#scl-chat-root .scl-window .scl-upload-progress-track{position:absolute;z-index:3;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.22);overflow:hidden}
#scl-chat-root .scl-window .scl-upload-progress-track.is-file{position:relative;display:block;margin-top:7px;border-radius:999px;background:rgba(255,255,255,.18)}
#scl-chat-root .scl-window .scl-upload-progress-fill{display:block;width:0;height:100%;border-radius:inherit;background:rgba(255,255,255,.92);transition:width .14s linear}
#scl-chat-root .scl-window .scl-upload-pending.is-upload-preparing .scl-upload-progress-fill{animation:scl-upload-prepare 1.05s ease-in-out infinite}
#scl-chat-root .scl-window .scl-upload-pending.is-upload-failed .scl-upload-progress-fill{background:#fecaca}
#scl-chat-root .scl-window .scl-upload-pending.is-upload-failed .scl-upload-state{background:rgba(153,27,27,.86)}
#scl-chat-root .scl-window .scl-upload-file-card{display:flex;align-items:center;gap:9px;min-width:180px;max-width:250px;padding:4px 2px}
#scl-chat-root .scl-window .scl-upload-file-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.13);font-size:15px}
#scl-chat-root .scl-window .scl-upload-file-copy{display:block;min-width:0;flex:1}
#scl-chat-root .scl-window .scl-upload-file-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3}
#scl-chat-root .scl-window .scl-upload-file-copy small{display:block;margin-top:2px;font-size:9px;opacity:.7}
#scl-chat-root .scl-window .scl-upload-meta{margin-top:4px!important}
@keyframes scl-upload-spin{to{transform:rotate(360deg)}}
@keyframes scl-upload-prepare{0%{transform:translateX(-110%)}50%{transform:translateX(220%)}100%{transform:translateX(520%)}}
@keyframes scl-upload-placeholder{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:620px){
  #scl-chat-root .scl-window .scl-upload-preview{max-width:min(230px,72vw)!important}
  #scl-chat-root .scl-window .scl-upload-preview img{max-height:245px!important}
  #scl-chat-root .scl-window .scl-upload-preview-canvas{max-height:245px!important}
  #scl-chat-root .scl-window .scl-upload-preview-placeholder{width:min(210px,68vw)!important}
  #scl-chat-root .scl-window .scl-upload-state{right:6px;bottom:6px;min-height:20px;padding:3px 6px;font-size:8.5px}
  #scl-chat-root .scl-window .scl-upload-progress-track{height:2.5px}
  #scl-chat-root .scl-window .scl-upload-file-card{min-width:150px;max-width:72vw}
}


/* 0.9.46 — desktop density pass. Mobile message sizing from 0.9.44/0.9.45 is intentionally unchanged. */
#scl-chat-root .scl-launcher-chevron{
  display:grid!important;place-items:center!important;padding:0!important;line-height:1!important
}
#scl-chat-root .scl-launcher-chevron svg{
  display:block;width:18px;height:18px;transition:transform .18s ease;transform-origin:50% 50%
}
#scl-chat-root .scl-launcher-chevron.is-expanded svg{transform:rotate(90deg)}
#scl-chat-root .scl-window button.scl-close{
  display:grid!important;place-items:center!important;padding:0!important;line-height:1!important
}
#scl-chat-root .scl-window button.scl-close svg{display:block;width:18px;height:18px;pointer-events:none}
#scl-chat-root.is-open .scl-launcher-chevron{transform:none!important}

@media(min-width:621px){
  /* Slightly tighter chrome gives the conversation more vertical room. */
  #scl-chat-root .scl-window-head{height:72px!important;padding:0 12px 0 13px!important}
  #scl-chat-root .scl-agent-profile{gap:9px!important}
  #scl-chat-root .scl-agent-avatar{width:38px!important;height:38px!important;font-size:15px!important}
  #scl-chat-root .scl-agent-name{font-size:14px!important}
  #scl-chat-root .scl-agent-title{font-size:9px!important;margin-top:1px!important}
  #scl-chat-root .scl-agent-presence{font-size:8.5px!important;margin-top:3px!important}
  #scl-chat-root .scl-window-actions{gap:2px!important;align-items:center!important}
  #scl-chat-root .scl-window-actions .scl-sound-toggle,
  #scl-chat-root .scl-window-actions .scl-fullscreen,
  #scl-chat-root .scl-window-actions .scl-close{
    width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important
  }
  #scl-chat-root .scl-window button.scl-close svg{width:17px;height:17px}
  #scl-chat-root .scl-chat{height:calc(100% - 72px)!important}
  #scl-chat-root .scl-translation-tools{padding:5px 8px!important;gap:7px!important}
  #scl-chat-root .scl-translate-lang,
  #scl-chat-root .scl-translate-chat{height:29px!important;min-height:29px!important;max-height:29px!important;line-height:27px!important}

  /* Dense conversation layout for desktop only. */
  #scl-chat-root .scl-window .scl-message-list{padding:9px 11px 8px!important}
  #scl-chat-root .scl-window .scl-system{margin:4px 10px 7px!important;font-size:9.5px!important;line-height:1.3!important}
  #scl-chat-root .scl-window .scl-msg{margin:4px 0!important;gap:6px!important;align-items:flex-end!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped{margin-top:1px!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped.is-them .scl-msg-avatar{visibility:hidden!important}
  #scl-chat-root .scl-window .scl-msg.is-grouped .scl-msg-author{display:none!important}
  #scl-chat-root .scl-window .scl-msg-avatar{width:24px!important;height:24px!important;flex:0 0 24px!important;font-size:9px!important;border-width:1.5px!important}
  #scl-chat-root .scl-window .scl-msg-stack,
  #scl-chat-root .scl-window .scl-msg.is-them .scl-msg-stack{max-width:86%!important}
  #scl-chat-root .scl-window .scl-msg.is-me>.scl-bubble{max-width:84%!important}
  #scl-chat-root .scl-window .scl-msg-author{font-size:9.5px!important;line-height:1.1!important;margin:0 3px 3px!important}
  #scl-chat-root .scl-window .scl-bubble,
  #scl-chat-root .scl-window .scl-msg-stack .scl-bubble{
    padding:7px 9px!important;border-radius:12px 12px 12px 4px!important;box-shadow:0 1px 3px rgba(15,23,42,.045)!important
  }
  #scl-chat-root .scl-window .scl-msg.is-me .scl-bubble{border-radius:12px 12px 4px 12px!important}
  #scl-chat-root .scl-window .scl-bubble p,
  #scl-chat-root .scl-window .scl-bubble p.scl-original-text{font-size:12.5px!important;line-height:1.34!important}
  #scl-chat-root .scl-window .scl-message-meta{gap:4px!important;margin-top:3px!important;min-height:9px!important;line-height:1!important}
  #scl-chat-root .scl-window .scl-message-meta time,
  #scl-chat-root .scl-window .scl-receipt{font-size:8.5px!important;line-height:1!important}
  #scl-chat-root .scl-window button.scl-quote-message,
  #scl-chat-root .scl-window button.scl-translate-one{font-size:8.5px!important;line-height:1!important}
  #scl-chat-root .scl-date-separator{margin:6px 0 4px!important;gap:5px!important;font-size:9px!important}
  #scl-chat-root .scl-date-separator span{padding:2px 6px!important}
  #scl-chat-root .scl-window .scl-message-quote{margin-bottom:4px!important;padding:5px 7px!important}
  #scl-chat-root .scl-window .scl-client-translation{margin-top:4px!important;padding-top:4px!important}

  /* For ordinary short text, keep time/receipt on the text row instead of creating a tall card. */
  #scl-chat-root .scl-window .scl-bubble.is-short-text{
    display:grid!important;grid-template-columns:minmax(0,auto) auto!important;align-items:end!important;
    column-gap:7px!important;row-gap:0!important;padding:6px 9px!important
  }
  #scl-chat-root .scl-window .scl-bubble.is-short-text>p{
    grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important
  }
  #scl-chat-root .scl-window .scl-bubble.is-short-text>.scl-message-meta{
    grid-column:2!important;grid-row:1!important;align-self:end!important;justify-self:end!important;
    margin:0 0 1px!important;white-space:nowrap!important
  }

  /* Actions stay out of the permanent layout; reveal them only when the desktop user points at the message. */
  #scl-chat-root .scl-window .scl-msg .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg .scl-translate-one{display:none!important}
  #scl-chat-root .scl-window .scl-msg:hover .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg:hover .scl-translate-one,
  #scl-chat-root .scl-window .scl-msg:focus-within .scl-quote-message,
  #scl-chat-root .scl-window .scl-msg:focus-within .scl-translate-one{display:inline-flex!important}
  #scl-chat-root .scl-window .scl-msg:hover .scl-bubble.is-short-text>.scl-message-meta,
  #scl-chat-root .scl-window .scl-msg:focus-within .scl-bubble.is-short-text>.scl-message-meta{
    grid-column:1 / -1!important;grid-row:2!important;justify-self:start!important;margin-top:3px!important
  }
}
